Oracle handover

From s-smits/anabasis · View interactive version

Oracle handover is an AI agent skill from the GitHub repository s-smits/anabasis. Use when preparing an Oracle question, second opinion, log slice (`slice.ts`), open-PR bundle (`open-pulls.ts`, use `--diffs` for pasting), or external handover document (`document.ts`, `bundle.ts`, `bun run runs zip`). Packages source excerpts at a published commit, PR summaries, and campaign logs

How to use this skill

Skill file

Oracle handover

Packages a design or diagnostic question for an external Oracle model as either one pasteable Markdown document (document.ts, typically 100k–150k o200k tokens) or a task document (REVIEW.md) plus a zip archive (bundle.ts).

Information boundary: the Oracle acts as the operator's analyst and may receive exam-side logs, but the boundary is strictly one-way—no Oracle output may ever reach a Builder, Examiner, Solver, or Referee, and every Oracle claim must be verified at the source before acting on it (AGENTS.md section 11; attribution-and-proof, whole-run-investigation).

1. Self-contained document (`document.ts` and `slice.ts`)

Write the problem statement in head.md, list included parts in parts.txt, and build REVIEW.md from a published commit:

bun --env-file=.env.runs .claude/skills/oracle-handover/scripts/document.ts <dir>/parts.txt --commit <published sha> --out <dir>/REVIEW.md
bun --env-file=.env.runs .claude/skills/oracle-handover/scripts/slice.ts <run> 'Builder{4-7}' 'Examiner:x-2{~5}' 'comparison.reported{~1}'

parts.txt directives:

head head.md
src AGENTS.md#1,2,8 :: The rules the question turns on.
src src/kernel/compare.ts#informative :: How room is read.
src src/campaign/decide.ts:255-300
diff <from>..<to> src/examiner
pr 594 :: The change in doubt.
log <run> Builder{1-12} comparison.reported :: Its first round.
log <run> Drafter{~3} exam.drafted{1} --whole
file notes/gate-record-report.md :: A count checked against the log.

2. Document plus zip archive (`bundle.ts`) and open PRs (`open-pulls.ts`)

For multi-file handovers in <scratchpad>/oracle-<yyyymmdd>-<topic>/:

```sh

bun .claude/skills/oracle-handover/scripts/bundle.ts <dir> [--max-mb 20]

```

```sh

bun .claude/skills/oracle-handover/scripts/open-pulls.ts <scratchpad>/oracle-<yyyymmdd>-<topic> [--diffs] [--max-mb 20]

```

When asked for "open PRs in md format", pass --diffs and report the .md full path and token count.

3. Framing `REVIEW.md`

Title the document # Review: <subject> and open with: "This document is the task, not a draft to critique: do not suggest changes to its wording or framing, and do not ask which mode to work in." Structure in five sections: (1) The question and the decision it changes; (2) What you can read (repo URL, cited commits, zip inventory); (3) What happened (counts kept distinct); (4) What I doubt (hypotheses and falsifiers without stating operator preference); and (5) Deliver this (one recommendation, each doubt rated held / refuted / undecided, and an explicit owner per finding). Report the output paths, token count, and zip size.

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.