/mycelium-extra:verifyfrom mycelium-extra
After an approved grill plan has run, check what ran against the plan and, once the user confirms, write provenance. Subcommands: exercise, list, report, write, disclose, crate, diff, stale, status, multiplicity, explore, runs, refs, reproduce, knobs. Not for planning (grill) or code quality (Mycelium's review).
Ships in mycelium-extra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Check one approved plan against the gate's record of what ran, and record the result as provenance once the user agrees. The script judges only what the records show; it never re-runs anything, and nothing here edits receipts or approvals. verify asks whether what ran matches the plan; for what changed since approval, use /mycelium-extra:track-changes.
Run <skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. exercise < <skill-dir>/scripts/verify.py. Keep the printed synthetic label. Ask what discrepancy the user finds. After their answer, run the same command with exercise reveal in this session. It needs no gate, reads no project state and writes nothing. Never insert the exercise into a genuine report or treat it as a score. Do not start an exercise without the user's request.
list, report, write, diff, multiplicity and explore require the approval gate (.mycelium-extra/gate.json). Without it, say so and stop. stale, status, runs and refs read committed provenance and run on a clone with no gate.
Use the hash the user gives. Otherwise list the approved plans, newest first, and ask which one:
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. list < <skill-dir>/scripts/verify.py
Always run the script from stdin, from inside the repository. Running it by path opens Mycelium's post-action cycle. The script finds the gate's state folder itself, so never put that folder's name on the command line.
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. report <hash> [--analysis-dir <folder>] < <skill-dir>/scripts/verify.py
The analysis folder is guessed from the plan's scripts; pass --analysis-dir when the guess is wrong. --json gives the raw result. report <hash> --trace [ROW] (hash first) prints a read-only decision trace instead: one line per plan row, or with ROW that row's declared script and exact command, the attempts that ran it, its bound checks' results and its supported outputs, each labelled declared, observed, check result, candidate or unresolved. It is refused with --json, write and the other actions, and writes nothing.
It also runs scilintr on the analysis folder's code (outputs, logs, and provenance skipped; the planned scripts when there is no folder): scilintr for Python, and for R Rscript -e calling scilintr::lint_project() on one folder holding a copy of the R code, so its cross-file rules run too, as Mycelium's analyze skill requires. A Jupyter notebook's code cells are extracted (magic and shell lines commented out) and linted with its kernel's language; findings are cited as <notebook>.ipynb[code cell N]:<line>, and a notebook whose code does not parse is a gap. The {r} and {python} chunks of .qmd and .Rmd files are linted the same way, with prose and other lines blanked so a finding cites the document's own line (<doc>.qmd:<line>); display blocks, other engines (an engine= option picks the language, so {r engine="bash"} is skipped), and inline `r x` code are not linted, and eval=FALSE chunks and documents set to eval: false are. A file pulled in with child= or knitr::read_chunk() is found relative to the document and linted under its own path; one named by a path that is not a quoted string, or not found, is a gap. A threshold finding (a rule or message containing "threshold", such as R002 or magic-threshold) is info, not a block, when every number on its line (text after # is not read; a sign must match, so -1 is not 1) appears in a Choice cell of a plan row that names that script, or in any Choice cell when no row names it; this holds for notebook cells too. The ## Lint section lists remaining findings, every ANALYSIS_OK waiver, and each finding a waiver suppressed with its reason (a second run with waivers off); an R waiver with no reason that suppresses a finding blocks. The linters' paths come from .mycelium-extra/tools.json when init recorded them, else PATH. If a linter is missing, say how to install it (pip install scilintr, install.packages("scilintr")) or how to record its path (<skill-dir>/../../hooks/mxpy - --tools --scilintr PATH --rscript PATH < <init skill-dir>/scripts/gate_init.py, in a repository that already has the gate on); never treat an unchecked language as clean.
It also checks the reason on each default: in the frozen plan's Source column, with plan-review's scripts/default_reasons.py (loaded from the plugin root). A row with no reason, a reason under three words, or only an empty phrase such as standard is an advisory info finding that names the row; it does not change the status. If that script is missing or fails, the check is a gap.
It also checks claims: each <!-- claims --> block in the analysis doc (<NAME>.md, Mycelium's analysis doc), in a Markdown file on the Outputs: line, or in a document passed with --claims <path> (repeatable). Each block line names a value and the output cell it came from, value | file column [row], with the file relative to the analysis folder or the repository. row is the first-column label; a table with more than one row needs it, so a common value such as 0.05 never verifies against some row of a column. rows as the column is the table's data-row count, and a JSON output takes a dotted path (qc.n, qc.kept.1). A value may start with <, >, <= or >=, and end with % (also tried against a fraction, reported as via transform). A value agrees when the cell, rounded half-up or half-even to the value's last digit, equals it. A value that equals the cell only when cut to that digit (0 for 0.93) is verified-truncated: it is counted apart from a full match, listed as info, and the Numbers match line says how many. The ## Claims section counts each document's verdicts. A claim the cell contradicts, or one read from an output an explore run wrote, blocks; a claim whose file, column or row cannot be found, a file over --hash-mb, or a block line that does not parse is a gap. Numbers in the block's section (heading to heading) that no claim covers are listed as info: the block, not the prose, is the checked record.
It also reads citations: each DOI (10.<4-9 digits>/<suffix>), PMID: <n> and arXiv: <id> in the documents it checks for claims, one entry per identifier, plus each reference-shaped line under a References heading that carries no identifier (no identifier: listed, never resolvable). Offline, which is the default, an identifier is not checked (offline) and is a gap: verify never shows a citation as resolved that it did not resolve. report <hash> --resolve-citations [--contact <email>] queries Crossref, NCBI E-utilities and arXiv with stdlib urllib, one request per identifier with a wait between them, and compares the returned title and first author with the citation line: resolved when both appear in it, mismatch when they do not, unresolved when the service has no such record, not checked (request failed) when the request never reached a service (no network, a timeout, an error other than 404). The ## Citations section counts each verdict. A mismatch or an unresolved identifier blocks; a reference with no identifier is info; a failed request is a gap. A resolved citation shows that the identifier exists and that its title and first author appear in the text, not that the paper supports the sentence citing it. The contact address, which Crossref and NCBI both ask for, is sent only when you pass it.
It also reads the run's decision log, <analysis>/logs/decisions.tsv (format), against the plan's rows. Only rows written at or after the plan's approval are judged (the log is kept across runs); earlier rows are an info count, and a row whose ts does not parse is a gap. A judged row whose plan_row is empty or names no plan row blocks: it is an unplanned impactful choice, which should have stopped the run for the user's answer. plan_row is the row's ID when the plan table has an ID column, else its 1-based position; an ID used twice cannot be matched and is a gap. One info line lists user or inherited: plan rows with no decision row in the window (verify cannot tell which are impactful, so it is not a gap). The log file is never graded as an output. A row linked to a default: row is info (an impactful choice is never a default). A missing log is a gap when the plan has a user or inherited: row and an analysis folder is known; a log that holds only its header is not, and with no analysis folder it is one info line. ## Decisions counts the rows read. This checks the log against the plan, not the code against the log.
It also reads the top-level UPPER_SNAKE values of each planned R or Python script, the knob block lucid-coder's house style keeps after the header (any all-caps name, single letters included, with an optional Python annotation; R 10L reads as 10), and lists every knob that no plan Choice names. A knob counts as named by its name as a whole word (so K is not named by "knockout"), or by every number in its value or its quoted text, but numbers count only in a Choice of a row that names that script; a script no row names is matched by name only. Path-valued knobs are skipped: a quoted string that starts like a path or ends in a file extension, or a here(), Path(), file.path() or os.path call. Arithmetic like 1/20 and labels like "CD4/CD8" are knobs. It is one info line per script: a value a reader may change that the plan never listed may be an unplanned impactful choice, but verify cannot tell which knob moves a headline estimate, so it is not enforced. knobs SCRIPT [SCRIPT ...] prints the same list read-only and needs no gate; grill uses it.
It also reads each <!-- explain --> block in the documents it checks for claims (number | factor | figure path, see plot-first's "Explain the number"). A cited figure must be an image or PDF (.png .pdf .svg .jpg .jpeg .tif .tiff) inside the repository; a missing file, another file type or a path outside the repository is a gap. The figure's producer is graded as an output's is: a figure a matched run of this plan wrote under Outputs: is figure found; a figure an explore run drew blocks (an explore figure is not a result); any other figure, with no recorded producer in this plan, is a gap. unsupported: no inspected figure and a third cell starting inconclusive are info, and the section ## Explain the number lists each line. It does not judge whether the figure supports the line.
The report opens with # Verify plan <hash>: <status> and five rows: Ran as planned, Numbers match, Code checks, Not checked and Next. Each starts yes, no or partly with its reason, or n/a when the plan gave the check nothing to judge (for example no <!-- claims --> block), so a row is never yes while a problem is open. Quote these five rows to the user first, as printed, then the details below them. In the file write saves, Next says the provenance is saved.
The report ends with Verify status: and one of these values:
CONFORMSCONFORMS_WITH_GAPS: something the records cannot show, such as a required validation check not established or a recovery whose equivalence is not established, a run with no receipt, an unrecorded exit status, an output not tied to a run, code scilintr could not check, or a citation identifier not checked (offline by default, or a request that failed).
The gate takes a run's exit status from the hook event (Claude Code), the shell result's exit code (OpenCode's metadata.exit, recorded as exit_source: response; none, as for a background task or a tool error, is unknown), or nothing (Codex, below). On Claude Code, PostToolUse fires only after a command succeeds, so its receipt records exit 0 ("exit_source": "event"; the row reads ran (exit 0 from hook event)), and PostToolUseFailure gives the code from the Exit code N line, or failed or interrupted when there is none. A receipt with exit status unknown (a run started in the background, a payload without an event name) or null (from an older gate) is a gap, never a success, so a plan whose only evidence is such a run gets CONFORMS_WITH_GAPS. An sbatch receipt's exit status is the submit's; the job's state and ExitCode come from sacct (a submission is not a completion): COMPLETED with a nonzero ExitCode blocks, and a pending, running, unknown or partly finished array job is a gap.DOES_NOT_CONFORM: at least one of:
DOES_NOT_CONFORM in every case; name the plan to check instead when one covers itOutputs: line that was written before the approval (older files inside a named folder or glob are earlier runs' outputs, so they are only counted; a folder or glob with older files and no file from this approval is a gap)The report also has a ## Validation section when the approved plan declares <!-- validation-bindings -->, a ## Plan evidence section when it records a <!-- plan-evidence --> block, and a ## Recovery section when a step has more than one attempt. Read all three as evidence about the plan's own checks and the run history, not as a judgement of the science:
> operator; a quoted > is an argument), no substitution, no unquoted brace ({--output=o,} expands to a writer flag), git only with its read-only subcommand as the first argument (no global option such as -c or --namespace before it), no writer or program-running flag (sort -o, git -O, rg --pre, rg --hostname-bin; bundled as in -ro, attached as in -Ocmd, or abbreviated as in --outp), 10 seconds each and 60 for the block. A row reads still true (the output is byte-for-byte what the plan recorded, after trailing whitespace), changed (a gap, naming the first differing line) or not checked (a gap, naming why: a writing command, exit 2 or more, a timeout, the budget). still true says the output is unchanged, not that the claim it supports is right.passed needs a matched run of the check's invocation that created or changed its evidence file, pinned test files still as approved, and a result that says passed (a data-contract result passes with exit 0 and no block; warnings are kept). failed on a required check blocks; not run, changed (a pinned expectation edited or missing after approval), unattributable (a result the gate did not see the attempt write, or one modified afterwards) and unsupported (not a result verify can read) on a required check are gaps worded "not established": the expectation is not counted as met, and the plan is never CONFORMS. An optional check is an info line. defined_by is shown as the plan declared it, "not verified".exact-execution step calls operational) is info. A success after a changed command, script, engine config file or folder is a gap, "equivalence not established", and the earlier failure stays in the history. Do not describe it as recovered; say what changed and leave the choice to the user. A run of an instance with exact-execution that matched no declared step is a gap, "outside the exact reportable contract".A script the gate re-pinned after an edit (the plan's working scope) and then ran is a gap: "ran at as edited since approval; no approval froze that version", with freeze <hash> as the way out; the report also lists the re-pins as info. After a freeze the rerun belongs to the new instance and the gap is gone.
A plan re-approved with the same text and the same pins keeps one approval instance and its earlier runs; the report says so. Re-approved with other pins, it is a new instance: report checks the newest one by default (--instance <id> picks an earlier one), runs under another instance are listed as history and do not establish the freeze, and no run under the checked instance is a gap.
report also compares each output with the SHA256 write saved in outputs-<hash>.tsv; a file whose bytes differ (even with its size and time restored) is a gap, and so is one it could not hash within the budget. write itself skips this comparison, since it replaces the table. The Scope block carries a Not recorded: environment line when no conda environment, lockfile or job-script environment line was recorded for the runs; it is a line, not a gap, and the evidence handoff repeats it under limitations. A write stamps every time it saves under provenance/ with its zone (+0100), so the record reads the same in any TZ. The metadata-only fingerprint gap for a script or input appears only when the receipt (or approval pin) holds no SHA256; a file that could not be re-hashed in budget is a separate gap. The Scope block also carries one Tried before line: the count of earlier plan revisions and explore runs before this approval (from multiplicity, which lists them). It is printed even when both counts are 0, and it is information, not a gap. The Scope block also carries a Qualification (qualified or not qualified) with a short evidence table (authorization, completion, code and input identity, lineage, required validation, claim linkage: each established, not established with its reason, or not applicable) and one limitation line. It is separate from the verify status and is not a scientific judgement or a score. Quote the table as printed and name the limitation; never say a run is "reportable" or "verified" from the status line alone. report --require-reportable exits 3 when the run is not qualified (write --require-reportable saves the record first), and ordinary report is unchanged: report and write exit 0 whatever the status, write also prints a Qualification: line after Verify status:, and a verify: error (or mxpy finding no Python 3.12 or later) exits 1. The budgets are --hash-mb (default 2000) and --seconds (default 120); --repo, --sacct, --scilintr and --rscript override where it looks. A numeric claim can match its cell while its output's producer is unresolved: report both facts. Coverage counts under ## Claims list prose numbers as listed, not checked; a claim on a registered numbers.json value shows the file's content, not which run wrote it. A Validation cell that is only prose, with no binding, is one info line (nothing checks it). Plans that name a run.sh or Snakefile get a ## Rerun evidence section: declared, rerun attempted and rerun reproduced are separate facts, and verify never launches a rerun.
Before the tables the report has a ## Scope block: which approval instance was checked, how many runs had a matched, unmatched, ambiguous or legacy launch, and how many outputs have a supported producer. Runs credited to the plan with no checked launch (Post without a matching Pre), ambiguous launches and attempts that never reported back are gaps; receipts from before launch matching are one info line.
A compound shell command's overall exit status cannot establish that each named step executed. Such receipts keep the overall status separately: an overall failure blocks, while each step's unknown execution is a gap. Malformed receipt or Snakemake records are skipped and reported as gaps, so damaged history cannot establish conformity. Header-only tables and duplicate column labels leave claims unverified; claims or percentage transforms outside the supported numeric range also leave explicit gaps.
block and gap finding with what it means for the results. Keep the info lines short.Plan status: line, into the reply. The gate would offer the reply as a new plan to approve.block, name the fix and leave the choice to the user. Typical fixes:
no executable check bound, not checked, cannot map or unlinked is a gap, not a pass; never say a choice was implemented or verified from a trace, and name its closing line: scientific correctness is not determined and imported helpers are not traced.write's outputs-<hash>.tsv) lists every file. An Outputs: word with no / or . (figures) is not read as none; verify reports a gap naming the word, so ask the user to name the path.End the summary with three lines, and put in each one only what the report supports:
A line no check supports is not a summary: never move a gap into Established, and never offer a Next insight that is an analysis you would run without a plan.
When you write findings or a report in a gated repository, declare the numbers a reader would quote in a claims block, each naming its cell, so verify checks them:
<!-- claims
8 | outputs/summary.tsv n_hits
0.016234 | outputs/de_results.tsv padj SIGLEC1
24 | outputs/samples_used.tsv rows
-->
Never add, edit, or drop a claims line to make a failing check pass.
After a run, re-check each claimed finding, read-only. Idea from pstack's interrogate and benny's reproduce rule.
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. reproduce --analysis-dir <folder> [--claims DOC] [--json] < <skill-dir>/scripts/verify.py
It reads each <!-- reproduce --> block in the analysis doc and any --claims document. A line is finding | read-only command | expected | intent: the first cell is the finding, the last two are the expected output and the intent, and everything between, kept as written, is the command, so a pipeline such as rg -c x f | wc -l or grep x f || true works. Commands run from the repository root. Each command runs twice, through the same read-only allowlist as plan evidence (no writer, no redirect, no substitution, 10 seconds a run). A document's first 40 entries run; the rest are counted and the count is printed, not run. All runs share a 300-second budget (REPRODUCE_BUDGET); entries after it are inconclusive with time budget ran out. The verdict is one of:
reproduced: both runs printed the expected output, so the finding holds under that command.unreproduced: both runs ran and one printed something else. The finding is dropped and listed with what it printed.inconclusive: a run could not happen (not read-only, timed out, errored, or the time budget ran out). The reason names which half.Quote the three lists as printed. Do not fix, edit or re-run anything because of a dropped finding: the user decides, and a wrong output needs a new grill plan. A reproduced finding is not a verified analysis: the command may test the wrong thing. Rerunning a script is a run, so it needs an approved plan.
Ask once whether to record this check, naming the analysis folder and the status. Only after an explicit yes:
(This confirmation is the agent's instruction, not a gate rule, so write runs whenever the agent runs it, unless .mycelium-extra/gate.json sets confirm_writes to true. Then first run <skill-dir>/../../hooks/mxpy <skill-dir>/../../hooks/confirm_write.py prepare --kind verify-write --target <folder>, show the user the confirm write <id> line it prints, and run write only after they type it: the gate denies it before.)
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. write <hash> --analysis-dir <folder> < <skill-dir>/scripts/verify.py
It writes <folder>/provenance/:
plan-<hash>.md: the frozen plan as approved.receipts-<hash>.jsonl: the receipts of this plan's runs.outputs-<hash>.tsv: each output's path, write time, size, full sha256 (or size and mtime past the hash budget), the run named when its producer is supported, and the evidence: producer_attempt, evidence_method, strength, approval_instance. A table without those four columns is a legacy bundle.validation-<hash>.json, only when the plan has a validation binding: the frozen binding, each check's outcome and reason, and the raw evidence's path and sha256.verify-<hash>.md: this report, with its claims counts.lint-<hash>.txt: the scilintr output, every ANALYSIS_OK waiver, and the findings each suppressed.env-<hash>.txt, only when a run used a conda env (conda run -n|-p, conda activate in its job script, an interpreter under <env>/bin/, or the session's CONDA_PREFIX) and no conda-lock.yml was found: the env's packages in conda list --explicit --md5 form, read from its conda-meta so conda need not be on PATH. An env changed after its last run (conda-meta/history is newer) or not found is a gap.pip-<hash>.txt, only when such an env holds Python packages conda did not install (not in any conda-meta record's files, or reinstalled since, so INSTALLER is no longer conda), even when a conda-lock.yml was found: one requirements block per env, usable with pip install -r, noting a name also in conda-meta and a non-pip installer; a git install is written as name @ git+<url>@<commit>, and an editable or local-path install is commented out with its path. A pip folder newer than the env's last run, one without a readable name and version, or an env not found is a gap; a package uninstalled after the run and pip install --user packages are not seen.PROVENANCE.md: one row per verified plan.After the bundle, write adds one row, | provenance/verify-<hash>.md | verify <status> (<date>) |, to the ## Outputs table of the analysis doc (found by find_doc: <NAME>.md, else README.md), and replaces that row on a rerun. A doc with no ## Outputs table is left alone and write prints one note. See the analysis layout, rule 5.
Writing again for the same plan replaces its files and its row. A non-conforming check can be written too, since its status is recorded with it. The files belong with the analysis, so commit them with it. The script warns if git ignores the folder.
To also export a Process Run RO-Crate of a written bundle, ask the same confirmation, then run <skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. crate <hash> --analysis-dir <folder> < <skill-dir>/scripts/verify.py (details: references/crate.md). An output with no established producer stays in the crate as an explicit gap.
Mycelium's Stop hook will ask for a .living/ update. Record the verify status, and the plan's "Decisions to record" from plan-<hash>.md, through Mycelium's normal logging. This skill does not write .living/.
Give the review command, which checks the code against the frozen plan, when a finding or result is unresolved or the user asks for a deeper review. Do not prescribe it again after an unchanged final run whose code was already reviewed before the freeze; follow the user's instructions and the project's conventions.
/mycelium:review <folder> — check the code against the approved plan in <folder>/provenance/plan-<hash>.md
End with one line: the status and the next action.
When the user asks what is stale or out of date, sweep every verified plan, read-only:
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. stale [--content] [--json] < <skill-dir>/scripts/verify.py
It reads the committed provenance/receipts-<hash>.jsonl and outputs-<hash>.tsv (found through git, so ignored folders are skipped), and needs no gate. For each stale plan it lists scripts edited or deleted since they ran, pinned inputs that changed, and outputs rewritten or deleted since verify recorded them, plus the session IDs of its runs. By default outputs are compared by size and time and the result says Not content-checked and metadata checked (a same-size rewrite with its time restored is not seen); with --content each output is hashed against the SHA256 verify saved, and a file or budget it did not reach is content not checked. Say which check was run.
findings: command, which searches .living/findings/ for its session IDs and plan <hash> (the gate suggests <session-id>; plan <hash> as a ledger's Run/Session cell), to name the findings that rest on a stale plan. A finding's ledger may cite a run ID instead; if nothing matches, say the link is unknown, not that no finding is at risk.verify <hash>), or re-plan the re-run with grill. Write nothing.When the user says an expectation or test file was wrong, find the saved plans that pinned it, read-only:
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. refs <path> [--sha SHA256] [--json] < <skill-dir>/scripts/verify.py
Ask for the old file's SHA256 (git log/git show or the saved validation-<hash>.json); without it every path match is only possible. Report each line as printed: definite means a pinned file had that SHA256, possible means same path with another or unchecked SHA256, or named in the plan text. Say that "no recorded reference" is not proof the file was unused, and that bundles with no validation record were not searched. Write nothing, and never edit an old receipt or finding; the user decides whether to rerun, amend or keep the result with a limitation.
When the user asks for status or an overview, show one table, read-only:
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. status [--json] < <skill-dir>/scripts/verify.py
One row per plan the gate approved (local, this clone only) or verify recorded (committed provenance/): the analysis folder (the provenance folder, else guessed from the plan table), runs, the verify status from PROVENANCE.md with the bundle's state appended (for example CONFORMS (complete)), or not verified, stale changes, the Reportable column (the saved Qualification:, read back as qualified (stale) when a script, input or output changed since, and not established (bundle interrupted) when the bundle's checksum failed), the lint verify recorded (N finding(s), M approved threshold(s) for threshold findings the plan approved, clean, gap: <language> not checked, not run, or not recorded; scilintr is not re-run), and the folder's entry in any ANALYSIS_MANIFEST.md: listed: <first word of its status>, listed, or not listed. A not listed analysis skipped Mycelium's manifest step. Show the table as printed, then suggest at most one next step, such as verifying the newest unverified plan. Write nothing.
explore [--session ID | --all] [--json] lists explore runs of gated code for grill's "promote explore runs" (see the grill skill); it only reads. It lists this session's runs, taking the session from $CLAUDE_CODE_SESSION_ID or --session; where neither is set (Codex, OpenCode) it says "no session ID found, so every session is shown" and lists the last 7 days of every session. It keeps every attempt of a command, failed ones too, with its code version (script sha256), exit and scope. Promotion needs an approved rerun with fresh output identity: report marks an output written inside an explore attempt and not re-observed under a matched approved attempt not re-run under approval, and never relabels it. An explore run never validates a check or owns an output.
Codex uses its own hook configuration (hooks/codex.json) and records approvals and receipts with host: codex. It requires enabled/trusted hooks and a new session after installation. Codex 0.160.0 sends command output without exit metadata in PostToolUse, so these receipts have exit_status: unknown and verification reports CONFORMS_WITH_GAPS. Never infer success from a Codex post event or from text printed by the command. A run without a dispatched post hook remains no receipt. Older unreceipted Codex runs cannot be recovered by upgrading.
The report lists what it cannot see:
gate-errors.jsonl, from approval to now, same or unnamed session) is a gap: observation is incomplete there. Repeats of one event kind in one session are one gap with a count and a time span. It does not say which action went unobserved, so do not say one did. An unreadable journal is a gap (observation history unavailable); errors before the approval or from another session are ignored.Output producers are graded, never just guessed from time. Only supported names a producer: a matched run of this plan whose Pre and Post bracketed the output's change, with no overlapping attempt that could have written it (attempt-observed), and whose stored outputs_after size and mtime still match the file; a file changed since is not supported. Snakemake's per-output record joined to a wrapper run by time is a workflow-record candidate (two wrappers: unresolved). Mycelium's lineage is a lineage-record candidate only: it counts when one matched attempt is joined by an explicit id or by inference (session, command, script, exactly one attempt; say the join is inferred), not for unresolved/static-only detection, a nonzero exit, a missing path or a changed hash, and a static path or a hash read from disk is not proof of a write. It can confirm an observed producer (lineage agrees) or name a second one (unresolved), never make supported. Time alone (timing-only, including receipts from before launch matching) is at most a candidate and always a gap, even for one run within five seconds; the By column then reads unresolved and the candidates are listed beside it. Say so: a candidate is a lead, not a producer. An output written before the approval, or by an explore run (a claim read from it blocks), is a block; the rest are gaps. An observed change shows the file changed during that run, not that its code wrote it, and a folder on Outputs: is watched as a folder, so ask for files or a one-level glob when the producer matters.
Before the user re-approves a revised plan (for example a run plan presented again after a fix, see grill's references/run-plans.md), show what changed since the plan it replaces, read-only:
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. diff <old-hash> <new-hash> < <skill-dir>/scripts/verify.py
It reads each plan from the approvals, or, for one shown but not yet approved, from the gate's pending plans, and compares them whole, with whitespace collapsed and nothing shortened: the objective; the table row by row (keyed by the ID column, #, id, no, no. or the first), reporting changed, added and removed rows, dropped columns and a changed row order; the Inputs: and Outputs: lines; the raw text of the <!-- validation-bindings --> and <!-- exact-execution --> blocks (compared, not interpreted); and the runs the table allows (scope). A row whose ID is used twice or missing is reported as "cannot compare", never silently overwritten. A changed objective or Choice cell is flagged as a possible scientific change; whether it is one is the user's call, so name it and let them decide. It reports exact equality of what the plans say, not that the science is unchanged, and a whitespace-only edit is no change. Write nothing; the revision itself belongs in the analysis folder's TRACKER.md.
When the user asks what was tried before a result (how many earlier plan revisions and how many explore runs came before this approval), show the record for one approved plan, read-only. Verify counts attempts (plan revisions and runs); it does not count the tests, contrasts, models or thresholds a run tried, because receipts and approvals do not record them.
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. multiplicity <hash> [--json] < <skill-dir>/scripts/verify.py
A counts line, then one timeline, oldest first: each earlier approved plan that names one of this plan's scripts or Outputs: paths (a revision), ordered by each plan's first freeze, so a later re-approval does not hide an earlier Choice change, with its changed Choice cells; each run of those scripts or in the analysis folder, as an explore run, a run under an earlier plan, or a run under this plan; a run whose receipt names this plan and a later-approved one is listed as ambiguous and counted under neither, with its command and exit status; and this plan, marked approved (selected). It stops at this plan's last run. A run whose script differs from the version this plan last ran is marked other code version. Counts come from receipts and approvals only; a run whose approvals were not read is counted as a gap. Receipts do not record which files a run wrote, and a value changed inside a script shows only as another code version. Show the table as printed and judge nothing: which run is the real one, and whether the tries need a correction, is the user's call. Write nothing.
When the user asks which runs a results folder holds, or whether the runs this analysis cites are still good, list them, read-only:
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. runs [RESULTS_DIR] [--json] < <skill-dir>/scripts/verify.py
Without RESULTS_DIR it uses results/ in the newest approval's analysis folder, or outputs/ when there is no results/. Runs are found through the shared resolver (hooks/analysis_paths.py, analysis layout); a flat outputs/ with no run folders lists none. In a steps layout (outputs/NN_name/ folders) it lists each step folder with its mtime and the newest logs/CHANGES.md heading, and asks for no RUN.txt, so it reports no label gaps for them. The rest of this paragraph is for legacy run folders. A kind outside analysis | figures | scratch is a gap. A run is a run_<YYYYMMDD>_<slug> folder (iterations end _vNN) with a label RUN.txt inside it, or, for a frozen run, a sibling <run>.RUN.txt. The table shows run, version, kind, status, updated (the newest file inside, not the folder), id (a content id of the file names and sizes), and why. results/current is shown as a pointer. Findings are gaps or info: an unlabelled run, a frozen-label sibling, a malformed label (with its line), superseded_by or reads naming a run that does not exist, and a state word in a run name (final, complete, smoke, latest, current, review). Several runs of one slug and kind that all say current give a suggestion, never a status. A Citations section checks each symlink in the analysis's data/ and code/ that points into another analysis's run: a gap when the cited run is unlabelled, superseded, failed or scratch, or the link dangles; info otherwise, and when the cited run changed after this analysis's newest approval. Show it as printed. Only the user sets a status; write nothing, and do not read the notes of a label for run names.
When a journal, a funder or a collaborator asks what the agent did in an analysis — or before the user writes an AI-use methods paragraph themselves — draft one from the records, read-only:
<skill-dir>/../../hooks/mxpy - --plugin-root <skill-dir>/../.. disclose <hash> [--analysis-dir DIR] < <skill-dir>/scripts/verify.py
It prints plain text, one sentence per line, over the same check report makes (so --instance and the ## Citations verdicts follow report's rules; disclose itself takes no --json, has no --trace, and writes nothing). Each sentence names the record it came from, [source: <path or record>], and covers the plugin and its version, the plan's steps and its approval and freeze history, the runs the gate recorded with their launch evidence, any re-pins, the recorded environments, one sentence on the earlier plan revisions and explore runs behind the plan (counts only), the verify status and qualification, the claims checked, the citations found, the lint state, and the repository commit. Anything a record cannot show is [BLANK: <what is missing>] — no receipts, no claims block, no re-pin record, an unreadable plugin manifest, an unreadable commit: never fill one in from memory or from the report's prose. Present it as a draft: the user edits what they keep, deletes what they do not want to send, and fills in every [BLANK: ...] themselves. Say plainly that the draft states what the records show, not that the analysis is right, and that a sentence about a claim or a citation carries the same limits as report gives them.
agents/openai.yaml (opens in a new tab)references/crate.md (opens in a new tab)scripts/crate.py (opens in a new tab)scripts/decision_log.py (opens in a new tab)scripts/method_fidelity.py (opens in a new tab)scripts/records.py (opens in a new tab)scripts/verify.py (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/README.md (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_.env_setup_done (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_.yaml (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_/conda-meta/_openmp_mutex-4.5-20_gnu.json (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_/conda-meta/bzip2-1.0.8-hda65f42_10.json (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_/conda-meta/ca-certificates-2026.10.19-hbd8a1cb_0.json (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_/conda-meta/history (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_/conda-meta/ld_impl_linux-64-2.46.1-default_hbd61a6d_103.json (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_/conda-meta/libexpat-2.8.5-hd2095e1_0.json (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_/conda-meta/libffi-3.7.0-h81df57d_1.json (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_/conda-meta/libgcc-16.2.0-ha9f2e26_7.json (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_/conda-meta/libgomp-16.2.0-he0feb66_7.json (opens in a new tab)tests/fixtures/snakemake-9.27-conda-24.9/snakemake-dir/conda/5145cec6a71cd87d80fa010959a0dac6_/conda-meta/liblzma-5.8.3-hb03c661_1.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mdmanurung/mycelium-extra --plugin mycelium-extra35 skills in this plugin
/analysis-mapChart a research program too big for one session as a map of decision tickets, then resolve them one at a time. Plans decisions; runs no analysis./analysis-reportFill the Quarto report new-analysis scaffolds in reports/ after a run. Narrative, quoted script excerpts, a step diagram and inspected figures in Overview, Methods, Results and Reproducibility tabs./ask-extraAsk which Mycelium Extra skill fits your situation. Names one to three skills to type and why; starts none of them.Other plugins' skills for the same job