QA Kraken OSS reproduction kit
Prepared 2026-10-13. Use the 2.0.1 compiled executable.

WHAT IS INCLUDED
run.sh: the six exact selected profiles; preserves the QA exit code.
summarize.mjs: produces an aggregate JSON summary from this invocation only.
grafana-setup.mjs and grafana-compose.yaml: an isolated synthetic Grafana fixture.
verify.auth-launcher.mjs and verify.identity-adapter.mjs: Grafana persona examples.
prepare-routes.mjs: the public Umami and RealWorld route declarations.

These are reproduction scripts, not QA Kraken's private implementation. Download
all files into one directory. Install the compiled CLI from qakraken.com/install.html
and complete qa setup before measuring. Node 22+, Git and Bash are required for
the scripts. Docker is needed only for Grafana. On the measured Mac we use Colima.
Never select Docker Desktop or OrbStack on a Colima-managed machine.

To retain the exact executable even after a newer release becomes available:
  curl -fsSL https://qakraken.com/install.sh -o install-qa.sh
  memcap run --wait 86400 -- sh install-qa.sh --version 2.0.1 --prefix "$PWD/qa-2.0.1" --no-setup
  memcap run --wait 86400 -- "$PWD/qa-2.0.1/bin/qa" setup --yes
Use that absolute bin/qa path as the last argument to run.sh.

PINNED PUBLIC APPLICATION SOURCES
Grafana: https://github.com/grafana/grafana.git
  commit 6193dc03311b631b9727b560d24369e683dc396e, tag v13.2.3
Umami: https://github.com/umami-software/umami.git
  commit ec0ff50388c264ed8ce46f00967e92f7e71476ae
RealWorld: https://github.com/jiheon788/react-query-realworld.git
  commit eabb81ae3bd7ffc04b2df23cf1c74e4d5385280b
shadcn-admin: https://github.com/satnaing/shadcn-admin.git
  commit e16c87f213a5ba5e45964e9b67c792105ec74d26

Clone the public repository, then git checkout --detach the exact commit above.
run.sh refuses another commit or modified tracked files. Local declarations are
operator inputs. Do not run two profiles against the same checkout concurrently.

PUBLIC TARGETS / NO LOCAL APP SERVER
For Umami and RealWorld, create the explicit routes:
  node prepare-routes.mjs umami /absolute/path/to/umami
  node prepare-routes.mjs realworld /absolute/path/to/realworld

Then, from the directory holding this kit:
  memcap run --wait 86400 -- bash run.sh umami /absolute/path/to/umami ./umami-run /absolute/path/to/qa
  memcap run --wait 86400 -- bash run.sh realworld /absolute/path/to/realworld ./realworld-run /absolute/path/to/qa
  memcap run --wait 86400 -- bash run.sh shadcn-static /absolute/path/to/shadcn-admin ./shadcn-run /absolute/path/to/qa

The public deployments can change. Their source-to-deployment identity is not
attested. The shadcn profile is source-only; zero static candidates does not mean
its browser behavior passed. The Umami share URL is the public upstream demo.

LOCAL GRAFANA / NEW SYNTHETIC FIXTURE
Use a new absolute workspace path. Keep the downloaded kit separate from it.
These commands create two local users and synthetic dashboards, not production data.
The setup refuses existing declarations and never resets an existing fixture.

  DEMO_WORK=/absolute/path/to/new-grafana-demo
  node grafana-setup.mjs init "$DEMO_WORK"
  memcap run --wait 86400 -- git clone --depth 1 --branch v13.2.3 https://github.com/grafana/grafana.git "$DEMO_WORK/source"
  memcap run --wait 86400 -- npm --prefix "$DEMO_WORK/browser" install --no-save playwright@1.62.1
  memcap run --wait 86400 -- docker pull grafana/grafana:13.2.3

Confirm the Docker engine is already running. The Mac's context should be colima;
ask its owner before starting a stopped VM. Do not change engine memory limits.
Each environment reservation includes Grafana plus the browser and CLI. The measured
environment used 3 GiB; size yours honestly if the actual workload needs more.

Run setup and all desired checks inside ONE reserved environment so its stack
cannot block admission of its own test. For example, create a local session.sh:

  #!/usr/bin/env bash
  set -eu
  kit=$1
  work=$2
  qa_bin=$3
  node "$kit/grafana-setup.mjs" seed "$work"
  set +e
  bash "$kit/run.sh" grafana-demo "$work/source" "$work/demo-run" "$qa_bin"
  code=$?
  set -e
  exit "$code"

Launch it with:
  memcap environment run --memory 3 --compose "$DEMO_WORK/compose.yaml" -- bash ./session.sh "$PWD" "$DEMO_WORK" /absolute/path/to/qa

To collect every Grafana profile in the same environment, replace the one run.sh
line in session.sh with a loop over grafana-demo grafana-full grafana-states.
Use a distinct output directory per profile. Keep every child exit; stop and
inspect exit 2 instead of silently continuing. Seed a new fixture only once.

The environment runner starts healthy containers, then stops its own containers
after the session; it retains the volume. Keep credentials in workspace/private
(0700 directory, 0600 files). Never put that directory, browser storage state,
cookies or local absolute paths on a public website. A new fixture is a new
measurement, not a byte-identical replay of the historical database.

For hosts without memcap, use their approved resource manager to reserve the
whole environment. The profile script invokes qa directly so it can run inside
such a reservation; that is not permission to bypass memcap where it is installed.

INTERPRETING OUTPUT
0: no gating evidence within the measured scope.
1: gating findings or a regression; this is the expected outcome for the recorded
   Grafana, Umami and RealWorld runs if the corresponding evidence remains.
2: invalid or unable to measure; never a pass.
Other exits or an interrupted command: incomplete. Retain the attempt record.

public-summary.json contains counts and rule IDs only. stdout.log, stderr.log,
the app's .verify tree, semanticEvidence, screenshots and private auth state are
not public exports. --capture in the full Grafana and RealWorld profiles creates
local application images; it never uploads them. Review any additional exports.
run.sh refuses an existing output directory; it never adopts an older sweep.

TIMING AND SCOPE
The profile script has no global watchdog. The recorded publication runner used
180 seconds for short/public profiles, 600 for full Grafana and 240 for states.
Navigation timeout is per operation, not a whole-run deadline. Interrupt your own
runner normally if needed; keep the incomplete attempt in the results.
Measured command time excludes cloning, prior package/browser installation, Grafana
startup and seeding, and memcap admission. The first recorded Grafana invocation
also installed the Playwright package in the new binary cache; its elapsed time
includes that preparation. The shared Chromium download was already present.
Source caches can be warm. This is not
a cold-install benchmark, a cross-machine latency guarantee or full app coverage.

Public summaries contain raw observation counts grouped by rule and severity.
They are not adjudicated bug totals. P0 source candidates are not established
vulnerabilities. No declared write journey, production mutation, authorization
proof or cross-context consistency proof is claimed by these profiles.

Known historical failure: 2.0.0 binaries routed an app-owned auth launcher into
the CLI command parser. The 2.0.1 dispatcher fixes that behavior; the launcher
still supplies private auth via fd 3 and identity is validated before sweeping.
