apm-spec-guardian
Skill3.9k starsChanged 3 months agoMITView on GitHub
Use this skill to run a four-panel adversarial advisory review on any pull request that touches the OpenAPM specification artifact (docs/src/content/docs/specs/openapm-*.md), its inline / sidecar JSON Schemas (docs/src/content/docs/specs/schemas/*.schema.json), or the conformance fixture seed (tests/fixtures/spec-conformance/**). The panel fans out to four spec-ecosystem reviewers (swagger-openapi-editor, oci-distribution-editor, pkgmgr-registry-contract-editor, w3c-tag-architect), each running in its own agent thread, and a spec-editor synthesizer that produces a fold-now / defer-v0.1.1 / defer-v0.2 / reject list plus a ship decision keyed off a 1..10 shocked_meter scale. The orchestrator is the sole writer to the PR: ONE consolidated comment, no verdict labels, no merge gating. The panel is advisory -- it surfaces findings, prioritizes folds, and renders a ship recommendation that the maintainer weighs.
Trending
Quiet since October.about the whole repository
Who's talking about microsoft/apm
- dependabot/dependabot-core“Support https://github.com/microsoft/apm - agent package manager”GitHub · Mar 3, 2026 · 22 reactions
- renovatebot/renovate“feat(manager): add apm manager for Agent Package Manager”GitHub · Jul 6, 2026 · 8 reactions
- A Hacker News story“Agent Package Manager”Hacker News · Mar 18, 2026 · 7 points
- @qdrddr.bsky.social“#VibeCode Easy: declare and share #skills, prompts, instructions, and tools for your git project with …”Bluesky · Mar 5, 2026 · 3 likes
- @ironyuppie.com“What are people using to manage agent skills across harnesses and machines? APM looks promising but not …”Bluesky · Sep 11, 2026 · 2 likes
The biggest 5 of 41 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 41
Talked about on GitHub, Hacker News and Bluesky (41 times).
On GitHub · 32
- Mar 3, 2026Support https://github.com/microsoft/apm - agent package manager — dependabot/dependabot-core22 reactions · 5 comments
- Jul 6, 2026feat(manager): add apm manager for Agent Package Manager — renovatebot/renovate8 reactions · 25 comments
- Jun 22, 2026[Feature] Add Agent Package Manager distribution mechanism — pbakaus/impeccable2 reactions · 3 comments
- Jun 5, 2026[FEATURE] Native support for Claude Code Plugin Format — LobsterTrap/lola2 reactions · 3 comments
- May 4, 2026Support scanning all agent context-building blocks, not just SKILL.md — snyk/agent-scan2 reactions · 3 comments
27 more on GitHub
- Apr 7, 2026feat: add asdf-apm plugin for Microsoft Agent Package Manager — asdf-vm/asdf-plugins2 reactions
- Apr 3, 2026chore(deps): update dependency microsoft/apm to v0.8.10 — MH0386/aur2 reactions · 4 comments
- Oct 1, 2026build(deps): bump apm-cli from 0.20.0 to 0.32.0 in /.apm-cli-pin — elastic/oblt-aw1 reaction · 3 comments
- Jul 28, 2026Add a feature for installing APM from https://github.com/microsoft/apm/releases — postfinance/devcontainer-features1 reaction
- May 29, 2026Expression-harvesting pass hoists ${{ ... }} tokens from inside bash # comments into step env, breaking workflow load (regression since v0.76) — github/gh-aw1 reaction
- Apr 28, 2026shared/apm.md: align docs with canonical microsoft/apm source; deprecate vendored copy — github/gh-aw1 reaction
- Apr 27, 2026Feature request: first-class label-name filter on `pull_request_target.types: [labeled]` (avoid red "skip via exit 1" idiom) — github/gh-aw1 reaction · 1 comment
- Apr 22, 2026Add support Microsoft APM — droosma/vibe-codeGraph1 reaction
- Apr 19, 2026APM integration — a few alignment notes from the APM side — bradygaster/squad1 reaction · 1 comment
- Mar 31, 2026feat(init): bridge to APM during init for cross-team distribution — microsoft/agentrc1 reaction · 2 comments
- Mar 28, 2026[ca] CLI Version Update: MCP Gateway v0.2.7, APM v0.8.6 — github/gh-aw1 reaction
- Mar 24, 2026[ca] CLI Version Updates: MCP Gateway v0.2.4, APM v0.8.5 — github/gh-aw1 reaction
- Mar 23, 2026[ca] Update APM (Agent Package Manager) to v0.8.4 — github/gh-aw1 reaction
- Mar 22, 2026[ca] CLI Version Update: MCP Gateway v0.1.20→v0.1.22, APM v0.8.2→v0.8.3 — github/gh-aw1 reaction
- Mar 18, 2026[ca] CLI Version Updates: MCP Gateway v0.1.17, APM v0.8.1, Claude Code 2.1.78, Copilot CLI 1.0.7 — github/gh-aw1 reaction
- Oct 3, 2026Reproduce: clone URL and SSH entries are looked up wrongly — MPV/renovate-apm-demo10 reactions
- Oct 3, 2026Reproduce: object-form entries are dropped — MPV/renovate-apm-demo10 reactions
- Oct 3, 2026chore(deps): bump apm-cli from 0.31.0 to 0.32.0 — juangcarmona/agent-toolkit0 reactions
- Sep 28, 2026chore(apm): refresh baseline — thetechgy/agent-engineering-baseline0 reactions
- Sep 25, 2026APM install target `copilot` no longer ships VS Code MCP configs — ministryofjustice/ai-toolkit0 reactions
- Sep 4, 2026Consider APM for this repo — con/skills0 reactions · 1 comment
- Sep 4, 2026[GHSA-q5pp-gvjg-h7v4] Correct PyPI package name from `apm` to `apm-cli` — github/advisory-database0 reactions
- Jul 22, 2026Your Task title Evaluate AI SDLC / SpecKit Tooling — eclipse-score/score0 reactions · 1 comment
- Jun 24, 2026try https://github.com/microsoft/apm — sushichan044/dotfiles0 reactions
- Jun 14, 2026Consider delegating the packaging layer to microsoft/apm — apache/magpie0 reactions · 3 comments
- May 28, 2026APM support into HVE Core — microsoft/hve-core0 reactions · 2 comments
- Mar 24, 2026feat: implement APM unpack in JavaScript, replace microsoft/apm-action restore step in agent job — github/gh-aw0 reactions · 19 comments
On Hacker News · 5
- Mar 18, 2026Agent Package Manager7 points
- Jun 24, 2026Microsoft Agent Package Manager2 points
- Mar 4, 2026APM – Agent Package Manager (Microsoft)2 points
- Mar 31, 2026Show HN: A tool to solve the Agent Supply Chain pandora box1 point
- Mar 20, 2026Show HN: Agent Package Manager (APM) for Agent Configuration1 point
On Bluesky · 4
- Mar 5, 2026#VibeCode Easy: declare and share #skills, prompts, instructions, and tools for your git project with APM.yaml across the team. By… — @qdrddr.bsky.social3 likes and reposts · 1 reply
- Sep 11, 2026What are people using to manage agent skills across harnesses and machines? APM looks promising but not very popular (in the grand scheme)… — @ironyuppie.com2 likes and reposts · 1 reply
- Jul 22, 2026gh skills コマンドとどっちが良いかな。 おそらく apm に移行するかな。 🔗 microsoft/apm: Agent Package Manager github.com/microsoft/apm — @teruhirokomaki.bsky.social1 likes and repost
- Apr 16, 2026AIエージェントのプロンプトやスキルを管理できるパッケージマネージャーらしい 開発環境を統一したいチームでかなり便利そう yug1224 starred microsoft/apm https://github.com/microsoft/apm — @yug1224.com1 likes and repost
In this repository98 other files it gives its agents.
- templates/hello-world/AGENTS.mdAGENTS.md
- tests/integration/fixtures/target_resolution/s01_claude_md_only/CLAUDE.mdCLAUDE.md
- tests/integration/fixtures/target_resolution/s06_dry_run/CLAUDE.mdCLAUDE.md
- tests/integration/fixtures/target_resolution/s07_compile_all_single/CLAUDE.mdCLAUDE.md
- tests/integration/fixtures/target_resolution/s15_claude_rules_exists/CLAUDE.mdCLAUDE.md
- tests/integration/fixtures/target_resolution/s16b_provenance_cwd/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- packages/apm-contributor-dashboard/.github/copilot-instructions.mdCopilot instructions
- packages/autopilot/autopilot-maintainer-canvas/.github/copilot-instructions.mdCopilot instructions
- tests/integration/fixtures/target_resolution/s02b_copilot_instructions/.github/copilot-instructions.mdCopilot instructions
- tests/integration/fixtures/target_resolution/s05_apm_yml_multi/.github/copilot-instructions.mdCopilot instructions
- apm-strategySkill
- authSkill
- autopilot-commentSkill
- autopilot-issue-delivery-schedulerSkill
- autopilot-issue-delivery-workerSkill
- autopilot-issue-triage-schedulerSkill
- autopilot-issue-triage-workerSkill
- autopilot-pr-merge-workerSkill
- autopilot-pr-review-schedulerSkill
- autopilot-pr-review-workerSkill
- autopilot-pr-triage-schedulerSkill
- autopilot-pr-triage-workerSkill
- cli-logging-uxSkill
- cut-releaseSkill
- devx-uxSkill
- docs-corpus-auditSkill
- docs-grounding-verifierSkill
- docs-impact-architectSkill
- docs-impact-classifierSkill
- docs-impact-localizerSkill
- docs-syncSkill
- oss-growthSkill
- pr-description-skillSkill
- python-architectureSkill
- supply-chain-securitySkill
- apm-spec-guardianSkill
- apm-strategySkill
- authSkill
- cli-logging-uxSkill
- cut-releaseSkill
- devx-uxSkill
- docs-corpus-auditSkill
- docs-grounding-verifierSkill
- docs-impact-architectSkill
- docs-impact-classifierSkill
- docs-impact-localizerSkill
- docs-syncSkill
- oss-growthSkill
- python-architectureSkill
- supply-chain-securitySkill
- apm-usageSkill
- autopilot-commentSkill
- autopilot-issue-delivery-schedulerSkill
- autopilot-issue-delivery-workerSkill
- autopilot-issue-triage-schedulerSkill
- autopilot-issue-triage-workerSkill
- autopilot-pr-merge-workerSkill
- autopilot-pr-review-schedulerSkill
- autopilot-pr-review-workerSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 6 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 65
Blocker veto: If ANY panelist returns new_blocking_findings[].length > 0, the synthesizer MUST emit ship_decision: next_brief regardless of …
- Very specific: line 70
Single-writer interlock: Only the orchestrator writes to the PR: exactly one add-comment call and one remove-labels call.
- Distinctive: line 80
ASCII-only artifact: Every byte the skill writes (the comment, the synthesizer prose, any rendered fold instruction) MUST be within …
- Very specific: line 172
New-version mode: If the PR body contains the literal marker line apm-spec-guardian: new-version, OR the diff creates a new …
- Distinctive: line 177
Editorial-only mode: If ALL of the following hold:
- Very specific: line 180
no JSON Schema file was added, removed, or had its top-level properties keys changed,
- Distinctive: line 182
no fixture file was added or removed (existing fixture content edits are OK),
- Very specific: line 184
no anchor of the form <a id="req- was added or removed, classify as editorial-only.
- Distinctive: line 194
Document the decision in the comment header (one line: "Scope: <mode>.
- Very specific: line 247
Ask for: convergence_table, convergent_themes (themes flagged by 2+ panels), fold_now[] (surgical single-section fixes only), …
- Very specific: line 255
If sum(panelist.new_blocking_findings) > 0 across all panels, ship_decision MUST be next_brief.
- Very specific: line 266
NOT pick a verdict label. The ship_decision is prose for the human reviewer, not a gate.
- Very specific: line 275
Run assets/linter-checklist.md against the in-scope artifact set (spec markdown + schemas + fixtures).
- Distinctive: line 306
NEVER render the words "Verdict", "APPROVE", "REJECT", "blocked", "merge gate", or any equivalent.
- Very specific: line 319
NEVER call gh pr comment, NEVER call gh pr edit --add-label.
- Distinctive: line 322
Never invent new top-level template sections or drop existing ones.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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.
Files
APM Spec Guardian -- Four-Panel Advisory Review for OpenAPM
This skill institutionalizes the two-round adversarial spec review
that produced OpenAPM v0.1 by hand. The panel is FAN-OUT +
SYNTHESIZER. Each panelist runs in its own agent thread (via the
task tool) and returns JSON matching
assets/panelist-return-schema.json. The orchestrator schema-validates
each return, hands all returns to the spec-editor-synthesizer
(also a task thread, returns JSON matching
assets/synthesizer-return-schema.json), runs the linter checklist
in assets/linter-checklist.md, then renders ONE comment from
assets/comment-template.md.
This skill is ADVISORY by design. It does not compute a binary verdict, it does not apply verdict labels, and it does not gate merge. The panel surfaces findings; the maintainer ships.
Activation scope
This skill activates ONLY when the PR diff touches at least one of:
docs/src/content/docs/specs/openapm-*.md(the normative spec artifact, current and future versions)docs/src/content/docs/specs/schemas/*.schema.json(sidecar JSON Schemas, if/when the inline Appendix-A schemas are extracted to files)tests/fixtures/spec-conformance/**(the conformance fixture seed)
Edits to any OTHER documentation page MUST NOT trigger this skill.
The maintainer's general docs-sync skill covers those.
Architecture invariants
- Advisory regime, not gate regime. There is no
APPROVE/REJECT, nospec-approved/spec-rejectedlabel, no deterministic verdict computation. The synthesizer returns aship_decision(fold_and_ship/needs_revision/next_brief); this is prose for the human reviewer, never auto-applied as a label or status check. - Ship-meter floor.
ship_decision: fold_and_shipREQUIRESshocked_meter_avg >= 7.0. Below 7.0 the synthesizer MUST emitneeds_revision(single drafter pass on the existing artifact) ornext_brief(another round of panel review with a new brief). The floor is advisory wording in the comment, not a status check. - Blocker veto. If ANY panelist returns
new_blocking_findings[].length > 0, the synthesizer MUST emitship_decision: next_briefregardless of the shocked_meter_avg. A blocking finding from one panel is not outweighed by three panels rating the artifact 9/10. - Single-writer interlock. Only the orchestrator writes to the
PR: exactly one
add-commentcall and oneremove-labelscall. Theremove-labelscall sweepsspec-review(trigger idempotency). NOadd-labelscall -- there are no verdict labels. Panelist subagents and the synthesizer subagent return JSON only and MUST NOT call anyghwrite command, post comments, apply labels, or touch PR state. - Single-emission discipline. Exactly one comment per panel run,
rendered from
assets/comment-template.mdafter all subagents return and the linter checklist runs. - ASCII-only artifact. Every byte the skill writes (the comment,
the synthesizer prose, any rendered fold instruction) MUST be
within printable ASCII (U+0020 - U+007E). The skill inherits the
repo encoding rule from
.github/instructions/encoding.instructions.md(if present) and additionally enforces it on the spec artifact via linter check 1. - No-vendor-foundation language ban. The spec artifact MUST NOT contain "CNCF", "Linux Foundation", "Sandbox", "Incubation", "W3C Process", or "IETF RFC stream". The persona prompts MAY reference these as pedigree (a panelist's credibility comes from having edited OpenAPI; that does not put OpenAPI's foundation affiliation in the spec text). Linter check 2 greps the artifact for the forbidden token list AFTER any fold.
Agent roster
| Agent | Role | Always active? |
| Swagger / OpenAPI Editor | Interface-contract discipline (schemas, $ref hygiene, oneOf discriminators, conformance enumeration) | Yes |
| OCI Distribution Editor | Registry-HTTP rigor (hash envelopes, mirror tolerance, fail-closed extraction, supply-chain threat model) | Yes |
| Package-Manager Registry-Contract Editor | Dependency-resolution rigor (semver dialect pinning, lockfile determinism, transitive conflict policy, reserved-slot defensive MUSTs) | Yes |
| W3C TAG Architect | Web-platform integration / architecture (extensibility, layering, fingerprinting, machine-readable contract surface) | Yes |
| Spec Editor Synthesizer | Same hand that drafted; aggregates panel returns, computes shocked_meter_avg, clusters convergent themes, produces fold-now / defer / reject lists and ship_decision | Yes |
The roster is invariant for the v0.1 lineage. Changing it requires bumping the skill version.
Topology
apm-spec-guardian SKILL (orchestrator thread)
|
+------ Wave 0: scope decision (orchestrator-internal) ------+
| classify diff: |
| - editorial-only (tiny patch, single section, no schema |
| change, no fixture add) -> skip Wave 3, run Wave 5 |
| linter only, render lightweight comment |
| - editorial-patch (default for PR-trigger) |
| -> skip Wave 1+2, start at Wave 3 |
| - new-version (operator opt-in via PR body marker |
| `apm-spec-guardian: new-version`) |
| -> run Wave 1 + 2 + 3 + 4 + 5 |
+------------------------------------------------------------+
|
IF new-version mode: run Wave 1 + Wave 2 first
|
Wave 1 (optional, new-version only): task -> spec-editor-synthesizer
acting as ASSESSOR -- reads issue context + corpus +
produces SPEC_BRIEF_v0 (session-state artifact)
Wave 2 (optional, new-version only): task -> spec-editor-synthesizer
acting as DRAFTER -- produces SPEC_DRAFT_v0 from SPEC_BRIEF_v0
|
Wave 3: FAN-OUT via task tool (4 panelists in parallel)
+------+------+--------+------+
v v v v
swagger oci pkgmgr tag
(each returns JSON per assets/panelist-return-schema.json)
|
v <-- S4 schema-validate per return
v <-- on malformed: re-spawn that panelist
v (max 2 attempts; then placeholder)
v
Wave 4: task -> spec-editor-synthesizer
- aggregates findings across 4 panels
- computes shocked_meter_avg
- resolves dissent
- clusters into convergent themes
- emits fold_now[] + defer_v0_1_1[] + defer_v0_2[] + reject[]
- emits ship_decision honoring ship-meter floor + blocker veto
- returns assets/synthesizer-return-schema.json
|
v <-- S4 schema-validate
v
Wave 5: LINTER (mechanical, from assets/linter-checklist.md)
- 11 checks; each MUST pass
- failures append to ship_prose as advisory notes
- linter does NOT change ship_decision; it informs the
human reviewer
|
Wave 6: orchestrator (sole writer)
| |
v v
add-comment remove-labels
(max:1) [spec-review]
(trigger idempotency reset)Wave 0 -- scope decision
The orchestrator classifies the diff before spawning any panelist. Decision rules, in order:
- New-version mode. If the PR body contains the literal marker
line
apm-spec-guardian: new-version, OR the diff creates a newdocs/src/content/docs/specs/openapm-*.mdfile (not an edit to an existing one), classify asnew-version. Run Waves 1 -> 2 -> 3 -> 4 -> 5 -> 6. - Editorial-only mode. If ALL of the following hold:
- the diff added < 50 lines AND removed < 50 lines total across all in-scope paths,
- no JSON Schema file was added, removed, or had its top-level
propertieskeys changed, - no fixture file was added or removed (existing fixture content edits are OK),
- no anchor of the form
<a id="req-was added or removed, classify aseditorial-only. SKIP Wave 3 + Wave 4. Run Wave 5 linter on the modified artifact. Render the lightweight editorial-only branch ofassets/comment-template.md(just the linter result + a one-line "no substantive spec change detected").
- Editorial-patch mode (default). Everything else. Run Wave 3 -> 4 -> 5 -> 6. Wave 1 + Wave 2 are SKIPPED; the panel reviews the existing artifact as modified by the PR diff.
Document the decision in the comment header (one line: "Scope: <mode>;
diff = +X/-Y lines across N files").
Wave 3 -- panel fan-out
Spawn the following four tasks in PARALLEL via the task tool, one
task per persona:
spec-swagger-editorspec-oci-editorspec-pkgmgr-editorspec-tag-architect
Each task prompt MUST:
- Reference its persona file by relative path
(
../../agents/spec-<slug>.agent.md) so the subagent loads its own scope, lens, and pedigree. - Include the PR number, title, body, and full diff (passed inline), PLUS the current contents of the in-scope spec artifact AS MODIFIED by the diff (the panel reviews the post-merge state of the file, not just the diff).
- Cite
assets/panelist-return-schema.jsonand require the subagent to emit JSON matching that schema as its FINAL message. - State the calibrated severity contract: "Use
new_blocking_findingsONLY for issues that would break a conformant implementation, leak a security guarantee, or invalidate a published normative claim. Usenew_recommended_findingsfor substantive improvements. Usenew_nit_findingsfor one-line editorial polish. The panel is advisory; nothing you return blocks merge; pick the severity that honestly matches your signal strength." - State the no-vendor-foundation rule: "Your pedigree as a [persona] is part of your prompt. Do NOT propose adding the names of any standards body, foundation, or governance program (CNCF, Linux Foundation, Sandbox, Incubation, W3C Process, IETF RFC stream) to the spec artifact text. Findings that recommend such additions will be auto-rejected by the synthesizer."
- State the ASCII rule: "Every byte in your return JSON and every
byte of any proposed fix or replacement text MUST be within U+0020
- U+007E. No emojis, no Unicode dashes, no curly quotes."
- Pass
round(1 on first pass, 2+ on subsequent rounds in new-version mode). - Restate the output contract: NO
ghwrite commands, NO posting comments, NO label changes, NO touching PR state. JSON return only.
Wave 4 -- synthesizer
Pass all four validated panelist JSON returns to a task invocation
that loads ../../agents/spec-editor-synthesizer.agent.md. The prompt
MUST:
- Provide all panelist returns as structured input.
- Ask for:
convergence_table,convergent_themes(themes flagged by 2+ panels),fold_now[](surgical single-section fixes only),defer_v0_1_1[](small patches deferrable to next patch release),defer_v0_2[](architectural work requiring a reserved slot in a future major),reject[](findings the synthesizer declines, with rationale),ship_decision,ship_prose,linter_handoff_notes. - State the ship-decision rules verbatim:
- If
sum(panelist.new_blocking_findings)> 0 across all panels,ship_decisionMUST benext_brief. - Else if
shocked_meter_avg < 7.0,ship_decisionMUST beneeds_revision. - Else
ship_decisionMAY befold_and_ship.
- If
- State the no-vendor-foundation rule: auto-reject any
panelist-proposed fix that would add a banned token to the
artifact; surface in
reject[]with rationale. - Cite
assets/synthesizer-return-schema.jsonand require JSON return. - Restate the contract: the panel is advisory. The synthesizer does
NOT pick a verdict label. The
ship_decisionis prose for the human reviewer, not a gate. NOghwrite commands.
Validate the synthesizer return against
assets/synthesizer-return-schema.json. On failure, re-spawn once
with the violation cited.
Wave 5 -- linter
Run assets/linter-checklist.md against the in-scope artifact set
(spec markdown + schemas + fixtures). The checklist has 11 mechanical
checks; each is a one-liner producing exit code 0 (or empty grep
output where noted). Record pass / fail per check.
Linter outcomes are ADVISORY: a failed check does NOT change the
synthesizer's ship_decision. It DOES surface in the comment as a
"Linter notes" section so the maintainer can decide whether to fold
the fix into the same PR. If ship_decision == fold_and_ship AND
any linter check failed, the comment surfaces the conflict
prominently ("Synthesizer recommends ship; linter found N issues
worth folding first").
Wave 6 -- render the comment
Load assets/comment-template.md, fill the placeholders from the
synthesizer + panelist JSON + linter results, and emit it as exactly
ONE comment.
Filling rules:
- The convergence table renders ONE row per panelist with verdict, shocked_meter, new_blockers, new_recommended, new_nits counts.
- The fold-now list renders the synthesizer's
fold_now[]verbatim, ordered as returned. - The defer-v0.1.1 and defer-v0.2 lists render below the fold list,
collapsed in
<details>blocks if either has more than 3 items. - The reject list renders only if non-empty.
- The "Linter notes" section renders only if any check failed; each failed check renders the check id + the one-line failure summary.
- Full per-panel findings collapse into a
<details>at the bottom. - NEVER render the words "Verdict", "APPROVE", "REJECT", "blocked", "merge gate", or any equivalent. The panel is advisory.
Then sweep the spec-review label via safe-outputs.remove-labels
(idempotent on missing labels). NO add-labels call.
Output contract (non-negotiable)
- Exactly ONE comment per panel run, rendered from
assets/comment-template.md. - Exactly ONE
remove-labelscall sweeping[spec-review]. - NO
add-labelscall. - Subagents (panelists + synthesizer) NEVER write to PR state,
NEVER call
gh pr comment, NEVER callgh pr edit --add-label. They return JSON. The orchestrator is the sole writer. - ASCII-only across every byte the orchestrator writes.
- Never invent new top-level template sections or drop existing ones.
Loop budget
- Editorial-patch mode: at most 2 panel rounds. If round 2 still
carries new_blocking_findings, the synthesizer emits
ship_decision: next_briefwith aship_prosenote that the loop budget is exhausted and the maintainer should ESCALATE (manually decide between drafting a fix or closing the PR). - New-version mode: at most 3 panel rounds. Same exhaustion semantics on round 3.
- Editorial-only mode: zero panel rounds (linter only).
The orchestrator increments and tracks the round counter; subagents receive it as input but MUST NOT trust panel-side memory.
Gotchas
- Roster invariant. The frontmatter description, the activation scope list, the roster table, the topology diagram, and the schema enum MUST agree on the 4 panelists + 1 synthesizer. If you change one, change all in the same edit.
- Blocker veto trumps ship-meter. A panelist who returns one
new_blocking_findingand a shocked_meter of 9 means "the spec is mostly excellent but this one thing would break a conformant implementation". That blocker still vetoesfold_and_ship. Do not let the synthesizer average it away. - Calibrated severity discipline. The advisory regime relies on panelists distinguishing blocking from recommended honestly. If a panelist marks every editorial nit as blocking, the synthesizer's blocker veto becomes a denial-of-ship. The panelist prompts state the contract explicitly; the synthesizer arbitration prose is the safety valve.
- Wave 0 editorial-only is a noise filter, not a quality shortcut. It exists so a one-line typo fix to a fixture comment does not summon four expert agents. It MUST NOT fire on schema changes, anchor additions, or fixture-tree topology changes; the rules above are intentionally conservative.
- No-vendor-foundation tokens may appear in panelist returns (a
panelist can name "the W3C TAG" as their pedigree in their
summaryfield) but MUST NOT appear in the synthesizer'sfold_now[].patch_instructionor in the rendered comment body outside<details>collapsed sections. The synthesizer auto-rejects panelist proposals that would add banned tokens to the artifact. - ASCII enforcement is per-byte, not per-codepoint. A character with codepoint > 0x7E is non-ASCII even if it would round-trip through a different encoding. The linter checks raw byte values, not the rendered visual.
- Subagent write enforcement is contract-based, not sandbox-based.
Tool permissions are workflow-scoped, not subagent-scoped, so
every spawned task technically inherits the same
ghtoolset. The "subagents must not write" rule is enforced by the prompt contract in each.agent.mdplus thesafe-outputs.add-comment.max: 1fail-soft. - Spec drift across count sites. Linter check 6 catches when sec. 1.3 sentence, Appendix C trailer, and Appendix D revision-history disagree on the normative-statement total. This is the most common failure mode of a fold pass and is the reason the linter is mandatory before render.
Relationship to autopilot-pr-review-worker
autopilot-pr-review-worker is the general OSS multi-persona review for any
non-trivial PR in the repo. apm-spec-guardian is its narrow,
spec-only sibling: a different persona roster, a different ship
decision schema (shocked_meter instead of stance enum), and a
mandatory linter step. The architectural shape (FAN-OUT +
SYNTHESIZER + single-writer interlock + advisory regime) is
deliberately the same so a contributor reading one can read the
other. Do not merge them; the persona pedigrees and the artifact
type (spec vs code) are different enough that one-size-fits-all
prompts would dilute both.
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
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.

