Whole run investigation

From s-smits/anabasis · View interactive version

Whole run investigation is an AI agent skill from the GitHub repository s-smits/anabasis. Use when auditing one or more campaign logs, diagnosing stalled climbs or unexpected failures, or questioning a comparison reading (step, no-step, not-scored). Investigates append-only logs across correctness, evaluation validity, wall leakage, task difficulty, promotions, compute time, and cost, pr

How to use this skill

Skill file

Whole-Run Investigation

Examines one or more campaigns as equals from their append-only logs, producing a vetted synthesis establishing whether readings hold (comparison-reading), what constrained the run, and which owner (references/lanes.md, mapped from prior catalogues in references/from-v1.md) owns each fix. Strictly read-only: starts no solves and modifies no logs or verdicts.

Questions needing no lanes

| Question | Command |

| --- | --- |

| Active status & last event | bun run runs pulse |

| Supply & next move | bun run runs view <name> |

| Fresh control check validation (authorised; writes checker.read) | bun tools/c/accept.ts <campaign flags> |

| Human labels for rejections or passes (authorised) | bun tools/d2/settle.ts <campaign flags> --session <id> |

| Served-model degradations | bun tools/runs/degradations.ts <name> |

| Sessions, parent harnesses & readings | bun tools/wri/wri.ts read --log <log> (row F, CHAIN) |

| Side-by-side climb & /tmp crossings | bun tools/wri/wri.ts climb --log <log>,<log> |

| Same-domain version backtracking (release-gap weighted) | bun tools/wri/wri.ts backtrack (--log <log>[,<log>] \| --domain <domain>) |

| Progress by active hour (descriptive) | bun tools/wri/wri.ts trajectory --log <log>,<log> [--grades <report>] [--hours 2,4,8] |

| Blind cross-campaign grading | bun tools/wri/wri.ts packets --log <log>,<log> --out <dir> --graders 2 (then --join, trajectory --grades) |

| Cross-investigation index & recurring vetted findings | bun tools/wri/wri.ts index [--root <dir>]; bun tools/wri/wri.ts findings [--window 7] |

| Cost/promotion & cohort trends | promotion-tuner/scripts/table.ts --rows promotions; trend.ts --pack <pack> |

Procedure (`<dir>` = `.ana/wri/<date>-<campaign>/` on central host)

Each bun tools/wri/wri.ts <verb> step gates on the previous one:

| Step | Command | Purpose |

| --- | --- | --- |

| 0. Read | read --log <log> | Prints deterministic rows A–F, triggers and host-code digest |

| 1. Start | start --log <log>[,<log>...] --out <dir> [--snapshot] | Writes overview.md, shared-instructions.md (references/shared-instructions.template.md), investigation.json and data/derived/; checks out anabasis-at-<commit> if needed. Active logs need stop or --snapshot. Settle rows A–F before step 2 |

| 2. Instruct | Edit <dir>/shared-instructions.md | Fill ## Orientation (question & paths, never expected answer), ## The moved variable and prior state (hypotheses + predictions-<run>.md with id and lanes), ## Already read by the primary (or "nothing"). Keep ## Hard rules; leave no blank ## section |

| 3. Build lanes | lanes --out <dir> [--lanes 1-4,7] [--agents N] [--high K] [--regroup] | Writes lanes/NN-prompt.md, lanes/shared-<hash>.md, launch.json. Opens triggered + 10 standing lanes (1, 2, 3, 4, 5, 6, 9, 11, 14, 16 in the importance-ranked 20-lane catalogue), balanced by Importance: (default 4 agents; ≤8 lanes/session); lists isolated lane 20 without building it |

| 4. Launch & record | Run launch.json (wri-lane or codex-gpt-swarm) and record --out <dir> together | Lanes write lanes/NN-report.md (guarded by tools/wri/lane-guard.ts); record writes model-free cross-version and archive reads (wri.ts backtrack --domain, trend.ts, table.ts, starter-reads.ts, replay.ts, findings) into record.md. Check each session's model from its transcript |

| 5. Collect (& lane 20) | collect --out <dir> | Validates reportOf (heading, Verdict:, balanced Observation:/Cause:/Owner:/Reverses if:/Decision:, Seen in:, valid owners, Prediction <id>:) and writes reports.md. If lane 17 leaves a check undecided, build --lanes 20, run alone (launch-20.json), and re-collect |

| 6. Synthesise | synthesis --out <dir> | Renders synthesis-prompt.md (references/synthesis.template.md) with same-domain version-gap history ({history}); synthesis writes synthesis.md starting with version-over-version progress and tagging each finding <lane>.<n> and a key from references/standing-findings.md or new |

Other verbs: derive (--log <log>... | --all) [--verbose] [--force] [--no-embed] (READERS, tools/wri/derive.ts), reader <name> --log <log>, grade --log <log> (--task <id> --answer <file> | --solve <id> | --answers <dir>) [--set <path>=<json>]... (lanes 4, 17, 20), and bun tools/wri/rank-lanes.ts [--check] (keeps lanes.md and TRIGGERS ordered strictly by descending Importance:).

Hard rules

Vetting (`<dir>/vetting.md`, validated by `vettingFaults` in `tools/wri/findings.ts`)

Keep triage (copying synthesis rows) separate from vetting (recounting directly against raw logs, HEAD, harnesses and checks). In a release cycle, backtrack predictions-<run>.md first (held | falsified | unreached, checking whether the PR's mechanism event fired per AGENTS.md §9).

| Column | Required value |

| --- | --- |

| id | vet-<n> |

| finding | one-line summary of what was checked |

| lanes | <lane>.<n>, lane number or primary (every lane finding covered) |

| standing | key from references/standing-findings.md or new |

| owner | owner from references/lanes.md |

| importance | I0–I3 (AGENTS.md §11); required when confirmed |

| verdict | confirmed \| plausible \| refuted |

| fate | when confirmed: repair \| carry \| operator \| none, with reason |

Custom counterfactual angles (on top of normal WRI)

When testing specific candidate improvements or open dilemmas on top of standard WRI, run ~3 independent read-only subagents (gemini-4-neon at medium effort, or Model: "inherit" where effort is not exposed) writing <dir>/angles/<slug>.md. Split along orthogonal axes tailored to the proposed changes (typically: scoring, sampling and decision rules; exam grounding, audit and objective; supply, harness economy and runtime waste), quantifying exact counterfactual dollars, wall-clock hours, and flipped decisions with denominators against primary logs, derived readers, and promotion-tuner replays. Keep every angle under ## Hard rules (read-only, wall-safe, no quotes), separate observed spend from counterfactual bounds, and verify cited counts before using them in vetting or design dilemmas.

Related skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.