agentleFS
dustinkeetondustinkeeton/wafflestack/AGENTS.md

wafflestack

AGENTS.md2 starsChanged 3 months agoApache-2.0View on GitHub

Canonical, harness-neutral agent/skill definitions grouped into stacks; the wafflestack CLI renders them into harness-native files (.claude/, .codex/, .agents/) inside a consuming project. Rendered files are generated output — edit source (stacks/**, schema/**, installer/**), project config, or a project extension, never the rendered files. Comments in deterministic files (JS/YAML/shell) are orientation, not spec — rules live in code and behavior tests; agent-behavior rules live in skill/agent markdown, which is the program (DECISIONS.md 2026-07-15, #388). Entry points: installer/cli.mjs (bin wafflestack) · toolkit.yaml…

  • Reads credentials
  • Commits and pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All 51 (12 agents + 38 skills + 1 mod) are currently stable.

    line 52
  2. Very specific:

    Import graph (real import statements only.

    line 124

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — wafflestack

Canonical, harness-neutral agent/skill definitions grouped into stacks; the wafflestack CLI renders them into harness-native files (.claude/, .codex/, .agents/) inside a consuming project. Rendered files are generated output — edit source (stacks/**, schema/**, installer/**), project config, or a project extension, never the rendered files. Comments in deterministic files (JS/YAML/shell) are orientation, not spec — rules live in code and behavior tests; agent-behavior rules live in skill/agent markdown, which is the program (DECISIONS.md 2026-07-15, #388).

Entry points: installer/cli.mjs (bin wafflestack) · toolkit.yaml (stack registry) · stacks/registry.yaml (waffle registry) · schema/FORMAT.md (format reference).

Repository layout

toolkit.yaml               registry: name + ordered stack list
stacks/registry.yaml       WAFFLE registry (#335): one entry per agent/skill/mod — name, kind, stack, path, status (stable|wip|deprecated|replaced), replacedBy
stacks/<name>/
  stack.yaml               manifest: recommended, recommendedPlugins, agents, skills, files, mods, optIn, requires, prerequisites, config, constraints, env, setup
  agents/<name>.md         neutral agent def (YAML frontmatter + body)
  skills/<name>/SKILL.md   neutral skill def (+ supporting files, copied along)
  files/<repo-rel-path>    neutral syrup payload (CI workflow/script/config), rendered verbatim to that path
  mods/<name>/             Claude Code mod (plugin dir: .claude-plugin/plugin.json + hooks), rendered as `.claude/settings.json` entries (marketplace + `enabledPlugins`) for the claude target only (#560, #594) — no files; engine-laid `tsconfig.json` + `.claude-plugin/types/` are skipped at load (#564)
  evals/<name>.eval.yaml   Layer 2 behavioral eval case (metered; inert to render/validate/lock)
installer/cli.mjs          bin entry: dispatches commands, global --cwd flag
installer/evals.mjs        eval runner entry (`npm run evals`, metered — NOT in npm test)
installer/upstream.mjs     upstream-pin runner entry (`npm run upstream:check|upstream:bump`, live gh api — NOT in npm test)
installer/lib/*.mjs        render pipeline + eval harness (ES modules)
installer/test/*.test.mjs  node:test suite
installer/smoke/worktree-discovery.mjs  optional non-CI runtime smoke for prepared worktrees (needs installed `codex` + `claude`; `docs/worktree-setup.md`)
schema/FORMAT.md           format reference
schema/SETUP.md            agent install playbook
schema/AUTHORING-EXTERNAL-STACKS.md  third-party `source:` stack authoring guide
docs/                      design notes (gitignore.md, skills-vs-workflows.md, upgrades.md, worktree-setup.md) + two `worktree-smoke-<date>.json` smoke records
assets/                    brand assets + brand guide (assets/README.md)

Stack registry

toolkit.yaml lists 8 stacks (12 agents + 38 skills). Per-stack config schema, env, prerequisites, requires edges, and setup notes live in each stack.yaml (authoritative — this table summarizes).

stacks/registry.yaml is the WAFFLE registry (#335): one entry per agent/skill/mod — { name, kind: agent|skill|mod, stack, path, status: stable|wip|deprecated|replaced, replacedBy?, note? } (the mod kind landed in #560; its first live entry is waffle-view, #562). All 51 (12 agents + 38 skills + 1 mod) are currently stable. It is ENFORCED, not advisory: validateRegistry reconciles it against the filesystem AND every stack.yaml, so a rename/move/add cannot land without it (a rename is a three-part edit: files, stack.yaml, tombstone + new entry). wip waffles are gated out of every consumer-facing surface (resolveRef refuses, stack expansion skips, resolveAgentSkill drops, the setup inventory omits); a replaced tombstone FORWARDS a stale include: ref at render (warned) and upgrade rewrites it. Syrup (files/) and external (provenance-bearing) stacks are out of registry scope; an absent registry file = ungated, unenforced (a fork), a corrupt one = hard error.

StackPathAgentsSkillsPurpose
docs-systemstacks/docs-system/docs-agent, docs-humandocs-agent, docs-human, prose, md-maximalist, accurate, diagramTwo-audience doc system; doc-set shapes (docs.machineDocSet/Spec, docs.humanDocSet/Spec) are config. Protected-docs guardrail (#612): docs.protectedDocs (list, listFormat: code-bullets, 10-path default, stack.yaml:150; overriding replaces the list; [] = no section) feeds the generated docs.protectedDocsSection (omitWhenEmpty: docs.protectedDocs, stack.yaml:170), placed in BOTH writers — agents docs-agent/docs-human and their SKILL.mds (docs-agent had no guardrail before; replaces retired docs.voiceGuardrailSection). Writing-craft skills (#224): prose + md-maximalist granted to docs-human, accurate to docs-agent — split is orthogonal by audience (#299): accurate is deliberately NOT granted to docs-human. All three user-invocable (/prose, /md-maximalist, /accurate). One requires: edge: skills/prose → skills/md-maximalist. diagram (#471) is a proxy skill granted to docs-human: ordered providers (archify → Mermaid floor), detection at invocation, never self-installs; archify is the first shipped recommendedPlugins: entry, scoped items: [skills/diagram].
github-workflowstacks/github-workflow/(none)git-workflow, issue, github-project-management, github-project-board, clean-up, label-hook, hygiene, release, pr-responseGit / GitHub issue / Projects v2 / release workflow. github-project-management recipe "Link an existing issue to a parent epic" (#633): resolve both node IDs, query the child's current parent, then addSubIssue with header GraphQL-Features: sub_issues; an issue has at most one parent, replaceParent: true re-parents in one call (skills/github-project-management/SKILL.md:365-397). Ships 14 files/ payloads: waffle-doctor.yml (default render, read-only drift gate); 7 opt-in syrup workflows (waffle-label-hook, waffle-hygiene, waffle-release-hook, waffle-post-merge-hook, waffle-evals, waffle-pr-green-hook, waffle-pr-response-hook — each holds write permissions and/or spends API money, so enabling the stack never renders them; the four Claude-dispatch hooks label-hook/hygiene/pr-green-hook/pr-response-hook are { path, targets: [claude] } entries (#190, stack.yaml:13-23) — pruned for a codex/agents-dir-only consumer by the #364 gate; doctor/release/post-merge/evals + the templates are unscoped); and 6 default-render inert templates (#337: .github/ISSUE_TEMPLATE/{config,bug,feature,rough-idea}.yml, PULL_REQUEST_TEMPLATE.md, REVIEW_TEMPLATE.md — a template must never auto-apply labelHook.* labels, pinned by content.test.mjs). Every job that reads rendered resources (label-hook enrich/implement, hygiene, pr-green adversarial-review, pr-response) carries one byte-identical inline id: waffle-render step after its checkout (#615): no-op when every .claude/ path among the lock's files + settings keys (#… stripped) is present (only .claude/ is probed — the Claude-dispatch readers); else renders from the lock release pin, verified against the trusted base (doctor.toolkitRef minus #…) + git ls-remote tag, npx <base>#<tag-sha> render; null/unreleased pin → error, except the toolkit repo itself (base == github:$GITHUB_REPOSITORY) → npx <base>#<sha of doctor.toolkitRef's #ref, else HEAD> render --allow-unreleased (never the PR head's installer); every npx runs from an empty mktemp -d with --cwd "$PWD", npm_config_* unset and user/global npmrc pointed at an empty file, so a PR .npmrc is inert; every render passes --untrusted-config (renderProject({ untrustedConfig }): refuses any source: stack in waffle.yaml or the overlay, skips the prerequisite probe, refuses any write a committed symlink would carry outside the checkout (resolveWritableInside, #789); older releases reject the flag, failing closed with an upgrade hint naming the pin and v0.19.0); restores tracked files, adds new ones to .git/info/exclude. waffle-doctor exempt (the checker); release/post-merge/evals read no render. Pinned by workflow-render-step.test.mjs. 5 of the 7 opt-in workflows carry a files/-keyed requires: edge to a companion skill (label-hook→label-hook, hygiene→hygiene, release-hook→release, post-merge-hook→clean-up, pr-response-hook→pr-response; stack.yaml:78); waffle-pr-green-hook.yml and waffle-evals.yml have NO edge, so the setup playbook's #74 pairing note never names them. pr-response posts one append-only <!-- waffle-pr-response --> comment per round (#318); rubric v3 (Implement ≥11, #390; wording-only findings are nits, never Deferred, #682); the Implement threshold is strict (#794): nothing below it is implemented, the confirmed-blocker override is the only below-bar path, and a nit Implements only when its composite clears the bar, else Declines (skills/pr-response/SKILL.md:264-268, :279-281); the step-7 summary ends with the exact line implemented: blocker=<b> should-fix=<s> nit=<n>, classed by recorded Severity (3 blocker, 2 should-fix, 0–1 nit; :640-642), whose blocker + should-fix counts are the agent-mode convergence signal (:761-764); the Implement/Decline cutoffs render from prResponse.rubric.thresholds.{implement,decline} (defaults 11/4, range: 0–15, stack constraints: decline < implement, #630 slice 1); per-dimension weights render from prResponse.rubric.weights.{severity,reach,validity,effortRisk,alignment} (default 1, range: { min: 0 }, anyPositive constraint, #644) — composite 15 × Σ(wᵢ·sᵢ) / Σ(wᵢ·3) to one decimal, overrides on raw scores; per-run --rubric <key>=<n>,… token (#645: the seven leaf names, resolved in §1 before findings are read, validated merged-over-config with render's rules in a fixed 10-step order, whole-token fallback — attended asks, --yes/non-interactive falls back to config; footer `source: configrun override (--rubric …) over configconfig (--rubric ignored), skills/pr-response/SKILL.md:59-129, :617-622); autopilot forwards it to its responders (#646). A ## Fix branchblock in the invocation overrides §1'sgh pr checkoutand §5 items 1 and 6 (#733, #754): work only in the named worktree on the named branch cut from the PR head, open the PR the block specifies, report its number; reply andwaffle/pr-response status stay on the reviewed PR (skills/pr-response/SKILL.md:349). pr-green dedupes per green head via the waffle/adversarial-reviewcommit status; pr-response-hook bounds its loop withprResponse.responseLabelapplied BEFORE the paid dispatch (#338: no hook predicate reads a body). Target threading (#355): pr-green uploads awaffle-pr-target artifact ({pr_number, head_sha, head_ref, head_repo}, 7-day retention) before its harness — an unverified pointer, re-checked downstream (waffle-pr-green-hook.yml:96-116); pr-response-hook's resolve job (actions: readonly) reads it viagh run download <workflow_run.id>, shape-validates (jq -s: exactly one JSON object, else skip), fails closed; a failed download logs gh's flattened stderr, ::warning:: only when it is not the expected no-artifact case (#624) (waffle-pr-response-hook.yml:15-56); its gate re-verifies via pulls/{n} (open, default-branch base, head still the reviewed SHA, same-repo head) under a per-PR concurrency group (:61-63, :94-101), and the branch checkout is re-verified against that SHA before install (#623, :167-182); re-render both hooks together — without the artifact every run skips (stack.yaml:886-894). waffle-label-hook.yml (#544): enrich takes the dispatched issue URL as delivery evidence (:164-165), read-only gh calls (gh <noun> listview, gh api with no mutating method/body) classify SOFT in both jobs (:184-185, :459-460), and Bash(gh label list:) is on the enrich allowlist (:122). hygienetask 1 is a docs drift backstop (#586; per-PRpr-docsis the main docs path, #572): skips while an openchore/hygiene-docs-PR exists; diffsorigin/<default> since the last run (git rev-list -1 --first-parent --before=<window>, 25 hours agofor a daily cron); drops tests/fixtures,CHANGELOG.md, the docsskill's doc files and generated/lock output — nothing left → reportsno drift, spawns no agents; else runs docswith the remaining paths as focus; merges the latest default branch before push (never rebase), a conflict aborts and reportsskipped, the next run retries (skills/hygiene/SKILL.mdtask 1; setup notestack.yaml:461). Config: issue., labelHook., hygiene.{cron,claudeArgs,autoMerge}, release.{tagFormat,versionFiles}, prGreen., prResponse.(incl.prResponse.rubric.thresholds., #630, and prResponse.rubric.weights., #644), cleanUp.confirmGate, evals.{cron,maxCalls,model}, autoMerge.label, doctor.{toolkitRef,flags}—issue.confirmGate/prResponse.confirmGate/cleanUp.confirmGateare the first behavioral keys a skill reads (#487:default: true, modes: [true, false, prompt], flag: { on: "--confirm", off: "--yes" }, nonInteractive: false; the skills render {{key}}and{{key.flag.*}}); hygiene.autoMergeis the flag-less one (#488:default: true, modes: [true, false], no flag:/prompt— the hygiene skill's step 6 branches on{{hygiene.autoMerge}}; --executestaysclean_up.sh's switch behind cleanUp.confirmGate, no cleanUp.executekey) — label defaults moved to thewaffle: namespace in #451 (issue.inferenceLabel=waffle:needs-inference stack.yaml:1731, autoMerge.label=waffle:auto-merged stack.yaml:1968; the labelprerequisites and the renderedrough-idea.ymlfollow);issue.reassessLabel=waffle:reassess(#504,stack.yaml:1751) is a human-applied hold — the label-hookimplement path declines a reassess-labeled issue with a comment, theissueskill never adds or removes it, and orchestration re-declares the key with the same default the way both stacks shareautoMerge.label (kind: labelprerequisite scoped toissue+label-hook; the one automated adder is /waffle-report, upstream at filing (#609), and nothing removes it — pinned by content.test.mjs's mutator sweep, whose ADDERSallowlist exempts only the waffle-report skill (source + render) and its hold-labels eval from the add ban) — pindoctor.toolkitRefto a release tag BEFORE arming--verify-renderindoctor.flags` (#322).
code-qualitystacks/code-quality/(none)tdd, codebase-architecture, adversarial-review, qa, dryCross-cutting practice skills (#117; test command, tiers, module map are config). adversarial-review (#112): config-free hostile post-green PR review, auto-triggered by the pr-green hook (#180); --integration (#733) instead reviews an autopilot integration → main PR for decision preservation — inputs the run's merged PRs into <integ>, their linked issues, DECISIONS.md at the head, the combined diff; a finding must cite a DECISIONS.md heading or #PR (closes #I) plus a head file:line; no nit tier; always cold; replaces sections 2–4, sections 5–7 still apply (adversarial-review/SKILL.md:48). qa (#228): functional sibling — checks a green PR against the linked issue's intent, own <!-- waffle-qa --> marker, report-only, composed by autopilot's autopilot.qaLoop. Both skip seeding history from the PR on a deliberately cold spawn (autopilot's cold certification rounds and cap-escape evidence pass; qa/SKILL.md:368, adversarial-review/SKILL.md:357). dry (#116): de-duplication under rule-of-three guardrails.
orchestrationstacks/orchestration/project-manager, product-manager, task-plannerdelegate, autopilot, audit, docs, standup, pr-docsMulti-agent orchestration; sets env CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1. Roster + audit compliance are config. project-manager responsibility 7 (#633): group related open issues under an [epic] parent (existing, or filed via issue), linking each child as a native sub-issue via the github-project-management recipe below; nothing is linked until the user confirms the epic, children, and any re-parenting (agents/project-manager.md:26, :51). Ships 2 files/ payloads (#363): .claude/workflows/audit-stage-{1,2}.js — the /audit chain as staged Claude workflow scripts, both optIn: AND targets: [claude] (stack.yaml:10-17; the prose audit skill stays the everywhere fallback). delegate ships three dependency-free supporting files: checkpoint.mjs + checkpoint.schema.json (#105/#106, per-phase run checkpoint validator) and memory.mjs (#107, byte-capped curated run-memory gate). Config: delegate.{defaultScope,extraPreflight,checkpointDir,approveBeforePush,autoMerge,batchMode,docsRefresh,memoryFile,memoryMaxBytes} (checkpointDir/memoryFile defaults exercise depth-4 nested expansion; approveBeforePush/autoMerge/batchMode declare modes: [true, false] with no flag: — #488, declaration-only, render unchanged), autopilot.{autoMerge,planDir,qaLoop,maxQaRounds,reviewLoop,maxReviewRounds,auditStep,holdLabel,integration,waffleCmd,integrationChecks} (integration, #731, part of #720: modes: [true, false], default false, +integration/-integration, a routing mode config may set — cuts a per-run autopilot/integration/<UTC timestamp> branch from origin/main, retargets every run PR to it, defers Step 9 close/Done, runs integration gate stage 1 (#747: merge origin/main into autopilot/sync/<ts> in a gate worktree, resolve only a lock conflict and, #759, an additive-only CHANGELOG.md conflict via skills/autopilot/changelog-merge.mjs (exit 0 resolvable/resolved, 1 HOLD:, 2 error; #784/#803: an integ lead-in before its first bullet holds when it would follow a bullet main added or shares a line with main's differing lead-in, trailing whitespace ignored; #810: also when main's lead-in leaves the entry above), land it via a sync PR into <integ> armed only with +automerge; any stop holds the final PR as integration-held and posts one hold comment (#838: on the sync PR, else the run PR merged last into <integ>; gh pr comment --body-file, append-only, never an issue); #812: a run ending with a run PR open or merged and no final PR gets a stage 1 hand-off (a step 4–6 hold gives it beside its own resume, #817) of human-run commands — the human merges the sync PR, step 6's consent hold never applies (skills/autopilot/SKILL.md:192) — linked from the not-opened report, the run report and the failure bullet (:174, :702, :758); a steps 2–3 hold resumes by re-running stage 1 from step 1, not a straight gh pr create (:246); so do the step 4 fix-in-<integ> and steps 5–6 <integ>-moved resumes (#817)), ends with one integration → main PR <F>, and runs stage 2 on it (#733: rides review-loop consent, else stage 2: not run (review loop off); up to min(2, effective review cap) cold rounds of adversarial-review <F> --integration, responder respond-int-pr<F> gets a ## Fix branch block and lands fixes via an autopilot/stage2/<ts>-r<k> fix PR into <integ>, never a push; outcome passed / integration-held, and a cap reached with fixes still implemented holds; #838: a stage 2 hold files a holdLabel follow-up only for should-fix-or-above findings left untriaged or Declined, listing only those, else comments on <F> (a Defer is cited there by its pr-response issue, never re-filed); a stage 3 hold comments on <F> except the item 7 audit block; #754: the green wait ends on Step 8's blocked exits, a pass also needs a waffle/adversarial-review success status on <sha>, and the responder works in an orchestrator-cut autopilot-stage2-<ts> worktree, -r<k>-retry on a retry; #758: after each review the orchestrator lists pulls/<F>/reviews for one on <sha> by its own login since the round began whose body starts with the marker, writes a missing status itself, and holds when none matches), then stage 3 (#734: with +audit, the audit gate moves off each run PR to <F>, runs once over git diff origin/main...origin/<integ> in its own worktree with delegate.docsRefresh off per PR, lands fixes via an autopilot/stage3/<ts> fix PR into <integ>, and an unresolved Critical/High holds <F> as integration-held), then arms <F> (#735: only with +automerge, only when every enabled stage passed or was not run because its consent is off, no stage-2/stage-3 fix PR merged into <integ> (they merged unreviewed), <F>'s head equals origin/<integ> and the head stage 1 passed on, main has not moved since the sync (a pre-arm check; Step 8's wait ends on BEHIND after), no PR is open against <integ>, and, after a stage 2 pass, that head carries a waffle/adversarial-review success status; else not armed, for a human; waits by Step 8's blocked rule; before arming, on every path, rewrites <F>'s body to add a Closes #N for each issue a PR merged into <integ> names in its body's closing keywords that it lacks (#846: read from bodies, since closingIssuesReferences is empty off the default branch; fix and sync PRs carry none); after MERGED, Step 9 items 1–2 for every issue <F> closes — the union of its body, its closingIssuesReferences and every merged-into-<integ> PR whose merge commit <F>'s merged head contains (#846) — then deletes <integ> by a probe-verified git push origin --delete or reports it left open); waffleCmd, #747: CLI prefix, default npx --yes {{waffle.toolkitRef}} (#750: follows the value, through waffle.toolkitRef re-declared from the wafflestack stack with the same default); this repo sets env WAFFLESTACK_ALLOW_UNRELEASED=1 node installer/cli.mjs; integrationChecks, #748: listFormat: code-bullets, commands the gate runs on the synced head after the skills/autopilot/overwrites.mjs overwrite detector (exit 0 clean / 1 findings / 2 error; #752: it walks the remover's branch to the commit that dropped the line, and an ordinary commit whose parent holds the line and the adder's merge is a NOTE:, while a removal in a merge commit is a finding; --pr must be on --head's first-parent history, any order; --rebase --before/--after/--onto checks Step 3's pre-gate rebase, and a finding marks the PR rebase-held: never armed, or the final PR is held in integration mode; #779: a marker-query error on an armed or merged PR is not a rebase hold, skills/autopilot/SKILL.md:647), each must exit 0 or the final PR is held; default {{autopilot.waffleCmd}} doctor --allow-missing, this repo adds --verify-render and the comment-gate test), project.installCmd (#747: re-declared from github-workflow, same default/pattern, run in the gate worktree before render) (holdLabel default waffle:manual-review, autoMerge.label default waffle:auto-merged — #451, stack.yaml:873/:651), issue.reassessLabel (default waffle:reassess, stack.yaml:660 — #504: re-declared from github-workflow like autoMerge.label; delegate's Phase 1 list paths and autopilot's scope resolution exclude reassess-labeled issues and report the held-out count, an explicit #N stays actionable, and neither skill ever adds or removes the label), prResponse.rubric.{thresholds.{implement,decline},weights.*} + both constraints: (stack.yaml:675/:1016 — #646: re-declared from github-workflow so autopilot can validate a per-run --rubric <spec> merged over the rendered rubric before any work; malformed asks (attended) or stops (non-interactive), two different specs stop; forwarded verbatim as pr-response <pr> --yes --rubric <spec> on every Step 5/6 responder spawn incl. re-spawns/retries, never on a resume; per-run, never stored). pr-docs (#584, part of #572) refreshes docs on one open PR: merge latest base (never rebase) → git diff --name-only origin/<base>...HEAD → docs skill with those paths as focus (docs takes an optional focus argument) → commit + push onto the PR branch; no-op exit (no agents) when every path is tests / CHANGELOG.md / docs / generated output; ends with one `pr-docs: no-opup to daterefreshedstoppedline.delegate.docsRefresh (modes: [true, false], default true, stack.yaml:738) gates the caller; a hand /pr-docsignores it. Wiring (#585, delegate Phase 4 post-agent verification block): when on, the orchestrator runspr-docs <PR#>per verified PR after verification and before arming, on every path (single-issue, serial, parallel, batch); spawned agents skip self-arming and reportnot armed — pending docs refresh; arming (gh pr merge --auto --merge) waits until the PR's remote head equals the post-pr-docscommit; astoppedresult leaves the PR open-but-not-armed; skipped when autopilot's/auditstep covers the PR — autopilot forcesdelegate.docsRefresh off for its delegate run when its audit step (§4) is on (content.test.mjsblockdelegate and autopilot wire pr-docs before arming). autopilot(#100/#143) composes delegate (batchMode + per-run autoMerge consent, never sticky) into a per-issue plan→implement→PR loop with three opt-in gates in fixed order: QA (#228), review loop (#220), diff-scoped/audit(#221); can't-converge files anautopilot.holdLabelfollow-up. Hold-queue service level (#511): the Step 5/6 cap hatches (certification catch and errored-twice fallback included) file only should-fix and blocker findings; a fresh pass with no should-fix or blocker (clean or nits only) files nothing and is convergence evidence (converged-on-the-evidence-pass, #794), its nits listed in the run report as reported-not-filed (outcomecap-reached with a clean fresh pass (no follow-up — convergence evidence; any nits reported, not filed); skills/autopilot/SKILL.md:520, :596, :702); the Step 7 audit gate still files every unresolved Critical/High; every run report closes with the open holdLabelqueue (number, title, age) orhold queue: empty; no cadence/cron is wired (the hygiene cron is a paid dispatch). Loop convergence (#510): only a cold round (round 1, or a fresh unnamed certification reviewer after an anchored round implements 0 should-fix or blocker findings; the responder stays persistent) that implements 0 should-fix or blocker findings ends a QA/review loop (#794: nits applied that round land without restarting the count, pushed nits re-wait for green; counts read from pr-response's implemented:line, a missing or malformed line reads as not converged;skills/autopilot/SKILL.md:491, :559); integration stage 2 still passes only on 0 implemented (:284); every round, certification included, counts toward the cap; bound = cap+1 reviewer passes and at most cap pr-response passes per loop, 10 gate passes per PR per run at the default caps (skills/autopilot/SKILL.mdGuardrails). Caps are per-run, not per-PR, and never bound a manual/pr-response(#357).requires:edges: delegate→git-workflow+github-project-management+github-project-board, docs→docs-agent+docs-human, autopilot→delegate+clean-up+git-workflow+github-project-management+qa+adversarial-review+pr-response+audit+issue, audit→docs, pr-docs→docs+git-workflow,files/…/audit-stage-1.js→audit, files/…/audit-stage-2.js→audit+docs (stack.yaml:19-46). Prerequisites (stack.yaml:53-111): requiretool probes node/git/gh;recommendgh-auth scope, the three labels above, and twosettingchecks scoped to delegate+autopilot —allow-auto-merge(1 of 3) andrequired-status-check(#205: 2 and 3 of 3 — a required check on the default branch via branch protection or a ruleset, which on GitHub Free exists only for public repos; otherwisegh pr merge --autoleaves the PR open-but-not-armed), plusintegration-required-status-checkscoped to autopilot (#731: a ruleset requiring checks onautopilot/integration/**). Guardrails: never push main, never --admin`-merge, merge commits not squash.
engineering-teamstacks/engineering-team/lead-engineer, data-engineer, qa-engineer, devops-engineer, ux-designer, security-engineerwebapp-security-auditProduct-eng roster (browser-app security variant); lead-engineer is the general architect. Slots into orchestration's roster.
harness-architectstacks/harness-architect/harness-architect(none)Single domain agent — expert in agent harness design. One optional config key (project.longName). This repo appends a project extension grounding it in the toolkit's own paradigms.
wafflestackstacks/wafflestack/(none)waffle-init, waffle-setup, waffle-install, waffle-render, waffle-upgrade, waffle-doctor, waffle-eject, waffle-validate, waffle-report, waffle-toggle; mod: waffle-viewSelf-referential stack (#70): one user-invocable /waffle-* skill per CLI subcommand, each shelling out to npx <waffle.toolkitRef> <sub>. /waffle-report (#473) wraps report and files a toolkit bug UPSTREAM (target resolved from waffle.toolkitRef; bug/feature/rough-idea forms picked by structure, never wording (#674): a bug:/feature: prefix wins outright, else an Expected: or Actual: line → bug.yml, a Proposed Solution: line or heading → feature.yml, anything else → rough-idea.yml with the user's words verbatim (#642); no form invents a field the user did not give; redaction covers each line of pasted command output and the bare owner/repo of a remote; the reply never echoes a redacted value (category only); pinned by content.test.mjs #642 and #674 tests; post-redaction gate; no-auth URL fallback). Each filing requests the form label (set by gh issue create --label) plus two literal upstream labels, waffle:reassess (the hold) and waffle:consumer-report (provenance, #609), each added in its own tolerant `gh issue edit --add-label …echo "warn: …"call, then read back viagh issue view --json labels; the adds need triage/write access on the toolkit repo, so for most filers they fail with a warning, never a failed filing, and the client-side hold is best-effort; the URL fallback requests both via labels=, which GitHub drops without triage rights; a consumer's issue.reassessLabel does not apply (skills/waffle-report/SKILL.md:101-112, :236-293). On the toolkit tracker both fixed labels are ALSO applied server-side (#640): the project-owned .github/workflows/consumer-report-hold.yml(not lock-managed, no stack renders it) fires onissues: opened, gates its one job on contains(github.event.issue.body, REPORT_SUMMARY) (installer/lib/report.mjsexport, line 2 of the<details>block) AND anauthor_associationnot inOWNER/MEMBER/COLLABORATOR(#653: maintainer-filed issues are never held; body andauthor_associationread only in theif:), and runs two gh issue editsteps (hold first, so a renamed provenance label cannot block it) withissues: writeonly, nouses:, body never in run:/env:— all pinned byreport.test.mjs. waffle:consumer-reportis never a consumer prerequisite (doctor must not check it; pinned bycontent.test.mjs). Ships six eval cases under stacks/wafflestack/evals/: waffle-report-files-with-hold-labels, waffle-report-redacts-overlay, waffle-report-routes-feature-prefix-over-fields, waffle-report-routes-filled-sections-to-bug, waffle-report-routes-proposed-solution-to-feature, waffle-report-routes-rough-idea. /waffle-toggle(#476) wrapstoggle— the per-skilldisable-model-invocationoverride — and always drives it by--disable/--enableflags (the picker needs a TTY). Three optional config keys:waffle.toolkitRef(defaultgithub:dustinkeeton/wafflestack#v{{harness.toolkitVersion}}— the release that rendered, #469),waffle.reportConfirmGate(#487:default: true, modes: [true, false, prompt], flag: { off: "--yes" }, nonInteractive: fail— the one gate with no non-interactive skip), andwaffleView.editor(#616:default: cursor; a launcher string or an argv array; read only by the mod, by its literal in state.ts). Ships the first built-in mod, mods/waffle-view (#562, part of #552): a Claude Code plugin dir (.claude-plugin/plugin.json, hooks/hooks.json→hooks/register.tsx, hooks/state.ts, types/index.d.ts, hooks/waffle-view.test.ts) that registers /waffle-viewonsession.start, opens a Pane ($.ui.open), and draws the state --jsondocument — project, keys (value/source/tokens,value !== canonicalmarked), delegate run files, locks, drift — reading ONLY through$.process.runofwafflestack state --json(no--offlinesince #608, so the cached newer-release check runs;WAFFLESTACK_OFFLINE=1still forces it;installer/cli.mjsat the cwd →node_modules/.bin/wafflestack→npx --yes github:dustinkeeton/wafflestack; resolveArgvinstate.ts). Refreshes after /waffle-view, every other command.run, prompt.submitand the main loop'sturn.completewhile the pane is open; a subagent'sturn.complete(hasagentId) updates the waveatom instead, andagent.spawn (#699) only observes (register.tsx:163-177); $.stateatomsdoc/error/isRefreshing/wave. A newer release (doc.update.available, #608) adds a Syrup · vX.Y.Z available badge to the headline and the remedy command dim beneath it (updateBadgeinstate.ts; updateis optional in the types — an older CLI omits it). AnOpen in <editor> Button(#616, keyopen-editor) closes both views once a state --jsonread has succeeded (#696: none before the first read or after a failed first read; a later failed refresh keeps it):editorArgv(doc, cwd)readsdoc.config['waffleView.editor'](string → one executable, never split; non-empty string array → argv; a missing or malformed key →cursor) and appends $.session.cwd(), editorLabelnames the editor, and the press runs$.process.run(15 s timeout; a rejection at the timeout reads as still running, not as a start failure);openEditordoes nothing with no document and never throws (a pre-launch failure also lands inlaunchError); a rejection or non-zero exit lands inline as open in editor failed: …via thelaunchError atom (editorLaunchError), which a refresh leaves and a good launch clears. Context slicing (#563): a skill atom holds the name the person's last prompt invoked (prompt.submittext/name …, or command.run's command; peer/task/scheduled origins never move it; /waffle-viewitself leaves it alone), andselectSlice(doc, { skill })instate.tsnarrows the pane todoc.skills[skill]— its behavioral keys, the other config it reads (fromdoc.config, values line-capped), the run files it writes (delegate facts when among them) — hiding project/locks/drift; a plain prompt, or a name doc.skillsdoes not know, restores the full view. The/standupslice (#610) addsAgents (n)—selectAgents(doc, slice)instate.ts (STANDUP_SKILL) returns doc.agentsin roster order — in place of the empty keys list (a/standupthat reads keys keeps both); each row leads with a live marker (#699,waveMarker): ○pending (dim),◐running (Syrup),●done (success),✗failed (error) — thewave atom (EMPTY_WAVE, waveReset, waveSpawned, waveClosed, waveCompletedinstate.ts:276-302) counts only top-level agent.spawns (no parentAgentId) while the skillatom is/standupand the main loop'sturn.completehas not yet closed the wave (later spawns stay out; subagent completions still land); a/standup typed over a running turn (prompt.submit turnIdset — the engine queues it) resets the wave asqueued, which ignores spawns until the next main-loop turn.completere-empties and arms it instead of closing it (acommand.runreset keepsqueued), done means reason === 'answer'and anything else failed, and the next typed/standupresets it while a peer's does not; an empty roster reads dimno installed agents to round up, a CLI without agentsreads dimthis CLI predates the agent roster — upgrade wafflestack. Above the roster /standup(#698) drawsCurrent focus — milestones (formatDue), epics (formatProgress: n of m), In Progress and In Review, each capped at FOCUS_MAX_ROWS(8) then… N more— fromselectBoard(doc, slice); --board is appended (resolveArgv) only when wantsBoardsees theskillatom is/standup, and a CLI that rejects it (boardFlagRejected: non-zero exit, stderr naming --board) is re-run once without it; an absent or errored board reads dim board unavailable, and boardHintreplaces the two item lists with a dim reason (unsetproject.name, failed lookup, no board of that title). Delivered through the root .claude-plugin/marketplace.json(#593), not as files (#594): on the claude targetrendermergesextraKnownMarketplaces.wafflestack (source: github, repo: dustinkeeton/wafflestack, ref= the#fragmentofwaffle.toolkitRef, omitted when unpinned — #595; plus autoUpdate: truebesidesource— #730) andenabledPlugins["waffle-view@wafflestack"]: trueinto.claude/settings.json; Claude Code offers the install on the next trusted session, fallback /plugin install waffle-view@wafflestack. claude plugin validateruns over its source dir and the marketplace innpm run validatewhen the CLI is present (#564),claude plugin test is the mod's own gate (hooks/waffle-view.test.ts; #610: selectAgentsunits,/standup→/issue→ plain-prompt mount, empty-roster and older-CLI dim fallbacks; #698:boardFlagRejected, boardHint, selectBoard, formatDue/formatProgress/itemRefunits,--boardargv per slice; #699:waveReset/waveSpawned/waveClosed/waveCompleted/waveMarkerunits, live markers through a wave and its reset bycommand.run and by a typed prompt, pre-/standup, nested, denied and post-close spawns and peer /standupignored, a/standupqueued over a running turn ignores that turn's spawns and arms when it ends, a/standupturn that ends before spawning closes the wave; #696: a failed first read shows no button, a later good read showsOpen in VS Code, a failed refresh keeps it, nothing launches before a read). Caveats: the pane follows the person's last typed /name(prompt text orcommand.run), not a Skill-tool call the model makes mid-turn; a /name that is not a toolkit skill (/clear, a project-local skill) reads as the full view; configvalues instate --jsoninclude the gitignored local overlay; wave status is keyed bysubagentType, so two spawns of one agent share a row (last write wins); a model's Skill-tool /standup` never arms the wave. Enabled in this repo's own render.
tstackstacks/tstack/(none)councilSkills copied verbatim from t3dotgg/tstack (#828, part of #825). council is the first shipped upstream-pinned skill: stack.yaml pins it { repo: t3dotgg/tstack, path: skills/council, commit: 1085050f3bae…, license: MIT, hash } and the registry entry carries the same upstream minus hash; the dir holds exactly upstream's SKILL.md + root LICENSE (MIT), never edited — a local change goes in a project extension, a move goes through npm run upstream:bump. Renders verbatim (no {{…}} substitution, #827) and records a lock upstream entry. Root .gitattributes marks stacks/tstack/skills/** -text so git never eol-converts the hashed bytes (pinned by tstack.test.mjs). Standalone /council only: not wired into autopilot or any gate loop; no config, requires: or prerequisites (the body names T3 Code tools and falls back to the harness's subagent tools). Enabled in this repo's own render (.waffle/waffle.yaml:13).

Architect seniority rule (#38): lead-engineer is the general architect; a domain architect a project adds from its own stack takes seniority in its domain. The output-conflict guard (render.mjs:450) errors if two enabled stacks emit the same path.

Installer module registry

installer/lib/*.mjs, ES modules.

ModulePurposeExports
commit-policy.mjsRead-only inspection of effective author, committer, signer and exact trailers against named profiles; runtime-only personal preference, monotonic repository signing requirement, no key access or execution authorizationCOMMIT_PROFILES, inspectCommitPolicy, formatCommitPolicy
agent-identity.mjsShared per-agent display-name/email resolution for commit-policy inspection and avatar rows; preserves exact overrides and noreply/already-plus exceptions without choosing signing posturederiveAgentEmail, resolveAgentIdentity
preparation-transaction.mjsAtomic artifact replacement, owner liveness and serialized journal-verified interruption recoveryRECEIPT_FILE, isHarnessPath, acquirePreparation, recoverPreparation, safeDestination, replaceBytes, readBytes, sameBytes
prepare-worktree.mjsPin-aware, transactional harness-only pre-session provisioning, receipt-hash pruning, per-worktree mutex and explicit overlay policyprepareWorktree, resolvePreparationToolkit
render.mjsRender pipeline: sources → selection → outputs → prune → lock. Dual render on overlay (#317). An upstream-pinned skill (#827) renders verbatim (no substitution; modelInvocation + extension still apply) and lands in the lock's upstream block; renderProject returns upstreamrenderProject, MOD_REF_KEY, renderItemInMemory, readLock, readLocalLock, readTreeLock, overlayDivergentFiles, overlayLeaks, treeOverlayLeaks, overlayLeakWarnings, overlayLeakRemedy, configGuardProblems, failingConfigFor, collectUsedKeys (re-export of config-catalog.mjs), missingConfigFor, summarizeConfigKeys
refs.mjsRef grammar, resolution, dependency closure, render selection, target-scope gate (#364)itemOutputMatcher, legacyModDir, normalizeItemRef, itemsOfKind, findItems, selectingStack, parseRef, isWipWaffle, resolveRef, resolveDepStrict, resolveAgentSkill, closureFor, closureDeps, fileMatchesTargets, isTargetScoped, includeRefMatches, includeEjectOverlaps, formatEjectOverlap, computeSelection, skippedSyrupCompanions, unpouredRequiredSyrup, disabledStackRequires
template.mjs{{placeholder}} substitution + pattern:/entryPatterns:/modes:/range: guard machinery + stack constraints: (#630, #644)substitute, PROMPT_MODE, FLAG_SIDES, parseFlagPlaceholder, flagPlaceholders, undeclaredFlagProblem, isModeScalar, modeMatches, modeProblems, makeGuard, entryPatternProblems, toRangeNumber, rangeProblem, CONSTRAINT_KINDS, constraintViolation, constraintProblems, LIST_FORMATS, formatValue, placeholderKeys, compilePattern
toolkit.mjsLoad toolkit.yaml + stack manifests; hard LOAD errors for targets: malformations (#364) and, for a fetched git source: stack only, any agents/skills/files/mods entry whose realpath leaves the checkout (a local-path source may symlink out)MOD_MANIFEST, MOD_TARGETS, MOD_ENGINE_LAID, isEngineLaid, loadToolkit, loadToolkitWithSources, missingRequiredKeys
project.mjsConsuming-project config + overlay, targets, harness.* built-ins/guards, .gitignore + YAML splice helpersCONFIG_FILE, LOCAL_CONFIG_FILE, LOCK_FILE, LOCAL_LOCK_FILE, AVATARS_DIR, BASELINE_GITIGNORE_ENTRIES, EXTENSIONS_DIR, LEGACY_ROOT_CONFIG_FILE, LEGACY_ROOT_LOCAL_CONFIG_FILE, LEGACY_ROOT_LOCK_FILE, LEGACY_CONFIG_FILE, LEGACY_LOCAL_CONFIG_FILE, LEGACY_LOCK_FILE, LEGACY_EXTENSIONS_DIR, VALID_TARGETS, resolveConfigFile, resolveLocalConfigFile, resolveLockFile, localLockPath, migrateLegacyDotfiles, staleGitignoreEntries, gitignoreMentions, gitIgnoreStatus, GITIGNORE_MARKER, ensureGitignoreEntries, removeGitignoreEntries, recommendedGitignoreEntries, renameLegacyStacksKey, dropIncludeEntries, setScalarIn, appendSeqIn, removeSeqIn, renameKeyIn, loadProjectConfig, classifyStackSource, normalizeStackEntries, HARNESS_BUILTINS, HARNESS_PATTERNS, makeResolver, isEmptyValue, omitWhenEmptyCycle, RETIRED_CONFIG_KEYS, retiredConfigProblems
util.mjssha256, YAML, deep-merge, dotted lookup, frontmatter, fs, semver, resolveInside / resolveWritableInside containment guardssha256, isBinary, readYaml, exists, writeFileEnsuringDir, deepMerge, parseVersion, compareVersions, lookupPath, FRONTMATTER_RE, parseFrontmatter, stringifyFrontmatter, resolveInside, resolveWritableInside
doctor.mjsDrift check vs readTreeLock; upstream pins (#827): one upstream-pinned: note per lock entry (never flips ok), drift attribution upstream <repo>@<sha12>, upstream on the result, and --verify-render compares each entry as an upstream:<item> key (not counted in checked); generated .waffle/ docs presence-optional (#528); --verify-render temp-dir reproduction (#314); prerequisite checks (#129); update verdict param → informational newer-release note, never flips ok (#608, doctor.mjs:136-142); pluginsDir param → informational stale-installed-mod notes + staleMods (#730, null skips); checkOverlayLeaks param → overlayLeaks + a note for overlay-fed files git would let you commit (#614, never flips ok)doctor, verifyRenderAgainstLock
eject.mjseject / installRefs / setup+init scaffold; ejecting a pinned skill drops its lock upstream entry from both locks (#827)eject, installRefs, unejectCollisions, init, scaffoldConfig
validate.mjsToolkit-developer lint (consumers never run it over built-ins; render imports only validateExternalStacks)RESERVED_AGENT_KEYS, validateToolkit, validateModPlugins, formatModPluginChecks, validateRegistry, validateSourceBytes, validateHarnessBuiltins, validateExternalStacks, validateStack, behavioralKeyProblems, listKeyProblems, rangeKeyProblems, stackConstraintProblems
setup.mjssetup output: SETUP.md playbook + inventory (+ update-mode section)setupGuide, toolkitInventory
model-invocation.mjsPer-skill model-invocation override (#476): skills.modelInvocation normalization (throws on shape errors, like invalid targets:) + the pure disable-model-invocation frontmatter patch render applies to the claude copyMODEL_INVOCATION_KEY, CONFIG_PATH, emptyOverride, normalizeModelInvocation, overrideFor, frontmatterDisablesModelInvocation, sourceDisablesModelInvocation, applyModelInvocation
harness-tools.mjsPer-target roster of call-shaped harness tools (#445): HARNESS_TOOLS data (claude declared; codex / agents-dir null = unverified) + the pure toolCalls / unknownToolCalls extractor content.test.mjs sweeps every source and render with. THE place a harness tool rename or removal is recordedHARNESS_TOOLS, DEAD_HARNESS_TOOLS, toolsForTarget, anyTargetTools, toolCalls, unknownToolCalls
toggle.mjstoggle command (#476): per-rendered-skill state model (COMMITTED config, tree lock), plain table, keypress picker over list.mjs's shared loop, comment-preserving minimal write to waffle.yamlcomputeToggleModel, formatToggleTable, toggleChoices, interactiveToggle, applyToggle
report.mjsreport bundle (#473): lock.upstream + an upstream-pinned Markdown line (#827), an external stack's repo/path (and doctor's pin note) shown as EXTERNAL_UPSTREAM (<external-upstream>); canonical lock + config KEY paths + doctor({ canonical: true }) summary, then scrub/redact (cwd → <repo>, home → ~, emails/remotes → placeholders); formatReportMarkdown renders the <details> block (--json is JSON.stringify of the bundle in cli.mjs:178, no renderer export); health does not surface doctor's absentDocs (#528) — only notes carries themcollectReport, keyPaths, scrub, redact, formatReportMarkdown, REPORT_SUMMARY, EXTERNAL_UPSTREAM
state.mjsstate document (#561): every modes:/flag: key with effective value, source layer (local-overlay/waffle.yaml/stack-default) and tokens; delegate run files (newest checkpoint's last PRESENT phase, memory bytes vs cap); committed vs local lock; plain-doctor drift via readTreeLock (#317). The overlay is opened ONLY to attribute a layer; resolveSkills → the skills map (#563, state.mjs:225); collectState's update param → the update block (null → NO_UPDATE_VERDICT, state.mjs:186) and a · vX.Y.Z available suffix on the text cli: line (#608, state.mjs:521-523); agentRoster → the agents array, the /standup roster (#610, state.mjs:260), and the text line before cli: — agents: N in <dir> — a, b, … or agents: none installed (state.mjs:517-520)STATE_SHAPE_VERSION, LAYERS, CHECKPOINT_PHASES, SKILL_RUN_FILE_KEYS, collectState, resolveConfig, resolveSkills, agentRoster, resolveBehavioralKeys, firstSentence, layerOf (both re-exports of config-catalog.mjs), expandKey, formatStateText
config-catalog.mjsLeaf config-key catalog (#701, moved out of config/state/render in #703 to break the cycle): collectUsedKeys (placeholder keys a selection's sources reference), configCatalog, mergeCatalog, layerOf, firstSentence, plus the summaryOf/specFacts formatters config and the reference file share — re-exported from their old modules, so every old import path still worksfirstSentence, layerOf, collectUsedKeys, configCatalog, mergeCatalog, SUMMARY_MAX, summaryOf, specFacts
config-reference.mjs.waffle/waffle.reference.yaml (#703): configReferenceYaml(merged) reads declarations only. Layout: ## lines are notes, # lines are YAML (strip one # → valid config). Header, then ## Must set (required with no default, never shown as values), ## Locked (lockMode: keys), then the commented # config: tree. Multi-line, over-110-char, null/no-default, conflicting and leaf-and-prefix keys become comment-only leaves pointing at wafflestack config <key>. generateConfigReference runs the catalog with values: {}. harness.* is excluded (a one-line FORMAT.md pointer)CONFIG_REFERENCE, configReferenceYaml, generateConfigReference
config.mjsconfig [key-prefix] lookup (#701): configCatalog — the per-stack, render-scoped (#77) key catalog setup's "Config values" section ALSO prints (one function, no drift) — with value, set and source file (default/waffle.yaml/waffle.local.yaml, via layerOf) — both defined in config-catalog.mjs and re-exported here; mergeCatalog folds multi-stack keys and flags declarations that disagree on anything but description; collectConfig loads like state (loadToolkitWithSources, tree lock); queryConfig = all / exact key / dotted prefix / error with a nearest-match hint; plain-text formatConfigconfigCatalog, mergeCatalog, collectConfig, nearestKey, queryConfig, formatConfig
migrations.mjsOrdered, idempotent, version-keyed migration stepsMIGRATIONS, EXTENSIONLESS_FILES_0_18, protectedPathsFromProse, migrationCeiling, applicableMigrations, runMigrations
upstream.mjsUpstream-pinned skills (#826, part of #825): the upstream: pin shape (stack.yaml keys repo/path/commit/license/hash; registry keys omit hash), normalize + context-free shape lint, and the offline copy content hash (sha256sum-style manifest of every file in the skill dir, LICENSE included, POSIX-sorted) behind validate's copy-matches-pin gate; the consumer lock's upstream block (#827): upstreamLockEntries builds it ({ item, repo, path, commit, files }, sorted by item; a pin missing repo/path/commit or rendering no file gets no entry), lockUpstream reads it tolerantlyUPSTREAM_KEYS, REGISTRY_UPSTREAM_KEYS, UPSTREAM_LICENSE_FILE, UPSTREAM_REPO_RE, UPSTREAM_COMMIT_RE, UPSTREAM_HASH_RE, normalizeUpstream, upstreamHash, upstreamShapeProblems, upstreamLockEntries, lockUpstream
upstream-sync.mjsnpm run upstream:check / upstream:bump (#828), toolkit-developer only (runner installer/upstream.mjs, not a CLI subcommand). Transport is gh api through an injectable gh(args) → JSON runner. checkUpstream: per pin, the default branch's head (commits/<branch>); compare/<pin>...<head> not ahead/identical → diverged (the pin is off the branch). Else the latest commit reachable from the head touching path and the root LICENSE (commits?path=…&sha=<head>&per_page=1), ordered against the pin via compare/<pin>...<latest>: ahead, or diverged (a side branch forked before the pin and merged after it, #832) → behind; identical/behind → current, so a pin at a later unrelated commit is current; a thrown gh call → error, other items still checked. latest is the head when behind, else the pin; head is returned too. bumpUpstream: refuses a relicense (repos/<repo> license.spdx_id ≠ pin), a target other than the head (--commit) whose root LICENSE bytes match neither the copy's nor the head's (#833: spdx_id describes the head only), a copy that no longer hashes to its pin, a diverged pin without --commit, and a target tree with a symlink, a submodule, no root LICENSE, a <path>/LICENSE, or a path with a backslash or an empty, . or .. segment; else fetches blobs (git/trees + git/blobs, raw bytes), swaps the copy dir wholesale, splices commit + hash into stack.yaml and commit into the registry with setScalarIn (every other byte kept), and prepends a bullet under ## [Unreleased] → ### Changed (created after ### Added when absent). A pin already at the target is untouched (idempotent); warns when git check-attr text is not unset for the copyghApi, ghJson, pinnedSkills, checkUpstream, addChangelogLine, bumpChangelogBullet, textAttrNotUnset, bumpUpstream
registry.mjsWAFFLE registry loader + the wip/replaced status gate (#335)REGISTRY_FILE, WAFFLE_KINDS, WAFFLE_STATUSES, LIVE_STATUSES, REGISTRY_ENTRY_KEYS, refKindOf, waffleKindOf, canonicalWafflePath, loadRegistry, waffleStatus, isWaffleWip, replacementFor
upgrade.mjsVersion diff, changelog delta, migrations, pin reconcile (#372), render + doctor; diffUpstream → upstreamMoves (#827: added/moved/repointed/removed, each logged); pluginsDir param → threaded to doctor's stale-mod note (#730, null skips)upgrade, reconcileToolkitRefPins, staleTagMentions, forwardRenamedWaffleRefs, diffSources, diffUpstream, diffToolkit, changelogBetween
uninstall.mjsuninstall / reinstall + the pure planUninstall they share (#182)planUninstall, uninstall, reinstall
waffledocs.mjsGenerated .waffle/ overview docs + avatars + the config reference, via render's emit()GENERATED_DOCS (incl. CONFIG_REFERENCE), isGeneratedDoc, extractBaseEmail, deriveAgentEmail, withIdentity, generateWaffleDocs, collectAgentAvatars, agentFlavor, agentAvatarSvg
avatars-sync.mjsOwner-side Gravatar pipeline behind avatars sync/status (#285)GRAVATAR_BASE, TOKEN_ENV, emailHash, syncAvatars, avatarsExitCode, enumerateAgentAvatars, makeGravatarHttp, RASTERIZERS, makeShellRasterizer, runAvatarsSync
evals.mjsLayer 2 eval harness (#109; runner entry installer/evals.mjs)DEFAULT_MODEL, DEFAULT_MAX_OUTPUT_TOKENS, Budget, BudgetExceededError, discoverCases, loadCase, validateCase, renderTargetPrompt, evaluateAssertion, parseVerdict, runCase, runEvals, anthropicClient, mockClient
list.mjslist command: per-item state model + table + interactive picker (#119); exports the keypress loop toggle reuses (#476)STATUS, REMOVAL_REASON, computeListModel, unmanagedOutputs, describeBlockers, ANSI, formatListTable, selectableChoices, interactiveSelect, keypressMultiSelect
prerequisites.mjsTyped external prerequisites: normalize, scope, probe, bucket (#47/#129)PREREQ_KINDS, PREREQ_LEVELS, RENDER_PROBE_KINDS, normalizePrerequisites, runCheck, findOnPath, claudeCli, applicablePrerequisites, describeProvenance, checksDigest, looksLikeBranchRef, externalCheckGates, unacknowledgedStacks, formatCheckGate, evaluatePrerequisites, formatPrereq
plugins.mjsRecommended EXTERNAL harness plugins a stack offers via setup (#199); never installedPLUGIN_ENTRY_KEYS, normalizeRecommendedPlugins, offerablePlugins
settings.mjsLock-managed entries inside .claude/settings.json (#594): pointer keys, merge/prune, drift, mod releaseSETTINGS_FILE, settingsKey, parseSettingsKey, marketplaceKey, pluginKey, ownsModKey, enabledPluginIds, lockKeys, modSettingsEntries, settingsValueAt, settingsConflicts, applySettings, removeSettingsEntries, settingsDrift, modReleaseKeys, settingsLockMap
installed-mods.mjsStale installed mods (#730): enabled mods whose Claude Code installed_plugins.json record (user scope, or project/local for this cwd) is older than the toolkit's mod plugin.json version; every read failure is silencedefaultPluginsDir, readInstalledPlugins, marketplacePinned, staleMods, formatStaleMod
marketplace.mjsThe repo-root .claude-plugin/marketplace.json that lists every stack mod's SOURCE dir (#593); validate keeps it in syncMARKETPLACE_FILE, marketplaceSource, marketplacePluginId, readMarketplace, validateMarketplace
sources.mjsExternal source: resolution: local path or pinned-git cache (#88/#125)resolveSource, resolveSourceRoot, gitFetchCheckout, gitHeadCommit, gitRemoteOriginUrl, gitResolveRefCommit, checkoutMatches, defaultSourceCacheDir
toolkit-ref.mjsToolkit self-identification (#373), lock toolkit block (#374), write-side pin (#372)resolveToolkitIdentity, commitFromNpmLockfile, shaFromResolved, parseLsRemoteTags, latestReleaseTag, toolkitRef, toolkitSource, toolkitLockEntry, toolkitPinFromLock, toolkitPinFromIdentity, classifyToolkitRefValue, describeToolkitProvenance, repoSlug, lockRepoSlug, parseRepoSlug, httpsUrl, gitLsRemoteTags (optional { timeoutMs }, default 15 s), newerRelease (#608: the one {tag, command} newer-than-running verdict upgrade/doctor/state share; remedy npx --yes github:<repo>#<tag> upgrade, command: null with no repo), gitCapture, changelogHasUnreleasedEntries, changelogLatestRelease, formatUnreleasedRefusal, formatProvenanceWarning
update-check.mjsNewer-release check behind doctor/state (#608): a checkout answers from its local tags, else its CHANGELOG (source local-tags/changelog, from ToolkitIdentity.latestTagSource, #694); an install reads a fresh $XDG_CACHE_HOME/wafflestack/latest-release.json entry (keyed by repo; 24 h TTL, 1 h for a negative entry), else one 2 s git ls-remote that writes it, else the identity's CHANGELOG value. --offline reads the cache, never asks or writes. Never throws — failure is "no verdict"UPDATE_CHECK_TIMEOUT_MS, UPDATE_CACHE_TTL_MS, UPDATE_FAIL_TTL_MS, defaultUpdateCacheFile, readUpdateCache, writeUpdateCache, resolveLatestRelease, updateVerdict, NO_UPDATE_VERDICT
board.mjsstate --board team-focus read (#697, part of #610): up to three gh api graphql calls run in the repo dir ({owner}/{repo} resolved by gh) — (1) open milestones (soonest due first); (2) open epics with native sub-issue progress (an epic is an open issue with sub-issues — parents come from the newest 100 open issues, since search has no sub-issue qualifier — or an [epic] title); (3) only when project.name is set, the owner's Projects v2 board matched to it case-insensitively, with its In Progress / In Review items. Call 3 is separate because projectsV2 needs gh's opt-in project scope: its failure sets projectError and keeps milestones and epics. 5 s per call, 8 s for the whole read; 60 s cache in board.json beside latest-release.json, keyed by repo dir + project name, failures cached too. Offline → error: 'offline', no read. Never throws; the gh runner is injectableBOARD_CALL_TIMEOUT_MS, BOARD_BUDGET_MS, BOARD_CACHE_TTL_MS, BOARD_STATUSES, BOARD_ERRORS, defaultBoardCacheFile, ghRun, emptyBoard, readBoard, describeGhError

Import graph (real import statements only; util.mjs and template.mjs depend only on yaml):

cli.mjs      → render, prepare-worktree, doctor, eject, validate, setup, report, state, config, upgrade, uninstall, toolkit,
               prerequisites, list, toggle, toolkit-ref, update-check, board, project, installed-mods, avatars-sync (dynamic), commit-policy (dynamic)
prepare-worktree.mjs → preparation-transaction, project, refs, render, settings, sources, toolkit-ref, upstream, util
preparation-transaction.mjs → project (LOCAL_LOCK_FILE), util
render.mjs   → template, toolkit-ref, toolkit, sources, refs, validate, prerequisites, waffledocs, config-catalog, model-invocation, marketplace, settings, project, upstream, util
doctor.mjs   → render, project, toolkit-ref, toolkit, refs, prerequisites, sources, waffledocs, settings, installed-mods, upstream, util
installed-mods.mjs → marketplace, toolkit, settings, util
report.mjs   → render, doctor, prerequisites, project, upstream, util
state.mjs    → toolkit, sources, refs, render, doctor, template, settings, project, util, config-catalog, update-check (NO_UPDATE_VERDICT)
config.mjs   → toolkit, sources, refs, render, settings, project, util, config-catalog, state (expandKey)
config-catalog.mjs → project, template, util
upgrade.mjs  → render, doctor, migrations, project, toolkit-ref, registry, refs, upstream, util
uninstall.mjs → render, eject, toolkit, settings, project, util
eject.mjs    → render, toolkit, sources, refs, settings, project, util
validate.mjs → toolkit, template, refs, prerequisites, plugins, marketplace, project, registry, upstream
setup.mjs    → toolkit, render, config, project, refs, prerequisites, plugins, registry, marketplace, settings, util
list.mjs     → toolkit, render, refs, settings, project, util, prerequisites, sources
toggle.mjs   → toolkit, sources, refs, render, settings, project, list, model-invocation
model-invocation.mjs → util
harness-tools.mjs → (nothing; test-only consumer: content.test.mjs)
waffledocs.mjs → template, project, refs, util, config-reference, agent-identity
commit-policy.mjs → project, toolkit, refs, agent-identity, state (expandKey), util, + ../../stacks/orchestration/skills/delegate/git-command.mjs (the one installer/lib → stacks/** code import; `stacks/` ships in the package)
agent-identity.mjs → (nothing)
config-reference.mjs → config-catalog
avatars-sync.mjs → toolkit, project, refs, waffledocs
evals.mjs    → render, template, util
migrations.mjs → project, refs, util
board.mjs    → update-check (defaultUpdateCacheFile)
toolkit.mjs  → refs, sources, prerequisites, plugins, registry, project (VALID_TARGETS only), template (flagPlaceholders only), upstream, util
prerequisites.mjs → refs
plugins.mjs  → refs
marketplace.mjs → toolkit
refs.mjs     → project (VALID_TARGETS only), registry (the wip/replaced gate; registry.mjs imports only util.mjs — no cycle), settings (ownsModKey; settings.mjs imports only util.mjs)
registry.mjs → upstream, util
upstream.mjs → util
upstream-sync.mjs → util, upstream, toolkit, registry (REGISTRY_FILE), project (setScalarIn)
sources.mjs  → util
toolkit-ref.mjs → util
update-check.mjs → toolkit-ref
project.mjs  → util, model-invocation, template (parseFlagPlaceholder only; both import nothing from lib — no cycle)

CLI command registry

Bin wafflestack → installer/cli.mjs. Usage: wafflestack <setup|init|list|toggle|install|render|prepare-worktree|bake|upgrade|doctor|state|config|commit-policy|report|eject|uninstall|reinstall|avatars|validate|help> [refs…] [--cwd DIR] (USAGE, cli.mjs:52).

Dispatch and exit contract: help/--help/-h print the full help to stdout, exit 0 — intercepted before the switch (cli.mjs:57), so uninstall --help explains rather than deletes; there is no per-command help page (#187, helpText cli.mjs:429). An unknown command, and bare wafflestack, print banner + usage to stderr, exit 1. Flags are spliced out by name (extractFlag cli.mjs:579, extractCwd cli.mjs:570), so an unrecognized flag survives as a positional: setup/init/render/prepare-worktree/bake/upgrade/list/toggle/state/report/uninstall/reinstall reject it (takes-no-refs guard, exit 1 — setup --force / init --yes fail; setup/init refuse before scaffolding, so nothing is written), install/eject fail resolving it as a ref, avatars rejects a non-sync/status first arg, config takes at most ONE positional (a key or prefix — a stray flag becomes that query and fails as an unknown key; two positionals exit 1), doctor/validate silently ignore it.

commit-policy is read-only and offline: inspect existing Git metadata/configuration, never read keys, invoke a signer, write configuration or authorize execution. Profile precedence is invocation → local overlay → committed selection → global Git wafflestack.commitProfile → configured; global preference never enters canonical renders. Exit 0 means configuration valid, not signing readiness or permission to commit; invalid input or a policy conflict exits 1. See docs/commit-policy.md and installer/test/commit-policy.test.mjs. The dependency-free recipe parser lives beside delegate's identity.mjs as git-command.mjs and is shared with the inspector; its sidecar must render with the delegate skill.

FlagCommandsEffect
--cwd DIRevery commandrun against DIR; spliced out before ref parsing
--help, -hevery commandprint help to stdout, exit 0; intercepted before dispatch
--forcerender, bake, install, reinstalloverride render's unmanaged-file overwrite guard
--forceuninstall, reinstall --cleanalso delete drifted (hand-edited) managed files
--untrusted-configrender, bake, prepare-worktree#615/#789: the config came from an untrusted tree (a PR head in CI) — refuse any source: stack in waffle.yaml or the overlay, run no prerequisite probe, refuse any write whose path resolves outside the project root through a symlink (resolveWritableInside); render.mjs:95, render.mjs:165, render.mjs:228. On prepare-worktree it also refuses main-overlay inheritance and resolves the lock-pinned toolkit from the source cache only (prepare-worktree.mjs:98, :52)
--gitignoresetup, init, render, bake, installappend the recommended .gitignore entries; after a render, also each untracked overlay-fed file git would commit (#614)
--yesuninstallactually delete; without it uninstall is a dry run
--yesreinstallrequired by --clean only; a plain refresh needs none
--keep-configuninstallkeep .waffle/ — config, overlay, extensions/ and both locks
--cleanreinstallwipe incl. config, then re-scaffold via lib init() (requires --yes)
--allow-missingdoctor, uninstalltolerate managed files absent from disk (the generated .waffle/ docs are presence-optional without it, #528)
--verify-renderdoctorre-render committed inputs in a temp dir vs the committed lock
--interactivelistkeypress multi-select; needs a real TTY, else degrades to the table
--check-prereqslistrun the hinted prerequisite checks (shells out) and show only the unmet ones; a broken probe reads as unknown (#579)
--jsonreport, state, prepare-worktree, commit-policyprint the report bundle / state document / preparation result / commit policy as JSON on stdout instead of Markdown / human text
--profile NAME, --agent SLUG, --git-cmd RECIPE, --co-author-trailer TEXT, --sign-off-trailer TEXTcommit-policyinspect the selected profile and exact proposed identity/signing recipe and trailers; empty trailer strings clear lists; duplicate, missing and unknown options fail
--overlay local|main|noneprepare-worktreeoverlay policy for this invocation, over git config wafflestack.worktreeOverlay (destination|main): local = the destination's overlay only, main = the main checkout's when the destination has none, none = ignore the local overlay; exactly one value, else exit 1 (cli.mjs:67-69, prepare-worktree.mjs:96)
--boardstate#697: add the board block (milestones, epics, In Progress / In Review) read via gh; the one state path that calls gh. Best-effort: a failure sets board.error, never the exit code; --offline / WAFFLESTACK_OFFLINE=1 skip it (error: "offline")
--disable SKILL / --enable SKILLtoggle#476: set / clear the per-skill model-invocation override without the picker; repeatable, comma-splittable (extractValues cli.mjs:559); either flag skips the TTY prompt; a name on both sides, a name no selected stack renders, or a flag with no value exits 1 before anything is written
--no-colorlist, togglesuppress ANSI; the NO_COLOR env var does the same (cli.mjs:287, cli.mjs:315); neither is listed in help's flag block (#359)
--allow-unreleasedevery command (spliced globally)#373: suppress the release gate's refusal (toolkit development only); env twin WAFFLESTACK_ALLOW_UNRELEASED=1. Suppresses the refusal, not the truth — identity still resolves, network lookup included, so a genuine release keeps its ref under the hatch (#383)
--offlineevery command (spliced globally)#383: skip the network release lookup (git ls-remote); env twin WAFFLESTACK_OFFLINE=1. On doctor/state it also skips the newer-release lookup (#608), which still reads a fresh cache entry. On prepare-worktree the lock-pinned toolkit and any git source must already be in the source cache (offline cache miss otherwise). Fails open (identity degrades to unverified, ref: null); the ONLY switch that skips the lookup — orthogonal to --allow-unreleased ("don't refuse me" vs. "don't pay for the answer")

Release gate (#373; truth in toolkit-ref.mjs, gate in cli.mjs). Before writing files from toolkit content, the CLI resolves its own identity and refuses (exit 1, naming the exact pinned command) when provably not a release. Gated: render/bake, install, upgrade, reinstall, doctor --verify-render, list --interactive (once a selection is applied), toggle whenever it writes (--disable/--enable, and the TTY picker — gated BEFORE the prompt so a refusal never follows the user's picks). Not gated: plain toggle with no flags (read-only table ⇒ warning), doctor (pure hash-vs-lock; gets the offline identity), list/setup/init (report, or the static starter only ⇒ formatProvenanceWarning to stderr), report and config (read-only ⇒ warning, and OFFLINE identity so a diagnostics dump or key lookup never stalls on a lookup), commit-policy (read-only inspection; no identity lookup, no warning), eject, uninstall, validate, avatars, help. prepare-worktree never calls requireRelease (cli.mjs:64-79): it renders with the toolkit the committed lock pins (resolvePreparationToolkit, prepare-worktree.mjs:36) — the running CLI when its commit, version and source match the lock (a checkout must also be clean), else the source-cache checkout at the locked commit. A lock without a vX.Y.Z toolkit.ref and a 40-hex toolkit.commit fails (exit 1) unless --allow-unreleased is passed, the toolkit root is the destination checkout and the lock's toolkit.status is unreleased. unverified (offline / no git / unreadable npm lockfile) proceeds with a warning — fail open on ignorance, fail closed only on a successful "not a release" lookup. The identity is threaded to renderProject/upgrade/reinstall and written into the lock's toolkit block (#374).

CommandBehavior
setup / init (alias)#611: one handler (cli.mjs:250), byte-identical output. scaffoldConfig (eject.mjs) writes the starter .waffle/waffle.yaml only when resolveConfigFile finds no config at any generation (a legacy .waffle.yaml/.wafflestack.yaml counts as existing); never overwrites. wrote … goes to stderr so stdout stays the pure playbook. --gitignore always applies BASELINE_GITIGNORE_ENTRIES — the three pre-stack-knowable entries (local overlay, local lock, .waffle/avatars/; #528), reported on stderr. Exit 0 whether it scaffolded or found a config. Then prints the schema/SETUP.md playbook + toolkit inventory; a freshly scaffolded config gets the first-install guide, an existing one adds a live update-mode section — including, when the selection renders a mod, a ## Mods block with each mod's check/load/install/test lines (#564). setup.mjs:26
listPer-stack per-item state table (current/outdated/not-installed/not-installable/PENDING REMOVAL — the last on every deselection path, scope or stack/include, #371); plain aligned table by default (ANSI only on a TTY); --interactive multi-select installs + renders. Takes no refs. list.mjs, cli.mjs:264
togglePer-skill agent-invocation override (#476): one row per RENDERED skill (agent-invocable / slash-only, (source) / (override)), read from the COMMITTED config and the tree lock; externals (#471) never listed. No flags + real TTY on stdin AND stdout → keypress picker (checked = agent-invocable; enter writes the FULL desired state, esc writes nothing); no flags + non-TTY → the plain table, exit 0, readline never opened; --disable/--enable → write without a prompt. A write persists a MINIMAL skills.modelInvocation block (a skill lands in disabled:/enabled: only where it differs from its source; empty block removed) to waffle.yaml comment-preservingly, then runs a full render so the lock records the patched skill. no change when every named skill is already in that state. Takes no refs. toggle.mjs, cli.mjs:291
install [ref…]Persist each ref to config (stack → stacks:, item → canonical include:), then render. An EJECTED item ref is un-ejected, loudly (#497). ANY refused render rolls the config back to the text as found (#548, cli.mjs:503); when the refusal is an un-ejected item's differing project-owned copy the error names --force and the item stays ejected. Bare install = render. eject.mjs:123
renderRegenerate all managed files verbatim, prune stale managed files, write lock. Rejects positional refs. Refuses to overwrite a pre-existing untracked file unless --force (render.mjs:257). When the overlay changes the render, warns per overlay-fed file git would let you commit (git check-ignore + ls-files; silent outside a work tree) with a gitignore-or-Posture-2b remedy, and returns them as overlayLeaks (#614). --untrusted-config (CI's waffle-render step) refuses source: stacks, skips prerequisite probes, refuses symlink-escaping writes. render.mjs:61
prepare-worktreePre-session harness-only provisioning from destination committed inputs and pin. --json readiness; --offline requires cached sources; --untrusted-config refuses external sources and inherited main overlays; --overlay local|main|none sets the overlay policy per run. Takes no refs; not release-gated (renders with the lock-pinned toolkit, see above); exit 1 when status is failed. See docs/worktree-setup.md. prepare-worktree.mjs:65, cli.mjs:64
bakePure alias for render — a fall-through case sharing its body and guards (#176).
upgradeLock-vs-CLI version diff, CHANGELOG delta, migrations in (from, to] (an unreleased toolkit also runs the steps keyed past its version, #501), pin reconcile (#372), render (refreshSources: true, reporting source + built-in toolkit commit moves, #374) + doctor. Missing lock degrades to render + doctor; a lock recording no toolkitVersion skips migrations and the changelog delta (upgrade.mjs:54). Exit follows doctor. upgrade.mjs:29
doctorDiff managed files vs readTreeLock; report toolkitVersion + skew note + toolkit provenance note (#374, warning only) + a newer-release note (#608, informational, never flips ok; update-check.mjs) + a stale-installed-mod note per enabled mod whose Claude Code install is older than the toolkit's (#730, informational, never flips ok; installed-mods.mjs, also surfaced by upgrade); run selected stacks' prerequisites: checks. Exit 1 on drift, an unmet require prerequisite, OR an include: ∩ eject: overlap (#497, ejectOverlaps + an include/eject overlap: note; needs no toolkit). --allow-missing: only modified files count. An absent generated .waffle/ doc (isGeneratedDoc) is a note in every mode, never drift (#528); the all-absent guard (#311) stays flag-independent. canonical: true (library option, #473): compare against the committed lock and load the config without the overlay — neither local file is opened. With a local lock, lists each file whose local-lock hash differs from the committed one and that is tracked or not gitignored as not gitignored (embeds local overlay): <path> (tracked by git (embeds local overlay): <path> when tracked; trackedOverlayLeaks) plus one remedy note (#614, informational, never flips ok; skipped under canonical: true and by upgrade, whose render already warned). doctor.mjs:41
reportPrint a REDACTED diagnostics bundle for an upstream toolkit bug report (#473): committed lock summary (version, toolkit block, targets, stacks, include, tracked-file COUNT, external source names), committed config (targets, stacks, external names/refs, eject, config KEY paths — never values), environment (CLI version/status, node, platform, overlay PRESENCE), and a doctor({ canonical: true }) summary. Never opens waffle.local.yaml or waffle.local.lock.json; scrubs cwd/home/emails/remotes. Markdown <details> by default, --json for machines. Takes no refs; never contacts GitHub; exit 0 even on a red doctor. report.mjs, cli.mjs:171
statePrint the resolved state (#561): every modes:/flag: key with its effective value, the layer it came from and its invocation tokens; delegate.checkpointDir (newest <runId>.json, the last phase whose sections are all PRESENT — shape only; the delegate skill's checkpoint.mjs is the validator) and delegate.memoryFile (bytes vs delegate.memoryMaxBytes); committed vs local lock (presence, toolkit version/status/ref, per-file divergence); plain-doctor drift against readTreeLock (#317). Human text by default, --json for the document below. Plus an agents array (#610) — the roster /standup spawns — and an update block (#608) — whether a newer toolkit release exists, via update-check.mjs. Takes no refs; read-only, offline identity, no prerequisite probes, writes nothing in the repo (the newer-release check may refresh its user-cache file, and --board its board.json user-cache file, unless --offline); exit 0 even on red drift. --board (#697) adds the board block — the only gh call state makes, best-effort and cached (board.mjs). state.mjs, cli.mjs:147
commit-policyRead-only, offline inspection of the effective commit author, committer, signer and exact Co-authored-by/Signed-off-by trailers against a named profile (COMMIT_PROFILES); profile precedence invocation → local overlay → waffle.yaml → global git wafflestack.commitProfile → configured; --agent SLUG resolves the per-agent identity (an uninstalled slug is a notice, not an error); trailer text tolerates blank lines and CRLF. Never reads keys, signs, commits or writes config. Exit 0 = configuration valid (not signing readiness), else 1. --json for the document. commit-policy.mjs, cli.mjs:160
config [key-prefix]#701, read-only (writes nothing; offline identity ⇒ provenance warning only). Lists every config key the selection references, directly or through another key's default template / omitWhenEmpty: gate — configCatalog, the SAME function setup's "Config values" section uses — one block per key: key = value [default|waffle.yaml|waffle.local.yaml|required ⚠], first-sentence summary (≤110 chars), then default / range / stack constraints: / config may set: (configModes) or else modes: / flag: tokens / declaring stacks; multi-line or long values point at the exact lookup. Multi-stack keys whose declarations disagree (requiredness, default, range, modes, configModes, flag, lockMode — never description) print ⚠ declarations disagree with each stack's resolved value. Argument (leading config. stripped): exact key → full value/expands to:/default/description (+ keys under it); dotted prefix (segment boundary) → filtered list; else exit 1 with declared by stack(s) X but nothing in this selection references it, a harness.* pointer to FORMAT.md, or unknown config key or prefix + did you mean. Selection problems → stderr. Loads like state (loadToolkitWithSources) while setup uses built-in loadToolkit — they differ only for external stacks. No --json (machines read state --json's config map). config.mjs, cli.mjs:160
eject <kind/NAME>Add to eject:, strip matching include:, drop the item's files from the lock; files stay in place, project-owned. Never renders (offline, ungated): prints a run-render hint naming closure-only deps the dropped include orphaned (#497). eject.mjs:32
uninstallRemove the whole install, driven entirely off the lock: remove only when the sha256 still matches the render; drifted skipped unless --force; refuses the whole run on an absent lock or a path resolving outside cwd (incl. symlink escapes). Also removes .waffle/ meta (unless --keep-config), prunes genuinely-emptied dirs, strips wafflestack's .gitignore lines. Dry run until --yes. Skips exit 0; errors exit 1 (#359). Read lockRetained off the result, not the plan. uninstall.mjs (#182)
reinstallRefresh in place: snapshot → uninstall(keepConfig+keepLock, force) → re-render, rollback on failure; keeping the lock is load-bearing (the trackedFiles re-admission keeps poured opt-in syrup selected). --clean = wipe to empty + init (requires --yes, no render). Both shapes need a lock (#359). uninstall.mjs (#182)
avatars <sync|status>Owner-side Gravatar pipeline (#285): sync rasters + uploads/assigns each verified agent email's avatar; status reports drift only. Token from WAFFLE_GRAVATAR_TOKEN; unverified addresses are a manual remainder. status exits 1 on drift; any failed exits 1. avatars-sync.mjs, cli.mjs:322
validateToolkit-developer lint (see validate.mjs above), (including the .claude-plugin/marketplace.json ↔ stack-mods sync, #593), then claude plugin validate over the root marketplace and every stacks/*/mods/<name>/ when claude is on PATH — prints ok:/FAIL: per mod, or one skipped: line (not a pass) when the CLI is absent, so CI without it stays honest (#564). Exit 1 on problems. validate.mjs:67
helpBanner + usage + one line per command/flag to stdout, exit 0. helpText cli.mjs:429 (#187)

state --json shape (#561)

One document, version: 1. Additive fields keep the version; a renamed or removed field bumps it. keys[].value is the effective mode (overlay included — what this machine renders); keys[].canonical is the committed-inputs mode (what the shared lock renders, #317); source is one of LAYERS; flag is null when the key declares no flag: (an unnamed side is null); modes is [] for a flag-only key; description is the first sentence. runFiles.delegate is null unless a selected stack declares delegate.checkpointDir; latest.lastPhase walks fetch → classify → plan → execute → report and stops at the first phase whose sections are missing. locks.tree names the lock describing the disk; inSync (same toolkit version + commit) and divergence are null without a local lock. drift is plain doctor() with no toolkit root. config (#563) is EVERY declared key across the selected stacks resolved through the same layers (value with nested {{…}} expanded, source, stacks) — keys is its behavioral subset with the mode machinery. skills (#563) maps each selected skill to the declared keys its own files reference (collectUsedKeys over the skill, <key>.flag.<side> folded onto <key>, sorted) and the run files it writes: SKILL_RUN_FILE_KEYS expanded (delegate → checkpoint dir, its newest checkpoint when one exists, memory file; autopilot → plan dir), [] for every other skill. A skill selected from two stacks merges. The waffle-view mod slices by skills[<last /name>]. agents (#610) is the roster /standup spawns, found by its Step 1 rule: harness.skillsDir (for claude when targeted, else the first target) with its trailing segment swapped for agents, top-level *.md only, files with no frontmatter name or unparseable YAML skipped, sorted by name; description is the first sentence, file repo-relative; [] when the directory is absent. Local reads only, no gh. update (#608) is always present: latestTag, available (newer than cli.version), command (the pinned remedy, null with no repo), checkedAt (ISO time of the remote answer, else null), source (remote/cache/ local-tags/changelog/null — a checkout with no local v* tags reports changelog, #694); all-null/false when there is no verdict. board (#697) is present ONLY under --board (board.mjs): milestones[{title,dueOn}], epics[{number,title,done,total}], inProgress[]/inReview[] of {number,title,kind} (kind issue/pr/draft, number null for a draft), projectName (the project.name searched for; null means it is unset and no board lookup ran — text prints project.name unset — no board lookup), project ({number,title} of the matched board, null when none matches — then both item lists are empty, not an error), projectError (null, or why the board lookup failed — e.g. gh failed: …required scopes… without gh's project scope, or timed out when the 8 s budget ran out before it; project is null and both item lists empty, but milestones and epics stand and error stays null), error (null, or one of offline, gh not found, gh timed out, unexpected gh response, gh failed: <first stderr line>; on any error every list is empty and project is null), checkedAt (ISO time of the gh read, null offline), source (remote/cache/null).

{
  "version": 1,
  "cli": { "version": "0.16.1", "status": "release", "commit": "<40-char sha or null>" },
  "project": { "targets": ["claude"], "stacks": ["github-workflow", "orchestration"], "include": [], "eject": [], "localOverlay": false, "errors": [] },
  "keys": [
    {
      "key": "issue.confirmGate", "stacks": ["github-workflow"],
      "value": true, "source": "stack-default", "canonical": true, "default": true,
      "modes": [true, false, "prompt"], "prompt": false, "nonInteractive": false, "lockMode": null, "configModes": null,
      "flag": { "on": "--confirm", "off": "--yes" },
      "description": "Whether `/issue` pauses at the plan gate before mutating GitHub — create, enrich, and label."
    },
    {
      "key": "autopilot.autoMerge", "stacks": ["orchestration"],
      "value": "prompt", "source": "stack-default", "canonical": "prompt", "default": "prompt",
      "modes": [true, false, "prompt"], "prompt": true, "nonInteractive": false, "lockMode": "prompt", "configModes": null,
      "flag": { "on": "+automerge", "off": null },
      "description": "Per-run auto-merge consent for the autopilot backlog runner — whether an autopilot run may arm `gh pr merge --auto --merge` on the PRs it opens."
    }
  ],
  "runFiles": {
    "delegate": {
      "checkpoints": {
        "path": ".claude/worktrees/.delegate", "exists": true, "runs": 1,
        "latest": { "file": ".claude/worktrees/.delegate/delegate-1700000000.json", "runId": "delegate-1700000000", "mtime": "2026-10-06T12:00:00.000Z", "lastPhase": "plan", "sections": ["scope", "issues", "classification", "plan"], "parseError": null }
      },
      "memory": { "path": ".claude/worktrees/.delegate/memory.md", "exists": true, "bytes": 812, "maxBytes": 4096, "overCap": false }
    }
  },
  "locks": {
    "committed": { "path": ".waffle/waffle.lock.json", "present": true, "toolkitVersion": "0.16.1", "toolkitStatus": "release", "toolkitRef": "v0.16.1", "files": 67 },
    "local": { "path": ".waffle/waffle.local.lock.json", "present": false, "toolkitVersion": null, "toolkitStatus": null, "toolkitRef": null, "files": 0 },
    "tree": "committed", "inSync": null, "divergence": null
  },
  "drift": { "ok": true, "modified": [], "missing": [], "absentDocs": [], "notes": ["rendered by toolkit 0.16.1; installed CLI is 0.16.1"] },
  "config": {
    "delegate.checkpointDir": { "value": ".claude/worktrees/.delegate", "source": "stack-default", "stacks": ["orchestration"] },
    "issue.confirmGate": { "value": true, "source": "stack-default", "stacks": ["github-workflow"] },
    "issue.priorityLabels": { "value": "| Signal in issue content | Label |\n|---|---|\n…", "source": "stack-default", "stacks": ["github-workflow"] },
    "project.name": { "value": "wafflestack", "source": "waffle.yaml", "stacks": ["github-workflow", "orchestration"] }
  },
  "skills": {
    "delegate": {
      "keys": ["autoMerge.label", "delegate.approveBeforePush", "delegate.autoMerge", "delegate.batchMode", "delegate.checkpointDir", "delegate.memoryFile", "…"],
      "files": [".claude/worktrees/.delegate", ".claude/worktrees/.delegate/delegate-1700000000.json", ".claude/worktrees/.delegate/memory.md"]
    },
    "git-workflow": { "keys": ["git.cmd", "git.coAuthorTrailer", "…"], "files": [] },
    "issue": { "keys": ["issue.confirmGate", "issue.inferenceLabel", "issue.priorityLabels", "issue.reassessLabel", "issue.typeLabels", "project.name"], "files": [] }
  },
  "agents": [
    { "name": "docs-agent", "description": "Agent-optimized documentation writer.", "file": ".claude/agents/docs-agent.md" },
    { "name": "harness-architect", "description": "Expert in designing and building agent harnesses — …", "file": ".claude/agents/harness-architect.md" }
  ],
  "update": { "latestTag": "v0.17.0", "available": true, "command": "npx --yes github:dustinkeeton/wafflestack#v0.17.0 upgrade", "checkedAt": "2026-10-11T12:00:00.000Z", "source": "cache" }
}

Item refs and render selection

A ref (used by install, include:, eject, requires:) names something installable. Grammar + resolution in refs.mjs (parseRef refs.mjs:169, resolveRef refs.mjs:238). Kinds: agents, skills, files (a payload byte/text-copied to its repo-relative path), mods (a Claude Code plugin dir, enabled through .claude/settings.json entries, claude target only — #560, #594).

FormExampleMeaning
stackgithub-workflowa whole stack
itemskills/issue, files/.github/workflows/waffle-hygiene.yml, mods/waffle-viewunqualified; must be unique toolkit-wide
qualifiedengineering-team/skills/webapp-security-auditdisambiguates cross-stack collisions

canonicalRef is the minimal re-resolvable form — what install writes to include:.

Render selection (computeSelection, refs.mjs:515):

rendered = union(items of enabled stacks:) ∪ closure(each include: item) − eject:
  • Opt-in syrup gate — a stack's optIn: files/ items are excluded from default expansion unless already lock-tracked (trackedFiles) or explicitly include:-ed (refs.mjs:544): an existing install keeps updating, a fresh stack enable never silently arms a sensitive workflow. render/install print NOTHING about un-poured opt-in syrup (the #74 and #371 stderr warnings are removed: they reached agents doing unrelated work). A gated file whose requires: companion IS selected is reported only by the setup playbook, with the pour command (skippedSyrupCompanions, #74).
  • Target scope gate (#364) — a files: item with targets: is selected only when the project enables ≥1 of them (fileMatchesTargets); no targets: ⇒ unconditional. The gate sits after the trackedFiles re-admission, so scope overrides tracking: a poured file whose last target is disabled is PRUNED like a dropped stack. Loud on every path where silence would hide a deletion: include: skips warn (targetSkipped), broken requires: edges onto a non-opt-in file warn (targetBrokenRequires; an optIn: true entry is not printed), list reports a poured scoped-out file as PENDING REMOVAL. Every targets: malformation is a hard LOAD error in toolkit.mjs (an unknown name like [claud] is targets: [] spelled differently). Invariants: an unscoped file can never be pruned; an ejected file is never pruned, and targetBrokenRequires skips it. list asks the same prune question on EVERY deselection path (#371): a live lock path no selected item produces is PENDING REMOVAL, with a removalReason of scope (never offered by the picker) or deselected (offered — re-installing it renders); target-blind, so a fan-out prune is under-reported, never invented. The forward requires: edge onto un-poured opt-in syrup is computed by unpouredRequiredSyrup (#371) but no command prints it (skippedSyrupCompanions walks the edge the other way and cannot see it). The same forward edge onto an agent, skill, or non-opt-in file in a stack the project does not enable warns (disabledStackRequires, #520): expansion never pulls another stack's items in, so the remedy is enable the stack or install the item — never a silent enable. The #74 pairing note is eject-aware (#502): skippedSyrupCompanions reads selection.ejected and never advises the install that would un-eject the item (#497); the setup playbook marks such a file ejected — project-owned instead.
  • Dependency closure — installing an item pulls transitive cross-stack deps (BFS, deduped). Direct deps = agent frontmatter skills: (lenient) + stack requires: (strict). Recomputed every render, never persisted.
  • Grouping — config/env checks run per stack over selected items only; required-config is scoped to placeholder keys the selected items reference (missingRequiredKeys usedKeys).
  • eject: wins over stacks: and over a dependency closure. include: ∩ eject: is a hard error (#497): includeEjectOverlaps (pure over the config; a qualified include: matches its unqualified eject: twin) feeds computeSelection().errors + .ejectOverlaps, so render, list and toggle refuse, and doctor notes it and exits 1 (ejectOverlaps). The commands keep the lists apart: eject strips a matching include:; installRefs UN-EJECTS a requested item. The un-ejected file is untracked, so the #25 collision guard protects it — identical is adopted, differing refuses without --force. Every refused render calls rollback() (#548), leaving waffle.yaml as found; unejectCollisions against the render's collisions only picks the collision-specific message. eject is render-free by decision: it returns orphaned (closure-only deps of a dropped include, best-effort selection diff) and the CLI prints a run-render hint.

External stack sources

A stacks: entry is either a bare built-in name or { name, source, ref } naming a third-party source (#88). Parsed by normalizeStackEntries (project.mjs), resolved at render by loadToolkitWithSources → resolveSource (sources.mjs). Guide: schema/AUTHORING-EXTERNAL-STACKS.md.

FieldRule
namerequired; unique across ALL stacks: entries; collision = hard error naming both sources
sourcerequired; git URL (https://, ssh://, git@host:o/r, *.git) or local path (classifyStackSource); a local path of ~ or ~/… resolves against the current user's home (sources.mjs:95-96; ~user and env vars are not expanded) and the lock keeps the string as written (#862)
refgit source: REQUIRED; local path: MUST be omitted
acknowledgedChecksoptional; sha256 digest (checksDigest) of the stack's prerequisites[].check strings the consumer reviewed (#458); mismatch/absent = checks skipped + listed, never run

Git sources fetch at the pinned ref into a content-addressed cache (reused unless refresh); a leading-- source/ref is rejected (argument-injection guard). External files get lock sources provenance ({ name, source, sourceType, ref, commit, files }); doctor attributes drift per source, upgrade reports commit moves. render lints every external stack pre-write (#126) and warns extra when external opt-in syrup is poured. An external stack's check: commands are NOT run until acknowledgedChecks matches (#458): render/doctor list them (formatCheckGate) and bucket them under notRun; a branch-shaped ref gets an extra warning.

Stack prerequisites

Typed external prerequisites (#129) — environment facts a copy-in install can neither provide nor verify (distinct from requires: render-closure edges). Schema (prerequisites.mjs):

prerequisites:
  - kind: tool           # tool|secret|scope|label|setting|service|env
    name: gh
    level: require       # require (fails doctor) | recommend (reports only)
    check: command -v gh # deterministic shell command; exit 0 = satisfied
    items: [skills/issue] # optional scope to specific waffles; omit = stack-wide

doctor runs every applicable check (unmet require = exit 1); render probes only the cheap RENDER_PROBE_KINDS (tool/env) as non-blocking warnings. An EXTERNAL stack's checks run only once acknowledgedChecks on its stacks: entry equals checksDigest(stack) (#458); otherwise they land in notRun (never met/unmet, never gating) and the command list is printed. The legacy env: map is subsumed as the env kind, read-compatibly. The label kinds' bootstrap (gh label create --force for every waffle:* default) is the "Required labels" table in schema/SETUP.md:334 (#452).

Recommended external plugins

External harness plugins a stack suggests pairing with (#199) — Claude Code plugins/marketplace entries, not waffles. Schema (plugins.mjs):

recommendedPlugins:
  - name: acme-reviewer
    source: acme/claude-plugins   # marketplace ref or URL, surfaced verbatim; never fetched
    why: Adds inline review comments the pr-response skill then answers.
    items: [skills/pr-response]   # optional: waffle-level scope (same shape as prerequisites items:)
    targets: [claude]             # optional, ADVISORY: printed, never a render/inventory filter

Purely advisory and weaker than recommended:: setup lists offerable entries per stack under ### recommended plugins (plus a gated intro paragraph) and SETUP.md tells the agent to offer, not install. render/doctor/lock are untouched — enabling the key cannot change an output byte. validate requires name/source/why, rejects unknown keys and duplicate names, and resolves items:/targets:; malformed entries are lint problems (never load errors) and are not offered. Waffle-level recommendation = items: scoping; there is deliberately no per-waffle key and no registry entry (a plugin has no path, no render, nothing to prune).

Template semantics

  • Placeholders {{dotted.key}} (regex at template.mjs:4) substitute only if the key is declared in the stack's config: or is harness.*. Other braces (bash ${...}, mustache) pass through verbatim; $-prefixed ${{ }} (GitHub Actions) is excluded by negative lookbehind, so workflow payloads carry those untouched.
  • Value formatting (formatValue, template.mjs): strings verbatim; string arrays join , unless the key declares listFormat: code-bullets (one - `entry` line each; entries must be non-empty, one-line, and backtick-free, #612/#649); other structures render as a YAML block.
  • List keys (#612) — a composed key may declare omitWhenEmpty: <key>: makeResolver returns "" for it while that key resolves to []/""/null, so a section renders nothing without a template conditional (docs.protectedDocsSection gated on docs.protectedDocs). Linted by listKeyProblems (an omitWhenEmptyCycle loop is a problem; makeResolver throws on one); a key referenced only inside another key's string default counts as used, as does one a mod of the stack spells as a quoted literal in its source ('waffleView.editor', #616; not its tests or .d.ts).
  • Retired config keys (RETIRED_CONFIG_KEYS, project.mjs) fail render with the replacement named: docs.voiceGuardrailSection (removed 0.18.0 → docs.protectedDocs; migration 0.18.0). Migration 0.18.0 (migrations.mjs:57), like 0.16.0, edits COMMITTED config only: an overlay setting the old key is reported NOT migrated, never edited; prose → list of its backticked path-shaped tokens (protectedPathsFromProse(text, { exclude }) → { paths, skipped }, #648): camelCase docs.* keys and the committed (else frozen 0.18.0 default) docs.machineDocSet / docs.humanDocSet paths are skipped; all-caps (2+ chars: LICENSE, TODO), _-led, and frozen known extensionless names (EXTENSIONLESS_FILES_0_18: Makefile, Dockerfile, …) and @ + ~ ? {} [] , ! are kept, other capitalized words (Never, #655) are not a path; skipped tokens are logged with reasons on one not carried line; custom wording not carried; empty/non-string → docs.protectedDocs: []; protectedDocs already set → old key just dropped; prose naming no usable paths is left alone with a NOT migrated note (after the not carried line, if any).
  • harness.* — reserved, always-available namespace resolved per target (HARNESS_BUILTINS, project.mjs:774). Override via config.harness.<sub> (scalar → all targets, or per-target map). Guarded keys (HARNESS_PATTERNS, project.mjs:798): agentsDir, skillsDir, and the three target-independent CI-dispatcher scalars actionRef/actionVersion/apiKeySecret (#131) spliced into rendered workflow uses:/with: lines — each rejects ${{, quotes, newlines, so an override can repin the action without ejecting the workflow. One key is supplied at run time rather than built in: harness.toolkitVersion, the CLI's package.json version (makeResolver's runtime arg, threaded by renderProject/setupGuide/ generateWaffleDocs), which the github-workflow stack's doctor.toolkitRef default nests to pin waffle-doctor.yml to the release that rendered the lock (#461).
  • Nested substitution — substituted values re-expand up to depth 4 (MAX_SUBSTITUTION_DEPTH, template.mjs:7): a committed value can reference a key kept in the local overlay. Canonical text surviving the first pass is never re-scanned.
  • Value guards — a scalar config key may declare pattern: (full-match regex on the resolved value, which must be a STRING — a list/map value fails rather than dodging the guard via flattening, #341) plus optional patternHint: prose printed on rejection (#218). A map-valued key declares entryPatterns: instead — <leaf>: <regex> applied to every entry; unknown leaves fail (#156). Guards are unioned toolkit-wide (a key guarded in two stacks must satisfy both, #244) and enforced in substitute at render and by configGuardProblems in bare doctor; linted by validate.
  • Numeric keys (#630) — a key may declare range: { min, max } (inclusive, either optional): the RAW value must be a finite YAML number or a decimal string (toRangeNumber) inside the bounds (rangeProblem); exclusive with pattern/entryPatterns/modes/listFormat (rangeKeyProblems). A stack-level constraints: list adds cross-key checks — closed kinds (CONSTRAINT_KINDS: lessThan over two range: keys; anyPositive over one or more, #644), evaluated by constraintViolation / constraintProblems on resolved values when a selected item uses any of its keys: renderProject bails that stack, renderItemInMemory returns null, configGuardProblems (bare doctor) and failingConfigFor (pattern bucket) report it; stackConstraintProblems lints kind, keys, and defaults. First user: prResponse.rubric.thresholds.{implement,decline} (0–15, decline < implement); then prResponse.rubric.weights.{severity,reach,validity,effortRisk,alignment} (default 1, min 0, anyPositive); orchestration re-declares both families (same required/default/range) and both constraints (#646, drift-guarded by installer/test/autopilot-rubric.test.mjs:48-57).
  • Behavioral keys (#478) — a key declares a closed modes: list (scalars; prompt = ask the human) instead of a pattern:, optional flag: { on, off } invocation tokens, optional lockMode: <mode> (config may not set anything else; default: must equal it), optional configModes: [..] (#626 — the subset of modes config may say; default: must be in it; exclusive with lockMode, and may not list every mode), and nonInteractive: (a mode or fail; required iff prompt ∈ modes). Precedence: explicit token → waffle.local.yaml → waffle.yaml → default:. Membership is judged on rendered text; enforced at the same points as pattern: (modeProblems, template.mjs). A skill reads the resolved mode as {{key}} and the tokens as {{key.flag.on}} / {{key.flag.off}} (#486): loadStack adds each declared side to stack.declared (flagPlaceholders), makeResolver answers it from the stack's flag: map before any project value, and a side the key does not name fails validate and the render (undeclaredFlagProblem). A token is optional to reference. The four autopilot.* consents default to prompt with nonInteractive: false (#489): autopilot.autoMerge is lockMode: prompt (config may only say prompt; +automerge is the per-run on-switch), while qaLoop/reviewLoop/auditStep are configModes: [false, prompt] (#626 — config may pre-answer off, never on) with two-sided +qa/-qa, +review/-review, +audit/-audit tokens. Schema: schema/FORMAT.md § Behavioral keys.
  • Project command values — project.{lint,typecheck,test,build}Cmd (13 declarations, one byte-identical pattern:, stacks/code-quality/stack.yaml:66; project.installCmd and sec.auditCmd sit outside it by design) render into a Bash(<cmd>:*) grant, so each must be ONE program: no ; | & , ( ) ', no $(…)/backtick/${{ }}, no cd prefix, no CR/LF, no leading/trailing whitespace, non-empty (" and : allowed). A project with no such check sets the shell no-op true; true must never ship as a default: (it passes vacuously).
  • Upstream-pinned skills (#827) — a skill with an upstream: pin is NOT substituted (harness.* included): its files render byte-equal to the copy, plus the claude modelInvocation patch and the extension append. collectUsedKeys and validateStack's placeholder sweep skip it, so it demands, guards and lists no config.
  • Extensions — .waffle/extensions/{agents,skills}/<name>.md appended to the rendered item inside <!-- BEGIN/END project extension --> markers (appendExtension, render.mjs:898). Agents: appended to body; skills: to SKILL.md only.
  • Output conflict — two enabled sources emitting the same path is a hard render error (emit, render.mjs:450). Unmanaged-file overwrite guard — a rendered path already on disk but not lock-tracked refuses the render pre-write (render.mjs:242); byte-identical is adopted silently; --force overwrites.
harness.* keyclaudecodexagents-dir
harness.assistantNameClaudeCodexCodex
harness.attributionPathclaude-codeCodexCodex
harness.skillsDir.claude/skills.agents/skills.agents/skills
harness.agentsDir.claude/agents.agents/agents.agents/agents

Target-independent (#131): harness.actionRef = anthropics/claude-code-action, harness.actionVersion = pinned SHA + preserved # vX.Y.Z comment, harness.apiKeySecret = ANTHROPIC_API_KEY (project.mjs:786-788).

Render targets (VALID_TARGETS, project.mjs:71) — every target renders both kinds (#94):

Sourceclaudecodexagents-dir
agent agents/<n>.md.claude/agents/<n>.md (frontmatter + claude: passthrough; body).codex/agents/<n>.toml (name, description, developer_instructions=body).agents/agents/<n>.md (neutral frontmatter, no passthrough; body)
skill skills/<n>/.claude/skills/<n>/.agents/skills/<n>/.agents/skills/<n>/

codex + agents-dir share .agents/skills/<n>/ (renderSkill dedupes by output dir). Skills render byte-for-byte except substitution + extension append; non-.md supporting files copy verbatim. Expected .codex/ layout: agents/<n>.toml only (plus a consumer's own config.toml) — skills are in .agents/skills/; a sparse .codex/ is the complete render (#190). The codex TOML carries no skill grant by decision: Codex's [[skills.config]] (path + enabled) is a per-skill enable/disable override with undocumented relative-path resolution, not a grant, so agentToml conveys skill access in body prose only (DECISIONS.md 2026-09-12; guarded by content.test.mjs #224 + the #190 literal-Claude-path sweep over sources and a codex/agents-dir scratch render).

Consuming-project contract

Everything lives in the one .waffle/ directory (0.8.0 layout; legacy root .waffle.* and pre-0.6.0 .wafflestack.* names still read with a deprecation note, migrated in place):

FileTrackedRole
.waffle/waffle.yamlcommittedversion, targets, stacks, include, config, eject, skills.modelInvocation (#476: { disabled: [..], enabled: [..] } of skill names; shape-validated on load, throws like invalid targets:) (loadProjectConfig, project.mjs:587); install/eject/upgrade/toggle edit it comment-preservingly
.waffle/waffle.local.yamlgitignoreddeep-merged over committed config, wins on conflict. Private, never canonical (#317): shapes only this machine's bytes, excluded from the committed lock
.waffle/extensions/{agents,skills}/<name>.mdcommittedappended to the rendered item inside extension markers
.waffle/waffle.lock.jsongenerated (committed)rendered file → sha256 map + toolkitVersion + optional toolkit (#374), sources (#125) and upstream (#827: one { item, repo, path, commit, files } per rendered upstream-pinned skill, omitted when none) provenance blocks. Hashes the CANONICAL render (committed inputs only, #317) — byte-identical on every machine; doctor --verify-render reproduces it
.waffle/waffle.local.lock.jsongitignoredthe render this machine actually wrote; written only when the overlay changes an output byte. readTreeLock prefers it
.waffle/{CHEATSHEET,TEAM}.md + {cheatsheet,team}.htmlgenerated (committed or gitignored by consumers)overview of the installed selection; emitted via emit() so lock-tracked, pruned, hash-checked when present — absence is a doctor note, not drift (#528)
.waffle/AVATARS.md + .waffle/avatars/<agent>.svggenerated (committed or gitignored by consumers)deterministic per-agent avatar SVGs + Gravatar-registration manifest with derived commit emails (#157). Same emit() lifecycle; --gitignore offers .waffle/avatars/ (#528)
.waffle/waffle.reference.yamlgenerated (committed or gitignored by consumers)every config key the selection can set, commented out under config: (#703). Built from declarations only (values: {}), so no waffle.yaml/waffle.local.yaml value reaches it (#317); same emit() lifecycle, absence is a doctor note

Build / test / verify

Node >= 18. Single runtime dependency: yaml (package.json:34).

TaskCommand
testnpm test (node:test, installer/test/*.test.mjs; 2338 tests, 311 suites (2 skipped: the #445 per-target check for codex / agents-dir, whose rosters are null))
validatenpm run validate = node installer/cli.mjs validate
typechecknpm run typecheck = tsc -p tsconfig.json
buildnpm run build = npm pack --dry-run && node installer/cli.mjs doctor --allow-missing --verify-render --allow-unreleased
render (dogfood)node installer/cli.mjs render --allow-unreleased — flag REQUIRED (#373: a working tree is never at a release tag). Commit the updated lock (.waffle/waffle.lock.json); the .claude/ render is gitignored (#777) — doctor --verify-render in tests.yml gates the lock
verify rendernode installer/cli.mjs doctor (tree vs lock — not gated) / node installer/cli.mjs doctor --allow-missing --verify-render --allow-unreleased (committed inputs reproduce the committed lock — the CI gate, tests.yml:36, which gets the env twin from the job env: at tests.yml:21 instead of the flag)
upstream check (#828)npm run upstream:check = node installer/upstream.mjs check — live gh api, unmetered, local only (no CI hook). One line per pin: current|behind|diverged|error <ref> <repo>/<path> pinned <sha12> latest <sha12>; exit 0 all current, 1 any behind/diverged, 2 any error or bad args
upstream bump (#828)npm run upstream:bump -- [<ref>] [--commit <sha>] — rewrites the copy, pin, hash, registry commit and a CHANGELOG line for every behind pin (or <ref> at --commit); exit 0, or 2 on an error. Then npm run validate && npm test and review the diff
evals (metered, #109)npm run evals -- --max-calls N (live, needs ANTHROPIC_API_KEY) / npm run evals -- --dry-run (mock, free). 29 cases: code-quality (2) + github-workflow (15) + orchestration (6) + wafflestack (6). NOT in npm test

Test files (46; helpers prepare-fixture.mjs, self-render.mjs): installer.test.mjs (render pipeline, incl. a fetched git source: whose entry symlinks out of its checkout failing at load while an in-checkout symlink loads; sets WAFFLESTACK_ALLOW_UNRELEASED=1 at module scope — it spawns the real CLI from an untagged checkout), content.test.mjs (eval layer 1, #108: key-phrase assertions pinning load-bearing guardrails in the self-render (a tmp render of the committed config, installer/test/self-render.mjs, #777) AND every stacks/** source, #360; includes the #172 clean-up delegate-checkpoint sweep guard with its can-fail fixture, content.test.mjs:3993, :4018; the #511 block autopilot skill: the manual-review queue has a service level (#511) (content.test.mjs:1300); the #794 block autopilot + pr-response: gate loops converge on zero should-fix, not zero implemented (#794) (content.test.mjs:1463); and the #445 harness tool allowlist sweep — sources, self-render, temp all-targets render, agent tools: frontmatter — with its own can-fail fixtures), plugins.test.mjs (#199: recommendedPlugins: normalize/offer/lint over a one-stack fixture), evals.test.mjs (eval layer 2 harness with the mock model, free inside npm test), checkpoint.test.mjs / memory.test.mjs / identity.test.mjs (the delegate skill's shipped validator/preflight scripts), telemetry.test.mjs (#227: rendered token-spend jq/bash programs against fixtures), avatars-sync.test.mjs (#285: injected HTTP + rasterizer), typecheck-gate.test.mjs (#177), provenance.test.mjs (#373/#374/#372: identity, release gate, lock toolkit block, pin reconcile — hermetic, strips the env var per spawn), preflight-ci-parity.test.mjs (#375: the four project.*Cmd config slots mirror tests.yml's required test job), registry.test.mjs (#335: waffle registry gating/rename reconciliation), upstream.test.mjs (#826: upstreamHash known vector + order/byte/rename/add sensitivity, the { name, upstream } skills entry load + load errors, upstream: shape lint and the LICENSE requirement, the copy-matches-pin gate (one byte, LICENSE, .DS_Store), registry ↔ stack.yaml upstream reconcile), upstream-sync.test.mjs (#828: checkUpstream/bumpUpstream over a fixture toolkit and an in-memory fake gh that rejects any unserved endpoint — current/behind/LICENSE-only/later-unrelated-pin/newer-of-two/diverged/error-isolated statuses; a bump rewrites the copy (added + deleted files), splices stack.yaml commit + hash with every other byte kept, the registry commit and a CHANGELOG bullet, then validateToolkit is clean; a second bump writes nothing; each refusal (symlink, submodule, traversal path, no root LICENSE, <path>/LICENSE, relicense, drifted copy, diverged) writes nothing; addChangelogLine units; the runner exits 2 with usage on bad args before reaching gh), tstack.test.mjs (#828: the shipped council copy is exactly LICENSE + SKILL.md, hashes to the pin, matches the registry; renders byte-equal on claude + .agents/, lock upstream entry; an extension appends after the exact bytes; no #445 roster violation; every pinned copy is -text per git check-attr), upstream-render.test.mjs (#827: a pinned copy with {{not.a.key}}, {{harness.*}}, an undeclared flag token and a required key renders byte-equal on both targets with no config demanded (unpinned control fails), extension and modelInvocation still apply, the lock upstream block shape/order/omission/byte-stability incl. the local lock, doctor note + attribution + --verify-render stale/absent/unexpected pseudo-keys, eject drops the entry, report line, diffUpstream units + an upgrade commit bump, state/config/validate read no keys from the copy), mods.test.mjs (#560: the mods/ kind on a fixture stack — load shape, ref grammar, verbatim claude-only render → lock → doctor hand-edit → eject → prune on target change, include-skip warning, opt-in gate, cross-stack conflict, load errors, registry reconcile/wip gate, inventory; #562: the built-in wafflestack/mods/waffle-view loads with its six files, its manifest/hooks.json point at shipped files, it reads only via state --json (no --offline, #608), and it renders byte-identical into a claude consumer's lock; #616: the stack declares waffleView.editor (default cursor, no modes), state.ts spells it as a literal, collectState resolves it as stack-default and an argv-array override as waffle.yaml, and a fixture mod's quoted literal keeps a declared key referenced (gone → "never referenced"); #610 (state.test.mjs): agentRoster keeps top-level named *.md only (nameless, bad-YAML, .txt, nested skipped), sorts by name, reads .agents/agents for codex and the Claude roster under [codex, claude], follows a harness.skillsDir override, matches this repo's committed .claude/agents/ in JSON and text, and pins the standup SKILL.md roster sentences; #563: config resolves every declared key with its layer, skills lists a skill's referenced keys (flag placeholders folded) and its SKILL_RUN_FILE_KEYS files incl. delegate's newest checkpoint; #564: MOD_ENGINE_LAID files laid into a fixture mod are skipped at load and absent from the render, validateModPlugins with stubbed locate/run covers the present/ok, present/FAIL and absent/skipped paths plus no-mods silence, and setupGuide prints the mods load block with the probe's three states and omits it without the claude target), comment-gate.test.mjs (#388 doctrine enforced mechanically over git-TRACKED installer/** and stacks/** .mjs plus workflow YAML: comment-ratio ceiling 15% — 20% for stacks/**/*.mjs, ≤12 comment lines exempts a small file — plus an 8-line max comment run, typed JSDoc excluded; the GRANDFATHERED ratchet map is EMPTY as of the sweep, so every in-scope file meets the ceilings), migrations.test.mjs (#501: the 0.16.0 overlap migration, overlay never edited, upgrade end-to-end; #612: the 0.18.0 docs.protectedDocs migration; #670: the frozen 0.18.0 extensionless-filename list deep-equaled to a literal; and the release guard — a bump cannot skip a pending migration), list-keys.test.mjs (#612: listFormat/omitWhenEmpty, retired keys; #649: blank entries rejected), config-modes.test.mjs (#478: behavioral-key validate rules, render + doctor guards, locked autopilot consents), report.test.mjs (#473: bundle redaction, CLI surface, scrub/projection helpers; #640: line 2 of the <details> block equals REPORT_SUMMARY, and the report: upstream hold workflow (#640, #653) suite over consumer-report-hold.yml — a deep-equal of the whole parsed workflow (any added key — container:, defaults:, services:, a step — fails; pins the if: summary marker AND the #653 OWNER/MEMBER/COLLABORATOR exemption, the two gh issue edit steps hold-then-provenance) plus a raw-text check (github.event.issue.* refs are exactly body then author_association, never title; exactly three ${{ — the env: values; no uses:)), sources.test.mjs (#460: source cache location + checkout verification), config.test.mjs (#701: config lookup on a two-stack fixture — setup parity, source attribution incl. the overlay, constraints, multi-stack conflicts, prefix/near-miss/out-of-scope errors, long text; CLI guards and the starter-config pointer), toggle.test.mjs (#476: config normalization, frontmatter patch, fixture render + toggle, CLI), update-check.test.mjs (#608: newerRelease, cached/offline/failed resolveLatestRelease, updateVerdict, doctor's note keeps ok, checkout CLI writes no cache), autopilot-integration.test.mjs (#731: autopilot.integration declaration/resolution and its SKILL.md wiring; #742: Step 8's merge wait polls state + mergeStateStatus and ends as blocked on a red check, DIRTY/BEHIND/CLOSED or a two-hour stall; #744: red check reads gh pr checks --required only, decided from output, so an optional check never counts; #745: an all-infra red check is rerun once by run id, a disarmed PR ends the wait, and a red-check retry disarms and closes the PR first, then cuts a fresh -retry branch; #741: the end-of-run integration wait reuses Step 8's rule and every final gh pr create --base main carries --title; #747: integration gate stage 1 sync PR, lock-only conflict resolution, hold path, waffleCmd/installCmd defaults; #750: --cleanup=strip sync commit, a fork toolkitRef drives waffleCmd, verify-then-label on the sync and fix PRs; #733: adversarial-review --integration mode, stage 2 consent/cold rounds/fix-PR path/hold, pr-response ## Fix branch override; #734: stage 3 audit on the final PR, its worktree, fix PR and hard-block hold, the per-PR audit gate off in integration mode; #735: the final PR arms only on a green gate, never after a fix PR merged, with the stage 2 status proof, then closes out and deletes <integ>; #754: stage 2's bounded green wait, its status-proof pass condition, and the responder worktree <a2>/<b2> with its -retry branch and cleanup; #758: stage 2's own review lookup and its status write with adversarial-review's exact POST; #756: the final PR body's per-stage run/not-run lines, the one audit hand-off linked from every path that skips stage 3, stage 3's HEAD/branch stray-edit record; #767: stage 2's matching status/HEAD/branch record and its follow-up listing; #771: the hand-off still applies while run PRs are open and none merged; #782: the stage 2 hand-off on the not-opened and stage 1 hold paths, ordered before the audit hand-off; #806: the not-opened path hands off stage 1 before the gh pr create command; #812: the stage 1 hand-off is defined once as human-run commands with no step 6 hold, and a steps 2–3 hold re-runs stage 1; #817: the step 4 and steps 5–6 re-run resumes link the hand-off; #838: integration holds post a PR comment and file an issue only for unresolved stage 2 findings or the stage 3 audit block; #846: item 4 refreshes the final PR's Closes list from every merged-into-<integ> PR's body before arming (the jq filter run on an #840-shaped fixture), item 5 closes out the union), autopilot-overwrites.test.mjs (#748: overwrites.mjs on temp repos with real --no-ff merges — clean, blind conflict clobber flagged, built-on rewrite as NOTE, sync label, outside-run removal, deleted file, rename followed, blanks, lock/--ignore, exit 2 on bad args; #752: catch-up-then-edit NOTE, catch-up-merge drop and hand-edited merge findings, --pr order-free with exit 2 off first-parent, --rebase drop/keep-both/clean/modify-delete/lock/exit 2, the rebase-held SKILL wiring; #779: a Step 8 marker-query error on an armed or merged PR is not a rebase hold; the gate's rendered step 4 and integrationChecks default), autopilot-changelog-merge.test.mjs (#759: changelog-merge.mjs on real conflicted temp-repo syncs — same-point and cross-### additions resolve main-first, CHANGELOG plus lock eligible, release rename, fresh [Unreleased], deletion, edit, other ## heading, added ###, other path, no [Unreleased] and modify/delete hold without writing, dry run, exit 2 on bad args; #774: a shared same-point start or end entry is kept once, each side's blank separator kept, an identical addition ending in a blank kept once, a shared middle entry holds; #783: different multi-line entries sharing a Consumer impact line keep it in both and do not hold, a bullet both sides add with different continuation lines holds; #784: an identical same-point lead-in is kept once, a main-only lead-in and blank-only lead-ins resolve, an integ lead-in after a bullet main added holds, and so do differing lead-ins that share a line; #803: a main-only lead-in resolves against a differing integ lead-in and bullet, against differing lead-ins with no bullet, and (guards) against an integ that adds nothing at that point and before a bullet both sides add; #810: an unindented or one-space integ lead-in after main's lead-in ends in a blank, an integ lead-in after main's lead-in already left the entry, and lead-ins sharing a line up to trailing whitespace hold; rendered script equals source), autopilot-rubric.test.mjs (#646: autopilot --rubric pass-through and rubric base line render), rubric-override.test.mjs (#645: pr-response --rubric run override), rubric-thresholds.test.mjs (#630: pr-response rubric thresholds render/doctor, range:/constraints: guards and lint), rubric-weights.test.mjs (#644: rubric weights render/doctor, anyPositive constraint kind), blockers.test.mjs (#549/#579: picker blockers, prerequisite and external-source trust hints, upgrade names stale tag mentions), board.test.mjs (#697: readBoard, state text board block, CLI flag), config-reference.test.mjs (#703: configReferenceYaml formatter, the real toolkit reference, uncommented tree passes render + doctor, #317 no config value leaks), installed-mods.test.mjs (#730: doctor names the claude plugin update for a stale installed mod), post-merge-delete.test.mjs (#212: post-merge hook branch-delete probe — confirmed 404 vs failed check; skipped without bash), overlay-leak.test.mjs (#614: overlayDivergentFiles, gitIgnoreStatus, render/doctor/upgrade leak warnings incl. tracked, sub-root cwd and symlinked render dirs, render --gitignore adding leaked paths, doctor CLI), workflow-render-step.test.mjs (#615/#789: waffle-render step coverage + canonical block, step behavior on fixtures, overlay-free CI render, --untrusted-config, symlink refusal), self-posture.test.mjs (#777: this repo's lock-managed .claude/ render is untracked + gitignored; config, extensions, lock and rendered workflows tracked), prepare-worktree.test.mjs (prepareWorktree on temp git checkouts: collisions and unsafe symlinks fail before any write, rollback and the mutex, overlay policy and --overlay, pin/offline-cache resolution, settings merge, --untrusted-config, upstream-pinned skills byte-equal), worktree-smoke.test.mjs (runs installer/smoke/worktree-discovery.mjs --invoke against a stub runtime for five scenarios, no model calls).

Harness tool roster (#445)

installer/lib/harness-tools.mjs is the single place a harness tool rename or removal is recorded. content.test.mjs ("every tool call is in the harness roster") extracts every call-shaped Name( from each stacks/** skill/agent source, the tmp self-render (installer/test/self-render.mjs), a temp all-targets render, and each agent's tools: frontmatter, and fails with file, line and name on any call outside the target's roster. Maintenance rule: adding a Tool( call to any skill or agent means adding the name to HARNESS_TOOLS.<target> on purpose, in the same PR — a missing roster entry is a bug in the PR that introduced the call, never grounds for a stop-list entry. The stop-list is syntactic only (constructors, declarations, member calls, (s) plurals), never a name. A target whose roster is null is unverified and its check skips visibly; declare [] to assert that nothing rendered there calls any tool. TeamCreate / TeamDelete / TeamList (#360) are asserted absent from every roster.

Dogfood state

This repo renders 6 stacks into itself — github-workflow, docs-system, orchestration, harness-architect, wafflestack, tstack (targets: [claude]; .waffle/waffle.yaml:6-13); the lock carries an upstream block for tstack/skills/council (waffle.lock.json:30). include: arms files/.github/workflows/waffle-release-hook.yml, files/.github/workflows/waffle-post-merge-hook.yml, code-quality/skills/adversarial-review (run by pr-green when armed), code-quality/skills/qa (autopilot's opt-in QA gate), and the two orchestration syrup scripts files/.claude/workflows/audit-stage-{1,2}.js (#363: inert until a session invokes them, no spend — poured so the render + lock exercise the opt-in targets: path; gitignored with the rest of the .claude/ render), and files/.github/workflows/waffle-hygiene.yml (waffle.yaml:21). Paid Claude-dispatch hooks: hygiene is ARMED — PR #495 re-added its include: line, PR #496 dropped its eject: entry and re-rendered, so .github/workflows/waffle-hygiene.yml is lock-managed (waffle.lock.json:100) and tracked in git (cron 0 13 * * * + workflow_dispatch, reads secrets.ANTHROPIC_API_KEY; waffle-hygiene.yml:9-10,110). pr-green and pr-response stay DISARMED: eject: holds both files/ refs (waffle.yaml:206-208; #414), neither is in include:, the lock tracks neither rendered path, and neither file exists under .github/workflows/. Re-arm one (#343): install <files/ref> — un-ejects it, adds the include: entry and renders (eject.mjs:174-185, cli.mjs:98-99; a differing project-owned copy refuses and rolls back without --force) — then commit.

Lock-only (Posture 2b, #777): .waffle/waffle.yaml, .waffle/extensions/, the lock, the rendered .github/ files and .claude/settings.json (project-owned; its waffle-view@wafflestack entries are lock-managed, #594) are COMMITTED; the .claude/ render (agents/, skills/, workflows/) is gitignored (/.claude/{skills,agents,workflows}/*, so ! can re-include an ejected item). Re-render after a pull or a stacks/** edit and commit the LOCK; self-posture.test.mjs fails if the render is re-tracked. Delegate/autopilot run prepare-worktree before worker startup and recheck reused/retry checkouts after input changes. They run autopilot.waffleCmd from inside the destination checkout, so this repo uses its own unreleased installer rather than a bare executable. The preparation module is type-checked; --overlay local|main|none overrides local Git policy per invocation without bypassing privacy or interrupted-transaction guards. t3.json runs the local development CLI before new worktree sessions; it reproduces the committed lock and provisions only harness artifacts. Runtime fallback is not the contract. See docs/worktree-setup.md for host adapters and overlay policy. Gitignored deliberate absences, tolerated by doctor's --allow-missing: the .claude/ render, .claude/worktrees/, .codex//.agents/ (non-targets), .github/workflows/waffle-label-hook.yml (would arm a live label→harness dispatch), and the generated .waffle/ overview docs (CHEATSHEET.md, TEAM.md, both .html, AVATARS.md, avatars/, waffle.reference.yaml).

CI render gate (#314/#316): .github/workflows/tests.yml (project-owned — NOT lock-managed) runs npm test + npm run validate + npm run typecheck (tests.yml:30-32), then WAFFLESTACK_ALLOW_UNRELEASED=1 node installer/cli.mjs doctor --allow-missing --verify-render with the checkout's OWN CLI (tests.yml:36) — catching a stacks/** edit whose re-render was forgotten. The job supplies WAFFLESTACK_ALLOW_UNRELEASED: '1' at its env: block (tests.yml:21-22; actions/checkout fetches no tags, so the checkout is unreleased by construction — the flag suppresses the refusal, not the truth). This gate cannot live in doctor.flags: the shipped waffle-doctor workflow renders via npx github:dustinkeeton/wafflestack (main's toolkit), wrong for this repo's own PRs in both directions. Toolkit-local CLI calls in this repo's config prompts (delegate.extraPreflight, audit.compliancePrompt) pass --allow-unreleased on render for the same reason.

.github/workflows/consumer-report-hold.yml (#640) is also project-owned — NOT lock-managed, no stack renders it: on issues: opened it adds waffle:reassess + waffle:consumer-report to issues whose body carries REPORT_SUMMARY, unless the author is OWNER/MEMBER/COLLABORATOR (#653); pinned by report.test.mjs.

Protected docs

config.docs.protectedDocs in .waffle/waffle.yaml lists the paths docs passes flag instead of rewriting: CHANGELOG.md and .waffle/**. README.md and the schema/*.md docs are normal docs-pass targets (#612).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.