A pull request body without the AI Rig footer note is now blocked before it is published. gh pr create|new|edit whose --body-file or --body body does not end with the note is stopped with the note to append, before your gh-write approval is spent, so a body drafted after /compact dropped the rule no longer goes out with the host's Generated with Claude Code line. The body is read the way gh reads its flags, so a title shaped like a flag cannot hide it. An empty body file or a body path that is no regular file is blocked too. --fill, --template, stdin, a body file the hook cannot open by its literal path and gh api pull request writes are not checked; AI_RIG_FOOTER=off still opts out; comments, issue bodies, reviews and title-only edits are unaffected.
Pull request bodies Claude drafts are now structured for scanning: a one-sentence summary, then short bullet sections with sub-lists for detail instead of paragraphs over three lines, code spans or fenced blocks for commands and paths, and tables for per-row facts.
The skip option on the git-approve, git-push, git-push-run and gh-write approval questions is now Decline instead of Hold, so it reads as a final refusal rather than a pause. It still skips the operation and cancels only a pending approval for the same question in the same session; a stale Hold answer is no longer recognized and writes nothing.
commit-guard and gh-write-guard no longer ask about chmod +x path/to/gh (or git), chown and chgrp: they join the data programs whose options never carry code, so making a stubbed gh or git script executable runs without an "unmodeled executable" prompt, while a git/gh call inside their arguments is still read. pre-commit run with its file, hook and output options (--files $(git diff --name-only), --all-files, --show-diff-on-failure) is cleared the same way, so linting changed files no longer prompts; any option outside that list still asks.
Claude no longer asks the user a question that an existing repo convention already answers. Before producing a committed artifact of a type the repo already has (notebook, fixture, generated doc), it opens one or two existing examples and checks what they commit. When a pre-commit hook rejects the result and a convention explains the rejection (for example other notebooks are committed with empty outputs), it follows the convention, says so in the report and commits, instead of stopping to ask whether to strip, shrink or reconfigure. A question is kept for the case where following the convention would drop something the user explicitly asked for.
Git and GitHub approvals keep each decision tied to its own operation.
Each approved question keeps its own single-use token. Re-approving the same question in the same session replaces its token, and Hold cancels only that question's pending token. When eight tokens are pending in a scope, a new approval is refused without discarding any of them. SessionStart and /clear remove only that session's tokens and spent claims under the reservation, leaving a busy reservation and its records alone.
One-off pushes bind the approved branch, HEAD and configured remote, including the remote Git would select for a push without an explicit destination. A run approval covers the exact push form shown and verifies descent from the approved PR head without replacement objects or grafts. The push guard checks both scopes under one reservation and a replay of the same call reuses its claim, so it cannot spend both tokens. Dry runs preserve approvals. Force flags and leading + refspecs are blocked, including refspecs following --repo.
The gh-write rule folds replies, resolutions and comments into one aliased GraphQL mutation where possible. Requests that need separate commands use one question per command in batches of up to four, and each approval covers only that command and the files it showed.
File-backed gh approvals also bind option-shaped operands and resolve symlinked paths in the order the command opens them. Ambiguous Windows paths and a gh repo create --source checkout cannot be bound by a token.
The gh api graphql guard recognizes inline queries with comments, fragments and strings without mistaking those for operations or force inputs. Mutations and subscriptions are gated, and opaque query text or ref-update bodies and non-false force inputs on writes are blocked even with approval.
A push approved with Approve is no longer refused with "the session transcript holds no Approve answer" when Claude Code has already replayed the answered call into the transcript. The approval proof reads the call only from the assistant line and the answer only from the user line, so the newer api-request-blob copy of the tool_result (no answers, no timestamp) cannot shadow the real answer; this also restores the wireToolInputs pre-fill check.
The self-grant guard checks output redirections even on read commands and protects named approval records, token slots, spent claims, reservations, writer temp files and transcripts. It recognizes brace and glob destinations and writes into .git while permitting copies out of it. Literal case patterns can mention protected names without blocking a path test. If record inspection cannot load, guarded tools stop until the plugin is repaired.
The commit rule's Codex-activity check documents the admitted sqlite3 -safe -readonly form with a literal database path. Inlining git log through shell substitution or using a variable database path still asks for approval when the guard sees Git text.
The pull request body footer note now reads Built with AI help from AI Rig. The format and the AI_RIG_FOOTER opt-out are unchanged.
The untrusted-code guard checks the dependency sources that can change what the PR installs.
The untrusted-code guard's approval subcommand is now record, with bind kept as an alias that writes the same approval file, because a worktree-isolated session refused every command carrying the bare word bind.
The guard's dependency check no longer lets a plain version spec in a later manifest hide a direct URL, VCS or path reference to the same package: the reference is reported unless the base branch declares it too, and the same holds inside one manifest: a later plain spec of a name no longer hides an earlier direct reference, and a second distinct direct reference for a name is compared on its own. Dependency approval checks also read hash-pinned requirements and detect index routing across pip option spellings: uv settings outside a short non-routing list, any [tool.<name>] table outside a short list of known non-installer tools, a root pdm.toml, pixi.toml or poetry.toml, uv.toml, pip.conf and pip.ini (underscore or hyphen option names) and Pipfile sources or package entries with a file, git, path or index all count, a name bound by [tool.uv.sources] stays name-scoped, and a manifest the guard cannot parse is reported as unparsed.
The guard reads logical requirements lines, including per-requirement options and pip's attached and unambiguous abbreviated forms. Changed includes and routing values are reported even when the option name stays the same, and ambiguous options, changed lockfiles and setup.py receive explicit coverage findings. Explicit uv indexes leave unbound names eligible for the default index, and lookalike package comparisons stay within each ecosystem.
/foundry:profile separates cost causes and measures before and after.
Each run writes report.md under a fresh .reports/profile/<UTC-timestamp>-<suffix>/ directory, so simultaneous runs keep their own evidence. Flag parsing preserves quoted and dash-leading values and offers to abort or ignore unsupported flags.
Cost output reports cache rebuilds by cause (compaction, model switch, idle past the cache lifetime or other) with each cause's cache-write dollars and share of main-loop spend. Undated usage remains visible in totals and makes those totals ineligible as paired evidence. The subagent table calls later writes later writes.
The clock report clips intervals at both window edges, counts overlapping activity once per session and shows gaps without recorded activity as unattributed. Subagent-visibility and background-join deductions apply only to windows with agent spawns.
--pair-label LABEL --pair-side before|after records each side in .notes/profile/pairs.jsonl and reports wall time, observed compute time, tokens and dollars independently, including why a metric is unmeasured. Each analyzer checks equal session counts and ordered, disjoint observations. Window pairs need distinct reports with equal-length intervals, and session pairs need distinct, fully observed sessions.
profile_pair.py check-claims checks only the named section, refuses a missing heading, and requires an inline (unmeasured) or a (measured: <label>) backed by a comparable pair that shows a decrease in each quantity claimed. Paired totals cannot substantiate claims about percentiles.
Confidence and candidate validation follow named gaps:
Scores come from named gaps only: a constant never stands in for a reviewer or check without its own score, a null, failed or blocked contribution is excluded from every minimum, median or aggregate and named once, a required control is enforced instead of recorded as a token (-0.01) deduction, and a closure note is dropped instead of listed at (-0.00). The always-loaded stub restates the rule in one sentence.
An UNVERIFIED candidate records its missing capability as hardware, package, approval or external, and a package candidate stays unverified only with the failed provisioning step named. A role the lineup promoted but could not slot counts as a missing reviewer, and a confirmed critical or high finding is a required source change, so a review never approves beside it.
A multi-wave Codex pre-pass carries a score only after reconciling every expected group's score and deductions across the waves. Missing groups and skipped paths remain named coverage gaps, and the lowest-scoring group's deductions determine the aggregate.
Gap ledger for review, resolve and remediate runs, shared by Claude and Codex:
gap_ledger.py validates and appends a run's gaps.jsonl (schema version 1: stable gap id, class, owner, what closes it, evidence, the reviewed subject, and the run's harness, plugin version and review route) and carries an identical-head rerun's open gaps forward as carried_from events instead of re-deriving them. The carry-forward step rechecks known limits against the current repository registry. The contract lives in skills/_shared/gap-ledger.md.
A canonical id table covers every gap either harness emits, with a gap_ledger.py lookup <id> query, so one gap seen by both harnesses has one id. A bounded independent implementation challenge that was denied, unavailable or declined is recorded as implementation-challenge-not-run.
Hardware gaps use a device-specific inventory assertion to interpret zero and subset counts. A single GPU can establish a multi-GPU limit. Software reports about visibility, drivers or package builds keep their own deductions, while an independently stated physical absence can still be recorded as hardware.
A waiver requires a direct statement of physical absence and an eligible summary, checked against the recorded repository, gap ID, OS and architecture. The first observation keeps its deduction. Later eligible observations can use a matching registry entry. Appending and carrying validate the observation against the run's registry snapshot, and a prior waiver whose match disappears must be recorded fresh. Only gaps still open in the prior run are carried. Abandoned registration locks can be recovered.
gap_rollup.py counts by repository, pull request (or head) and gap ID, groups results by harness, plugin version and route, and includes unfinished runs by kind and checkpoint. Checkout roots include managed Git report directories, and registry discovery uses the requested roots. Invalid ledgers are named and excluded from counts, malformed lines get their own line-numbered diagnostics, and unverified known-limit claims count as gaps.
foundry:challenger --codex-full runs Opus and Codex each over the whole assigned scope and merges the two:
Codex reviews the scope as a partitioned review across every wave. A failed group gets one narrower retry, an older bridge without partitioned review falls back to sequential split calls disclosed in the report, and skipped files are reviewed by Opus and disclosed as a Codex coverage gap. Opus reads every scope file whole and names any it did not as an Opus coverage gap. Neither engine reads the other's findings before its own are final.
Findings merge by violated invariant, not by line; a Codex-only finding must be reproduced against the source before it counts, an Opus-only finding stays, and each finding carries Source: opus, codex or both with the counts in the report and the envelope (engines).
The adversarial loop uses the dual-engine route in every round, subject to the Codex quota stop, and fixes findings in previously existing code within scope. Filter fixes must account for every deciding reader and grammar class, show closure at the consumer and a sibling route where one exists, and obtain acceptance for newly refused ordinary inputs.
A finding still open, or returned under the same invariant, after three fix rounds now asks the user whether to redesign that section, with the shared cause the fixes missed and one alternative design with its cost, instead of offering a fourth instance fix as the only option.
Blueprint digests preserve whitespace and blank lines inside quoted data, so changing that data requires permission even if the command looks identical after ordinary whitespace cleanup. The generator admits only modeled interpreter and wrapper forms, including supported literal read-only curl options and scoped helpers, and sends unmodeled forms through normal permission checks. Every recognized mutating helper in a block must have its own registered bound.
Shared-file propagation checks all POSIX execute bits so owner, group or other permission drift is detected. Applying propagation refuses a missing canonical file before copying anything.
Shared rules require a valid final page before accepting paginated API results, so a failed or invalid page cannot leave partial results looking complete. The Python rule forbids untrusted pickle deserialization and requires weights_only=True for external PyTorch checkpoints. Cleanup targets aged loop runs by their result.jsonl, aged review runs at their documented directory depths, and old plan, cache and temp files without recursively removing those containers.
Agent wake-ups on Windows find deliverables listed with Git Bash /c/... paths, so a finished agent no longer stays pending.
The shared cross-validation protocol now weighs a review verdict against the PR's own purpose and size: a required resolution that reverses the PR's central change or rewrites most of its diff is a direction conflict, never Minor changes.
/foundry:profile cost figures now count only calls inside the --since window: a session that began before the window contributes its in-window spend instead of its whole cost, so the window total, session ranking and per-command rollup no longer overstate recent spend (a measured 24h window read $534 before and $422 after). --session-id still reports the whole session and now says so with its start and end time. The section also gains a dollars-by-token-class table (input, output, cache read, 5-minute and 1-hour cache write, main loop against subagents) and a table of subagent 5-minute cache writes by agent type, split into each agent's first-call prefix and later rewrites.
The pre-run scan of contributed code now says when a flagged line is unchanged from the base branch: in a file the pull request edits, the reason for a hit on a line it kept carries "on a line unchanged from the base branch", so a maintainer can tell an existing setting from a new one. The verdict is unchanged, because an edit elsewhere in the file can still change what a kept line does. --env now also refuses every variable name the scan reports as a secret read.
The commit, push and GitHub write questions now offer Hold where they offered Deny, and describe it alike: skip this commit, push or write and leave the changes, the branch or GitHub as they are:
The approval hook treats Hold as it treated Deny: it records nothing and removes a pending push or gh-write token.
The hook now requires the option set Approve / Hold. After the update, run /foundry:setup and start a new session: rule text loaded from an older release still offers Deny, and the hook now reports any answer to such a question as not recorded, still removing a pending push or gh write token, instead of staying silent.
The commit, push and GitHub write questions now list their facts first and end with the question itself as the last line, so the decision is the last thing read. Question text for other prompts follows the same order.
The pull request body footer, Drafted with AI help from AI Rig, is now an italic note with the AI Rig link in bold, placed under a --- line so it reads as a footer. A body that already ends with another footer set off by a horizontal rule gets the note under that footer with no second rule, and a body that is not Markdown keeps the plain line.
The shared Codex pre-pass can send an oversized diff as a partitioned review through the bridge's --partition-file, wave by wave, instead of one call that stops at the output limit. Skipped files and failed groups are reported as unreviewed scope, and a bridge without the flag keeps the single call.
The adversarial convergence loop can now stop early: adversarial_loop.py --early-stop --actions <loop-actions.json> exits 0 and reports eligible when the latest independent review of the current snapshot of a current-schema ledger has no open or pending security, critical, high or medium finding while a low or nit finding remains. The parent may then stop dispatching reviewers with outcome converged-no-medium (never clean) instead of running more rounds for low and nit findings. Filter or gate reviews and callers or users requiring a clean result are excluded, and the summary reason, exit status and --require-clean are unchanged.
The Confidence Block rule now states that **Gaps** is a bare header line, never a list item, and each gap opens with its (-0.NN) deduction, wherever a score's gaps are listed, chat summaries included; the one-line Confidence: field of a report header stays exempt. The always-loaded rule stub carries the same one-line shape. Before, a chat summary could show - Gaps: with deductions at the end of each line.
/foundry:calibrate:
/foundry:calibrate standard-pipeline Claude scorers now score up to 3 problems per scorer agent instead of one agent per problem, so a pipeline pays a scorer's startup context once per chunk (a fast run with 4 problems spawns 2 scorers instead of 4). Each problem is still scored only from its own ground truth and response files and writes its own score-<problem>-claude.json; a problem missing or invalid after its multi-problem chunk finishes is re-scored once alone. The Phase 3c merge also ignores a Codex score file that fails the same check and keeps the Claude score alone. SCORER_BATCH in the Phase 3a template is 3 and a maintainer sets 1 to restore one scorer per problem. A check on 13 saved cases found batches of 3 and of 5 within single-vs-single scoring noise (only 5 cases carried signal), so 3 is a conservative cap and nothing above 5 was tested. result.jsonl and the ledger record scorer_batch. Weak-probe scorers, Codex scoring, routing selectors and rules-mode scorers stay one per problem.
/foundry:calibrate Phase 1c now downgrades a high or extreme problem that the weak solver fully solves (difficulty medium, probe: downgraded) instead of regenerating it once and probing again. A regenerated problem could take another problem's id, fall back on the first probe's result, or lose its probe annotations when the validator rerun rebuilt problems.json, which undercounted probe_downgraded, left too-easy problems at high and inflated recall_high. Phase 1c now reruns no validator and writes no new problem file. A run may keep fewer hard problems than before, since a solved problem is relabelled rather than rewritten harder, and the SKILL.md comparability note now marks standard-pipeline rows without scorer_batch as older than this change and the strict precision gate. A missing or invalid weak score, or a re-probe that quotes a shipped file again, leaves the problem unprobed with the gap weak probe unscored: <problem_id>.
/foundry:calibrate Claude scorers now read the per-role precision gate the same way however the pipeline renders the line: the scorer prompt shows exactly per-role or none, without the "(empty = none)" note that made some scorers apply the gate loosely. On saved evolution cases the strict reading marks every item of a role false when the response names an extra candidate in that role, so scores for per-role domains such as /oss:analyse evolution can be lower than in earlier runs.
/foundry:profile --session-id now lists the 25 costliest subagents with their agent type, model, effort level, API calls, tool calls, cache-read and cost, folds the rest into one overflow row, and flags agents above 60 tool calls, chained continuations (spawn names ending -link<k>) and spawns named challenge-*. A phase table over all agents keeps challenge retries (challenge-<domain>-retry-<id> names) separate, so the share of a run spent on retries, chains and long agents is visible before any cost change is chosen. Flags follow the spawn name, never its free-text description, and a pipe or line break in a sidecar name or description no longer breaks the table. The per-agent tool-call count includes every tool block of a message that Claude Code writes as several rows.
Pull request bodies Claude drafts now end with 🐰 Drafted with AI help from [AI Rig](https://github.com/Borda/AI-Rig), the open-source agent setup I use. If it saved you time, a ⭐ helps others find it. instead of the host's default Generated with Claude Code line, and the public-github rule states that a host attribution reminder never overrides it. Before, a PR opened from a session that carried the host reminder shipped the Claude Code footer and needed a manual edit. Comments, issue bodies and review replies stay footer-free. Setting AI_RIG_FOOTER=off in the env block of Claude Code settings drops the footer; /foundry:setup merges a new Bash(printenv AI_RIG_FOOTER) allow entry so the check does not prompt.
commit-guard and gh-write-guard read options of an unlisted program by a positive model, ask for any cmd, powershell or pwsh argument that names git or gh (carets, backticks, %NAME% and chained switches such as cmd /s/cgit are read away first), judge an attached option value of an unlisted program (ssh -oProxyCommand=git …), and drop a table program's exemption only when the same command writes a file under its name and then runs it (ln -s sh cat; cat -c …), so git diff > diff; git status and touch date && git add date stay quiet. A short table of data programs (ls -r, cp -r, stat -c, jq -e and kin), sqlite3 run with -safe and rtk with its own flags stay quiet when a git call sits in an argument (sqlite3 -safe -readonly db "select $(git log -1 --format=%ct)", rtk ls -r "$(git rev-parse --show-toplevel)", cd "$(git rev-parse --show-toplevel)", for f in $(git ls-files)), where such commands asked about "a code option of an unmodeled executable" before. Any other option, Windows switch or run-time word on an unlisted program that names git or gh in its arguments still asks, now including +cmd, cmd /c, ssh -o ProxyCommand=…, flock -c, tar --to-command and sqlite3 without -safe; ordinary commands such as pytest -q $(git diff --name-only) or curl -s "…$(git …)" ask as well.
untrusted_code_guard.py no longer reports pip install words in a Python comment, a docstring or a string written straight into raise, print, warn or a logging call (raise ImportError("pip install x")) as a package-install finding, so a scan of such a PR is clean and skips the PR-code question; the same words in any other string, a call that runs the install, and every other finding still ask. Each cause in risk.reasons now reads as one plain sentence ("it calls a network download tool such as curl or wget").
The always-loaded claude-config rule gains a "Shipped Skill Blocks — Run As Written" section: an agent runs a skill's fenced Bash block as its own call exactly as shipped and no longer copies fence text into a script file, loops over it or retypes it, which missed the blueprint auto-allow and made commit-guard ask about a generated script; it may deviate only for a clear, major advantage and says what changed and why. The commit-message rule now fits a length limit by choosing and rephrasing the most impactful changes first, never ending a subject, bullet or approval summary with ... or (+N more).
Checks approved for an exact commit stop if files change, are deleted or new files appear before execution.
Checks approved for an exact commit also stop when a file's executable bit or symlink type changes, matching how Git judges it. The untrusted-code rule now states that resolve stays in the sandbox and only review runs the exact scanned commit without one.
Checks approved for an exact commit accept a checkout Git calls clean after line-ending or text conversion (core.autocrlf, eol, text), and sandboxed resolve runs no longer stop on CRLF copies of dependency files. Files routed through a clean or smudge filter (LFS style) are still judged on their raw bytes and refused.
Claude credits Codex without a question. Codex calls made by this conversation, including its subagents' calls, are judged by whether Codex shaped the commit. With no such call since the last commit, a Codex thread or bridge record from another session adds the credit. A timed-out call no longer prompts you about attribution.
/oss:resolve skips the fork PR code question when review and its own scan both found the same commit clean and the host has a sandbox; its tests then run in the sandbox. The report identifies the commit and how the tests ran.
The rtk rewrite hook now routes only git status (not with -b/--branch, a machine-read branch header rtk rewrites, and not when a quote, backslash, $ or { could hide that flag, as in git status "-sb"), the one verb whose rtk output kept every path in a measured comparison with the command the agent runs. ls (rtk cuts a listing by size and by build-directory names and prints no recall hash inside the sandbox, so the entries are lost there; several paths also lose their dir: headers), grep (the Bash tool's gitignore-aware shell function, which rtk grep does not match: it searched node_modules and rejected -P), git log, git diff, git show, wc, the measured gh list and view verbs, and the docker, kubectl, aws, cargo, next and tree verbs now run unchanged, so no output is cut or reshaped without a recovery hint.
The rtk allow mirrors shrink to Bash(rtk git status:*), and every dropped mirror, rtk ls and rtk recall included, joins permissions-allow-retired.json, so /foundry:setup removes them from existing settings instead of leaving the stale auto-allows in place.
commit-guard.js and gh-write-guard.js now read what rtk executes: the string it hands to a shell like sh -c (rtk run -c, rtk run|summary|err|test --shell <sh> for a known shell, a lone command, brace, quote or backslash word given to rtk run|summary|err|test), an rtk bypass|proxy string that is a plain word list (rtk splits it on space, tab and newline, and a tab or newline inside quotes asks; a string with a comment, operator, $, backslash or \v-style character is read differently by rtk and a shell, so it asks), the words after --, any rtk behind xargs, parallel or find -exec (asks, since its subcommand and string can come from input the guard cannot see; the word rtk as an argument of a proven grep or echo is data and does not, but an option the guard does not model before it, as in parallel -j4 grep -l rtk {} or xargs -S 1024 grep -l rtk, still asks), an rtk runner behind a wrapper the parser does not model (arch -arm64 rtk proxy …, found by word scan like sh and env), and shell source piped or here-stringed into a shell that rtk launches (printf … | rtk run sh). A push or gh write behind those spellings is blocked or sent to the usual approval, a read behind them passes without a new prompt, --shell naming a program that is not a shell and any rtk option the guard does not model fail closed, and a program rtk runs with a code option (rtk sh -c, rtk env sh -c, rtk bypass sh -c) keeps the approval prompt it had before.
Check 10 of /foundry:audit reads the prefixes from the hook's current tables, defaults to the plugin's own hook, and reports only a routed prefix rtk lacks; it no longer prints a missing-prefix line for each rtk subcommand the hook deliberately leaves out, or skips with "hook not found" when run from a project without a local hook copy.
/foundry:distill prints its report in the reply before every question about what to apply, port, extract or prune, in all modes, including every stop of the executables review loop (a stop before the first review round too): external no longer asks what to port after showing only a table. Each report carries a summary, recommendations, the findings table (or list), the challenger or review verdict (or why none ran yet) and the open decisions, is printed in the same response right before the question, and the saved .temp/.reports copy is extra, never a replacement. Every question now repeats the counts, the top recommendation and the report path, so the decision stays readable when a host hides text printed before a question. Scope pickers, per-item approvals shown after their diff and a follow-up inside an already printed gate are the only named exceptions, and they too go through the question tool (item numbers are typed into its free-text answer) instead of a plain-text prompt. Each menu offers only options that apply to the candidates found, with Skip always present; in external that means Group A rows marked Adopt or Tweak that the challenger did not discard or flag as needing more information, the same set the apply step writes. Each mode keeps one list of open items that both its question report and its nothing-to-propose report show, so projects or scan units that timed out, unclassified memory files, contradictions and unresolved targets are no longer dropped from either. A run that finds nothing to propose prints the same report with empty parts stated and asks nothing: executables with no candidate, memory with no lesson or only already-covered or too-narrow clusters (flagged contradictions stay listed as open decisions), prune with nothing to drop or trim, and external with no candidate to port and no install recommendation.
/foundry:distill default mode still asks nothing: its report lists Summary, Recommendations, Findings table, Review verdict (none — default mode runs no reviewer) and Open decisions in the same order as the other modes, with any empty part stated as none — <reason>, and next steps such as /foundry:manage create are printed as commands to run; the shared Output Routing example no longer lists a distill follow-up question.
/foundry:distill executables --eager no longer offers five options in one question, which exceeds the four-option limit of the question tool: it asks bin/ extraction, Prose only or Skip, and only after bin/ extraction asks for the verdict threshold, which also offers Skip. Without --eager the question keeps its four options (HIGH only, HIGH + MEDIUM, Prose only, Skip).
The foundry:sw-engineer, foundry:qa-specialist and foundry:perf-optimizer agents now write test, source and benchmark files with Write/Edit instead of long Bash heredocs, so their runs no longer stop on the commit-guard "cannot read this command exactly" prompt that a large Bash command naming git triggers.
/foundry:distill memory also mines the current project's last 30 days of session transcripts for tool failures that never became a written lesson: new mine_transcript_failures.py groups errored tool results by tool and masked first error line and counts sessions and retry runs (consecutive same-signature failures), skipping user rejections. Signatures with a retry run or three sessions become proposal candidates; the report is wrapped as untrusted data, proposals cite the signature rather than the sample, and nothing is written without the existing confirmation step.
Review header table and rating scale:
The report-header delivery check accepts a shorter terminal table for review reports: a header with Gate and Outcome may leave out Link, Date, Commit SHA, Agents, Review contract, Rating scale, Readiness and Gate and may show PR as [#N](url); other reports still need every field.
The shared cross-validation protocol names level 3 of the review scale MAJOR_REVISION instead of NEEDS_WORK, so Claude review reports use one scale spelling across /oss:review and /develop:review.
commit-guard no longer asks for confirmation on a read-only Bash call that names git beside an array assignment such as A+=("$f"): the elements of name=(…) and name+=(…) are now read as data words instead of an undecodable command word. A $(…) or backtick inside an element is still inspected for a push, a ;, & or | inside the list stays unreadable, and a command word that expands at run time still asks. A search such as grep -rn "gh pr checkout" dir (also egrep and fgrep) no longer asks either: its flag cluster and pattern are data, while a code option (-e, -c) of any other unmodeled program, including rg, ag and ack, naming gh still asks.
foundry:challenger now sends Codex one bounded review (at most 5 named files or symbols, one question, --effort medium --timeout-seconds 230, at most 3 short commands, at most 5 one-line findings) instead of a whole-diff review of every dimension: wide calls hit the 230 s synchronous cutoff and returned no findings in 38 of 60 logged bridge calls. A timeout, output-limit or classifier blocked result is reported as a gap with its attempted scope, and the same or a wider scope is never re-sent. When the brief ranks two or three independent risk areas, the challenger sends them as one /bridge:review --split-file call, which runs the scopes in parallel inside the same wall time.
untrusted-content.md also states that a run with no PR runs its tests directly only on a branch that tracks nothing but origin.
claude-config.md now tells agents to write the program in a Bash call that names git or gh as literal text, or to split the call in two, instead of using a variable or $(…) as the command word; a captured command word made commit-guard fail closed and ask the user to confirm an otherwise harmless read-only call.
untrusted-content.md now states that a PR from a branch in the maintained repository (not a fork) is outside the oss PR-code gates, and that a run without a sandbox may always be offered as the user's recorded choice, matching /oss:resolve and /oss:review.
untrusted_code_guard.py on Linux no longer mounts the real checkout into the bubblewrap sandbox: a contributor's command could read the repository's .env, and the .git it saw was a writable scratch directory instead of absent. The checkout stays unmounted (only interpreter and tool directories inside it are bound), so both paths now fail to open, as on macOS.
The guard starts a bare program name such as bash from the allowlisted PATH on Windows instead of the system directory first, so a gate that runs bash -- script.sh no longer starts the WSL launcher, which exits 1 without a distribution.
New untrusted_code_guard.py helper scans contributor code before it runs and runs it contained: it lists the files a test command loads on its own, flags credential reads, exfiltration endpoints, dynamic execution, persistence, destructive commands, agent-instruction edits, hidden Unicode and unreadable files, reports dependency provenance, and runs an approved command in a disposable copy under a sandbox with an environment allowlist. The shared untrusted-content rule now says running contributed code is execution, not reading, and foundry:qa-specialist runs contributor tests only through the guard command its caller supplies. The helper ships byte-identical to oss, whose review, resolve and analyse gates use it, and to Codex Rig; scan --host-sandbox reports containment as the host's own sandbox instead of probing for a run tier.
Codex out-of-credit stop: /foundry:audit stops calling Codex for the rest of the audit run, and /foundry:calibrate for the rest of the calibration run, once a failed bridge call's incident file records fault quota-exhausted.
Audit records codex-blocked:quota in the run directory; every later probe reports Codex unavailable, so low-confidence, adversarial and cross-file Codex passes are skipped, the fix fast path uses its per-file agent, and gate challengers run with --no-codex.
Calibrate rewrites the pipeline's persisted bridge status and records a run-level stop that every later pipeline of the run reads; a quota fault is never retried, and the remaining problems are generated and scored by Claude alone.
A calibrate pipeline already waiting on a Codex call when the stop lands pays at most one more call; Codex problems generated before a scoring-time stop keep the run's dual-source label.
The shared quality stack carries the same stop for develop runs.
Rate limits, capacity errors, older bridges and verdict text alone keep today's behaviour.
foundry:challenger reports its own Codex quota stop: when its Codex cross-check fails with incident fault quota-exhausted, it does not retry, adds "codex_blocked": "quota" to any envelope its caller demands and opens its Codex Cross-Check section with a fixed ⚠ codex-blocked:quota line; a successful cross-check opens that section with a fixed Codex cross-check completed. line ahead of Codex's own output. Readers take the envelope key alone when an envelope came back, and otherwise only the first line under the first Cross-Check heading outside a code block, so Codex output or a quoted example can no longer fake the stop. /foundry:audit fix gates and residual scans, /foundry:calibrate challenger runs and the shared quality stack record that signal as the run's quota stop, so later challengers and bridge calls stop spending doomed Codex calls. Review → fix loops pass --no-codex to every later challenger after that signal, never switch to a bridge:review route, and report a further security-filter review blocked with the quota cause instead of dispatching it.
A push can now be approved and run for a worktree the session is not in, written git -C <absolute worktree path> push <remote> <branch>. The git-push question (or the git-push-run push span) must show that command, so a worktree push never runs on an approval that did not name that worktree; the token holds that worktree's branch and HEAD, and the guard checks that worktree's branch, HEAD and remotes instead of the session cwd's, so a worktree outside the working directories no longer needs the user to run the push by hand. Only one literal absolute -C directory inside a checkout of the project on the one push is covered; cd, env -C, sudo -D, chroot, nsenter, a second -C, --git-dir, --work-tree, --namespace, --exec-path, a relative, quoted, spaced, backslashed or variable directory and a current-branch substitution stay blocked, and inline -c config after -C is scanned like any other. A branch mismatch under -C names the worktree it was read in, a detached worktree is told to check out a branch instead of being asked, a branch checked out in a sibling worktree is told to add -C, and an approval is never recorded for a worktree push the guard would refuse.
Push approval hardening found while adding the worktree form: env -C/--chdir, sudo -D/--chdir, chroot and nsenter before a plain git push moved it into another repository under that checkout's token and are now never covered; a git -C shown outside one inline code span records nothing instead of silently binding the session checkout; a plain push never runs on a question that named another worktree; the recorded approval message names the concrete worktree; and a plain approval stays bound by branch and HEAD, not checkout path (documented as a limit in commit-guard.js).
The status line now follows real Codex bridge runs in their own 🧠 codex:<advise|review|implement> segment, shown only while one is active, with a (bg) suffix for background or detached runs and a ×N count for concurrent runs of one verb. Before, a run showed in 🤖 for an instant (while Skill(bridge:*) returned its instructions, before Codex started) and then as a generic Bash count that vanished after 30 s for background runs.
A Codex run is recognised from the Bash call to bridge_call.py advise|review|implement, read from the command's own words with the interpreter as the command word. Text that only mentions the script (a commit message, a heredoc body, a comment, echo, grep, flag-shaped --task text) no longer creates or mislabels a run, while a real call inside $(...), a subshell, an if/while condition or bash -c, behind env, uv run --with, timeout -s, a redirect or python -u, is still found. status, result and cancel calls and the Skill call open no run, and a run no longer counts in the Bash tool counter.
A run ends when it really ends. A foreground run ends with its call and a failed launch drops the entry; an entry left by a denied or interrupted call (foreground, background or detached) is cleared when the turn or its subagent stops. A background Bash run follows the host's task output file, so it keeps showing until the process exits or the task is stopped (including a launch that died on an argument error) and no other run's report can end it. A detached run follows its job record, also when the call starts with a literal cd or uses the session directory as its workspace, and gets a minute and a half of start slack past its age cap. A run whose output file cannot be read falls back to its own final report (one report ends one run; two launches too close together to tell apart are left to the next step), then to an age cap derived from --timeout-seconds.
A foreground Codex call that the host moves to the background mid-run stays visible, and a planted symlink to a pipe or device where a report, job record or output file is expected can no longer block the status line.
Test-polluter isolation accepts native Windows path separators while preserving unsafe node-ID rejection and project-root containment checks.
Push approval no longer fails when slow Git discovery consumes the shell-text inspection budget; each later inspection retains its own bounded deadline. gh api --allow-escape-sequences is accepted by the write guard and stays off the auto-allow list, preserving normal permission handling for terminal escape output.
Blueprint generation reports excessively nested shell blocks as unreadable before parsing, avoiding native stack exhaustion on Windows.
get_plugin_install_path.py writes UTF-8 with LF newlines to stdout and stderr and resolve_shared_path.py does the same for stderr, so Windows callers get the plugin path without carriage returns and without locale-encoded messages.
A git-push-run question, asked once at the start of an /oss:resolve run, records a 12-hour single-use push-run token for one push of the named branch to the named remote while HEAD descends from the PR head the question named, so a run pushes without a second question. The exact-HEAD git-push token is still tried first, every other push still asks, force push stays forbidden, and a session start or /clear deletes the token.
Review progress tables always come from the ledger and reconcile carried-over, repeated and new findings; reviews run without a ledger are disclosed in prose rather than tabulated.
/foundry:distill needs fewer permission prompts: its installed-plugin inventory block now keeps blueprint admission when it prints a literal PLUGIN_ROOT: label alongside resolver-trusted helper paths.
Review-and-fix rounds on a filter or gate (parser, deny-list, permission gate) now keep the coverage table and invariant signatures even outside an explicit loop, run the loop helper from the second round, reject resolver briefs that list inputs or prescribe a refuse-list, and stop patching after two consecutive whack-a-mole rounds or a fix-introduced regression until the user decides on a fail-closed redesign; before, such rounds could repeat untracked with no stop. Regression tests added by such a round are named by the scope or behaviour they pin and merged into the owning test file, never by round or finding number.
Delegating fixes to bridge:implement now counts every round on the same component as one issue, even when each round's findings differ, so continuing past the second delegated round needs one recorded user decision naming the component.
Skill, mode and template shell blocks no longer run plugins/<plugin>/bin/... relative to the current directory, which executed a working-tree script or whatever a hostile repository held at that path. Each block first resolves PLUGIN_ROOT through one shared resolver (install record, then plugin cache, then this repository's own checkout), the mode and shared-document loaders render the host bootstrap token to the validated owning root, and check_agent_plugin_root.py now fails on any remaining defaulted CLAUDE_PLUGIN_ROOT:- form. The blueprint manifest moves to schema 2 and binds each rendered template to its source text, so auto-allowed blocks keep matching exactly.
/foundry:setup filters only foundry-owned hooks (filter-foundry-hooks) and replaces the statusline only when foundry owns it (statusline-owned) instead of deleting all hooks; the old delete-hooks command is gone.
Long rule detail moved out of always-loaded text: rules/_full/ carries the worked detail of claude-config, communication, python-code, python-testing and quality-gates, and the qa-specialist and solution-architect agents load their detail from references/<agent>/ with cat. The stubs keep every binding obligation and say to stop when the full text cannot be read.
resolve_shared_path.py resolves plugin roots more strictly:
The source-tree fallback now also requires the executing resolver's own plugin collection to be the working checkout's, so a copied plugin tree cannot pass as the source repository.
A plugin root named by the environment is now trusted only when it resolves inside the marketplace cache, so a path set outside the cache is ignored and the usual lookup continues.
Write and approval-record guards:
The approval-record guard no longer blocks a Bash command whose text holds an out-of-order bracket range such as the Python slice t[i-1:] in a heredoc. Such a range selects no file in a shell, so it is ignored when judging whether a glob can reach the approval writer or a record; a class that still holds a valid member, and every other pattern that cannot be compiled, keep blocking.
Write guard now covers MultiEdit and resolves symlinks and not-yet-existing paths before classifying a target. The approval-record guard blocks the write when its own inspection fails instead of letting it through, and approval-grant parsing no longer treats a numeric file descriptor before > as part of the target.
The /oss:analyse calibrate domain entry reads its frozen real problems from benchmarks/calibrate/oss-analyse/real-problems, renamed from real to match the sibling real-fetch and real-consolidation folders. A calibrate run pointed at the old real path finds no real fixtures.
Session-end cleanup preserves tracked artifacts when Git cannot read repository metadata, including a damaged index, configuration, HEAD or objects directory. Cleanup without an index requires an explicit nonrepository diagnostic and no Git marker in the project or its ancestors.
Lint-on-save, agent router and markdown compression hooks:
Lint-on-save now runs pre-commit only when you set the absolute path in FOUNDRY_LINT_CONFIG before launching Claude; a repository's own .pre-commit-config.yaml is no longer treated as consent. Without the variable the hook does nothing, it checks that the file is inside the project, and its lock files now live in a private per-user temporary directory with exclusive creation instead of shared /tmp names.
Agent router external routing is now opt-in: embeddings and Anthropic key use happen only when AGENT_ROUTER_ALLOW_EXTERNAL=1 is set, so OPENAI_API_KEY and ANTHROPIC_API_KEY alone no longer trigger network calls. The routing index and model cache moved to a private per-user temporary directory, and the router refuses symlinked, foreign-owned or group-writable cache state.
The markdown compression hook moved from PreToolUse to PostToolUse on Edit. It no longer rewrites the tool input or grants permission, it refuses symlinked documents and paths outside the project, it keeps file permissions, and it leaves a file untouched when the file changed while being rewritten.
Bin helpers reject unsafe or oversized input:
state.py now restores only allowlisted keys, currently RUN_DIR and SCOPE; set rejects any other name and load skips it, so stored state can no longer export shell or loader variables. State files live at mode 0600 in a private per-user 0700 temporary directory, unsafe storage exits 2 with a message, and the session token is sanitized before it is used in a file name.
verify_blueprint_audit.py now defaults --max-lines to 100,000 instead of 5,000,000, so larger audit logs need an explicit higher limit. It also rejects non-positive limits, --older-than outside 1 to 365000 days and session ids that cannot be UTF-8 encoded, tolerates malformed records, and prints paths and ids escaped.
write_skill_contract.py accepts --keep-file only for the current session's keep-items file under its per-skill state directory, refuses session tokens that are not a bare file-name stem, reads at most one 8192-byte line of keep items without following links, and refuses a .temp/state that resolves outside the project's .temp or .reports.
remove_hook_from_registry.py works only on a project settings.json, settings.local.json or hooks.json, rejects patterns over 4096 characters, leaves a missing hooks key absent and writes atomically while keeping file mode. settings_json.py validates the advisor model against supported aliases and model ids. The foundry link cleanup removes only symlinks it can prove belong to this installation, and the bin/python launcher skips empty and relative PATH entries.
append_ledger.py now caps staged and source reads at 64 MiB with a coded error and refuses linked ledger or source paths. Without options it writes only inside the project's artifact directories (.temp, .reports, .experiments, .developments, .notes); --run-root, --history-root and --source-root replace or extend that authorization for one call, so existing callers keep working.
Shared-directory resolution ranks installed versions by validated SemVer and ignores directories that are not versions; resolve_agent_file.py applies agents in the manifest layout; merge_settings_permissions.py detects a no-op under a lock and keeps bounded backups.
Report-header checks no longer echo report values in their remedies (they name the field position instead), read table blocks line by line, and ignore state files that are not regular, single-link files owned by you. The teammate-idle check refuses a missing or path-shaped team name and reads tasks from ~/.claude/tasks/<team>, and the subscription status file is written with umask 077.
foundry:creator now has an explicit review mode that checks an existing draft against an approved outline without writing anything, and every stop returns a blocked envelope with the specific reason when the caller demands one. foundry:curator flags permissionMode, hooks and mcpServers in plugin agents as ignored, honors a caller's no-write contract, stops on an ambiguous plugin name, and keeps its URL cache under .cache/curator/ keyed by a SHA-256 of the full URL. foundry:challenger requires explicit TARGET_MODULE and TARGET_FN values before its codemap pre-flight.
The shared quality stack now passes changed files and doctest modules as quoted arguments read from session-scoped files and stops with ! BLOCKED when a target is missing or unresolved. The wide test run and both retries run as separate calls with exit sentinels, a flaky verdict needs a recorded true, and the mypy exit status is captured before output is truncated. The shared handoff protocol documents the develop:review exceptions.
/foundry:distill reads and applies changes more safely:
Reads the dispatch token before any inventory, runs its git history reads only inside a repository, and no longer loses stripped arguments across Bash calls. external mode scans directories recursively, snapshots every approved target before applying and diffs against that snapshot, and routes by option label with a new Review first choice. executables mode gained a prose-only compression branch, never stages or commits during extraction, and proposes a version bump only for a verified plugin layout.
The memory and prune modes now read every memory file by its frontmatter type and full body, not only MEMORY.md or feedback_*.md, and prune counts and removes memory files together with their index links. Prune needs explicit approval before changing any memory file in every installation, and snapshots the files first.
/foundry:profile rejects unsupported flags, stops when no sessions fall in the window, records partial status when the cost analyzer fails, and never overwrites an existing output dump. /foundry:session sweeps only consumed handover documents older than 30 days and keeps unconsumed ones, treats recent commits as candidates that need conversation evidence, and validates the slug before logging a drop. The skill scaffold now lists TaskList in default tools and requires TRIGGER/SKIP in the description.
Centrality resolution no longer crashes on an overflowing numeric score or on deeply nested JSON: both are treated as unreadable input and skipped instead of aborting the lookup.
Raw user text passed to the flag parsers in brainstorm, calibrate, distill, investigate, manage and profile now follows a literal --, so quoted or flag-looking text cannot enable flags. Setup approval parsing is token-aware and case-insensitive, and a symlinked or out-of-tree state directory is refused before a contract file is removed.
Hook and bin helpers handle hostile input more safely: sentinel readers verify ownership and refuse links, temporary state is private, repository contract injection is fenced, malformed routing registries and deeply nested input are reported instead of crashing, and hostile-input scans are bounded.
Skill-contract checks tell Bash-tool timeout hints apart from standalone enforcement and no longer suggest the timeout binary. The blueprint manifest generator registers resolve_commit_hooks.py, retro_scan.py and run_config_command.py with their execution boundaries.
Skills and agents read more consistently: remaining web-guide loads use an explicit Bash cat, rule citations point at the installed rule path, config and Markdown redirects name the right owner, dispatch and decline handling agree across the doc, perf and web agents, the develop review report path is .reports/develop-review/, and the README and four architecture diagrams match the skills.
/foundry:manage no longer writes agent, skill and rule roster lines into the auto-memory MEMORY.md, so those lines stop polluting every session; its roster step now only refreshes the inventory from disk for the report. /foundry:audit drops the MEMORY.md inventory-drift check and its severity class (inventory discovery stays, without a severity), the audit fix agents no longer repair roster drift, and the post-change checklist in foundry-config.md and the comm permission example no longer mention a roster.
The quality stack's failed-test id extraction stops its id prefix at [, so retries rerun a parametrized failure such as test_case[with spaces] by its full id instead of a cut-off one.
Can now measure a skill whose verdict depends on a live lookup: a domain may name fetch_store:, a directory of frozen lookup results per real problem, and the solver reads the entries the skill would have fetched instead of leaving the step unrun. For /oss:analyse thread mode this replaces every snippet-only duplicate verdict with a verified one. Problem set 2.1; rows stamped 2.0 are not comparable.
The problem validator rejects a ground-truth decisive written as a sentence (more than 4 words, or 3 or more words ending in ., ! or ?). A quoted maintainer claim used as the answer key was scored on topic overlap; generators are told to name the version or number the claim hinges on.
A calibration pipeline no longer depends on its subagents' acknowledgment lines, which never arrive when a subagent finishes while the pipeline is between turns: each phase now advances on the deliverables in the run dir, and the orchestrator ignores a nested result that reaches it instead of relaying it by hand.
New mandatory approval stop: --apply now always shows the concrete Current and Proposed edits and asks for approval before any agent or skill file changes, including after --fast or --full. Proposals and fixtures are treated as untrusted data, conflicting replacements are dropped with a warning, one curator applies the approved edits per destination, and --apply alone picks the newest saved proposal per target. Results use a stable slug per target (foundry-sw-engineer, oss-analyse-vitality), and older colon-style run directories remain readable.
Bash permission hooks:
A Bash command naming git or gh that the commit and GitHub-write guards cannot read exactly (lexer failure, oversized or too deeply nested text, a run-time-built command word, or a 1 second inspection limit) now falls to an ordinary permission prompt instead of a hard block or a silent pass. A readable force push stays blocked on any branch, a push or gh-write approval token never stands in for this permission, and an unrelated unreadable command that names neither tool gets no verdict. A commit refused for size now suggests -F <file>.
Free GitHub reads no longer auto-allow browser or watch options (--web, --watch, -w), which open a browser or block on a running process.
rtk rewriting only compresses output now and never grants permission: the hook emits the rewritten command without an allow decision, so normal permission and deny rules decide. Eligible commands shrink to ls, tree, grep, wc and read-only git and gh inspection; --output, tree -o and git grep -O are never rewritten. The shipped allow list gains matching rtk mirrors for the read-only git and gh commands already allowed, so those keep running without a prompt.
The sentinel-read and blueprint allow hooks are stricter about what they auto-approve: input redirection may read only sentinel-path shapes or /dev/null, exported names are limited to those shipped blueprints use, and a blueprint with raw carriage returns or non-shell trailing whitespace is refused, matching the manifest builder.
Hooks no longer follow planted links: SessionEnd artifact cleanup, session state, breadcrumbs and diagnostics refuse linked or foreign-owned state directories, expire only completed or ordinary untracked artifacts inside the project, and keep a bounded diagnostics log. The compaction hook carries a session-owned skill contract into the summary only inside an untrusted boundary, and the status line strips terminal control characters from plan and agent labels.
/foundry:brainstorm keeps one run directory for a whole session, writes the tree summary to a file before each question and prints it once, and serves the live tree viewer from an isolated directory bound to 127.0.0.1 instead of the project root.
/foundry:manage gains --local for content edits of plugin-source agents, skills and rules (other operations reject it), asks before treating a second argument as a rename, rejects hook renames, validates permission rules before add or remove, and deregisters a project hook from settings before deleting its file. Audits after an operation cover every changed file, and an unresolved critical finding ends the run before the challenger gate.
/foundry:setup keeps a user-modified CLAUDE.md unless replacement is explicitly chosen and backs it up before replacing; --approve keeps it and reports. Settings are backed up with a timestamp before edits, hook stripping runs as a dry run before its gate and only removes commands that execute shipped foundry hooks, and the Python 3.10 requirement is checked first with a clear message.
/foundry:audit gets stricter workflows: bare plugin scopes resolve to their source directory, the fix and upgrade modes show exact changes before applying, and the inventory consolidation, preflight, hook-coverage, tag-symmetry and skill-contract checks reject oversized, linked or malformed input instead of misreporting it. Checks also add RTK alignment and bin test coverage findings.
/foundry:create asks for approval of the arc and voice in one question, installs npm packages for short video only after an explicit choice, and stops with a clear prerequisite message when npm or npx is missing. /foundry:humanizer refuses machine-parsed files, report files and config, and edits only the prose body of decks and posts. /foundry:investigate never prints environment variable values or raw log lines.
Helper scripts fail safely on bad input: heal_git_artifacts.py keeps non-empty, foreign or doubtful orphans and restores a Git marker it cannot remove, merge_settings_permissions.py rejects malformed rules and unrestricted Bash grants and serializes merges with a lock, and append_ledger.py, jq_write.py and make_run_dir.py refuse linked or out-of-project paths and cap resources.
The foundry agents (doc-scribe, linting-expert, perf-optimizer, qa-specialist, solution-architect, sw-engineer, web-explorer) get tighter scope, handoff and verification instructions.
/foundry:calibrate no longer passes a domain's plugin-availability note ("skip if … empty") to the problem generators. The orchestrator already applies that note before dispatch; a generator that read it, Codex in particular, skipped every problem, so a full run lost its Codex share until someone added a clarifying note by hand.
/foundry:calibrate measures problem difficulty with a weak solver:
Instead of trusting the generator, every high and extreme problem first goes to a weak solver (Haiku with no domain instructions), and a problem it fully solves is regenerated once, then downgraded to medium. Reports show weak-solver recall per tier, and a tier counts as discriminating only when the target beats the weak solver by 0.15 or more. Before this, 37 of 46 logged runs scored recall 1.00 on every tier.
The weak solver gets a strict tool budget: it answers from the problem text alone and writes its response, nothing else. Without that limit it could open the target's own rubric in the workspace, which voids the difficulty probe.
Answer keys are stricter (problem set 2.0). Each ground-truth item names the exact token a correct answer must state and the role it must give it. Distractors are listed separately, so naming one in the wrong role is a false positive while correct cross-links in sections like "Related" are not. Severity can be empty for classification items. A new bin/calibrate_validate_problems.py checks every problem before scoring and rejects the whole problem when an answer token is missing from the input, copied from a labelled field, or the input is below the size floor (6,000 characters for high, 12,000 for extreme). Result lines carry problem_set_version; older ledger rows lack it and are not comparable.
Hard tiers stay cross-model: Codex generates its high and extreme problems in one call each, with a longer budget, instead of one call for all five, and generators write one file per problem. Full-run deadlines now grow with the problem count (max(3600, 600 + 480 × problems) seconds).
Skill targets run under a fixed offline contract: the full SKILL.md, the mode file the domain names and everything that mode loads, plus a line forbidding live fetches and spawns. A mode-level domain such as /oss:analyse vitality gets its own label and run directory, and --apply finds its proposals through the new resolve_agent_file.py --run-slug.
Domains can attach frozen real cases on --full: public issue threads whose outcome a maintainer recorded, cut before the verdict and with logins pseudonymized. They are reported as recall_real, with each case's freeze-time weak-solver result in its provenance. The /oss:analyse thread domain now uses a 15-plus candidate pool with near-misses and real duplicate threads; the vitality domain takes its per-axis answer key from vitality_extract.py instead of the generator.
Domains for /oss:analyse calibration:
A full /oss:analyse run showed generated thread problems are closed puzzles (decisive source excerpt, config, a planted wrong diagnosis) that a solver without the skill also solves, while real threads are not. The thread domain now takes its calibration verdict from the real tier (verdict_tier: real) and its generated problems must look like real reports (open_shape: true: short candidate snippets, no code in the pool, no copied phrase between the issue and its duplicate), enforced by the validator's new --open-shape.
The vitality domain no longer runs the weak-solver probe (weak_probe: off): without the shipped rubric a solver cannot assign bands at all, and with it the probe measures the rubric, not the problem. Its hard problems instead put at least three axes one step from a band edge, checked on the saved extractor output by the validator's new --boundary.
New /oss:analyse evolution domain calibrates the mode's one model step, ambiguous-fix adjudication: problems are rendered with the oss plugin's own request builder, so the target sees the production prompt, and each --full set covers every evidence route the adjudication prompt names (direct blame, blame inherited through an earlier fix, add-only context blame, failed blame). New domain key precision_gate: per-role reaches every scorer prompt, Claude, Codex and the weak-solver probe alike: a response naming anything in a role that the answer key does not carry voids that role's items, so naming every candidate never scores. New domain key solver_model: runs the target, and the --ab-test baseline with it, at the tier the skill itself uses for that step (Sonnet here) instead of the session model.
Calibrate pipeline fixes:
Pipelines no longer write their incomplete result line at startup, only on an early exit. The startup placeholder made the orchestrator's deadline check read every pipeline as finished within seconds, so a stalled pipeline was never timed out. The spawn protocol now states that a deliverable is the completion signal and is never pre-created.
Pipelines keep each spawn wave within the model tier's in-flight ceiling (Haiku 20, Sonnet 8, Opus 5) instead of spawning every problem at once. Codex problem generation asks for medium effort explicitly, so a timeout retry drops to low instead of an effort level the model rejects, and its batch call gets 240 seconds instead of 120, which a large domain overran.
The artifact-lifecycle rule now states that the SessionEnd cleanup deletes any file older than 30 days anywhere under .cache/, not only .cache/gh/, so durable state is never placed there. It also registers .evolution/ (the /oss:analyse evolution scan store) as a manual-retention directory.
/foundry:create and foundry:creator now produce two visual formats. An animated SVG uses SMIL with no script or external resources, so it plays inside an <img> embed. A short video of up to 60 s is written as a HyperFrames HTML composition with one scene per story beat. For short video the skill requires Node 22+ and only warns when ffmpeg is missing. Once you choose to generate, it scaffolds the project with npx hyperframes init --skip-skills with telemetry disabled. It renames the vendor CLAUDE.md/AGENTS.md the scaffold copies in, so agents never load them as instructions. It then prints asset-copy, check, preview and render commands for you to run; these use the scaffold's version-pinned npm scripts with the same telemetry opt-out. Stopping early prints resume commands that reuse the approved outline. It never runs HyperFrames sign-in, skill installs, publish or cloud renders.
Requests that only process existing media (download, transcode, trim, transcribe) are now redirected to ffmpeg, Whisper or yt-dlp instead of being treated as content. Their outputs, such as a talk transcript, can be referenced as source paths in the outline.
foundry:creator reviews label severity more consistently. critical now requires that a broken outline constraint misleads readers, so timing or format slips are medium, and severities pinned on its antipatterns override the generic rubric. Style suggestions that no rule or constraint asks for are dropped or grouped into one optional low note. Review confidence is no longer docked heavily for checks that need a render.
/foundry:calibrate changes:
/foundry:calibrate now generates foundry:creator benchmark problems for media-processing requests and for the animated-SVG and short-video formats. Calibration therefore exercises those formats instead of only the original text formats.
/foundry:calibrate --local now passes the target agent's frontmatter effort to its benchmark runs and limits its tools through the prompt. It delivers the agent definition through a per-problem prompt file, and nested spawns carry no names, which a named pipeline would have refused. Codex problems that return input as an object are converted to labelled text instead of being dropped, and the generation prompt now asks for a single string.
/foundry:audit fix pass: verbose-bash-block findings no longer take the gate fast path on either fix path. The orchestrator path, which used to fast-path them ungated, now sends them through the two-agent pre-apply gate, and the audit-fix sub-agent treats them as parallel-safe like the orchestrator but gates them too, so a bash-compression fix can no longer drop a # timeout: N or a why-comment unreviewed. The sub-agent also serializes orphaned-ref fixes after inventory changes, as the orchestrator already did.
Duplicated gate wording in the audit skill, its Step 7 mode and its two fix-orchestration files now carries policy-sibling markers, so a later edit reaches every copy.
The always-loaded claude-config.md and debugging.md rules point to communication.md §Interactive Questions and quality-gates.md §Evidence Grounding instead of restating them, so the copies cannot drift apart. /foundry:calibrate skills names the codemap-py plugin consistently in its domain table.
Restyle the animated execution diagrams of the /foundry:audit, calibrate, manage and distill skills: card text is short fragments instead of sentences, key names are bold and conditions or bounds are italic, and each diagram's legend explains the emphasis; stop and skip conditions and gates are unchanged.
The global ~/.claude/CLAUDE.md written at setup now states the four delivery principles — consistent simple delivery, root cause not symptom, automatic correction and recovery, and honest stops with real handoffs — so every change follows them, including work done in a session that runs no foundry skill.
Review outcomes now distinguish bounded, low-impact correctness, test and compatibility repairs from material behavioral defects or substantial repair. Final verdicts cite the controlling findings and their impact, keeping required fixes actionable under Minor and verification readiness separate from source approval.
Weigh production impact above file type: documentation and test gaps normally remain Minor without evidence supporting a stronger judgment. These factors inform one combined judgment: high-impact findings can control the verdict and are never diluted by minor items. Use the strongest confirmed consequence as the baseline, account for proven joint effects, and keep severity, source disposition and verification separate. Missing tests no longer receive an automatic High rating; numeric topic discounts require independent calibration before they can determine verdicts.
Check local Codex activity before drafting commits, so contributions outside the Claude conversation are considered for co-author credit; ask once when only thread activity indicates possible involvement.
Check-helper fixes:
check_agent_waits.py also flags task calls that would cost a turn of their own: a task-only text block that sets in_progress (standalone-in-progress), a task-only block whose preceding text and body never say it rides with real work or precedes long output (unexplained-task-block), and a skill directory that drives tasks without stating that task calls ride with the next call (missing-ride-rule). Blocks are read line by line, so reflowing a paragraph never changes a verdict.
check_bin_test_coverage.py finds a script's test file at any depth under tests/, such as tests/audit/plugin/test_foo.py. A test nested two or more folders deep is now checked for empty or stub-only test functions like a flat one, instead of falling back to a name search across the test tree that reports "no test file" when nothing names the script.
python-testing.md sets a test-tree layout: a tests/ directory past 15 test files groups them into topic subfolders of 4 or more files each, _-prefixed helpers and the tree-wide conftest.py stay at the test root and resolve from any depth, path anchors come from one shared helper or conftest constant because parents[N] shifts one per folder level, and single-consumer fixtures and data live beside their consumer.
python-testing.md adds test-design rules, so reviewers and foundry:qa-specialist flag more silent test defects:
while loops count as test-body logic, like if and for.
Test names state the observable outcome, without filler tokens such as correctly, works or should.
Three uncollected-test shapes: a nested def test_*, a same-name redefinition and code after return.
A check whose absence could break nothing undetected is linting and belongs in a pre-commit hook or Ruff rule, not pytest.
Patches prefer the autospec=True decorator and always name a replacement shape; speed never justifies mocking a real-interaction test.
Test helpers stay within one test tree, and production code never imports one.
Tests reading Markdown or prose parse it line by line, and the Markdown is never edited to fit a test.
The Ruff rules that enforce test style (D100–D103, W505, TID251, PT, F811) are listed, with the checks Ruff cannot express left to reviewers.
foundry:qa-specialist requires a docstring on every test, so a descriptive test name no longer waives it (Ruff D102/D103).
Require proportional planning and challenge before accepted execution, then consolidate actual results with independent review and verification; routine authorized work gains no user approval prompt. Validate bounded outcomes, decompose larger work, and complete branches depth-first with focused context and useful disjoint sibling delegation; parent consolidation retains valid-evidence and mandatory acceptance gates.
Keep module-documentation scanning active when a checkout ancestor has an excluded directory name, while still excluding vendored files within the selected scan root.
Review-loop records:
The loop cost log moves to schema 2 and adds tokens_total, so a Claude review round records the background agent's subagent_tokens total and duration_ms (as duration_s) instead of leaving tokens null; schema 1 records stay accepted.
Review loops record the failing-before/passing-after check as a literal command line in the pre-baseline attestation and as a probe: entry on fix actions, so the parent can rerun it after later edits; the helper never executes it and reviewers do not receive it as a resolver account.
Assess confidence in the delivered result and how it was checked separately from completion status, while retaining required gates.
Accept case variations in reviewer invariant labels while preserving the original evidence, so valid challenge findings can proceed to action validation.
Commit subjects omit a scope that repeats the type, while keeping distinct affected-area scopes and the existing message and attribution rules.
/foundry:setup no longer stops at the permissions merge when the gh-write guard reads the retired Bash(gh api repos/*:*) allow rule in the command text as a gh write. The retired allow rules now ship in permissions-allow-retired.json and reach merge_settings_permissions.py through the new --drop-allow-file option, so settings.json loses the same rules and the command no longer names gh api. The merge also stops with settings unchanged when a retired-rules file is null or holds a non-string entry or an option path is empty, and refuses a drop or retire option given without the allow or deny merge it modifies.
/foundry:audit --efficiency --measured (new flag, off by default) lists the projects whose sessions ran a flagged skill, asks which to measure (a multi-select, the current project recommended), and measures their real transcripts (new efficiency_measured.py) for every inline skill that declares model:: dollars per model-switch rewrite, cold-start and pre-gate cost, subagent growth and idle-gap cache losses, each skill from each typed invocation to the next different command (a mid-run /compact or /model does not cut it short), including the model rewrite on entry and on the revert after it, which only a skill the scan flags owns (a neighbouring unpinned skill is never charged for it). Worktrees count with their project, and each record stores the chosen projects, warning when a later run covers other ones. It keeps a baseline in .notes/efficiency/baselines.jsonl, so a re-run prints the change against the pinned baseline (the first record, or the latest written with --rebaseline) and against the previous run, with how many sessions the baseline already held. An unreadable transcript is skipped with a reason, and a failed collector run is reported as a failure, not as "no sessions". A project name with no transcript directory, or a projects file that names none, stops the pass (exit 2) instead of silently measuring another set. Each record also stores whether border rewrites were counted, and a later run that counted them the other way prints a warning. --measured without --efficiency is rejected.
The efficiency audit no longer drops a model-placement finding when the per-file review calls the tier a fit, and its scanner now covers codemap-py's claude-skills/ skills, whose five model: pins were never scanned.
/foundry:audit --efficiency also judges the size of instruction text against its importance (E11, source tree only, new size_importance.py, zero model tokens): each block of a rule, skill or agent is spine (workflow steps, gates, deliverable contracts, high-stakes rules; the default whenever in doubt) or complement (flag-only steps, rationale, examples), and only complement is flagged — move out of always-loaded or flag-only text, trim when lazy text weighs over twice the median per obligation. A flag-only step is sized by what its flag scopes (a flag-only heading, its section up to a default-path sub-heading and without the line that loads a mode file), so rules that share its block are left out of the count; a mode, template or shared file made mostly of flag-only blocks is the gated unit itself and is not flagged. Doubt means spine, so only text proven to be complement is flagged. Advisory, never auto-fixed. The --measured evidence steps now live in their own mode file loaded only with that flag, so a plain --efficiency run no longer loads them.
New /foundry:audit --consolidate (Check 47) finds rule, skill and agent sections that express one intent in different words and proposes fewer, broader ones. It inventories sections with their load group and merge-blocking dependencies (shared-file copies, policy-sibling markers, frontmatter, install alternatives), clusters by purpose, judges each cluster keep/sharpen/merge-prune with an obligation map, has an independent foundry:challenger try to break each merge and each sharpen that removes text, and reports tokens saved per load class. Merging is limited to always-loaded and path-scoped rules; a skill's or the agents' files can only be sharpened or kept. Advisory: it edits nothing, skips pre-commit auto-fix and the fix gate, and rejects combination with --upgrade, --adversarial and --efficiency. Also fixes audit_preflight.py exiting 2 when the arguments are only a flag (/foundry:audit --efficiency, --consolidate), and now stops --consolidate on an unknown --flag instead of passing it into the scope. A controlled fixture run (tests/audit/fixtures/consolidate_fixture.json) shows the mode merging a paraphrase family and keeping an incident-encoded ban; discovery recall and restraint across runs and models, and the agent keep-control case, are not yet measured.
New rule model-tiering.md (loads on first access of a skill or agent file): a tier ladder from script to Haiku, Sonnet and Opus with checkable escalation triggers, no model: on inline skills, lean brief-file delegation, and an author cost checklist.
Review loops add a pre-baseline attestation: before the first review of a diff the parent or its resolver wrote, the author lists each changed behavior's invariant, sibling routes, consumer and failing-before/passing-after check, and fixes the gaps within scope. Fewer avoidable defects reach a paid independent review. The reviewer never sees the attestation, it never counts toward scoring or clean acceptance, and it is skipped for review-only requests, unauthored code and continuations of a prior ledger.
adversarial_loop.py review-loop logging and flags:
adversarial_loop.py --append-metrics records each round's cost (route, brief bytes, duration, tokens, attested gaps; unknown values stay null) in an advisory loop-metrics.jsonl beside the ledger, so later investigations can price review rounds. It never affects scores, recurrence or clean acceptance.
Review loops report why a stalled round stalled: adversarial_loop.py --plateau-kind prints stuck (the fix did not land), whack-a-mole (the fix exposed new siblings) or mixed on stderr, and the loop rule recommends the matching next step. It is informational only and never changes the stop decision, exit status or JSON summary.
The cost log's route follows a shared vocabulary (parent, agent:…, bridge:…, codex:…, other:…) so routes can be joined to outcomes, and --append warns, never refuses, when a finding first reported after round 1 has no origin: evidence entry.
Review loops can pilot a leaner reviewer brief: adversarial_loop.py --brief-arm assigns lean or full per run directory, only for loops that are not filter or gate reviews and have no open security or critical finding. The cost log records the wording sent (brief), so about 10 runs can be compared by first-reported weight, rounds and brief size. A high or higher severity finding first found after a lean baseline pauses the lean arm.
The review-loop cost log and pilot flags are hardened: a rejected cost record now only warns (warning: metrics-rejected:…) and no longer hides the committed round's summary or progress table; records bind only to a valid current ledger, take fractional duration_s, keep one stripped route per line even after a partial write, and a brief-arm-pause file carries the lean-arm pause. --brief-arm refuses to combine with another action, --plateau-kind speaks only at a plateau or non-converging stop, the origin: warning also fires for an unknown class, and the attestation goes to a randomly named temp file outside the workspace so a reviewer cannot derive its path, and attested_gaps is null whenever no attestation was written.
The loop rule names where a first-reported finding's origin class is stored (an origin: evidence entry), so missed versus fix-introduced defects can be counted from the ledger.
Blueprint generation and manifest re-checks reject unsupported shell forms. Stale or tampered entries cannot regain auto-approval through the following forms:
Parameter expansions beyond supported reads.
Encoded command substitutions or ambiguous closing braces in parameter defaults.
zsh variable subscripts that assign, execute code or read lookup variables.
Arithmetic beyond read-only $((…)) expressions.
Malformed or unterminated heredocs.
Comments hiding closing delimiters in command substitutions.
zsh glob qualifiers and misplaced array assignments.
Shell options outside pipefail, errexit, nounset and nomatch, including wrapped or constructed flags.
Wrapper options requiring operands.
Unsupported $ expansions and named-descriptor redirections.
Unmodeled brace compounds, including inside nested case arms.
Blueprint checks:
Reject lookup and startup-variable writes through assignments, declarations, loops and wrappers, including disguised names, invisible characters and arithmetic operands. Manifest re-checks also reject command-shadowing functions and source/., preventing executable overrides. Ordinary text and supported length expansions avoid false rejections; indirect writes through arithmetic re-evaluation of text stored in variables remain outside the classifier's scope.
Keep ordinary text operands and quoted-delimiter heredocs as data, while checking command substitutions across lines in unquoted heredocs. Quoted assignment text avoids false rejections, and dangerous commands cannot hide in expanded heredoc text. Shell script paths held in variables require -- before the path to remain auto-allowed.
Blueprint checks and sentinel reads accept literal string-only printf/print formats with fixed widths, literal percent signs and newline, tab or backslash escapes. Supported formatted output remains auto-allowed under the stricter checks. Nonliteral formats, non-string conversions and unsupported escapes are rejected. Every format word is checked against that closed list whatever its first character, so a dash-leading print -f or printf format can no longer write a lookup variable, while print -rf, printf -- '-%s', env printf and inert quoted text stay allowed.
Shipped audit and setup blocks are rewritten to remain auto-allowed under stricter formatter checks. Counts and exit-code output are preserved, and an empty example count still reports a diagnostic with status 2. Audit Check 45 prints paths with backslashes literally and now requires each policy-sibling to list the declaring file back, so one-way or chained markers are reported as asymmetric.
Sentinel reads require plain target names and reject lookup variables, prompt strings, hook arrays and command tables. Only empty IFS= prefixes on read are allowed, preventing other field-separator writes and shell-environment changes. Arguments accept supported variable reads, literal or variable defaults and trims; unsupported expansions and named-descriptor redirections are rejected.
gh-write and push guards:
Block unreadable shell commands even without a gh call, including unsupported expansions, named-descriptor redirections and unsafe option switches. Attached parenthesis groups are rejected except valid array assignments, so zsh glob qualifiers cannot hide writes or pushes. Supported case conversions, unset-variable errors, zsh splitting and tracing options, shopt -q, bash --rcfile FILE and braced case statements remain readable.
Also read fish -C startup code and here-strings read through a saved stdin descriptor (exec 3<<< …; sh <&3), and treat an unprovable descriptor or startup string as unreadable. Alias queries, harmless function definitions and eval used as an argument stay readable, while definitions that shadow a modeled command remain unreadable. A rejected env -S split now blocks as unreadable instead of throwing.
Printed shell input requires literal echo/print text without backslashes or supported string-only formatter output. Runtime operands and unsupported decoding are blocked when printed as executable source, preventing encoded gh writes and pushes while leaving ordinary printed data unaffected. Executable formatter output requires ASCII operands and limits padding to 65,536 characters, keeping generated shell input readable.
The gh-write and push guards follow executable shell input through shell and env option values, including clusters, normalized script paths and nested shell input. Piped or redirected stdin reaches whole shell compounds, and only command words select shell stdin consumers; shell names used as arguments remain data. Script arguments, other interpreters' code, shell version queries, compound timing, loop regex tests and leading comments avoid false blocks, while eval substitutions consume only their output rather than later printed text. The guards inspect these executable sources:
Shell -c strings and eval operands.
env -S command text, including defined escapes.
Pipes and heredocs feeding shell stdin.
Files written and then run or sourced in the same command.
xargs and parallel placeholders receiving stdin.
Newly propagated helpers inherit their canonical file's committed version baseline, avoiding false version-family errors. Version checks report canonical Git-read failures, and genuinely new canonical files and copies must start at version 1.
Review → fix loops now keep a round ledger and progress table, making review history visible. Repeated invariants are tracked across all earlier rounds, including renamed findings, requiring root-cause evidence on repetition and stopping at the third occurrence. Action invariants must match their ledger findings after whitespace and case normalization, preventing inconsistent recurrence tracking.
Filter reviews require grammar coverage across every reader, exposing unmodeled constructs as findings and preventing clean verdicts with incomplete coverage. Repeated filter failures require defaults that reject unmodeled input, preventing another narrow bypass fix.
The adversarial-loop rule and the challenger dispatch rule list a reviewer reply truncated before its required closing block (envelope or ## Confidence) as an agent failure, so a cut-off reply is no longer scored as a complete round with fewer findings. Where the host can continue that reviewer, the parent asks it for only the remainder, in replies short enough to pass the transport, until the closing block arrives; a reply that adds nothing new records the failure.
The adversarial-loop progress table shows security findings in their own Security column ahead of Critical, instead of folding them into Critical, so a reader sees how many open findings are security bypasses. Score weights and the Weighted score column are unchanged.
The adversarial-loop rule treats any reviewer round that returns no deliverable, a refused findings write, an unparsable envelope, a safety-classifier stop or a blocked envelope as an agent failure, records its cause in loop-report.md (never as a round, where it would read as a clean review), re-dispatches that reviewer once with a brief that removes the cause, switches to another permitted reviewer route if the same one fails again or cannot be re-dispatched (no attempt left, no approval, or a cause no brief can remove), and stops as independence-unavailable only when no route remains, instead of letting the round drop out as not-run.
/foundry:calibrate pipeline and problem generation:
/foundry:calibrate arms a 60-minute pipeline deadline when --full or --ab-test is set (previously 10 minutes, 15 with Codex), so a full A/B calibration with Codex scoring is no longer cut off at 15 minutes.
The calibrate pipeline runs every Codex call, problem generation and scoring, in the foreground, and gives each scoring call a 180-second budget at medium effort and the generation call a 120-second budget. Before, a pipeline that waited on a background Codex job went idle and returned nothing.
Calibration problem generation asks for harder extreme problems (evidence split across two sections, plus a construct that looks defective but is correct, kept out of the ground truth) and bans labels or hints that give the flaw away in medium and harder problems. The result records a gap when extreme_recall is 0.95 or higher (marked a single-problem signal when fewer than two extreme problems exist), so a saturated tier is no longer read as proof of capability.
foundry:challenger output:
Keeps its report short: one quote or citation as the target reference, an attack of at most three sentences, a single required change and one-line Refuted Challenges entries. It compresses wording only, so no finding, field or refutation is dropped, and over-budget triage compresses wording and then lets the report run over instead of dropping Nitpicks.
Delivers its findings in its final reply instead of a report file or SendMessage, labels them in the adversarial loop's six tiers (security to nit) so each round can be scored, always states its Codex cross-check result, and in a security-filter review runs the bypass search through Codex and classifies the candidates statically instead of writing bypass strings itself.
The always-loaded quality-gates rule points at a new Challenger Rounds section in its full rule, which holds the round-failure and Codex procedure.
The file-handoff protocol lists the report names Claude Code refuses for a subagent Write (findings.md, report.md, summary.md, analysis.md and suffixed findings-*.md), so an agent names its file after itself and the report is no longer lost.
check_codemap_guard.py registers the Codex Rig adapter's run-directory index override and drops the stale entry for the oss review codemap mode, so the pre-commit check no longer fails on every commit.
The runtime blueprint-allow.js hook refuses, even on a manifest hit, every command that can point a command name at another program: hash, builtin, alias, enable, functions, eval and their kin; any mention of the zsh commands/functions/aliases or bash BASH_CMDS/BASH_ALIASES tables, attached option prefixes included (set -Acommands); set -A, read -a, printf -v, name references and indirect expansions. Spellings that slipped past the earlier per-spelling checks, such as set -Acommands ruff /bin/echo and builtin -- hash -p …, are now refused.
The same hook reads each command as the shell's own words before judging it: quotes, backslash escapes, $'…' strings and line continuations are resolved and joined, and redirections are set aside with their targets. \rm, r""m, h$'a'sh, \-v and co""mmands therefore count as rm, hash, -v and commands, and a redirection such as printf 2>/dev/null -v … or 2>"a b" set -A … no longer hides the option or the command. A command word written as a pattern that can expand to a refused name (/bin/r?, {ha,}sh) is refused. The hook reads past the zsh precommand modifiers noglob, nocorrect and - and past a wrapper's own arguments (timeout 5 set -A …), and it judges the command text carried by a shell's -c (after options such as -o shwordsplit), a trap action, watch and env -S, so noglob rm -rf x and zsh -o shwordsplit -c 'set -A …' are refused. An option written after another option's argument (set -o noglob -A …, read -t 5 -a …, print -f '%s %s' -v …) still counts. Text the reader cannot settle is refused rather than guessed: a command that ends inside an unclosed quote; a $'…' escape bash and zsh decode differently, wherever it stands, assignment and redirection target included (a NUL byte, \u…, \c…, an unknown letter such as \m, an octal value above \377); an expansion inside a command word (h${x}sh); and a pattern among a wrapper's words or a POSIX bracket class in a command pattern (command h[a]sh …, /bin/r[[:lower:]]). A shell's -c script written after -- is judged like any other. Short options are read as clusters, so zsh -co shwordsplit '…', zsh -xo name -c '…' and env -iS '…' still reach the carried script, and every argument after a -c cluster is judged as script text. A / inside an expansion (h${x:-/}sh) no longer counts as a path separator. unset -f, -F or -m, which remove a function that shadows a command, is refused like unalias. A -c string counts as a bare variable (bash -c "$METRIC_CMD") only when it is exactly that variable, so invisible Unicode whitespace around it no longer makes the hook and the generator disagree. An expansion where printf, print, set, read, unset or a declaring builtin still reads options (printf "$o" …) is refused, since its value may be -v or -A. A quoted or escaped prefix ('h'${x}sh) no longer hides an expansion inside a command word, and a bracket class holding a quote or backslash (h[\!a]sh) is matched as any one character. The command after a zsh short or brace form (for x (a) cmd, select x (a) cmd, if true { cmd }, while … { cmd }, repeat 1 cmd) or after bash coproc is judged like any other command. The & of 2>&1 or &> no longer splits a command in two, an escaped quote in $'\'' no longer ends the string early (also when a line continuation splits $ from '), a parenthesis inside a quoted string no longer ends a $(…), and a {fd}> redirection is set aside like 2>.
The blueprint hook refuses a command whose raw text has a backslash-escaped blank at a line end or before #. The shell ends the command there, or keeps the rest of the line as an argument, while normalization would read a continuation or a comment, so a shipped digest could approve a different command. No shipped block contains the shape.
Blueprint manifest generator:
The blueprint manifest generator applies the same rebind denial as the hook, by name instead of by spelling. It reads commands with the same rules as the hook, the refusals for text it cannot settle included. command … -v counts as a name lookup only when -v or -V stands among its leading options, so a trailing -v no longer exempts the command command runs. No shipped block uses any of those commands or tables, so no manifest loses an entry and every drop count is unchanged.
The manifest allowlist no longer admits eval "$RUNNER …" or eval "$(…)": a block that runs eval gets no manifest entry and prompts.
The manifest generator gives no entry to a block that sources a state file, runs a variable's value as a command (bash -c "$VAR", $RUNNER …) or writes heredoc data (python - <<'PY' code keeps its entry), emits per-line entries only for complete commands, and admits a mutating bin/ helper only when it is listed with its guard (heal_git_artifacts.py and merge_specialist_batch.py added). Entries fell from 1298/2023/949/698 to 1090/1817/845/655 across foundry, oss, develop and research.
A census test rebuilds every admitted manifest entry and fails when one sources a file, runs a variable as shell code, writes heredoc data, is a line bash cannot parse alone, or calls a helper whose source deletes trees or writes git history without review.
/foundry:audit checks:
Audit Sub-check 23e reports a command-name rebind in any shipped shell fence, including the option forms (set -A, read -a, printf -v, declare -n) and a rebind behind command, an assignment, a backslash, a wrapper or a redirection, so a new block that would lose its manifest entry this way is named with the reason. A # inside quotes, an escaped \" included, no longer hides the rest of the line from the check. A line ending in \ is joined with the next, a command word with $ after its first character (h$'\x61'sh) is flagged, and print -v after an option value such as -f '%s %s' is caught. Whitespace inside quotes stays part of its word, so 2>"a b" set -A … keeps set in command position, and a read operand built by a backtick substitution is flagged. Redirections are set aside with their targets before matching, so read 2>/dev/null "$n", hash>/dev/null -p … and {fd}>/dev/null set -A … are flagged. A rebind behind a wrapper's options (command -- hash …, sudo -u root hash …) is reported too, while a command -v lookup is not.
Audit Check 45 prints its findings with printf '%b', so a % in a reported path is no longer read as a format directive.
The sentinel-read shape lane judges every word a read receives: a sensitive variable such as PATH named anywhere, attached to an option (-aPATH) or after an option's argument, or a computed name (read "$V") refuses the command. Only the first name was checked before, so read -r IGNORE PATH < file could rebind command lookup without a prompt.
permissions-guide.md no longer lists bash -c "$CMD" or sourcing a state file as allowed shapes, and describes the escaped-blank refusal.
Helper scripts that write or read a session sentinel (parse-skill-flags.py, extract-keep-flag.py, write_skill_contract.py, audit_preflight.py, state.py) fall back to /tmp on POSIX when TMPDIR is unset, the directory a skill's ${TMPDIR:-/tmp} names, instead of tempfile.gettempdir(), which picks TEMP or TMP first; with either set, script and skill read different files. Native Windows keeps gettempdir(). Path checks that confine a file to the temp dir (settings_json.py, jq_write.py --slurpfile, --out-file of the flag parsers) accept both directories. claude-config.md, python-code.md, bin-authoring-guide.md and the /foundry:distill executable brief prescribe the same fallback.
Shared quality stack:
The shared quality stack (used by /develop:fix, /develop:feature and /develop:refactor) runs ruff, mypy and pytest through a runner array that a closed case builds from the three detected literals (uv run, poetry run, python -m) instead of eval "$RUNNER …": a missing, stale or planted quality-stack-runner session file now stops with ! BLOCKED — runner state missing or not one of … and executes nothing (a missing file used to fall back to python -m even in a uv or poetry project), and failing pytest node-ids are retried as separate array elements.
The runner fences of the shared quality stack are no longer pre-approved by the blueprint hook: "${R[@]}" ruff is an expansion in command position, which both gates decline, so the six runner blocks (and their propagated copies in cc_develop) prompt instead of running silently as the eval "$RUNNER …" form did (quality-stack manifest entries 107 → 101 in foundry, 112 → 106 in develop). An earlier design that taught the gates to trust fixed-text arrays was dropped after repeated review rounds kept finding new ways to overwrite a trusted array.
The quality stack's failed-test retry reads a node id with one nested bracket level (test_x[[a] b]) whole instead of cutting it at the first ] followed by a space, so the isolated retry targets the right test; deeper nesting still truncates, which selects nothing and fails loudly.
The runtime danger check (blueprint-allow.js) and the generator's is_dangerous treat uv run and poetry run as carrying their wrapped command, flag hash name=/path, hash -p /path name (also the attached -p/path and bundled -rp spellings) and builtin hash …, which rebind a command word to another binary, and refuse blocks that may write the zsh commands or bash 4 BASH_CMDS tables in any spelling (commands[x]=, commands=(…), +=, ${…:=…}, printf -v, read -A, or a write nested in a lookup subscript such as ${commands[$(…)]}); a plain ${commands[x]} or ${commands[$name]} lookup stays allowed. The generator's uv run check declines any option it does not know (uv run -f ruff rm …, where -f swallows the next word), so a value-taking option can no longer hide the command that really runs; before, that block was admitted.
eval hardening:
Bash(eval:*) is no longer in the shipped allow list and /foundry:setup removes it from settings.json, including an identical entry added by hand: ad-hoc eval commands now prompt, while shipped blocks no longer use eval.
/foundry:audit Check 23c flags any eval "$…", eval $(…) or eval -- … in a shipped skill, mode, template or _shared file (previously _shared files were never scanned) as high severity (was medium, SKILL.md only) with no exemption for parse-skill-flags.py or derive_codemap_target.py, and only lines inside code fences (backtick or ~~~, blockquoted ones included, each closed only by a marker at least as long as its opener) are scanned, a comment inside a blockquoted fence stays a comment, so prose that quotes `eval "$(…)"` is never a finding while a comment mentioning eval, a quoted # or a backtick command substitution no longer hides a live eval in code; Check 30b's fix pattern uses a closed-case runner array. permissions-guide.md, bin-authoring-guide.md and the curator agent name --keep-state sentinel files as the replacement for eval of script output.
check_cli_flag_drift.py stops reading a documented command's flags at a standalone -- that is not inside a quoted value (a $(…) or backtick inside double quotes still ends the scope, quotes and backslashes are read the way the shell reads them, so a backslash inside single quotes such as 'C:\' is a plain character while an ANSI-C $'it\'s' value honours its escapes, and a quoted value continued onto the next line with \ is read as one value), and treats argparse's implicit -h/--help as defined unless every parser in the script sets add_help=False (a help-less parent parser shared through parents= does not count), so flags forwarded to a wrapped tool (dev_run_tests.py pytest -- --tb=short) are no longer reported as drift of the wrapper script.
/foundry:calibrate A/B verdicts replace none with baseline-ahead (general agent ahead), inconclusive (both arms at the recall ceiling) and no-lift, evaluated first match wins; a mixed-sign result reports its negative delta as a trade-off, and older none ledger entries are documented as covering all three.
Out-of-scope declines:
foundry:challenger, foundry:creator, foundry:doc-scribe, foundry:linting-expert and /foundry:manage decline out-of-scope requests with one ! UNSUPPORTED — <reason>; owner: … line and still write a mandated deliverable file or envelope; the shared file-handoff protocol adds an unsupported status that orchestrators surface as a routing miss, never as findings or a timeout.
/foundry:manage matches add perm and remove perm as command words, so permission commands no longer trip the out-of-scope redirect.
Agent severity and review output:
Severity output is anchored by consequence: foundry:solution-architect gains a severity rubric (compatibility breaks and startup cycles [HIGH], governance gaps at most [MEDIUM]) and returns only findings for review-only asks; foundry:perf-optimizer caps constant-factor waste at high, keeps advisories out of numbered findings and marks static reviews [Measured] none; foundry:linting-expert defaults plain mypy errors and B006 to medium; foundry:challenger rates meta-findings and contagion by each finding's own failure mode.
foundry:qa-specialist limits Coverage Gaps to documented or code-explicit contracts and moves unspecified behaviour to Contract questions:; foundry:doc-scribe treats a documentation standard as a hard filter only when the prompt makes it the acceptance criteria; foundry:creator lets the outline's ## Format override house format defaults.
foundry:sw-engineer reviews separate correctness bugs from suggestions and direct from latent bugs, with minimal fix diffs; read-only third-party release impact questions route to general-purpose, and foundry:web-explorer no longer sends local code analysis to foundry:sw-engineer without a fix request.
/foundry:humanizer check mode rates findings by checklist group (Syntax high, Vocabulary medium, Formatting low) and flags triads only when vague; /foundry:audit accepts permissions-guide.md, MEMORY.md and configuration README targets instead of declining them.
Narrow broad find, node, claude, and sed allows while retaining scoped read-only rules and broad eval/python for existing recipes; ad-hoc commands outside shipped blocks now prompt unless a narrower rule covers them. Setup removes the old broad entries from settings.json, including an identical entry added by hand.
Shared keep-state helpers reject sentinel identities containing .. before changing state; audit Check R4 also recognizes real tests that import or reference a script under another test filename, reducing false missing-test findings.
/foundry:setup JSON handling:
Uses Python for every JSON read, probe and atomic settings write, so setup completes without jq on native Windows and other hosts while preserving existing env values and safe re-runs.
Validates settings with Python instead of jq, so machines without jq keep a valid settings merge rather than restoring its backup; malformed JSON still triggers restoration.
The Windows Python launcher disables implicit current-directory executable lookup, preventing a checkout's planted interpreter from running during runtime selection.
/foundry:calibrate --local help now states what the flag changes (rules target, mode files, cross-plugin availability check) and that agent/skill targets always come from the source tree, matching resolve_agent_file.py.
/foundry:brainstorm writes its question-delivery copies (<slug>-branches.md, -tree.md, -spec-draft.md, -plan.md) under a per-invocation .reports/brainstorm/<ts>/ run dir printed at Step 0, so a later brainstorm or breakdown run on the same slug no longer overwrites an earlier run's files; rounds within one run still replace their own copy.
foundry:perf-optimizer and foundry:sw-engineer replace basic tool-usage examples (py-spy/scalene/timeit/strace commands, a sample pyproject.toml, a Protocol class, an exception-hierarchy listing) with one-line principles, shrinking each agent's always-loaded prompt; the macOS SIP tracing caveat and the pstats read-back one-liner stay.
--keep flag helpers:
parse-skill-flags.py no longer drops a --keep value whose quotes the shell consumed when the host substituted $ARGUMENTS (--keep "a b" used to arrive as --keep a b and persist an empty keep list); it now also accepts --keep 'a b' and --keep="a b", strips a dangling --keep from CLEAN_ARGS, and warns on stderr when the value was unquoted or empty, so a lost compaction keep list is visible instead of silent.
extract-keep-flag.py refuses a keep sentinel another user already owns (exit 1 with an error naming the file, instead of reusing a planted value) and creates a missing --out-file state directory with mode 0700, so other users can no longer list it. Sentinel names are unchanged; native Windows skips the owner check.
write_skill_contract.py takes a leading --keep-sentinel <name> or --keep-file <path> (not both) and appends the first line of that sentinel or file as user-keep: itself; a missing or empty source adds nothing. audit, calibrate, distill, brainstorm and investigate use it instead of an inline read -r _KEEP plus string append.
/foundry:audit changes:
/foundry:audit Check 45 resolves a policy-sibling path against the marker file's own plugin root when it is not found from the repository root, so plugin-relative sibling paths in shipped files (codex-rig, research) no longer raise false 45-BROKEN findings (20 on the current tree, now 0).
/foundry:audit Check 23 and the curator agent accept a shared-doc load by either cat or a plugin bin/ loader and no longer propose converting one to the other.
/foundry:audit Check 28 and the Check 27 _shared path greps now also scan plugins/*/claude-skills/, so bridge and codemap-py skills get the cross-plugin and subagent_type checks.
/foundry:audit Layer 1 gains the agent-plugin-root check (bin/check_agent_plugin_root.py): agent Markdown that writes ${CLAUDE_PLUGIN_ROOT:-plugins/<plugin>} is flagged, because the host substitutes only the exact ${CLAUDE_PLUGIN_ROOT} token in an agent prompt and the default form resolves to a repo-relative path an installed plugin does not have. audit_static.py exits 1 on a finding; a line carrying plugin-root-check: allow is exempt. The foundry agents now use the exact token. audit_static.py --scan-dir <one plugin> passes that plugin to readme-drift, mode-dispatch and tag-symmetry directly instead of reporting a findingless FAIL or skipping, and a checker that exits non-zero without findings is reported as an error with its stderr line.
/foundry:audit --efficiency now flags a model: field on any inline skill (one without context: fork) in every plugin, not only foundry; on this tree that covers 9 skills outside foundry: cc_ossresolve, analyse, review and release, and codemap-pyquery-code, integration, debrief-coding, rename-refs and test-impact.
/foundry:audit: the /distill executables follow-up option is gone from the gate, --adversarial Phase A spawns foundry:challenger (--no-codex) and Phase D reads .py files only, --upgrade accepts a change only on a capability A/B run with --local and a 0.05 noise floor, and audit_preflight.py stops with BLOCKED on an unsafe session id or a state directory owned by someone else. /foundry:manage prints the final /foundry:audit and /foundry:calibrate commands for the user to run, since both are disable-model-invocation.
The /foundry:audit skills checks moved from one checks-skills.md into checks-skills-{gaps,bash,contract,crossplugin,deadfiles,duplication,sweep}.md, which checks-skills.md now indexes. A skills scope run no longer loads the sweep file (Checks 35, 42, 43, 44; the plugins and full scopes still do), and the Check 27 and 30b self-exclusion greps cover every checks-skills*.md file.
/foundry:audit --efficiency run alone now writes the aggregate.md and summary.jsonl the audit gate reads, and check_codemap_guard.py tracks the split oss dispatch files. Agent tools: grants match what each file uses: challenger drops WebFetch/WebSearch and web-explorer drops Glob.
/foundry:audit without --local no longer claims to audit the installed plugin cache, which it never read. When the project's .claude/ holds no agents or skills, the run records ⚠ UNSCANNED for them and the report carries an Unscanned Plugins section instead of a clean result.
/foundry:brainstorm, /foundry:investigate, /foundry:distill and /foundry:calibrate start with one parse-skill-flags.py --keep-state call instead of extract-keep-flag.py followed by an eval of parse-skill-flags.py: one process fewer per skill start and no eval of script output, with the same owner-safe stale-contract clear and keep sentinel. /foundry:manage and /foundry:profile drop eval too and read their flags from per-session sentinels. parse-skill-flags.py gains --keep-state <prefix>, --out-file and --inlined (synced from oss).
resolve_shared_path.py fixes:
resolve_shared_path.py's last-resort source-tree tier now uses a cwd-relative plugins/<dir>/<subdir> only when the working directory is that plugin's own source repository (plugins/<dir>/.claude-plugin/plugin.json names the requested plugin). Otherwise the tier is skipped and the CLI exits 1 with a ! message naming the refused tree, so a repository under analysis can no longer supply the shared docs that foundry loads via load_shared_doc.py or a sibling plugin loads via its own copy.
resolve_shared_path.py no longer executes a plugins/<dir>/bin/get_plugin_install_path.py found in the working directory: with CLAUDE_PLUGIN_ROOT unset and no cached copy it runs the helper shipped beside itself, so a repository checked out for review cannot plant code that runs during path resolution. The registry lookup reads <home>/.claude/plugins/installed_plugins.json explicitly and ignores a recorded installPath outside ~/.claude/plugins/cache/borda-ai-rig, falling back to the cache scan.
heal_git_artifacts.py worktrees no longer deletes unregistered directories (orphans) by default: they are reported with a hint and removed only with the new --include-orphans, after a fresh re-check right before deletion (still unregistered, git worktree list answering, untouched since the sweep, no uncommitted work in its own .git). Symlinked children are reported as skipped instead of silently dropped from the report, and --managed-prefix rejects * (exit 2), so one sweep can no longer claim every child of a directory.
bin/plugin_layout.py prints each plugin's manifest-declared skills and agents directories, and --local audits glob those instead of a fixed */skills/*/SKILL.md, so a plugin that renames its skills directory (for example claude-skills/) is no longer silently skipped.
Skills that run inline in the main session (humanizer, investigate, profile, session, setup) no longer set model:, which only applies with context: fork. The efficiency audit flags an inline skill that sets one, and humanizer leaves the haiku ceiling row and the isolation-spawn examples in the rules.
check_bash_persistence.py no longer misses cross-block variable references (Checks 41 and 43), also scans modes/ files, and an explicit --scan-dir with no match no longer falls back to the current directory.
/foundry:calibrate accepts claude-skills targets, passes model= for --local targets, records severity_assigned[], adds a pace gate and ledger, and persists TIMESTAMP in apply mode; interactive skills (create, brainstorm, manage create) are excluded from the skill domain table. /foundry:create splits its first question. /foundry:brainstorm reviews its Step 5 output through foundry:challenger, caps D2 at 4, and keeps /develop:* and /foundry:manage out of its B3 invocations. /foundry:distill external mode reviews before writing, and --project defaults to the current project only.
quality-stack.md fixes:
quality-stack.md reads its shared directory from the qs-shared-dir-${CSID} sentinel and stops with BLOCKED when it is missing; it also recognises uv.lock, poetry and pre-commit setups, treats MYPY as advisory, and spawns the Cycle 1 agents directly. perf-optimizer checkpoints with git stash create; sw-engineer routes pre-commit work and doc-scribe carries a NOT-for clause; solution-architect and creator fall back to a needs_decision envelope; challenger gets the Skill tool and a security scope.
quality-stack.md: when doctests run as a separate pass (their collection failed, so they could not join the main run), a failing doctest now halts the quality stack with GENUINE FAILURE, and any other non-zero pytest exit except 5 halts with CONFIG ERROR. Before, that exit code was recorded and never read, so failing doctests were reported as not-merged and the run continued. Exit 5 (no doctests in the module) still passes.
! BREAKING: resolve_skill_subdir.py resolves the project-local tier only with --local, so /foundry:manage create no longer sees .claude/skills overrides.
bin/ helper changes:
Bin hardening: sentinel and state writes are atomic and link-safe (extract-keep-flag.py also takes --inlined and skips a contract owned by another session), jq_write.py exits 3 on an unlisted flag, write_skill_contract.py rejects a multi-line value, find-polluter.py exits 1 on a timeout or an option-shaped test id, check_bridge.py accepts only allow-listed marketplaces, heal_git_artifacts.py rejects a --pattern that is not a bare file-name glob and keeps a worktree with an unreadable status out of the removable tier, and resolve_shared_path.py rejects SUBDIR traversal and reads its own name from plugin.json. purge_plugin_cache.py deletes nothing when the registry is unusable, resolve_agent_file.py rejects path components, compact_gate.py rejects a wildcard session id, symlink_with_guard.py rejects a degenerate marker or a source link leaving the plugin root, check_codemap_guard.py reads its MANIFEST with ast.literal_eval instead of importing the file, and verify_blueprint_audit.py survives a deeply nested record.
merge_settings_permissions.py merges the shipped permissions in the order they were written (no re-sort) and writes through a symlinked settings.json. The blueprint allow manifest drops 18 mutating command idioms, so those blocks prompt again instead of auto-allowing.
load_shared_doc.py --optional prints a one-line warning and exits 0 when the plugin, subdir or file is missing, instead of ! BREAKING and exit 1; the audit codex pre-pass and the Step 6 cross-validation load use it in place of an inline [ -f ] || warn block.
New compaction_boundary.py runs the compaction contract resolve and gate as one call, finds the contract relative to its own plugin so an installed plugin works from any directory, and times out its child processes; it is propagated to develop and oss.
New codemap_changed_modules.py lists the codemap modules touched by the current diff from git diff -z, so a path git quotes or one with a comma now resolves; challenger, doc-scribe, perf-optimizer, qa-specialist, solution-architect and sw-engineer call it instead of an inline pipeline.
extract_code_blocks.py now finds fences inside blockquotes: it strips the opener's quote depth from content and close lines and skips a block whose quote ends before the close, so blockquoted fences that were missed before are now found.
jq_write.py accepts --slurpfile <name> <file> (source confined to the working directory, TMPDIR or ~/.claude) and writes settings*.json directly under ~/.claude, so /foundry:setup no longer needs an unchecked jq … > tmp && mv write-back. list_audit_files.py --paths-only -0 prints NUL-separated paths for xargs -0.
/foundry:manage Step 4 (create, rename, content-edit, delete, perm) and /foundry:calibrate Step 6 (apply) moved into modes/ files loaded on demand, so a run reads only the mode it uses. Duplicated rules in manage, calibrate, distill, profile, investigate and brainstorm are stated once.
Blueprint manifest and hook danger checks:
build_blueprint_manifest.py admits an entry to blueprint-manifest.json only when every command it runs passes a fail-closed allowlist. An unknown command word (ln, perl, strace, an unlisted CLI) keeps the block out, so it prompts, while the reviewed shapes shipped skills rely on stay auto-allowed: read-only utilities, plugin python scripts, python -c with fixed code, eval "$RUNNER …" whose runner the same block reads from the skill's own sentinel or sets to a literal, sourcing or unlinking a session state file, cp, tee, mv "$F" "$F.done" consume-marker renames, mv (plain or -f) between two session state paths that name no variable except TMPDIR, CSID or one the block sets from its own state (so .temp/$DEST with an outside value still prompts), and wrappers whose wrapped command passes. On the same tree cc_foundry keeps 1292 of the 1336 entries the previous gate admitted. The blocks left out are the perf-optimizergit restore checkpoint revert, the /foundry:setup loop that unlinks and re-links files in ~/.claude/rules, and documentation examples (uv tool install, strace, uv pip, placeholder <script>.sh blocks).
The blueprint hook's danger re-check (blueprint-allow.js) and the generator's is_dangerous now see a command hidden behind a case arm label or inside a function definition, so case x in a) rm -rf /;; esac and f() { rm -rf x; } are refused even on a manifest hit. Before, the label or the f() word was read as the command and the rm passed. New shared cross-language vectors pin both languages to the same verdicts.
Runs on PostToolBatch instead of guessing parallelism from a 1.5 s gap between PreToolUse calls. The batch size is read directly, so a slow tool or a fast model turn no longer counts as a missed batch. The reminder is injected as additionalContext instead of PostToolUse exit 2 stderr, node starts once per batch instead of twice per tool call, and the reminder cites foundry-claude-config.md §Turn Batching, which exists, instead of a missing CLAUDE.md section. Verified on Claude Code 2.1.304; the docs give no minimum version, and a build without the event leaves the nudge inactive.
Keeps one streak per agent (agent_id). Subagents share the session id, so their single calls used to add up and nudge the wrong agent. A user turn resets only the main agent's streak. A subagent's file, agent-<agent_id>.json (so an id of main never touches the main agent's streak), is deleted on SubagentStart (spawn, resume, a teammate handling a new message) and on SubagentStop, so no streak carries into the agent's next turn and finished agents leave no file. A failed state write removes its temp file.
Counts a Bash call only when it is provably read-only, so git add → commit → push no longer draws a "batch these" reminder. Every character must be a letter, digit, space, tab or one of _./=:@%,+-. Quotes, escapes, braces, parentheses, $ and globs let the shell rewrite words or run code after the check (find . "-delete", find . {-delete,-print}, git log -1 ${IFS}--output=x, zsh cat =(touch x)), so such commands are not counted. Within that, git counts only for log/status/diff/show/rev-parse/ls-files/blame without --output, and find only without -delete/-exec/write actions. Strict on purpose: 2>/dev/null, git -C <path>, pipes and find -name '*.py' are not counted.
write-guard.js stops asking on every edit to a new file. A tracked file never asks now, .claude/settings*.json and .pre-commit-config.yaml included, and an untracked or gitignored file asks only for CLAUDE.md, AGENTS.md, .claude/settings.json, .claude/settings.local.json, .pre-commit-config.yaml and pyproject.toml. .github/** (scripts such as .github/scripts/action_runner.py as well as workflows), CHANGELOG.md and dependency lockfiles left the protected set: a new file there is untracked by nature, so each edit of work the user had just requested prompted again and protected nothing. A protected file that does not exist yet asks once on creation and is recorded per session; later writes to it in that session pass, while a file that already existed untracked keeps asking.
Masks credentials before writing to ~/.claude/logs: NAME=value env assignments (leading, after export/env/&&), credential-named assignments, --token/--password flags, JSON credential fields, URL credentials, Bearer/Basic values and well-known token prefixes (ghp_, github_pat_, glpat-, npm_, sk-, xox*-, AKIA, eyJ and others), in Bash commands, agent prompts, last assistant messages, Skill arguments and the generic tool summary. Control, zero-width and directional characters are stripped. Paths and desc=, skill=, type= values stay intact because sessionEditedFiles and timing_analyzer.py parse them.
Creates the log directory 0700 and log files 0600, and tightens a pre-existing one (owned by the user, not a symlink) the same way.
File-handoff protocol: a tool or permission denial that blocked part of a task returns done_with_concerns with the denied tool named in summary, never done; the denied call or a bypass of it is not re-run (restructuring to an already-allowed form is fine), and error is used when nothing completed.
The compaction boundary gate no longer holds a skill run. When compacting would pay off, compact_gate.py now prints advise: the skill starts its next phase right away and shows the /compact hint at the next point where its turn ends anyway (after a spawn, or in the next question). The old hold-and-wait behaviour is opt-in through FOUNDRY_COMPACT_GATE=stop, which prints stop. A timed wait is not offered because a Claude Code turn cannot resume on a timer.
The /compact hint is one fixed short line, /compact keep: skill contract .temp/state/skill-contract.md, in its own code block. The old line copied the contract's next: text and ran to about 1,400 characters; a terminal copy wrapped it, and Claude Code turned the paste into a pasted-text block that never ran as a command. The PreCompact and SessionStart hooks already carry the full contract, so the gate no longer echoes it after the decision line.
Rules now require that a baseline claim ("pre-existing on HEAD") names its tree and runs with explicit paths; a new check is classified as behaviour (pytest) or bookkeeping (pre-commit hook); mutation checks run on a copy outside the repository; an option that widens a grant is read before it is marked recommended; commit messages name behaviour in plain words, never a skill's internal step label; reviewer briefs that run adversarial shell cases require case files written with a file-editing tool and fake gh/git binaries.
write-guard.js no longer asks before writing a protected file that git already tracks (CLAUDE.md, AGENTS.md, CHANGELOG.md, .github/**, pyproject.toml and the rest): every such write is diffable and revertible, and the hook's ask could not be remembered, so each edit prompted again. Untracked, new and gitignored protected files, such as .claude/settings.local.json, still ask, and .claude/settings*.json and .pre-commit-config.yaml always ask because they take effect before any diff review.
The global self-improvement loop folds a correction into the project-owned rule, skill or agent file that governs it instead of a lessons file; .notes/lessons.md stays a legacy input of /foundry:distill.
Select fixed context-composition fixture sessions explicitly so rendering tests remain valid after the checkout ages beyond the default 24-hour usage window.
Recognize literal dictionary-key version assignments in continuity checks, preserving existing schema baselines while rejecting skipped versions.
Keep review coverage and confidence gaps as factual limitations; require a specific user decision for additional review and omit declined requests from findings and final actions.
Make the git-approve, git-push and gh-write questions readable: the first line states the ask (commit, push or write target), one blank line follows, then short fact lines; what each answer does moves into the one-line option descriptions instead of repeating in the question body. The Approve always description names what the grant never covers (push, force, history rewrite, discarding work, deleting unique history, auth changes). The git-push and gh-writeApprove descriptions keep the token terms (15-minute validity; gh-write also re-hashes the files the command reads). Branch, command span and grant-file requirements for the approval hook are unchanged.
Cross-validation protocol: state that aggregate readiness: complete requires every assessment readiness: complete and an empty open_concerns; one blocked or incomplete assessment makes the aggregate blocked or incomplete, and a missing required role or a null candidate makes it incomplete, overriding blocked, also under a null aggregate outcome. Resolver intake already enforced this; the protocol now says it.
State the adversarial-loop progress table in the always-loaded quality-gates rule: after each validated round, print exactly the Iteration | Critical | High | Medium | Low | Nits | Weighted score table with all rows kept and each cell as old + new. The format lived only in the lazily read full rule, and a live loop report replaced it with a reduced table.
Add a no-restating rule to the question-text guidance: a question never repeats rows, items or findings that the last printed text already shows or that its own options carry.
Clarify the version-one review publication in the cross-validation protocol: string-array evidence and limits, open concerns only for UNVERIFIED or pending candidates, no complete readiness beside an open candidate.
Show reviewer roles without execution provenance and render ratings in square brackets, keeping provenance in evidence and limits. Update the shared protocol and Foundry README to match.
Register Develop’s historical index-directory configuration note as documentation so the Codemap guard check accepts the changelog while retaining executable guard checks.
Add a boundary gate that checks calls-ahead and current context against estimated rebuild cost, verifies the owned skill-contract digest, attempts to log each decision, and prints the contract only when compaction is warranted.
Extend skill-contract metadata with validated gate parameters and a session-scoped ownership stamp; save verified contracts at PreCompact and restore them after compaction.
Adopt explicit compaction boundaries in phased workflows, with a safe continuation fallback when Foundry is unavailable and phase-specific preservation of reports and state.
Add Claude and Codex context-composition reports, including usage deduplication and compaction detection; harden transcript parsing and token bounds in the cost analyzer.
Build edited-file context from session timings, including MultiEdit and NotebookEdit, instead of relying on a truncated transcript tail.
Require follow-up questions to name the report path and key outcome fields within the text budget; move concise plans and decision context into question text while retaining full report headers for final replies.
Clarify compaction authority, question formatting, and approval scope in Foundry rules and CLAUDE.src.md.
Require parent validation of review candidates at every severity before publishing actionable findings, retaining the source revision, contract, trigger, checks, counterevidence, environment, limits, and disposition.
Separate source judgment from verification readiness; distinguish confirmed, refuted, already-fixed, optional, unfinished, and unavailable concerns, and preserve unresolved obligations with an owner and closure condition.
Version the review ratings and finding records while preserving historical meanings and archive readers; reject incompatible current consumers and partial contract downgrades.
Carry validation identity and retained evidence through report merging, dispatch, remediation, and late-wave checks; reuse proof only while it still applies, and keep a rejected repair separate from refuting the underlying defect.
Align Foundry shared protocols and README guidance with the cross-plugin review contract.
Guard gh writes with gh-write-guard.js: exact writes require a user-approved single-use grant, and force updates remain denied even with a grant.
Add approval provenance through approval-guard.js and grant records: standing approval applies only to plain local commits; pushes and GitHub writes consume one-use grants, with self-grant attempts rejected.
Generalize the shell Git lexer for Bash and Zsh invocation differences, and use it when checking commit-guard push commands.
Add an optional GitHub-read lane to allow dispatch and allow audit verification to accept two- or three-lane verdicts.
Show report headers, plans, findings, trees, and queues once as option previews, moving oversized output to a named file and unknown-flag or blocker prompts into the question text.
Make foundry:sw-engineer spawns choose worktree isolation at the call site; update distill execution clusters to transplant each worktree patch and keep management scaffolds in the caller's tree.
Add rule-inject.js to load spawn and commit rules lazily after the first matching tool call, including failed calls and compacted sessions.
Deny git push --force-if-includes and git push --mirror as explicit backstops, and update Foundry's commit permission guidance.
Resolve the current Haiku model at runtime with a 24-hour cache and fallback; disable thinking, raise its token allowance, and report resolver failures instead of treating them as an empty result.
Put compact and repeated-failure guidance in the actual follow-up question, and update the model-window and cache-write guidance.
Ground completion claims in cited source evidence and a representative real case; retain the real-case check through investigation, implementation, and verification.
Wait briefly for transcript flush before rejecting a just-printed report header; explain visible-text failures and permit one identical follow-up retry without printing the table again.
Make audit and profile delivery hooks check the current report at both the follow-up question and turn end; keep diagnostic and recovery questions available when delivery evidence is missing.
Standardize confidence gaps as per-gap deductions that sum to the reported shortfall, including in calibration prompts and report templates.
Add POSIX and native-Windows python launchers that select an eligible Python 3.10+ runtime, preserve workload arguments and exit status, and leave a real python earlier on PATH in control.
Add a SessionStart rule check that detects missing setup-created foundry-<name>.md links, names the rule files to load, and injects the commit rule so an incomplete setup does not silently omit commit policy.
Route registered hooks through Node.js from PATH or supported fixed locations, then exit cleanly when no Node runtime is available.
Require co-author trailers to replace host-default attribution, with Codex attribution when Codex shaped the work and Claude attribution when Claude shaped the diff.
Continue independent review-and-fix cycles while the same-scope nonnegative integer score strictly decreases; stop on a plateau, increase, lost authority, or exhausted caller budget, with no arbitrary three-review cap.
Clarify evidence and contract handling in Foundry quality gates and the audit workflow, and make the strict-decrease rule visible in the quality-gate example.
Make audit and calibration histories append-only through append_ledger.py: stage audit findings in .rec files and append calibration's per-target result files with --from, preserving prior history and avoiding duplicate legacy migration.
Run isolation-motivated agent spawns regardless of task size, while retaining the ordinary budget rules for other spawns.
Replace agent-wait polling with per-agent deadlines armed at spawn and checked on each wake; mark a missed deadline or notification without output timed out immediately.
Warn at SessionStart when the loaded Foundry plugin root is marked orphaned or differs from the installed path, and tell the user to restart without blocking the session.
At SessionEnd, sweep only registered idle agent-* and oss-* worktrees; retain dirty trees, ignored run output, other prefixes, and orphan directories.
Shorten report template fields while keeping authoring guidance outside the completed report.
Add a Foundry notebook-authoring rule covering notebook narrative, cell boundaries, plotting, and shell usage; propagate the canonical shared style to the plugin.
Persist shared quality-stack variables across Bash blocks so batch mode and shell-variable checks use the intended values.
Probe xdist for wide runs while keeping diagnostic retries serial; check collection before folding doctests into pytest, classify doctest assertion failures as genuine, quote failed node IDs through eval, and explicitly report the degraded unmerged doctest path.
Split oversized Foundry bin helpers into smaller functions with maintainer-facing main() docstrings, improving navigation without changing their command contracts.
Strengthen producer-to-consumer evidence checks and validate host-manifest agreement and changed shipped version or schema continuity against committed HEAD; reject skipped or downgraded values, removed tracked manifests, and ambiguous unsupported selections.
Set model-specific spawn ceilings and use them to batch Foundry audit and adversarial waves.
Harden Foundry path utilities against destination overwrite, command injection, and traversal; bound file sizes and make hook-registry matching literal rather than regex-based.
Bound independent review to three rounds including baseline, show the cumulative table once after each validated round, and require a parent action record for every unresolved finding.
Show the full cumulative old/new findings table after each validated review round, preserving previous rows and excluding verified-fixed and rejected findings.
Tighten Foundry's Codemap consumer contract: reuse only matching fresh answers, check query completeness, cap supplementary queries, and keep direct source reads available when Codemap is absent or incomplete.
Add the short and detailed native-question guides to Foundry's propagation manifest so independently installed Codex-facing plugins can ship synchronized copies.
Gate audit and profile follow-ups on saved report evidence and current-turn delivery of the required summary or matching header table; keep diagnostic and recovery questions available.
Resolve the active Codemap provider's shared gates and context at runtime instead of shipping stale copies; degrade to Foundry's fallback when the optional provider is absent.
Set a 15-second timeout on SessionEnd task-log and audit-close hooks.
Update SessionEnd retention for PR-scoped numbered OSS review runs: expire individual runs after thirty days and remove empty PR parents while retaining legacy flat-run handling.
Extend Foundry audit and adversarial guidance to check producer-consumer handoffs and ordinary user actions, keeping evidence and authority gates active across the whole route.
Require each agent task to begin with a distinct delta-first name, description, and task-leading line; check duplicate slots and follow the live tool fields rather than stale examples.
Replace Foundry skill flag parsing based on Bash-only regex capture and ad hoc text matching with shared argument parsers that work under Zsh as well as Bash.
Add severity-weighted independent review and remediation loops with an original default cap of three iterations. Use score ratios to continue or stop; stop on structural findings or repeated failure signatures, and block completion or commits while security or critical findings remain open.
Replace synchronous or polling assumptions with background-spawn, end-turn, and completion-notification handling; preserve missing-output timeout reporting, update audit checks for the background contract.
Extract repeated Foundry skill shell blocks into Python helpers while leaving judgment steps, agent prompts, and output templates in the skills.
Fix install-state detection for Claude's nested installed-plugin registry shape, and let investigation contracts record tried and probed candidates for safe post-compaction resume.
Unify auto-allow decisions under ranked provenance and shape dispatch; append decision and completion audit records, and add canonical record hashing with verify/prune commands. Logs are not tamper-evident. Verification exits 1 for record-hash mismatch, while framing and schema findings remain warnings; unusable inputs exit 2.
Use ASCII status labels for success, no-op propagation, and orphan warnings so Foundry CLI output works on legacy Windows consoles.
Expand maintainer-facing contracts and executable examples for Foundry Python helpers, including bridge checks, resolver-site classification, cost analysis, and timing analysis.
Add severity/fix requirements and precision discipline across foundry agents (challenger, creator, curator, doc-scribe, solution-architect, sw-engineer, web-explorer) so every finding states severity, cites a named criterion, and speculative items are labelled rather than dropped
debugging.md (+_full): forbid dispatching foundry:challenger as subagent_type fork; challenger gets diff+symptom+spec only, no implementer reasoning trail
Stop after the same failure signature twice rather than exhausting the iteration cap; keep approved plans read-only during implementation unless the user explicitly authorizes revision.
Define spawn discipline in Foundry configuration: use work-displacement spawns only when expected work exceeds their overhead, while preserving isolation-motivated review and role spawns.
Propagate Foundry-owned quality-stack and cross-validation guidance into consumer plugins as namespaced files, with shared-file checks preventing drift.
Replace Foundry's legacy Codex rescue integration with explicit bridge implement, advise, and review calls, including unavailable and disabled behavior.
Resolve the active plugin registry's nested structure, distribute Foundry's availability detector to each independent consumer, and add an audit utility that compares local Bash transcripts with installed blueprint manifests.
Document Foundry's consumer-owned skills/_shared/codemap-context.md as the host for the v2 integration body, retaining v1 sentinels and read-only integration audit. It ships without a managed block until integration applies it.
Close sentinel-read auto-allow bypasses by rejecting unsafe shell functions, traversal, write redirection, and loader or lookup assignments; retain only validated read forms.
Add heal_git_artifacts.py to safely recover stale skill locks and orphaned Git worktrees, and propagate its canonical Foundry implementation through the shared-file manifest.
Anchor Foundry Codemap context and query paths at the repository root, and provide canonical consumer guidance plus audit checks for declared provider routes and CLI flags.
foundry:session becomes one inline skill with six modes — dump, recall, list, park, sweep, drop; park/sweep/drop are new, replacing the behavioural parking rule that only ever loaded on invocation and so never fired
hooks/carryover-restore.js renamed session-restore.js; store path, injection banner and the oversized-doc pointer now read /foundry:session recall <slug>; hooks.json SessionStart command updated
rules/compaction.md manual-sibling note, rules/foundry-config.md log table, and distill's slug-divergence guard no longer name removed skills or logs; calibrate/modes/skills.md had the same skill listed twice, bare and plugin-prefixed — the bare row is gone
README rows, mode listings, hook description, skill-directory count and test table synced in both plugins/cc_foundry/README.md and .claude/README.md; version 0.45.0 to 0.46.0
Compress duplicated bin-authoring gate wording across Foundry manage spawn prompts.
Replace the estimated compaction break-even with measured session observations.
Convert two Foundry audit/calibrate loader sites to the appropriate resolver calls; require Python variable documentation in #: comments where a docstring cannot bind.
Add an agent-budget note to Foundry spawn sites: account for fixed spawn overhead, avoid work-displacement spawns below break-even, and require partial results when an agent exhausts its call budget.
Extract Foundry's shared-document and mode loaders into Python bin helpers, replacing repeated resolve-then-cat blocks in skill bodies.
Bound supplementary Codemap queries to three and stop enumeration after a complete result while preserving required source reads; budget spawns and require honest partial-output envelopes.
Move subagent-type telemetry evidence and a worked failure example into rules/_full/CLAUDE-full.md, leaving the mandatory rule in the always-loaded stub.
Require evidence before factual claims and explicit disclosure when verification is unavailable; move worked rule detail to on-demand _full files while retaining mandatory stubs.
Move agent supplemental references into references/; re-key agent records so SubagentStop removes them, use separate worktree and non-worktree age limits, and strengthen audit Bash-correctness and efficiency checks.
Install Foundry rules under namespaced foundry-<name>.md links and migrate legacy links during setup.
Adopt a destination only when its target resolves within this Foundry install or its matching marketplace lineage; preserve links into other plugins, checkouts, or dotfiles as conflicts.
Give each plugin its own shared-file resolver and remove Foundry-path reach-ins from consumer workflows, so installed siblings can operate independently.
Add an orphaned-plugin-cache cleanup helper that reports by default and supports guarded explicit apply. Setup passes the displayed candidate count and aborts cleanup if that count changes.
foundry:audit — enforce-audit-header.js; also adds the report.md Write step Step 11 was missing entirely (Path: field pointed at a file nothing ever created); gates on summary.jsonl instead of report.md since report.md is written after the gate fires
foundry:profile — enforce-profile-header.js; parses REPORT_DIR out of the Step 1 KEY=VALUE state file
Add a Bash pre-tool hook that auto-allows only validated read-only sentinel and timestamp command substitutions; unsafe shell forms continue through normal permission checks.
Document the safe sentinel-read form and scope it to the active session and temporary directory.
Scope temporary sentinels to the current Claude session to prevent collisions across sessions and projects; move skill contracts and logs to their intended writable locations.
Replace emoji confidence bars with distinct plain fit and conf scores, add runtime-state write/delete permissions, and put unique task labels before spawn boilerplate.
Update the Foundry README rule table to match the confidence display.
fixes headless block: sync.sh runs claude --print /foundry:setup --approve, where a Write-tool permission prompt on ~/.claude/settings.json cannot be approved and hangs; in-bash writeback needs no tool prompt
Require code-touching agents to check declared dependency APIs before adding utilities and verify public symbols from the installed library rather than relying on memory.
Restrict the hook to push approval: force-push remains blocked, regular push needs a user-armed one-use token, and commits use the prompt authorization rule.
foundry: calibrate now confirms via AskUserQuestion before large fan-outs — mode-category scopes (all/agents/skills/plugins) always confirm since exact spawn count isn't knowable until Step 2; narrow scopes confirm past a 50-spawn threshold; --apply alone no longer bypasses this gate, only --skip-gate does
foundry: extract audit SKILL.md Steps 4/5/5b/7 into modes/steps-4-5-7.md (52KB to 37.8KB force-loaded on every invocation)
foundry: extract sw-engineer.md packaging/API-stability guidance into packaging-patterns.md, mirroring the existing hook-authoring.md pattern
Add explicit compaction checkpoints and preserve contracts to Foundry's phased workflows, with per-skill checkpoint data, optional keep-items, and cleanup on completion.
Layer 2 (judgment by domain): audit Step 3 now groups all of a plugin's files into one holistic foundry:curator for plugin scope, so cross-file breaks (tool-grant mismatch, contract splits, dead dispatch) that per-file batching misses get caught.
manage: /foundry:calibrate mandatory only on routing-surface (description/trigger) changes, not every content edit
Remove Foundry's redundant preflight-helper load, prune repeated deterministic curator checks and unused color metadata, and correct README and hook paths.
Add state.py set, load, and clear namespaces to persist small shell values across independent Bash calls.
Replace RTK command-prefix allowlisting with positive read-only checks for guarded commands; compound shell commands and unproven commands now pass to the normal permission matcher.
Add GitHub API mutation deny entries as defense in depth.
Use the most common case as the default shape for test-data factories, prefer plain functions for pure factory data, and flag newly duplicated code blocks across files.
Rename distill lessons mode to memory; process all projects by default, support an interactive project picker, and parallelize multi-project analysis and curator writes.
Centralize validated installed-root resolution, retain background agent tracking after dispatch, and introduce health-sentinel boilerplate plus an audit fix hierarchy.
Extract brainstorm breakdown into a mode file and include required descriptions when the agent router rewrites rerouted tool input.
foundry curator + audit: curator.md step 7 in §Code Block Authoring adds bash compression as P3 flag — multi-line if/fi with single body → &&/|| one-liner, _rc capture only when format string contains %d, ;-joined sequential single-assignment lines, WHY-only comment rule; audit/SKILL.md adds verbose-bash-block to PARALLEL_SAFE_CATEGORIES so compression fixes can run in parallel without cross-file reads
Add source-grounding rules to Foundry agent cards: verify behavioral claims against source or tests instead of memory or inference.
Register Codemap blast-radius calibration and identify it as the calibratable subtask of development workflows.
Print report YAML metadata first and exempt it from decorative boxes; offer a challenger review after substantive manage changes, with explicit trivial-edit and mode exemptions.
foundry/skills/brainstorm/SKILL.md — AQQ ≤4 cap compliance: branch selection via free-text reply, tree ops as category-picker with follow-up AQQ per category
plugins/CLAUDE.md — markdown annotation rule: > for prose comments in plugin .md files; # only inside code fences
Require both an architectural and a visual-domain signal before applying the CV/ML documentation checklist, and make architecture discovery language aware.
Persist brainstorm viewer state across Bash calls and prevent create outlines from overwriting existing files.
Harden native-Windows path serialization and containment, reject POSIX absolute paths during run-directory validation, handle home-directory fallback, and prevent duplicate feature dispatch for the same brainstorm specification.
Rename /foundry:init to /foundry:setup and update Foundry skill references.
Collect non-auto-fixable audit decisions before changes begin, add high-churn and recency guidance to commit review, and introduce a JSON writer plus health-sentinel updates.
Automatically arm the commit sentinel after an explicit user commit request; retain workflow and confirmation authorization, the separate default-branch question, and an independent authorization signal for push.
Add a registry-aware helper that resolves the active Foundry install path, plus root-cause debugging guidance and audit checks for executable boundaries and security risks.
Add extract_code_blocks.py and a bin-authoring guide for classifying fenced code and deciding when to extract scripts; use token estimates and explicit gate/score/verdict columns in audit Check 33.
Make audit Check 17 and efficiency Check 33 group code blocks by functional purpose, using syntactic similarity as a secondary signal; keep efficiency tables out of the base audit path.
Strengthen Foundry challenger findings with numbered, evidence-backed required changes; add calibration-only model-tier guidance and scaffold templates for skills and agents.
foundry:manage — plugin-prefixed invocations (/foundry:manage); jq replaces python3 for settings check; DIRECTIVE variable made explicit in content-edit mode
foundry:investigate — symptom/signals/hypothesis captured in bash vars before Codex spawn; inline Confidence block example; shell var refs replace literal placeholders in prompts
foundry:calibrate — graceful-exit protocol (safety-net result.jsonl on any crash/exit); CODEX_MODES variable fix; phase timeout hint injected into subagent prompts; Skill added to allowed-tools
Resolve the default branch dynamically and require its additional five-minute authorization sentinel alongside the ordinary fifteen-minute commit sentinel.
Reset statusline agent badges immediately on /clear; remove per-turn lock files and clean stale session directories without deleting live concurrent sessions.
Correct agent frontmatter names to unprefixed local names, quote skill argument hints for valid YAML, and register OSS analysis and release calibration targets.
Add a resilience rule that prevents a plugin's recovery mechanism from depending on the plugin it is meant to recover, and raise challenger and creator effort to xhigh.
Add a Codex cross-check to challenger with a --no-codex opt-out, convergence reporting, and surfaced failures; register Research verification cases for calibration.
Classify manage content edits as trivial or substantive before dispatch, and rename the CI guardian role to CI/CD steward throughout routing references.
Add a read-only, red-team challenger that tests plans and code across assumptions, missing cases, security, architecture, and complexity, then must attempt to refute each finding.
Add an external-resource mode to /distill that analyzes a plugin or skill from a URL or local path, compares it with the current setup, scores adoption candidates, and presents adopt, adapt, discuss, or skip choices.
Check for lesson conflicts before writing and show the resulting diff for review; start a fast calibration benchmark when the target has no prior run.
Deny sudo, SSH, world-writable permissions, and recursive force deletion in Foundry policy; add plugin audit checks for Bash correctness and dependency cycles.
Add a live browser tree viewer with JSON sidecar updates to brainstorm; require an approved design before implementation and distinguish rejected from resolved branches.
Add a screenshot of the brainstorm tree to the Foundry README.
Add a PreToolUse commit guard with a short-lived authorization sentinel and wire its lifecycle into /resolve; clarify report confidence templates and shared-file failure handling.
Make /foundry:audit converge through up to five fix and revalidation passes, report remaining findings when the cap is reached, and write per-pass cross-file validation results.
Establish plugins/foundry/ as the canonical distribution for agents, skills, hooks, and rules, with /foundry:init merging settings and linking or copying configuration into the host environment.
Move the team protocol, permissions guide, configuration, and shared rules into the plugin; replace former .claude/ files with links and remove duplicate permission and status-line configuration.
Namespace Foundry skill and agent dispatch references and repair broken setup links so the split plugin can resolve its own workflows and cross-plugin roles.