/dev-process-toolkit:gate-check [path to the checkout to grade] [--fix to auto-fix lint issues]from dev-process-toolkit
Runs project gating checks (typecheck, lint, tests) and reports pass/fail. Invokes tracker mode probes, ticket-binding resolver, and skip baseline capture. Use before creating a PR or to verify project health.
Ships in dev-process-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the project's gating checks and report a clear pass/fail for each — for ONE checkout: the one $ARGUMENTS names by path, or the session's working directory when no path is given. Resolve that checkout root first, run every command below with it as the working directory, and before any of them record the run against it with bun run "${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/gate_receipt.ts" gate-check "<that checkout root>" — if that refuses, stop and report its block verbatim rather than grading anything. Invoking this skill is itself the token the commit gate reads. The pre-commit-gate-check hook wants both halves: a Skill tool_use of dev-process-toolkit:gate-check in the current session's transcript AND that run's receipt inside the repository the commit targets, so running the same typecheck, lint and tests by hand yields a green result the hook cannot see and the commit is still refused with exit 2. Only if that call also printed outcome: on, then once the verdict is decided run bun run "${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/gate_receipt.ts" outcome gate-check "<that checkout root>" <pass|fail> --step <name>=<pass|fail> with pass for GATE PASSED or GATE PASSED WITH NOTES and fail for GATE FAILED, passing one --step <name>=<pass|fail> per deterministic command, named by a short lowercase label.
docs/patterns.md § Tracker Mode Probe). If CLAUDE.md has no ## Task Tracking section, mode is none and tracker-mode hooks skip. If a tracker mode is active:
docs/ticket-binding.md. Decline exits cleanly with zero side effects. Re-fetch the ticket's updatedAt and warn on mismatch against the value recorded at /implement start; do NOT run bidirectional AC sync resolution here.push_ac_toggle (capability permitting; missing capability degrades with a canonical-shape warning otherwise). See docs/gate-check-tracker-mode.md for the full tracker-mode flow.main), run the capture below: a clean trunk checkout under /gate-check is the only path that records a skip baseline with no operator step, and the capture measures the count by running the suite itself. Off trunk, or with a dirty tree, it declines and writes nothing — report the reason it names, verbatim; a skip that reports nothing is the defect this closes.
bun run "${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/capture_skip_baseline.ts" "<projectRoot>"
Run these deterministic layout-invariant probes in addition to the normal gate:
Filename ↔ frontmatter convention (strict) — for every specs/frs/**/*.md, resolve Provider once (same rule as /implement), parse the YAML frontmatter, and compute the expected base name via Provider.filenameFor(spec). Every base name must equal Provider.filenameFor(spec); any mismatch → GATE FAILED naming the file, the actual basename, and the expected name.
Required frontmatter fields — every FR file must have the mode-invariant Schema Q keys title, milestone, status, archived_at, created_at present. The id and tracker keys are mode-conditional (required in mode: none and tracker mode respectively, absent in the other), enforced by probe #13 identity_mode_conditional. Missing a field → GATE FAILED naming the file and field.
Stale lock scan — list every .dpt/locks/<ulid> entry whose branch field names a merged-into-main or deleted branch. Each stale lock → GATE PASSED WITH NOTES. Offer $ARGUMENTS --cleanup-stale-locks action that deletes them in a single commit.
Plan post-freeze edit scan — for each specs/plan/<M#>.md with status: active + non-null frozen_at, scan git log --follow for commits to that path authored after frozen_at. Each post-freeze commit → GATE PASSED WITH NOTES listing the SHA. No auto-revert — user decides.
Stale release marker scan — grep specs/requirements.md for markers of the form (in flight — v<X.Y.Z>) or (planned — v<X.Y.Z>). For each captured version, check whether CHANGELOG.md already contains a ## [X.Y.Z] header (i.e., that version has shipped). Every match where the CHANGELOG says shipped → GATE PASSED WITH NOTES listing the stale marker + its line number + the shipped release so the operator can rewrite the overview to past-tense. Warn-only, never GATE FAILED — prose drift shouldn't block the gate.
Per-milestone heading strip — grep specs/technical-spec.md and specs/testing-spec.md for ^#{1,3} M\d+ (matches # M<N>:, ## <N>. M<N> — …, or any other milestone-framed heading). Any match → GATE FAILED naming the file and line with a pointer to the cross-cutting spec hygiene rule (cross-cutting spec files carry zero per-milestone headings). Per-FR design / per-milestone narrative belongs in specs/frs/<name>.md or specs/plan/<M#>.md, not in the cross-cutting spec files.
Duplicate AC-prefix scan — call acLint(specsDir) from adapters/_shared/src/ac_lint.ts. It walks every active specs/frs/*.md (excluding archive/), extracts each file's ## Acceptance Criteria section, and counts AC-<prefix>.<N> occurrences per file. Any count > 1 → GATE FAILED naming the file + AC-<prefix>.<N> pair + occurrence count. The <prefix> is tracker-mode-aware (tracker ID or short-ULID tail), so both prefix shapes are checked by the same probe.
Ticket-state drift — for every FR file under specs/frs/archive/ whose frontmatter has status: archived and a non-null tracker.<key> binding, resolve Provider once (same rule as /implement) and call Provider.getTicketStatus(<tracker-ref>). Every drifted ticket → GATE FAILED reporting a row with the FR's ULID + tracker ID + observed vs. expected state so the operator can manually transition or rerun /implement. Skipped for mode: none — LocalProvider.getTicketStatus returns the local-no-tracker sentinel and there's nothing to compare. The check catches the regression where /implement Phase 4 lands a commit + archives FRs but drops releaseLock, stranding the tracker at In Progress after the commit — the write-path hardening landed earlier, and this probe is the read-side backstop.
Tolerance wrapper integration (STE-305). The comparison against the adapter's status_mapping.done canonical name is routed through withTolerance(...) from adapters/_shared/src/tracker_tolerance.ts rather than a bare strict-equality check. The wrapper maps the observed tracker label to its canonical role via specs/tracker-config.yaml roles:; when the mapped role equals the expected role (done) the probe passes, when the mapped role differs the probe surfaces genuine drift and GATE FAILED with the row shape above. Under non-tty (claude -p) execution the wrapper additionally routes any non-fatal label-shape advisory through the closing-summary capability token tracker_status_advisory_non_tty — the row is rendered as ADVISORY (not GATE FAILED) so harness runs are not blocked by transient label-shape signals while the byte-checkable capability key preserves audit traceability.
Root spec hygiene — call runRootHygiene(specsDir, pluginJsonPath) from adapters/_shared/src/root_hygiene.ts. It runs two sub-checks on the three root spec files (specs/requirements.md, specs/technical-spec.md, specs/testing-spec.md):
\bM\d+\b tokens, walks up to the containing ##/### heading, skips matches under the allowlist (Shipped milestones / Archived context / Shipped releases / Release notes / Release history), then reports any remaining match that resolves to an existing specs/plan/archive/M<N>.md. Each hit → GATE FAILED with <file>:<line>: archived milestone M<N> in live-framing (heading "<title>").plugin.json version; parses requirements.md §1 Overview for Latest shipped release: vX.Y.Z [("Codename")] and optional In-flight milestone: M<N> lines, both milestone tokens read through the shared M<N> | M_<key> union grammar. Declared version must match plugin.json; a QUOTED codename, when the line carries one, must match the CHANGELOG entry for that version (absent codename or absent entry ⇒ that arm is vacuous); in-flight milestone (if named) must resolve to a live specs/plan/M<N>.md, not the archive. Each drift → GATE FAILED naming the specific line + observed vs. expected value. Existence-guarded: when .claude-plugin/plugin.json is absent (the common end-user case — only Claude Code plugin projects carry that manifest), the version-match arm of this sub-check is skipped and emits an n/a row with the reason "no plugin manifest in this project — probe skipped". RootHygieneReport.versionFreshnessSkipped carries the n/a marker; the milestone-leakage sub-check (a) still runs unchanged. When the manifest is present (toolkit self-run), this sub-check fires unchanged and gates on drift as before.Enforces the "root specs stay shape-only, current-only" invariant documented in docs/patterns.md § Root Spec Hygiene.
CLAUDE.md.template branch_template: hygiene — existence-guarded: if plugins/dev-process-toolkit/templates/CLAUDE.md.template is absent (the common end-user case — only the toolkit repo itself carries that path), this probe is skipped and emits an n/a row with the reason "toolkit template not present — probe skipped". When the template is present (toolkit self-run), grep it for the literal substring branch_template:. Zero matches → GATE FAILED with the standard hygiene-gate error shape, pointing to the template file and asking the operator to re-add the key documentation. This gate protects /setup step 7c's seeded-key contract: if the template silently loses its branch_template: documentation, downstream projects generated by /setup will have branch automation silently disabled even when the user wants it (the backward-compat reading is "absent ⇒ disabled" — the template's job is to advertise the key so users know it exists).
Tracker-mode ULID prose hygiene — tracker mode only (skipped when mode: none). Grep specs/plan/*.md (active only, excluding archive/), the current release section of CHANGELOG.md (content after the topmost ## [X.Y.Z] heading and before the next ## [ heading), and README.md for the pattern fr_[0-9A-HJKMNP-TV-Z]{26} (the full ULID regex). Each hit → GATE PASSED WITH NOTES listing <file>:<line> so the operator can rewrite the prose to use the tracker ID instead. Warn-only, never GATE FAILED — pre-existing content shouldn't block merges. Skipped entirely in mode: none (the full 26-char ULID does not appear in user-facing prose there either — the short-ULID tail is the human-facing form — but the probe is tracker-mode-scoped to avoid any risk of false-positive chatter on projects that hand-wrote ULIDs into historical docs).
docs/README.md nav contract — docs-mode only (skipped when the docs settings — specs/settings.yaml, or the legacy CLAUDE.md ## Docs block — report both user_facing_mode and packages_mode false). Call runNavContractProbe(projectRoot) from adapters/_shared/src/docs_nav_contract.ts. The probe (a) reads the docs section through the loader to decide whether to run, (b) parses docs/README.md, and (c) asserts exactly four ##-level headings carrying the canonical {#tutorials}, {#how-to}, {#reference}, {#explanation} anchors, each with a relative link resolving to an existing file or directory. Missing anchor, extra ##-level heading, or broken subdirectory reference → GATE FAILED, one note per violation in file:line — reason shape, with the NFR-10 remedy:
/gate-check: docs/README.md nav contract violation.
Remedy: docs/README.md must contain exactly four ##-level headings with {#tutorials}, {#how-to}, {#reference}, {#explanation} anchors, each linking to an existing file or directory. Run /docs --full to regenerate the canonical tree.
Context: mode=<docs-mode>, skill=gate-check
Identity mode conditional — call runIdentityModeConditionalProbe(projectRoot) from adapters/_shared/src/identity_mode_conditional.ts. The probe resolves the tracker mode once (task_tracking in specs/settings.yaml, or the legacy CLAUDE.md ## Task Tracking section), then walks every active specs/frs/*.md and enforces the bimodal identity invariant: mode: none requires a valid id: fr_<26-char ULID> line; any tracker mode requires the id: line to be absent. That bimodal walk stays active-only — archived records are frozen history and legitimately predate the current mode. A second, mode-independent pass (M116) then accumulates the 6-char short-ULID tail of every well-formed frontmatter id: across specs/frs/ and specs/frs/archive/ together and reports any tail claimed by two or more records as a duplicate, naming both files and both minted ids — each colliding record is individually well-formed, so nothing else catches the pair. Violations surface as file:line — reason notes in NFR-10 canonical shape. Severity is error (any violation → GATE FAILED) — the prior warn-only severity flipped to error once /spec-write's tracker-mode template stopped emitting id:, removing the regression source. Zero runtime dep on ulid.ts — the ULID regex is inlined so the probe never pulls the module it's enforcing boundaries around.
Ticket-state drift — active side — mirrors probe #8 symmetrically with three carve-outs. For every FR file under specs/frs/*.md (excluding archive/**) whose frontmatter has status: active AND a non-null tracker.<key> binding, resolve Provider once (same rule as /implement / probe #8) and call Provider.getTicketStatus(<tracker-ref>). Then read the FR's milestone plan state via readPlanTaskState(specsDir, milestone) from adapters/_shared/src/plan_task_state.ts and decide via activeTicketDriftPasses(summary, planTaskState, statusMapping, currentUser, frRef?) from adapters/_shared/src/active_ticket_drift_predicate.ts. The composed predicate passes if (a) the ticket is in the status_mapping.in_progress lane AND assignee == currentUser, OR (b) the single-FR-clean (STE-151) exemption applies — ticket=done, plan=active, plan has at least one [ ] task remaining, OR (c) the fully-checked-single-FR (STE-180) exemption applies — ticket=done, plan=active, plan has zero [ ] tasks AND at least one task total, OR (d) the not-started exemption applies — ticket in the status_mapping.initial lane, no checked plan task ([x] or [X]) names the FR's tracker id, no .dpt/locks/ entry names it, and nothing shows the work began (frRef carries that id, the FR's own id: when it has one, readLockIds(projectRoot) from lock.ts, and startedBy from workStartedEvidence(projectRoot, trackerId, frId) in fr_work_started.ts: a run-start ledger row of /implement or /tdd naming the FR, or a commit on HEAD or a local branch naming the tracker id, in any letter case, that touches a path outside specs/, and a history git cannot read, or a directory git does not know, counts as begun; a lock filed under either id names the FR; without frRef or its startedBy list (d) never fires). Exemptions (b) and (c) recognise the canonical mid-canonical-chain state where /implement <FR-id> Phase 4 Close transitioned the ticket to Done but the FR file intentionally stays status: active per the milestone-bulk-archive design (skills/implement/SKILL.md § Invocation forms). Truth table:
| FR status | Ticket status | Assignee | Plan tasks | Plan status | Outcome |
|---|---|---|---|---|---|
| active | in_progress | currentUser | any | any | pass |
| active | done | any | unchecked > 0 | active | pass (single-FR clean — STE-151 carve-out) |
| active | done | any | all checked + total > 0 | active | pass + advisory (fully-checked — STE-180 carve-out) |
| active | done | any | total = 0 | active | fail (empty/malformed plan, strict fallback) |
| active | done | any | any | missing | fail (strict fallback) |
| active | done | any | any | archived | vacuous (probe #27 owns) |
| active | initial | any | no checked task names the FR; no lock; no started evidence | any | pass (not started carve-out) |
| active | backlog/etc. | any | any | any | fail (drift) |
| active | in_progress | != current | any | any | fail (drift) |
Advisory (STE-180 carve-out only). When the fully-checked branch fires, render exactly this advisory line in the gate-check report (severity = note, NOT GATE FAILED): M<N> plan fully checked but not archived — run /spec-archive M<N> or /implement M<N> to close. The probe returns { ok: true, advisory: { kind: "milestone_ready_to_close", milestone: "M<N>" } } and the renderer formats it; carve-out provenance is logged via carve_out: fully_checked_milestone (vs. STE-151's carve_out: partial_milestone; a pass through the not-started row is logged as carve_out: not_started). One advisory per affected milestone, deduplicated — if FRs A and B both target M5 and both fire the carve-out, render once mentioning M5.
Every drifted ticket → GATE FAILED reporting a row with the FR's ULID + tracker ID + observed status vs. expected in_progress + observed assignee vs. expected currentUser so the operator can manually transition, reassign, or rerun /implement Phase 1 step 0.c. The failure-row shape is unchanged across the strict and relaxed branches — callers see the same row format. Skipped for mode: none — LocalProvider.getTicketStatus returns the local-no-tracker sentinel and there's nothing to compare. The probe is over observed tracker state, not over call-history: the already-ours claim shape (in_progress + currentUser) passes regardless of whether this session or a prior one called claimLock. Catches the regression where /implement Phase 1 step 0.c is skipped entirely (an early dogfood case had a ticket sitting at Backlog while implementation proceeded) and symmetrically completes the archive-side ticket-state probe. Carve-outs (b) and (c) strictly weaken the predicate — every prior failing case where the drift was real still fails (Phase 1 step 0.c skipped, wrong assignee, missing plan, archived plan vacuous to probe #27). Carve-out (d) admits an unclaimed ticket only while nothing shows its work began, so a skipped 0.c fails once a run-start row or a commit names the FR. Residual: the run-start ledger is opt-in, so with tracking off a skipped 0.c still passes (d) until the FR's first commit.
Tolerance wrapper integration (STE-305). The in_progress-lane membership check is routed through withTolerance(...) from adapters/_shared/src/tracker_tolerance.ts rather than a bare strict-equality match against status_mapping.in_progress. The wrapper maps the observed tracker label to its canonical role via specs/tracker-config.yaml roles:; when the mapped role equals in_progress the lane check passes, and when the mapped role does not match the expected role the probe surfaces genuine drift and GATE FAILED with the row shape above (mismatch in mapped role is preserved as a hard failure — the wrapper relaxes label-shape brittleness, not the semantic predicate). Under non-tty (claude -p) execution the wrapper additionally routes any non-fatal label-shape advisory through the closing-summary capability token tracker_status_advisory_non_tty — the row is rendered as ADVISORY (not GATE FAILED) so harness runs are not blocked by transient label-shape signals while the byte-checkable capability key preserves audit traceability.
Guessed tracker-ID scan — for each specs/frs/*.md (active, non-archive) whose frontmatter has a bound tracker.<key>, parse every AC-<PREFIX>.<N> line (shape from acPrefix). Every <PREFIX> must equal the file's own tracker.<key> value. Mismatch → GATE FAILED naming the file, the offending prefix used in an AC line, and the expected tracker ID. NFR-10 remedy: "AC prefix does not match the file's bound tracker — did you draft with a guessed ID? Substitute via the <tracker-id> placeholder convention and re-save." Skipped for mode: none — short-ULID prefixes are scanned by the existing ac_prefix duplicate-scan suite; the two scopes are mutually exclusive. Catches the regression where an FR is drafted with a guessed tracker number that doesn't match the allocator's return (origin: an early draft session narrated a specific unallocated ID before the Linear allocator responded).
Archive plan-status invariant — call runArchivePlanStatusProbe(projectRoot) from adapters/_shared/src/archive_plan_status.ts. The probe walks every specs/plan/archive/M*.md and asserts frontmatter status: archived AND a non-null archived_at ISO-8601 string. Any drift → GATE FAILED with a file:line — reason note in NFR-10 canonical shape (observed vs. expected). Defense-in-depth — an iteration-5 audit downgrade confirmed no live code path consumes archived plan status today (every specs/plan/ reader excludes archive/), but /implement Phase 4's plan-status flip prose plus this read-side probe close the door on future drift. Test coverage: tests/gate-check-archive-plan-status.test.ts per the probe-authoring contract.
setup-output-completeness — call runSetupOutputCompletenessProbe(projectRoot) from adapters/_shared/src/setup_output_completeness.ts. If the tracker mode (task_tracking.mode in specs/settings.yaml, or the legacy CLAUDE.md ## Task Tracking section) is <tracker> (≠ none), .mcp.json MUST exist at project root with the corresponding mcpServers.<adapter> entry. Skipped when mode = none or CLAUDE.md is absent. Catches the smoke-test failure mode where /setup self-aborted on .mcp.json writes and silently moved on. Test coverage: tests/gate-check-setup-output-completeness.test.ts.
claudemd-docs-section-present — call runClaudeMdDocsSectionProbe(projectRoot) from adapters/_shared/src/claudemd_docs_section.ts. Severity: error. Scope is toolkit-managed trees only, decided by the shared predicate isToolkitManaged(projectRoot, { ignore: ["docs_section"] }) from adapters/_shared/src/toolkit_managed.ts. On a legacy managed tree CLAUDE.md MUST contain a real (non-commented) ## Docs heading — a heading nested inside an HTML comment does not count. The docs_section carve-out is load-bearing: accepting ## Docs as the evidence that a tree is managed, inside the probe that ASSERTS ## Docs is present, is circular — it would make the probe vacuous on exactly the trees it exists to catch, so managed-ness here rests on the remaining signals (the /setup generation marker and a real ## Task Tracking heading) alone. Vacuous on a tree the toolkit does not own — a hand-written CLAUDE.md the toolkit never bootstrapped is out of scope, not merely the CLAUDE.md-absent case the old existsSync guard covered; that guard turned this into an error-severity gate failure on any project that authored its own file, with a remedy telling the operator to paste toolkit content into a file the toolkit does not own. On a settings-file tree the docs section MUST be present in specs/settings.yaml, and CLAUDE.md MUST carry a ## Project Settings section whose pointer paragraph is byte-equal to renderSettingsPointer(min_dpt_version). Sibling probe to existing ## Task Tracking checks; closes the silent feature-drop where /docs becomes a no-op because /setup skipped emitting the section. Test coverage: tests/gate-check-claudemd-docs-section.test.ts.
setup-audit-section-presence — call runSetupAuditSectionPresenceProbe(projectRoot) from adapters/_shared/src/setup_audit_section_presence.ts. Severity: error. Scope is marker-managed trees only, expressed as detectManagedSignals(projectRoot).includes("setup_marker") against the shared vocabulary in adapters/_shared/src/toolkit_managed.ts — deliberately narrower than isToolkitManaged, because the ## /setup audit section is an invariant only /setup's own write path can satisfy. Widening it to the marker-or-section form would drag in every tree that is managed by heading alone but was never written by /setup (this repo among them) and turn their gates red. When the marker is present AND any default-applied step outcome is detectable (branch_template populated or docs flags emitted, read through the loader from specs/settings.yaml or the legacy CLAUDE.md sections), the ## /setup audit section MUST exist. Vacuous on hand-written files (no marker) or fully-interactive runs that emitted no defaults. Test coverage: tests/gate-check-setup-audit-section-presence.test.ts.
bun-zero-match-placeholder — call runBunZeroMatchPlaceholderProbe(projectRoot) from adapters/_shared/src/bun_zero_match_placeholder.ts. If bun.lock exists AND no *.test.ts file matches outside node_modules AND no source carries the marker comment Bun zero-match workaround, fail. The probe enforces the /setup step 2c scaffolding contract that prevents bun test's zero-match-exit-1 from killing the very first gate-check on a fresh Bun project. Vacuous on non-Bun projects (no bun.lock). Background: examples/bun-typescript.md. Test coverage: tests/gate-check-bun-zero-match-placeholder.test.ts.
task-tracking-canonical-keys — call runTaskTrackingCanonicalKeysProbe(projectRoot) from adapters/_shared/src/task_tracking_canonical_keys.ts. On a legacy tree it parses ## Task Tracking line-by-line; fails if any top-level key is outside the closed set {mode, mcp_server, jira_ac_field, branch_template}. Empty/whitespace lines and ### <Subsection> content (e.g. ### Linear) are scoped out — tracker metadata beyond the closed key set (project IDs, team names) goes to a prose section outside ## Task Tracking, not as Schema L keys. On a settings-file tree it grades the task_tracking key set in specs/settings.yaml, closed to {mode, mcp_server, jira_ac_field, branch_template, milestone_scan_fetch, linear, jira, status_vocabulary} and cited as specs/settings.yaml:<line>. Vacuous when the section is absent (mode: none canonical form). Catches the smoke-test drift where /setup emitted non-canonical linear_* keys at the top level. Migration helper: scripts/migrate-task-tracking-canonical.ts (dry-run only, prints a unified diff to stdout that moves non-canonical keys to a ## Tracker Notes prose section). Test coverage: tests/gate-check-task-tracking-canonical-keys.test.ts.
toolkit-bootstrap-committed — call runToolkitBootstrapCommittedProbe(projectRoot) from adapters/_shared/src/toolkit_bootstrap_committed.ts. Severity: error. Scope is marker-managed trees only, expressed as detectManagedSignals(projectRoot).includes("setup_marker") against the shared vocabulary in adapters/_shared/src/toolkit_managed.ts — deliberately narrower than isToolkitManaged, since the bootstrap commit this asserts is something only /setup produces; widening it would pull every heading-managed tree into a commit-hygiene scan it never opted into. When the marker is present AND the project is a git repository, every toolkit-managed file in the working tree MUST be committed (no ?? or M status in git status --porcelain). Scan-set widened by STE-179: CLAUDE.md, specs/settings.yaml (settings-file trees; a legacy tree has none), .claude/settings.json, .mcp.json, every active file under specs/ (specs/requirements.md, specs/technical-spec.md, specs/testing-spec.md, specs/plan/M*.md, specs/frs/*.md — archive excluded). Owner skill by file: CLAUDE.md/settings/mcp ⇒ /setup bootstrap; specs/* ⇒ /spec-write Step 7a; per-FR feature files ⇒ /implement Phase 4. Catches the regression where toolkit-skill outputs leak into a downstream commit. Vacuous when CLAUDE.md is absent, the file is hand-written (no marker), or the project is not a git repo. Test coverage: tests/gate-check-toolkit-bootstrap-committed.test.ts.
traceability-link-validity — call runTraceabilityLinkValidityProbe(projectRoot) from adapters/_shared/src/traceability_link_validity.ts. Every frs/<id>.md reference (any link form: ](frs/X.md), ](./frs/X.md), bare path) in specs/requirements.md and any specs/plan/<M>.md must resolve to an existing file under specs/frs/<id>.md OR specs/frs/archive/<id>.md. Broken links (e.g. live-path link when the file moved to archive) → GATE FAILED. Catches the smoke-test failure where /spec-archive moved an FR but the traceability matrix still pointed at the live path. Companion to /spec-archive's "Rewrite traceability links" step (adapters/_shared/src/spec_archive/rewrite_links.ts). A SIBLING repository's FR is referenced by tracker ID only, never by a path into the sibling's tree: every reference resolves against THIS tree, so a path-shaped link to a sibling repository's FR always fails, while a bare tracker ID is no frs/ reference and passes. Test coverage: tests/gate-check-traceability-link-validity.test.ts.
signature-strategy-honors-setup — call runSignatureStrategyHonorsSetupProbe(projectRoot) from adapters/_shared/src/signature_strategy_honors_setup.ts. Reads the per-stack preferred signature-extraction strategy recorded by /setup at docs/.dpt-docs-toolchain.json and asserts each non-fallback recording — typedoc, dart-analyzer, griffe — still maps to a present toolchain via probeToolchains(). Vacuous when the config file is absent (projects whose /setup runs recorded no preference). Recorded regex-fallback entries skip cleanly — there is no degradation possible. Recorded preferred tool gone missing → GATE FAILED with file:line — reason note plus the standard NFR-10 remedy "Re-install the missing toolchain or re-run /setup to update the recorded preference." Test coverage: tests/gate-check-signature-strategy-honors-setup.test.ts.
task-tracking-workspace-binding-present — run bun run "${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/task_tracking_workspace_binding_present.ts" "<projectRoot>" (the front door over runTaskTrackingWorkspaceBindingPresentProbe(projectRoot); exit 0 prints OK, non-zero prints each violation's file:line — reason and remedy). In tracker mode, on a legacy tree the ## Task Tracking block MUST carry a populated ### Linear / ### Jira sub-section identifying the workspace binding (Linear: team + project; Jira: project). Vacuous when CLAUDE.md is absent, the section is absent, mode: none is explicit, or a custom (non-linear/non-jira) adapter is active. Sub-section absent OR required key missing OR value empty/whitespace-only → GATE FAILED with file:line — reason note plus NFR-10 canonical remedy pointing at scripts/migrate-task-tracking-add-workspace.ts. When the tracker sub-section declares a shared space (repo_tag / min_dpt_version), three more legs go red: (a) the shared-declaration reader refuses the declaration; (b) the stop paragraph is absent, duplicated, or not byte-equal to the render for the declared tag and floor — a raised min_dpt_version without a re-rendered paragraph is red; (c) the running toolkit version is below the declared floor. A stale stop paragraph with no declaration is also red. Undeclared files keep today's output. On a settings-file tree the binding is read through the loader from specs/settings.yaml, the stop paragraph is located in CLAUDE.md ## Project Settings, legs (a)–(c) keep their meaning, and a stub leg grades the CLAUDE.md binding stub: exactly one, byte-equal to renderTrackingStub(settings) — missing, duplicated or drifted is red, as is a stub under mode: none, with a remedy naming /dev-process-toolkit:upgrade. Under mode: jira a key-prefix leg also runs: an active FR whose tracker.jira key sits in another project, or an active Epic-keyed plan outside the bound project, is red with a remedy naming repoint_tracker_binding.ts; under Linear the report lists the leg as skipped. Catches the silent-landing trap where tickets created without a project field land outside the user's expected project board. Test coverage: tests/gate-check-task-tracking-workspace-binding-present.test.ts.
tracker-project-milestone-attached — call runTrackerProjectMilestoneAttachedProbe(projectRoot, deps) from adapters/_shared/src/tracker_project_milestone_attached.ts. For each status: active FR with a tracker block, fetch the issue via deps.getIssue(<ticket-id>) and verify the milestone landed on the ticket. The verification surface is adapter-aware, selected by deps.milestoneBinding (a field on the deps object the caller supplies — no adapter key is parsed for it; defaults to object when absent): the object binding (Linear; mcp__linear__get_issue) routes through milestoneBindingPresent(issue, heading, "object") — an identifier-keyed M_<key> milestone is verified by deriving the issue's projectMilestone.id FORWARD and comparing it to the token (that milestone keeps whatever human title was typed, so its name can never byte-equal the heading), while a grandfathered numeric M<N> keeps the byte-equal projectMilestone.name compare against the canonical local heading (parsed from specs/plan/M<N>.md, anchor stripped); the epic binding (Jira's primary path; mcp__atlassian__getJiraIssue) routes through milestoneBindingPresent(issue, heading, "epic") — the parent-Epic check, asserting the ticket's parent sanitizes back to the Epic-keyed milestone token M_<epic-key>, degrading to the label surface for grandfathered numeric M<N> milestones; the label binding (Jira's legacy fallback; same MCP) asserts the issue's labels array contains milestone-<M-token> (the leading milestone token of that same canonical heading — numeric M<N> or Epic-keyed M_<epic-key> per the union grammar) — labels are Jira's create-on-write milestone surface, since the atlassian MCP exposes no milestone object. Vacuous when mode: none, the FR is archived, the FR has no tracker block, or the plan file is missing (probe #27 owns that diagnostic). Missing or mismatched binding (object: name mismatch; epic: no parent Epic sanitizing to the expected token, label fallback also absent; label: the expected milestone-<M-token> absent) → GATE FAILED rendering the offending names/labels byte-by-byte (em-dash drift visible) plus a binding-aware NFR-10 remedy that names only operations that exist. The MISMATCH kind reaches only the object binding (its sole call site sits inside attached !== heading, and attached comes only from projectMilestone.name), so its remedy is scoped there and splits on the token: a grandfathered numeric M<N> is told to rename the tracker milestone to the canonical heading via mcp__linear__save_issue, or — when the tracker side is the correct one — edit the specs/plan/M<N>.md heading to match; an identifier-keyed M_<key> is told the OPPOSITE, that renaming would not fix it, because the binding is by identifier — that remedy names the token no milestone's identifier derives to and the mcp__linear__save_issue(milestone=<identifier>) write that restores it. An earlier wording also offered mcp__atlassian__editJiraIssue "on the label binding", which was false twice: that arm is unreachable, and there is no tracker milestone to rename on the label surface, since labels ARE the milestone surface there. Under the epic binding a name mismatch is not a binding failure at all — the Epic is resolved by its KEY, never its summary — so the missing-binding remedy names the absent Epic key instead. No rename flag has ever existed on /spec-write; the remedy this replaced ordered one that never shipped. The Epic-keyed epic binding is the exception: the Epic is resolved by KEY and its summary is never read, so a name mismatch is not a binding failure there — its remedy names the absent Epic key (the one a candidate Epic's key would sanitize to, e.g. GK-78 → M_GK_78) and the mcp__atlassian__editJiraIssue additional_fields.parent (v2: fields.parent) write that binds it, never a rename of anything.
Capability-gap downgrade (STE-194 + STE-214). When the FR's ## Notes section contains a word-bounded match of any of the three milestone-attach capability keys emitted by /spec-write per skills/spec-write/SKILL.md § Step 7 — milestone_attach_skipped_adapter_limit (canonical), milestone_attach_unavailable (deprecated alias per STE-198, honored for one minor-version cycle), or milestone_create_required — AND the ticket has no projectMilestone binding, the missing-binding outcome routes to ADVISORY (severity = note, NOT GATE FAILED) with the canonical prose milestone-attach skipped — capability gap declared in FR Notes (<key-found>). Detection rule: case-sensitive, word-bounded match (\b<key>\b) scoped to the FR's ## Notes body — substring matches (xmilestone_attach_skipped_adapter_limitX) and matches in other sections (## Acceptance Criteria, ## Technical Design) do NOT count. Mismatched bindings still hard-fail; the token only excuses absence, not divergence. Token-present + binding-present is PASS (binding wins; the token is informational). The advisory closes the smoke-driver false-positive surface where Linear-mode runs created tickets in a project with zero milestones by construction. Decision table:
## Notes contains any milestone-attach capability key | projectMilestone set on tracker | Probe #26 outcome |
|---|---|---|
| no | yes | PASS |
| no | no | GATE FAILED |
| yes | yes | PASS (binding wins; token informational) |
| yes | no | ADVISORY (capability-gap downgrade — prose names the specific key found) |
Recognized key set: milestone_attach_skipped_adapter_limit (canonical), milestone_attach_unavailable (deprecated alias), milestone_create_required.
Skip-reason rendering (STE-238 AC-STE-238.8). When this probe skips for a vacuous cause (mode: none, FR archived, FR has no tracker: block, plan file missing), the rendered skip-reason MUST route through renderProbeSkipReason(...) from adapters/_shared/src/tracker_probe_skip_reason.ts and MUST NOT contain the literal substring require Linear MCP (the F9 LLM-paraphrase regression caught by /conformance-loop iteration 1, 2026-05-07). The helper produces an accurate cause-named line — mode: none → skipped — \mode: none`…; archived/no-tracker FR → skipped — active FR has no `tracker:` block (); etc. — so the operator sees the structural cause, not a vendor-MCP paraphrase. Vendor-neutral by construction: the helper handles Linear and Jira identically. Unit-tested at adapters/_shared/src/tracker_probe_skip_reason.test.ts`.
Test coverage: tests/gate-check-tracker-project-milestone-attached.test.ts.
frontmatter-milestone-not-archived — call runFrontmatterMilestoneNotArchivedProbe(projectRoot) from adapters/_shared/src/frontmatter_milestone_not_archived.ts. For each status: active FR file under specs/frs/, read frontmatter milestone: and check (a) if <specsDir>/plan/archive/<value>.md exists → GATE FAILED with collision diagnostic (active FR pointing at archived milestone — the post-edit catch for the partial-ls bug), (b) if no plan file exists → GATE FAILED with orphan diagnostic (remedy: create the plan file or fix the frontmatter; or, if the milestone spans repositories, its plan lives in a sibling repository — list this repository under spans_repos in the sibling's plan; this probe does not read spans_repos yet, so the row clears only once this repository carries its own plan for the milestone), (c) if milestone: frontmatter missing → GATE FAILED with malformed diagnostic. Active FRs whose milestone matches an active plan file pass. Archived FRs are vacuous (their milestone naturally matches their archived plan file by construction). Mode-agnostic — milestone numbers are local-file-system identifiers, not tracker objects. Test coverage: tests/gate-check-frontmatter-milestone-not-archived.test.ts.
plan-verify-line-validity — call runPlanVerifyLineValidityProbe(projectRoot) from adapters/_shared/src/plan_verify_line_validity.ts. Severity: warning (NotesOnly, never GATE FAILED). Walks every active specs/plan/M*.md (excluding archive/) and inspects verify: lines for path-shaped tokens (must include /) that don't resolve to an existing file in the project tree. Inline-backticked tokens are treated as prose references and skipped (so verify: smoke-test re-run shows no \tests/.placeholder.test.ts` reference leftis vacuous). Each unresolved path → one note infile:line — reasonshape with the standard NFR-10 remedy pointing at the cleanup helper atadapters/_shared/src/spec_archive/cleanup_plan_verify_lines.ts. Catches plan-file rot where /implementPhase 4 deleted a file but the verify line lived on. Test coverage:tests/gate-check-plan-verify-line-validity.test.ts`.
Negative-assertion exemptions (STE-217). Verify lines that deliberately reference a deleted/missing path to assert its absence are pre-processed through isNegativeAssertion(line) and skip the path-existence check entirely. Recognized patterns (any-match short-circuits):
returns "No such file or directory" — POSIX file-not-found error message (case-insensitive on the message)! test -<flag> — POSIX shell negation prefix at start of line OR after ; / && / || (the test keyword is case-sensitive)--non-existent — flag substring indicating intentional absencedoes NOT exist — natural-language negative assertion (case-insensitive on the verb)Example: verify: ls src/missing.ts returns "No such file or directory" is recognized as a negative assertion and produces no advisory. Future negative-assertion shapes are added by amending the isNegativeAssertion recognizer (single source of truth), not by ad-hoc match logic elsewhere.
requirements-md-no-placeholder — call runRequirementsMdNoPlaceholderProbe(projectRoot) from adapters/_shared/src/requirements_md_no_placeholder.ts. Severity: warning (NotesOnly, never GATE FAILED). Scans specs/requirements.md for surviving placeholder shapes — the legacy ### FR-N: [Feature Name] heading, the [Feature Name] literal, and the <tracker-id> literal in active content. HTML comments, fenced code blocks, and inline-backticked spans are exempt (those are documentation/example surfaces). Each surviving placeholder → one note in file:line — reason shape with the NFR-10 remedy pointing at the cross-cutting-scope rule (per-FR detail belongs in specs/frs/<id>.md, not in requirements.md). Catches the smoke-test failure mode where /setup scaffolded the FR-1 placeholder but the architecture moved per-FR detail to specs/frs/. Vacuous when specs/requirements.md is absent. Test coverage: tests/gate-check-requirements-md-no-placeholder.test.ts.
setup-bootstrap-commit-subject — call runSetupBootstrapCommitSubjectProbe(projectRoot) from adapters/_shared/src/setup_bootstrap_commit_subject.ts. Scans the most recent chore: bootstrap dev-process-toolkit* commit on the current branch and asserts (a) subject is exactly chore: bootstrap dev-process-toolkit (no parenthesized version suffix), AND (b) body either has no Toolkit: line, OR carries exactly one line matching ^Toolkit: dev-process-toolkit v\d+\.\d+\.\d+$. Backwards-compat carve-out: commits authored before the FR ship date pass vacuously (covers downstream repos whose bootstrap commit predates this FR). Vacuous on non-git repos and when no chore: bootstrap dev-process-toolkit* commit exists. Test coverage: tests/setup-bootstrap-commit-subject.test.ts.
implement-invocation-grammar-doc — call runImplementInvocationGrammarDocProbe(projectRoot) from adapters/_shared/src/implement_invocation_grammar_doc.ts. Documentation-existence probe. Verifies skills/implement/SKILL.md (when present) carries (a) a ## Invocation forms heading, (b) a comparison table with at least 6 rows (header + separator + one per phase 0–5), (c) the Phase 5 row contains both silent-skip and runs it literals (case-insensitive). The probe enforces STE-181's documented user-visible contract that /implement <FR-id> and /implement M<N> diverge at Phase 5; missing or under-populated section ⇒ GATE FAILED. Vacuous on projects that don't ship the toolkit's own SKILL.md. Test coverage: tests/gate-check-implement-invocation-grammar-doc.test.ts.
plan-file-single-milestone — call runPlanFileSingleMilestoneProbe(projectRoot) from adapters/_shared/src/plan_file_single_milestone.ts. Severity: warning (NotesOnly, never GATE FAILED). Walks every specs/plan/M*.md (active + archive; milestone ids follow the M<N> | M_<epic-key> union grammar of adapters/_shared/src/milestone_token.ts — the same union all milestone-parsing probes below accept in plan filenames and headings) and counts ^## <milestone-id> headings under EITHER separator — the canonical em-dash emit form ## <milestone-id> — <Title> or the legacy colon form ## <milestone-id>:; >1 → ADVISORY note in file:1 — plan file carries N \## M` milestone headings; expected exactly 1shape. Catches the F3.2 bug from the 2026-05-04 Dart-lib smoke run where/setupcopied the un-trimmed multi-milestone template verbatim intospecs/plan/M1.md. Legacy multi-milestone files exist in user projects (the bug shape we're fixing) — surfacing them as advisory rather than error gives operators the signal without blocking. /spec-writeupgrades the same condition to refusal on edits. Vacuous on projects with nospecs/plan/. Test coverage: tests/gate-check-plan-file-single-milestone.test.ts`.
plan-task-fr-coverage — call runPlanTaskFrCoverageProbe(projectRoot) from adapters/_shared/src/plan_task_fr_coverage.ts. Severity: warning (NotesOnly, never GATE FAILED). Walks every active specs/plan/M*.md (excluding archive/), parses each **Tasks:** block, and asserts every [ ] task either has explicit inline link — STE-NNN to an FR row, or its leading verb-phrase substring-matches a row title; tasks marked [deferred] are exempted. Each unbacked task → ADVISORY note in file:line — unchecked task has no backing FR row and no [deferred] marker: <task body> shape. Catches the F3.12 bug where /ship-milestone pre-flight walks FR rows but not task bullets and tags a release for a milestone whose plan still describes uncompleted scope. Vacuous on projects with no specs/plan/. Test coverage: tests/gate-check-plan-task-fr-coverage.test.ts.
mcp-config-shape — call runMcpConfigShapeProbe(projectRoot) from adapters/_shared/src/mcp_config_shape.ts. Validates .mcp.json entries against Claude Code's MCP server-configuration schema; flags the F6 bug shape "transport": "streamable-http" (canonical replacement: "type": "http"). Severity: routed per file — toolkit-shipped templates / docs (docs/setup-tracker-mode.md, templates/CLAUDE.md.template, skills/setup/SKILL.md) ⇒ ERROR (we ship the schema; we ship it correctly); user-project .mcp.json ⇒ ADVISORY (don't break existing repos with the legacy shape). Vacuous when neither toolkit files nor .mcp.json carry the bug shape. Test coverage: tests/gate-check-mcp-config-shape.test.ts.
setup-permissions-shape — call runSetupPermissionsShapeProbe(projectRoot) from adapters/_shared/src/setup_permissions_shape.ts. Severity: advisory only. Walks user-project .claude/settings.json and flags glob-shaped Bash rules (Bash(<cmd> *) patterns); the harness denies any glob-shaped Bash rule when /setup writes the file on a fresh repo (F3b). Each glob → ADVISORY note file:line — reason. Migration is operator-driven via /setup --migrate; this probe is the read-side signal. Vacuous when .claude/settings.json is absent. Test coverage: tests/gate-check-mcp-config-shape.test.ts.
archive-frontmatter-coherent — call runArchiveFrontmatterCoherentProbe(projectRoot) from adapters/_shared/src/archive_frontmatter_coherent.ts. Severity: error. Walks every specs/frs/archive/*.md and specs/plan/archive/*.md and asserts frontmatter status: archived AND archived_at: populated. Any file in archive/ with status: active or unset archived_at: → GATE FAILED with file:1 — reason note. Catches the F11 staging-order bug (an archive commit landing with un-flipped frontmatter because the editor wrote frontmatter BEFORE git mv). Sibling to existing probe #16 archive_plan_status (which walks ONLY plan archives and uses different message text); the two probes overlap on the plan-archive arm but the overlap is intentional defense-in-depth. Vacuous on fresh repos with no archive directories. Test coverage: tests/gate-check-archive-frontmatter-coherent.test.ts.
cross-cutting-spec-stale-file-refs — call runCrossCuttingSpecStaleFileRefsProbe(projectRoot) from adapters/_shared/src/cross_cutting_spec_stale_file_refs.ts. Severity: warning (NotesOnly, never GATE FAILED). Walks specs/technical-spec.md and specs/testing-spec.md for path-references whose tokens contain / (full paths), in two shapes tagged on each row as kind: directory-tree leaves inside triple-backtick fences (treeLeaf) and prose mentions outside any fence (proseMention). Accept-list (TREE_FENCE_INFO_ACCEPT_LIST) — the scan is restricted to fences whose info string is empty (bare), text, or tree. Fences carrying a language-tagged info string (dart, sh, yaml, typescript, …) are out of scope and are never scanned, because they are code, not directory trees; that exclusion closes three false-positive classes seen on a real consumer project — package-prefixed imports, app-relative asset literals, and shell path arguments. Bare stays the canonical form every directory tree in this repo already uses; text and tree are accepted so authors who tag for their renderer are not punished. A token resolves if it exists under the project root OR under any plugins/<name>/ sub-root carrying a .claude-plugin/plugin.json manifest, because a marketplace repo's specs address plugin-relative paths; <placeholder>-templated expressions resolve nowhere for anyone and are skipped rather than reported. Tokens that don't resolve to an existing path on disk surface as ADVISORY rows in file:line — reason shape. Bare-basename references (no /) are skipped — no parent context. Prose rows carry their own reason and remedy wording, never the directory-tree sentence, because prose is operator judgment surface: it is reported for amendment, never rewritten mechanically. Defense-in-depth read-side check for paths that bypass /implement Phase 4b's cross-cutting-spec propagation step (manual deletes, git rm, downstream toolkit consumers). Vacuous when both spec files are absent. Test coverage: tests/gate-check-cross-cutting-spec-stale-file-refs.test.ts. (STE-215 AC-STE-215.5)
auto-approve-marker-in-canonical-spawns — call runAutoApproveMarkerProbe(projectRoot) from adapters/_shared/src/auto_approve_marker.ts. Severity: error. Globs plugins/dev-process-toolkit/skills/*/SKILL.md and .claude/skills/*/SKILL.md, finds every fenced ```bash block whose body contains a claude -p invocation paired with a heredoc-on-stdin (<<'TAG', <<TAG, <<${VAR}), and asserts the canonical marker line <dpt:auto-approve>v1</dpt:auto-approve> appears on its own line inside that fence. Each missing-marker fence → GATE FAILED with file:line — reason note in NFR-10 canonical shape. Non-prompt-bearing < /dev/null snippets (the /gate-check, /spec-review, /simplify reference snippets in /smoke-test SKILL.md) are intentionally out of scope — those skills carry no operator-approval gate, so a marker would be redundant. Catches the regression where parent skills (/smoke-test, /conformance-loop) silently drop the marker from a documented spawn snippet, leaving downstream claude -p runs to halt at child-skill gates. Vacuous on repos that ship no SKILL.md files. Test coverage: tests/gate-check-auto-approve-marker.test.ts. (STE-226 AC-STE-226.5)
tdd-orchestrator-integrity — call runTddOrchestratorIntegrityProbe(projectRoot) from adapters/_shared/src/tdd_orchestrator_integrity.ts. Severity: error. Asserts the load-bearing structural invariants of the multi-agent TDD orchestrator (STE-225): (a) the four skill paths exist (skills/tdd/SKILL.md + skills/tdd-write-test/SKILL.md + skills/tdd-implement/SKILL.md + skills/tdd-refactor/SKILL.md); (b) the three child skills carry context: fork; (c) each child's agent: field resolves to an existing agents/*.md; (d) each child carries user-invocable: false; (e) each subagent's tools field excludes Agent (plugin-bundled subagents must not nest-spawn). Probe does not assert specific allowed-tool composition beyond the Agent exclusion or specific prompt phrasing — content drift is verified by the headless live smoke (AC-STE-225.9), not the probe. Vacuous only on repos with neither a plugins/dev-process-toolkit/skills/ nor a plugins/dev-process-toolkit/agents/ directory (the canonical no-plugin-content shape). When one directory exists but the other is absent, the probe runs and surfaces the asymmetry as violations — that's intentional, not a bug: a repo with skills/ but no agents/ is a malformed plugin where the asymmetry IS the failure. Test coverage: tests/gate-check-tdd-orchestrator-integrity.test.ts. (STE-225 AC-STE-225.7)
needs_technical_review_consistency — call runNeedsTechnicalReviewConsistencyProbe(projectRoot) from adapters/_shared/src/needs_technical_review_consistency.ts. Severity: error. Walks every active specs/frs/*.md (archive excluded) and enforces the bidirectional invariant on the needs_technical_review: frontmatter flag: when the flag is set to true, the ## Technical Design and ## Testing body sections MUST contain the canonical placeholder substring ([needs technical review — run /spec-write …]); when the flag is absent or false, those sections MUST be non-placeholder content (non-empty AND not containing the placeholder substring). Substring match — not byte-exact — so future copy edits of the placeholder don't break archived FRs. Each violation surfaces as a file:line — reason note in NFR-10 canonical shape. Catches the smoke-test failure mode where /spec-write advertises the placeholder convention but lands an FR whose Technical Design / Testing sections drift from the flag value. Vacuous when specs/frs/ is absent. Test coverage: tests/needs-technical-review-consistency-probe.test.ts + tests/gate-check-needs-technical-review.test.ts. (STE-227 AC-STE-227.9)
spec_research_result_shape — call runSpecResearchResultShapeProbe(projectRoot) from adapters/_shared/src/spec_research_result_shape.ts. Severity: error. Walks every recorded .dpt/scratch/**/spec-research-result.txt log produced by the /dev-process-toolkit:spec-research forked skill (parent skills /brainstorm and /spec-write MAY persist the most recent subagent output for inspection). On each block, the probe asserts (a) the literal banner line > [historical reference — decisions below may be stale; use as background, not authority] is present immediately above the fenced block, (b) the fence opens with \``spec-research-result, (c) exactly three ## headings appear inside the fence in the canonical order (## Related FRs, ## Prior Decisions, ## Reusable ACs / Patterns), and (d) the entire block (banner + opening fence + sections + closing fence) is ≤ 25 lines. Each violation surfaces as a file:line — reasonnote in NFR-10 canonical shape. Vacuous when no result log is recorded — the common no-invocation path. Sibling module:commit_producing_skill_branch_gate(M61) — no numbered entry registers it, so /gate-check does not run it. Test coverage:tests/gate-check-spec-research-result-shape.test.ts`. (STE-230 AC-STE-230.12)
requires_input_sentinel_coverage — call runRequiresInputSentinelCoverageProbe(projectRoot) from adapters/_shared/src/requires_input_sentinel_coverage.ts. Severity: error. Globs plugins/dev-process-toolkit/skills/*/SKILL.md and .claude/skills/*/SKILL.md (matching probe #38's scope). Scope is decided per occurrence, not per file: a skill is in scope only when some non-comment line DECLARES a gate — the annotation owns its line (after blockquote / table-cell / heading / list / emphasis decoration and one optional backtick), or an inline-code span carries the annotation together with a concrete reason. Naming requires-input: mid-sentence in running prose is a mention, not a declaration, and never pulls the citing skill into scope — several marker-consuming skills legitimately carry that disclaimer without owning a gate. Single source of truth: the exported recognizer isRequiresInputDeclaration(line), sibling idiom to probe #28's isNegativeAssertion. For every in-scope skill, asserts (a) a requireOrRefuse(...) reference (the canonical helper from adapters/_shared/src/requires_input.ts) AND (b) a relative-path citation of docs/auto-mode-protocol.md. Each missing check surfaces as a separate violation (so the operator sees both gaps in one report) in file:line — reason shape with NFR-10 remedy, anchored at the first declaration carrying a concrete reason. HTML-comment-scoped mentions are stripped before scanning. Skills that declare no gate are vacuously out of scope. Catches the v2.13.0 incident shape where a declared gate bypassed structurally because the skill body did not route through the canonical helper. Editing this entry: keep every illustrative requires-input: mid-sentence and reason-free, or this catalogue declares a gate and scopes /gate-check itself in. Test coverage: tests/gate-check-requires-input-sentinel-coverage.test.ts. (STE-232 AC-STE-232.5)
socratic_loop_uses_ask_user_question — call runSocraticLoopUsesAskUserQuestionProbe(projectRoot) from adapters/_shared/src/socratic_loop_uses_ask_user_question.ts. Severity: error. Globs plugins/dev-process-toolkit/skills/*/SKILL.md and .claude/skills/*/SKILL.md (matching probe #38 / #42 scope). For every skill body that (a) cites Pattern 26 (substring match) OR (b) carries a socratic: true Schema-K frontmatter key, asserts (i) the body references the AskUserQuestion tool primitive AND (ii) the body cites the canonical protocol doc docs/auto-mode-protocol.md. Each missing check surfaces as a separate violation in file:line — reason shape with NFR-10 remedy. HTML-comment-scoped Pattern-26 mentions are stripped before scanning. Forward-extension hook: any new skill that ships Pattern 26 prose or socratic: true is automatically picked up — no manual list maintenance. Closes the magpie incident regression class structurally (gist https://gist.github.com/<redacted>, 2026-05-07, plugin v2.16.0). Test coverage: tests/gate-check-socratic-loop-uses-ask-user-question.test.ts. (STE-237 AC-STE-237.3)
closing_summary_capability_keys — call runClosingSummaryCapabilityKeysProbe(projectRoot) from adapters/_shared/src/closing_summary_capability_keys.ts. Severity: error. Globs plugins/dev-process-toolkit/skills/{spec-write,gate-check,smoke-test}/SKILL.md and .claude/skills/{spec-write,gate-check,smoke-test}/SKILL.md. For every capability key in the canonical static map (sourced from /spec-write § 7), asserts the owner skill body carries a literal MUST emit \`directive (regex match on the documented directive shape — backticks required; paraphrased prose like "the closing summary will mention <key>" does NOT satisfy the directive). Each missing directive surfaces as afile:line — reasonnote with NFR-10 remedy. Modeled on probe #42 / probe #38 shape. Closes the/conformance-loopiteration 1 (2026-05-07, F1+F3+F4) systemic gap where SKILL.md prose specified byte-checkable capability rows but the runtime LLM emitted narrative prose, not the literal tokens. Test coverage:tests/gate-check-closing-summary-capability-keys.test.ts`. (STE-238 AC-STE-238.4)
socratic_first_turn_post_hoc_drift — call runSocraticFirstTurnPostHocDriftProbe(projectRoot) from adapters/_shared/src/socratic_first_turn_post_hoc_drift.ts. Severity: error. Reads the latest commit on the active branch via git log -1 --format=%H%n%s%n%b. When the subject matches a canonical /spec-write shape (chore(specs): write FR <tracker-id> OR docs(specs): edit cross-cutting specs) AND the body carries NEITHER an audit-row marker (spec_write_draft_default_applied / spec_write_commit_default_applied / spec_write_commit_operator_approved) NOR a refusal NFR-10 block (Verdict: ... Refused shape — case-insensitive on the verb), surface socratic_first_turn_post_hoc_drift_violation capability row and GATE FAILED with NFR-10 message naming the commit hash + offending subject. Vacuous on commits not matching the canonical subject patterns (anchored regex — quoted mentions in revert subjects do not falsely activate). Vacuous on repos with no .git/ or no commits. Catches the F2 silent-commit shape captured by /conformance-loop iter-1 (commit 9b75b4b, 2026-05-08): under claude -p non-tty stdin the model fires AskUserQuestion (passes first-turn), sees "dismissed" responses, self-rationalizes "picked safe defaults" and lands a real commit + tracker writes without operator consent. The legitimate paths always leave a marker in the body — an audit row when default-apply is exercised or the operator approved the commit interactively, or the refusal NFR-10 block when the operator was surfaced the failure. Test coverage: tests/gate-check-socratic-first-turn-post-hoc-drift.test.ts + adapters/_shared/src/socratic_first_turn_post_hoc_drift.test.ts. (STE-251 AC-STE-251.3)
conformance-loop-bypass-removed — call runConformanceLoopBypassRemovedProbe(projectRoot) from adapters/_shared/src/conformance_loop_bypass_removed.ts. Severity: error. Globs .claude/skills/{conformance-loop,smoke-test}/SKILL.md, finds every fenced ```bash block whose body contains a claude -p invocation, and asserts none carry --permission-mode bypassPermissions. Each offending fence → GATE FAILED with file:line — reason note in NFR-10 canonical shape (cites the offending bypassPermissions line, not the fence start, for actionable diffs). Vacuous on repos that don't ship the project-local .claude/skills/{conformance-loop,smoke-test}/SKILL.md files (toolkit consumers without the smoke harness). Catches the regression where a future edit reintroduces the blanket bypass at any reachable spawn site, defeating the audit-able policy artifact (permissions.allow block in tracked .claude/settings.json). Sibling probe: probe #38 auto-approve-marker-in-canonical-spawns enforces marker presence at the same fences; probe #46 enforces flag absence. Test coverage: tests/gate-check-conformance-loop-bypass-removed.test.ts. (STE-252 AC-STE-252.4)
spec_write_first_turn_drift_scan — call runSpecWriteFirstTurnDriftScanProbe(projectRoot) from adapters/_shared/src/spec_write_first_turn_drift_scan.ts. Severity: error. Globs ONLY plugins/dev-process-toolkit/skills/spec-write/SKILL.md (single-file scope; the regression is uniquely /spec-write's, not a cross-skill issue) and scans for six literal forbidden alternate-trigger paraphrases of the Pattern-26 first-turn contract: "pre-baked args allow", "verbose <command-args> permits", "autonomous-mode permits skip", "marker absence implies", "first AskUserQuestion may be deferred", "Socratic loop is optional under". Each occurrence → GATE FAILED with file:line:column — reason note in NFR-10 canonical shape, naming the matched phrase and the rephrase remedy. Sibling probe shape to STE-226's auto_approve_marker.ts and STE-262's spec_write_alternate_trigger_scan.ts; literal substring match (no regex) so future SKILL.md copy edits don't accidentally regress detection. Vacuous when /spec-write SKILL.md is absent (downstream toolkit consumers without the plugin's own skills tree). Closes the /conformance-loop iter-1 (2026-05-10) F1 reproducer where /spec-write's diluting-prose surface (§ 0a Resolver entry + § 0b FR creation path) read to the LLM as license to skip the Socratic loop entirely under the autonomous-mode reminder — same prose-only failure shape STE-220 → STE-226 → STE-237 each hit before structural / byte-checkable hardening landed. Test coverage: tests/gate-check-spec-write-first-turn-drift-scan.test.ts. (STE-270 AC-STE-270.2)
spec_write_marker_alternate_trigger_scan — call runSpecWriteAlternateTriggerScanProbe(projectRoot) from adapters/_shared/src/spec_write_alternate_trigger_scan.ts. Severity: error. Globs ONLY plugins/dev-process-toolkit/skills/spec-write/SKILL.md and scans for six literal forbidden alternate-trigger paraphrases of the STE-226 marker contract: "Auto Mode", "work without stopping", "imputed approval", "autonomous-mode reminder", "inferred approval", "non-interactive inference". Each occurrence → GATE FAILED with file:line:column — reason note in NFR-10 canonical shape, naming the matched phrase and the rephrase remedy. Negation-context carve-out: lines containing any of "single deterministic" (canonical contract anchor at gate sites), "are removed" / "is removed" (legacy-removal historical reference), "regardless of" (disclaimer phrasing), or "NOT acceptable" (explicit forbidden-trigger marker) are excluded — those signatures only appear in legitimate negation/historical context, not as positive alternate triggers. Sibling probe shape to STE-226's auto_approve_marker.ts and STE-270's spec_write_first_turn_drift_scan.ts. Vacuous when /spec-write SKILL.md is absent. Closes the /conformance-loop iter-1 (2026-05-08) F1 cross-tracker reproducer where /spec-write's draft + commit gates auto-applied silently on claude -p runs whose prompt body lacked the marker, conflating the harness's autonomous-mode reminder with the byte-checkable STE-226 marker. Third attempt at this gate (STE-213 → STE-220 → STE-226 → STE-262); structural enforcement at runtime + this source-level probe close the prose-only LLM-inference path. Test coverage: tests/gate-check-spec-write-marker-alternate-trigger-scan.test.ts. (STE-262 AC-STE-262.4 + AC-STE-262.7)
tracker_local_reconciliation_drift — fetch the container pages with the adapter's list_active_frs read (Jira: run bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/tracker_listing_query.ts jira <projectRoot> <projectKey> and use the JQL it prints, verbatim), save each page as JSON, then run bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/tracker_local_reconciliation_drift.ts <projectRoot> <page.json>... and report every row it prints. Severity tiered: info (no drift), warning (any drift — tracker-orphan / unbound local FR / milestone-mismatch), error (hard FR-id collisions — same tracker ID bound by two or more local files OR local FR's tracker: value points at an FR id absent from the tracker's active set). Every page ticket is classified by its labels: a tracker-orphan row appears only for an unbound ours or unowned ticket and names its class and owner (the creator); sibling tickets, containers (Jira Epics), closed tickets and tickets an archived FR binds are counted and never reported as orphans. Shared-only warnings (a repository declaring a shared tracker; never in an undeclared one): unowned-container-ticket (an untagged ticket any sharing repository may claim, naming its creator), bound-ticket-untagged (a ticket a local FR binds that lacks this repository's tag) and numeric-milestone-shared (one numeric milestone-M<N> label carried by more than one repository's tickets). Jira only: open-milestone-epic (warning — an open Epic whose milestone plan is archived here; close it) when the repository is undeclared and the plan declares no spans_repos, otherwise the info row open-milestone-epic-shared (close it once every sharing repository has shipped). One info row counts the excluded tickets (sibling and container); page-set rows: container-not-read (no page supplied — orphans skipped, info), container-empty (info); an incomplete listing is refused rather than graded, exit 1 naming the page — error container-partial when the pages supplied are not one unbroken chain (each page after the first carries the requestCursor it was fetched with, equal to the previous page's cursor) or the final page is not the last page of its listing, error container-unreadable when a page cannot be read, error container-foreign-project when a shared repository's page carries a ticket from another project (or Linear team), naming it. Wraps reconcileTrackerLocal from adapters/_shared/src/reconcile_tracker_local.ts and adds a local-side scan for the duplicate-binding shape the helper cannot see by construction (both files carry a binding, so neither is an orphan). Mode-aware via the helper: LocalProvider (mode: 'none') reconciles to three empty lists and the probe surfaces info/zero-violations on every local-only project. Read-side: never writes, never throws on missing specs/ directories; a missing or non-JSON page refuses naming the file. Closes the 2026-05-13 partial-scan trap shape where a milestone existed on the tracker but had no local plan file. Test coverage: tests/gate-check-tracker-local-reconciliation-drift.test.ts. (STE-284 AC-STE-284.4)
Capability-key roll-up (STE-284 AC-STE-284.5). Probe #49 surfaces three byte-checkable capability keys into the closing summary so the operator sees the reconciliation outcome without scrolling probe output. Owner skill: /spec-write (preamble reconcile is the canonical emission site); /gate-check mirrors the keys here so the conformance probe at #44 (closing_summary_capability_keys) and the future cross-skill audit can find them in either surface. The plain-language rendering tracks /spec-write § 7's static map row of the same name:
tracker_local_reconciled — emitted whenever the preamble auto-import path reconciled ≥ 1 FR or milestone from the tracker into local files. Render: tracker → local reconciliation imported N FR(s) and M milestone(s) — see specs/frs/<id>.md and specs/plan/<M>.md for the imported content.tracker_local_orphan_local — emitted per offending entity when a local FR file carries no tracker: binding. Render: local FR <id> has no tracker binding — run /spec-write <id> --push-to-tracker to sync, or remove the local file if abandoned.milestone_local_orphan — emitted per offending entity when a local specs/plan/M<N>.md has no matching tracker milestone (the partial-scan trap inverse). Render: local milestone M<N> has no tracker milestone — auto-create via Provider.attachProjectMilestone(M<N>), or remove if abandoned. Scaffolding exclusion: a plan whose frontmatter declares kind: scaffolding — the bootstrap plan /setup writes — is never reported here, because it has no tracker milestone by design and a freshly bootstrapped project would otherwise gate with a warning it can do nothing about. The carve-out is one-directional: it drops the local side only (a tracker milestone with no local plan still reports), it keys on the reconcile item's structural side field rather than on the render prose, and it reads kind: through the shared frontmatter parser, so CRLF- and BOM-prefixed plans are recognised too.The three keys MUST appear verbatim in the closing summary; paraphrased prose is insufficient (STE-220 lesson). Vacuous in mode: none.
tdd_spec_reviewer_subagent_invariants — call runTddSpecReviewerInvariantsProbe(projectRoot) from adapters/_shared/src/tdd_spec_reviewer_invariants.ts. Severity: error. Asserts the byte-checkable frontmatter invariants for the AUDIT-stage subagent + child skill: (a) agents/tdd-spec-reviewer.md exists with tools: Read, Grep, Glob (read-only — Write/Edit/Bash/Agent excluded), maxTurns: 8, model: sonnet; (b) skills/tdd-spec-review/SKILL.md exists with context: fork, agent: tdd-spec-reviewer, user-invocable: false, and (when allowed-tools: is present) Agent excluded. Mirrors probe #39 tdd_orchestrator_integrity shape against the new fourth stage; both probes share frontmatter parsing + violation-rendering primitives from adapters/_shared/src/tdd_probe_helpers.ts. Vacuous only on repos with neither plugins/dev-process-toolkit/skills/ nor plugins/dev-process-toolkit/agents/. Test coverage: tests/gate-check-tdd-spec-reviewer-invariants.test.ts. (AC-STE-296.8)
deps_researcher_subagent_invariants — call runDepsResearcherInvariantsProbe(projectRoot) from adapters/_shared/src/deps_researcher_invariants.ts. Severity: error. Asserts the byte-checkable frontmatter invariants for the deps-research subagent + child skill: (a) agents/deps-researcher.md exists with tools: Read, Grep, Glob (read-only — Write/Edit/Bash/Agent excluded) and model: haiku; (b) skills/deps-research/SKILL.md exists with context: fork, agent: deps-researcher, user-invocable: false, and (when allowed-tools: is present) Agent excluded. Mirrors probe #50 tdd_spec_reviewer_subagent_invariants shape (STE-296 AC.8) against the deps-research fork; both probes share frontmatter parsing + violation-rendering primitives from adapters/_shared/src/tdd_probe_helpers.ts. Vacuous only on repos with neither plugins/dev-process-toolkit/skills/ nor plugins/dev-process-toolkit/agents/. Test coverage: tests/gate-check-deps-researcher-invariants.test.ts. (STE-301 AC-STE-301.15)
tracker_config_shape — call runTrackerConfigShapeProbe(projectRoot) from adapters/_shared/src/tracker_config_shape.ts. Severity: error. On a legacy tree it byte-checks specs/tracker-config.yaml shape when the file exists (on a settings-file tree it grades task_tracking.status_vocabulary in specs/settings.yaml by the same rules): tracker_key: matches the active adapter's name: field (resolved via readAdapterName(...) from adapters/<mode>.md, where <mode> is the tracker mode) per STE-321 AC.1 — the hard-coded linear/jira allowlist is gone, custom-adapter authors are first-class; statuses: is a non-empty list of verbatim tracker labels (AC.2); and roles: declares exactly the canonical four-role enum {initial, in_progress, in_review, done} with every value present in statuses: (AC.3 + AC.4). Schema authority is validateTrackerConfig from adapters/_shared/src/tracker_config.ts — the same validator readTrackerConfig calls — so the probe and the runtime loader can never diverge. Each violation surfaces as a specs/tracker-config.yaml:<line> — <reason> note in NFR-10 canonical shape (Refusing: / Remedy: / Context:). Vacuous when specs/tracker-config.yaml is absent (FR2 owns creation) OR the tracker mode is none (short-circuits before the file is read — even a malformed file is inert under mode: none). Test coverage: tests/gate-check-tracker-config-shape.test.ts.
tracker_tolerance_wrapper_present — call runTrackerToleranceWrapperPresentProbe(projectRoot) from adapters/_shared/src/tracker_tolerance_wrapper_present.ts. Severity: error. Defense-in-depth byte-check that plugins/dev-process-toolkit/adapters/_shared/src/tracker_tolerance.ts exists AND exports withTolerance (matched as export function withTolerance or export const withTolerance). If a future refactor accidentally drops the wrapper or renames the symbol, the relaxed status-mapping probes would silently lose tolerance — this probe is the structural fuse that catches that regression at gate-check time. Each violation surfaces as a plugins/dev-process-toolkit/adapters/_shared/src/tracker_tolerance.ts:1 — <reason> note in NFR-10 canonical shape (Refusing: / Remedy: / Context:). Vacuous when plugins/dev-process-toolkit/adapters/_shared/src/ is absent (non-toolkit projects do not ship the shared adapter layer). Test coverage: tests/gate-check-tracker-tolerance-wrapper-present.test.ts.
audit_fix_loop_pattern_invariants — call runAuditFixLoopPatternInvariantsProbe(projectRoot) from adapters/_shared/src/audit_fix_loop_pattern.ts. Severity: error. Asserts byte-checkable invariants on every canonical audit-fix loop declared in the AUDIT_FIX_LOOP_CANONICAL_LOOPS allowlist exported from the same module. The allowlist ships with the /tdd audit-fork pair only at FR ship (tdd-spec-review::tdd-spec-reviewer); STE-308 appends the /spec-review audit-fork entry. The RED/GREEN/REFACTOR /tdd forks (tdd-write-test, tdd-implement, tdd-refactor) are deliberately excluded — they are the action half of /tdd's loop and need Write/Edit/Bash; their orchestrator-level invariants are already enforced by probe #39 tdd_orchestrator_integrity. For each allowlist entry the probe asserts (a) the child skill file exists at plugins/dev-process-toolkit/skills/<child>/SKILL.md and carries context: fork, user-invocable: false, and an agent: resolving to an existing plugins/dev-process-toolkit/agents/<name>.md; (b) the subagent declares tools: Read, Grep, Glob only (Write/Edit/Bash/Agent excluded); (c) the child's allowed-tools: (when present) excludes Agent. Generalises probes #39 / #50 / #51 to a single allowlist-driven scan so new audit-fix loops added downstream are picked up without bespoke probe code. Vacuous on repos with neither plugins/dev-process-toolkit/skills/ nor plugins/dev-process-toolkit/agents/. Test coverage: tests/gate-check-audit-fix-loop-pattern-invariants.test.ts. (STE-307)
not_a_trigger_anchor_present — call runNotATriggerAnchorPresentProbe(projectRoot) from adapters/_shared/src/not_a_trigger_anchor_present.ts. Severity: error. Asserts a § Rules NOT-a-trigger anchor lands in BOTH plugins/dev-process-toolkit/skills/spec-write/SKILL.md AND plugins/dev-process-toolkit/skills/setup/SKILL.md. The anchor's byte-checkable contract is that every literal phrase in NOT_A_TRIGGER_REQUIRED_PHRASES ("work without stopping", "autonomous-mode", "standing instruction", <command-args>, claude -p) appears in the file at or after the ## Rules heading, alongside a literal reference to adapters/_shared/src/check_marker_runtime.ts as the SOLE byte-checkable evaluation path. Each violation surfaces as a <skill SKILL.md>:<line>:<column> — <reason> note in NFR-10 canonical shape (Refusing: / Remedy: / Context:). Vacuous when neither SKILL.md ships. Test coverage: tests/gate-check-not-a-trigger-anchor-present.test.ts.
marker_helper_invoked_per_gate — call runMarkerHelperInvokedPerGateProbe(projectRoot, { sessionLogPath }) from adapters/_shared/src/marker_helper_invoked_per_gate.ts. Severity: error. Scans the NDJSON Bash-tool transcript of /spec-write and /setup runs (via the stream-json session-log capture path) and refuses with NFR-10 if any marker-gated decision token (spec_write_draft_default_applied, spec_write_commit_default_applied, branch_gate_default_applied, or any setup_socratic_first_turn_* token) surfaces in an assistant text block without a preceding Bash invocation of bun run plugins/dev-process-toolkit/adapters/_shared/src/check_marker_runtime.ts in the same session log. Refusal events (RequiresInputRefusedError text) are not gate decisions — the probe ignores them. Each violation surfaces in NFR-10 canonical shape (Refusing: / Remedy: / Context:). Vacuous when no sessionLogPath is supplied OR the path points at a missing file (downstream toolkit consumers without the capture path shouldn't see false-positive violations). Test coverage: tests/gate-check-marker-helper-invoked-per-gate.test.ts.
public_surface_count_drift — call runPublicSurfaceCountDriftProbe(projectRoot) from adapters/_shared/src/public_surface_count_drift.ts with PROBE_ID = "public_surface_count_drift". Severity: error. Asserts the documented skill / agent / probe count tokens in README.md and CLAUDE.md match the actual on-disk counts. Walks three input files (README.md, CLAUDE.md, skills/gate-check/SKILL.md) and the on-disk plugins/dev-process-toolkit/skills/*/ + agents/*.md trees to compute observed counts; any documented value that disagrees with the corresponding observed value surfaces as an NFR-10 canonical refusal (<file>:<line>:<column> — <reason> with Refusing: / Remedy: / Context: sub-lines). Pattern list lives as a const at the top of the probe module so contributors editing public surfaces see the contract. Vacuous when none of the three input files exists (non-toolkit projects do not ship them). Test coverage: tests/gate-check-public-surface-count-drift.test.ts.
cross_skill_contract_drift — call runCrossSkillContractDriftProbe(projectRoot) from adapters/_shared/src/cross_skill_contract_drift.ts with PROBE_ID = "cross_skill_contract_drift". Severity: error. Walks the active-surface glob plugins/dev-process-toolkit/{skills,docs,agents}/**/*.md plus plugins/dev-process-toolkit/README.md (archive directories excluded) and scans each line for the literal forbidden substrings exported as FORBIDDEN_SUBSTRINGS at the top of the probe module — see the module source for the authoritative list. Closes three already-shipped cross-skill contract drifts — A2 (/tdd 4-stage AUDIT vocabulary per STE-296 M77), A6 (2-tier ticket-binding resolver per v1.21.0), and A14 (a phantom probe reference deleted from agents/deps-researcher.md). Each match surfaces as an NFR-10 canonical refusal (<file>:<line>:<column> — <reason> with Refusing: / Remedy: / Context: sub-lines). Literal substring match — no regex — so future SKILL.md copy edits don't accidentally regress detection. Vacuous when plugins/dev-process-toolkit/ is absent (downstream toolkit consumers without the plugin's own docs). Test coverage: tests/gate-check-cross-skill-contract-drift.test.ts.
disable_model_invocation_allowlist — call runDisableModelInvocationAllowlistProbe(projectRoot) from adapters/_shared/src/disable_model_invocation_allowlist.ts with PROBE_ID = "disable_model_invocation_allowlist". Severity: error. Walks every plugins/dev-process-toolkit/skills/*/SKILL.md frontmatter and refuses if disable-model-invocation: true is declared on any skill not in the canonical allowlist exported as DISABLE_MODEL_INVOCATION_ALLOWLIST (currently ["setup"] only — /setup is the bootstrap entry point and must not be auto-invoked mid-session). Composable skills like /ship-milestone and /spec-archive must remain model-invocable; surfacing the flag on them would silently break orchestration chains (/implement → /spec-archive, release pipelines). Each violation surfaces as an NFR-10 canonical refusal (<file>:<line>:<column> — <reason> with Refusing: / Remedy: / Context: sub-lines). Canonical-allowlist shape mirrors closing_summary_capability_keys (STE-238 AC.4). Vacuous when plugins/dev-process-toolkit/skills/ is absent (downstream toolkit consumers without the plugin's own skills tree). Test coverage: tests/m84-ste-324-low-polish-bundle.test.ts (AC-STE-324.8).
kotlin-detekt-configured — call runKotlinDetektConfiguredProbe(projectRoot) from adapters/_shared/src/kotlin_detekt_configured.ts with PROBE_ID = "kotlin-detekt-configured". Severity: error. Fires when a Gradle Kotlin project is detected (build.gradle.kts OR settings.gradle.kts) AND its gate-commands declare detekt; verifies the detekt Gradle plugin is applied (io.gitlab.arturbosch.detekt referenced in build.gradle.kts OR a detekt { … } block present). When the plugin is missing, fails with an NFR-10-shape error pointing to the /setup step 2c Kotlin detekt scaffold-verify branch so the operator can re-add the detekt plugin. Vacuous on non-Kotlin projects (no build.gradle.kts/settings.gradle.kts) and on Kotlin projects that do not declare detekt as a gate. Test coverage: tests/gate-check-kotlin-detekt-configured.test.ts.
design_references_resolve — call scanDesignReferences(projectRoot) from adapters/_shared/src/scan_design_references.ts. Severity: error. Walks the spec-file glob (specs/requirements.md, specs/frs/**/*.md active and specs/frs/archive/, specs/technical-spec.md, specs/testing-spec.md, specs/plan/**/*.md), finds every ## Design References section (a level-2 heading whose text is exactly "Design References"; an h3 ### Design References does not count; the section ends at the next line beginning with ## ), and for each list item whose first backtick-wrapped token is a repo-root-relative path resolves that path against the repo root via existsSync. GATE FAILED on any returned row with resolves === false, naming file:line + the missing path in NFR-10 canonical shape (Refusing: / Remedy: / Context:). Vacuous-pass when no ## Design References section exists (zero rows); non-path prose lines under a section are ignored. Test coverage: tests/gate-check-design-references-resolve.test.ts.
spawn_pattern_allowlist — call runSpawnPatternAllowlistProbe(projectRoot) from adapters/_shared/src/spawn_pattern_allowlist.ts. Severity: error. Asserts the canonical child-spawn pattern Bash(claude:*) is present in BOTH (a) the permissions.allow array of the tracked .claude/settings.json at the project root and (b) the /smoke-test Phase 1 scaffold snippet — the settings-writing cat > .claude/settings.json <<'EOF' heredoc inside .claude/skills/smoke-test/SKILL.md (scoped to the heredoc body; prose mentions elsewhere in the file do not satisfy it). Each miss → GATE FAILED with a file:line — reason note in NFR-10 canonical shape (Remedy: / Context:). Fail-closed when a surface exists but presence cannot be verified (malformed settings JSON; SKILL.md without a settings-writing heredoc). Scoped to the scaffold: .claude/settings.json is graded only when .claude/skills/smoke-test/SKILL.md exists at the project root; otherwise the report is vacuous with a note naming the missing scaffold. This is the fence the M94 false-green proved was missing: a non-empty allow-list (length > 0, probe-#46 posture) still shipped with the load-bearing spawn pattern absent, so nested claude -p spawns were classifier-denied headless and grandchildren died as 0-byte transcripts. Test coverage: tests/gate-check-spawn-pattern-allowlist.test.ts, tests/m_b2fdc0-ste-735-scaffold-scope.test.ts.
plan_ship_coherence — call runPlanShipCoherenceProbe(projectRoot) from adapters/_shared/src/plan_ship_coherence.ts. Severity: error. Walks every archived plan specs/plan/archive/M*.md — M<N> and M_<epic-key> filenames alike (live plans under specs/plan/ are exempt by construction) and enforces the post-merge ship-ceremony decision matrix: a shipped_in: v<X.Y.Z> stamp must resolve to a matching ## [X.Y.Z] heading in CHANGELOG.md — missing heading or malformed stamp value → GATE FAILED with a corrupt-stamp diagnostic naming the plan, the observed stamp value, and the remedy; ship_state: parked → no violation, collected into a single GATE PASSED WITH NOTES row parked milestones: M<a>, M<b> enumerating every parked plan (parked is visible, never silent); neither key → GATE FAILED whose message carries the canonical post-merge ceremony recipe (exported as SHIP_CEREMONY_RECIPE, shared verbatim with docs/ship-milestone-reference.md). Also awaits runReleaseSurfaceAgreement(projectRoot) from adapters/_shared/src/release_surface_agreement.ts and maps every returned row into the same violation shape: the README Latest: banner must name the version being released together with the codename of that version's CHANGELOG.md entry and the milestone of the plan whose shipped_in: stamp resolves to it — the ship ceremony's own pass runs before the bump, when both surfaces still honestly describe the previous release, so a banner the bump leaves behind is only catchable here. Violation shape follows probe #16 archive_plan_status: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Vacuity is per part: the archive walk is silent when specs/plan/archive/ is absent or empty; the agreement check is vacuous unless all three of a README Latest: banner marker, at least one parseable CHANGELOG.md heading, and at least one plan carrying a REAL shipped_in: stamp (the template sentinel shipped_in: null is not one, so an unshipped plan buys vacuity rather than a violation) are present — any one missing yields zero agreement rows, as does a project declaring changelog_ci_owned: true in its docs settings (legacy: CLAUDE.md's ## Docs block), whose CHANGELOG the release bump never writes; the sibling leg is vacuous unless a stamped archived plan declares spans_repos:. Test coverage: tests/gate-check-plan-ship-coherence.test.ts, tests/m141-ste-546-surface-agreement.test.ts, tests/m_79b1f6-ste-588-sibling-coherence.test.ts. Sibling leg: each archived plan whose stamp resolves to a CHANGELOG heading and which declares spans_repos: has its siblings graded — a located sibling holding no plan for the milestone at its live or archive path, a sibling plan whose own spans_repos: does not name this repository back, or a malformed declaration yields one sibling_unshipped violation filed against the LOCAL plan; an unshipped or unlocatable sibling (and, under ship_partial: true, a sibling with no plan) is instead collected into one notes row siblings awaiting release: <M> → <sibling> (unshipped|unlocatable|no plan) naming every pending sibling. (STE-369)
deps_research_result_shape — call runDepsResearchResultShapeProbe(projectRoot) from adapters/_shared/src/deps_research_result_shape.ts. Severity: error. Structural clone of probe #41 spec_research_result_shape, but delegates block-shape validation to the existing parser parseDepsResearchBlock (adapters/_shared/src/deps_research_result.ts) instead of a re-implemented scan. Walks every recorded .dpt/scratch/**/deps-research-result.txt log produced by the /dev-process-toolkit:deps-research forked skill (parent skills /brainstorm and /spec-write MAY persist the most recent subagent output for inspection), feeds each file's content to the parser, and maps every { ok: false, reason } to a file:line — reason note in NFR-10 canonical shape. The parser enforces the closed schema: literal banner line / opening fence \``deps-research-result/ the three canonical## headings in order (## Relevant Packages, ## API Surface Highlights, ## Reusable Patterns) with an optional ## Missing depssubsection / ≤ 25-line cap / exactly one fenced block. Vacuous when no result log is recorded — the common no-invocation path. Test coverage:tests/gate-check-deps-research-result-shape.test.ts`. (STE-373 AC-STE-373.1)
deps_research_disposition_contract — call runDepsResearchDispositionContractProbe(projectRoot) from adapters/_shared/src/deps_research_disposition_contract.ts. Severity: error. Byte-checks the definition-level deps-research skip-disposition contract on the two parent skills that fork the deps-research subagent: (a) both skip tokens deps_research_skipped_no_manifest / deps_research_skipped_no_tech are registered in CANONICAL_CAPABILITY_KEYS (adapters/_shared/src/closing_summary_capability_keys.ts); (b) the MUST-emit disposition directive (MUST emit \` for both tokens) AND the anti-cascade rule (never disables the fork/no cross-invocation belief) are present in BOTH skills/brainstorm/SKILL.mdandskills/spec-write/SKILL.md; (c) no deps_research_skipped_*token name encodescompromised/injected/disabledstate. Colocated sibling of probe #51deps_researcher_subagent_invariants; shares the IntegrityReport/IntegrityViolationshape + NFR-10 message builder fromadapters/_shared/src/tdd_probe_helpers.ts (noteis: — , messagecarriesRemedy:andContext:sub-lines). Vacuous when the plugin skills tree is absent (neither parent SKILL.md exists). Test coverage:tests/gate-check-deps-research-disposition-contract.test.ts`. (STE-373 AC-STE-373.7)
spec_write_next_line_doc — call runSpecWriteNextLineDocProbe(projectRoot) from adapters/_shared/src/spec_write_next_line_doc.ts. Severity: error. Documentation-shape probe on skills/spec-write/SKILL.md (single-file scope): byte-checks the § 7 closing-summary Next:-line contract — (a) the canonical **Next-line variant rule.** paragraph keyed on milestone binding (positive literals: the rule name, the milestone binding discriminator, the Run /dev-process-toolkit:implement M<N> command), (b) both tail-template Next: lines (M-form + FR-id form), and (c) the retired new-FR-presence discriminator sentence ("When the run created a single new FR, recommend the FR-id form") has NOT been reintroduced (tripwire). Missing positive literals report a file-level line-0 note; the tripwire reports the matched line. Sibling shape to probe #31 implement-invocation-grammar-doc (documentation-existence contract on the paired /implement Invocation-forms surface) and probe #47 spec_write_first_turn_drift_scan (single-file /spec-write scope; literal substring match, no regex, so copy edits can't silently change match semantics). Each miss → GATE FAILED with a file:line — reason note in NFR-10 canonical shape (Remedy: / Context: sub-lines). Vacuous when /spec-write SKILL.md is absent (downstream toolkit consumers without the plugin's own skills tree). Test coverage: tests/gate-check-spec-write-next-line-doc.test.ts. (STE-380 AC-STE-380.5)
fr_summary_altitude — call runFrSummaryAltitudeProbe(projectRoot) from adapters/_shared/src/scan_fr_summary_altitude.ts with PROBE_ID = "fr_summary_altitude". Call the GRADED entry, never the raw scanFrSummaryAltitude it wraps — the raw scanner skips the grandfathering arm entirely, and on a consumer's archived-FR corpus that is 616 error rows against 0. Severity: error. Walks the ACTIVE FRs only (specs/frs/*.md, non-recursive — archive/ excluded) and locates each measured narrative section by exact level-2 heading text (an h3 ### Summary does not count; a ## inside a CODE FENCE is sample text and opens nothing, and fenced content does not count toward a word cap — though a fence in ## Summary still trips backtick; a section ends at the next level-2 ## heading or EOF — an h3 subheading inside the body does not end it), enforcing six altitude rules over the section bodies — the closed union line_cap, backtick, ac_id, path_token, word_cap and sentence_cap. The shipped section table (SECTION_RULES) measures exactly three sections, each with its own word cap over the whole body: Summary 80 words, Technical Design 120 words, Notes 60 words; Requirement, Acceptance Criteria and Testing are absent from that table and are therefore uncapped and unmeasured. word_cap flags once per section NAME per FILE at the CROSSING line — a repeated heading pools into ONE budget and ONE row, never a fresh budget per occurrence (two ## Summary sections of 50 words each breach an 80-word cap once, not twice, and not zero times) — the line on which the running whitespace-delimited word count first exceeds that section's cap — and every violation carries the section it was measured over, so the rule id alone never has to say which cap broke. The other five stay bound to ## Summary ALONE (Technical Design and Notes legitimately carry backticks, AC-IDs and paths, and that asymmetry lives in the table as data): line_cap (more than 6 non-empty lines; flags once, anchored at the first line beyond the cap; the 3-line authoring floor is guidance, not enforced), backtick (any backtick character on a line, subsuming code fences), ac_id (an AC-ID token of the AC-prefix shape, any flavor — tracker-mode and the mode-none short-ULID prefix alike), path_token (a whitespace-delimited token carrying both a slash and a dot-extension after trailing sentence punctuation is stripped — "and/or", "v2.46.0", and the sentence-final "request/response." all stay clean), and sentence_cap (a sentence of more than PLAIN_SENTENCE_WORD_CAP = 20 words, split by longSentences from adapters/_shared/src/plain_sentences.ts — the same splitter the stage-report adoption check uses — flagged at the line where the count crosses the cap; fenced content does not count). GATE FAILED on any returned violation, naming file:line — rule in NFR-10 canonical shape (Remedy: / Context: sub-lines). Vacuous-pass per measured section: a file that carries none of them, or a specs/frs/ that is absent/empty, contributes zero violations and renders a bare GATE PASSED row. The SAME probe also runs the PLAN half: call runPlanNarrativeAltitudeProbe(projectRoot) — again the GRADED entry, not the raw scanPlanNarrativeAltitude it wraps — from adapters/_shared/src/scan_plan_narrative_altitude.ts over the ACTIVE plans only (specs/plan/*.md, non-recursive — specs/plan/archive/ excluded, frozen history the walk never enters), measuring every level-3 subsection. A plan subsection is classified by the KIND of its body and never by heading name (classifySectionBody is handed the body alone, so renaming a subsection cannot change its verdict), and the exemption is ONE combined share rather than three independent clauses: a body more than 60% checkbox ITEMS (items, not bare lines), markdown table rows (a header row plus its delimiter row) and fenced-code lines counted together — its combined structural share — is exempt. Anything else is narrative and capped at 150 words, flagged once at the CROSSING line under the same word_cap rule id and the same FrSummaryAltitudeViolation type the FR half emits, so one code path renders both. The plan half has its OWN runtime entry point, runPlanNarrativeAltitudeProbe(projectRoot), layering the same grandfathering shape over the pure plan scanner: a plan declaring kind: legacy or kind: scaffolding is spared whatever git says (the operator's documented permanent escape, read BEFORE git is asked so it works in a tree git cannot date), a plan introduced before FR_WORD_CAP_EPOCH — the same epoch, reused rather than minted, because both caps shipped in one milestone — is spared and NAMED in grandfathered, a shallow or severed history downgrades to warning, and a post-epoch plan stays error. The runtime entry point for the FR half — and the FR half ONLY — is runFrSummaryAltitudeProbe(projectRoot), which layers a GRANDFATHERING arm over the unchanged pure scanner; it does NOT reach the plan half, so scanPlanNarrativeAltitude(projectRoot) above must be called as its own second call or the plan cap goes unenforced at runtime: the two caps word_cap plus sentence_cap — and those two alone — are dated by GIT PROVENANCE, each against its OWN epoch: word_cap against FR_WORD_CAP_EPOCH, midnight UTC on the ship date of the release that made the caps policy, and sentence_cap against FR_SENTENCE_CAP_EPOCH, the ship date of the plain-sentence cap. classifyFrProvenance answers with one of three labels per FR, keyed on the OLDEST add across that FR's active and archived canonical paths so archiving and reopening it cannot re-date it. legacy (introduced before the epoch, or a tree that is not a git repository at all) drops that file's grandfathered rows entirely and names the file in the report's grandfathered list — spared VISIBLY, never silently, and counted in BOTH units, since the spared number sits beside the flagged one: grandfathered lists the spared FILES, grandfatheredRows counts the grandfathered ROWS those files spared (one FR breaching two caps is one file and two rows), and violations counts rows, so the two numbers a reader compares are comparable. undecidable (tracked, but no introducing commit is reachable) downgrades the row to warning severity, because an operator whose object store is severed cannot fix that by rewriting prose. fresh (introduced at or after the epoch, untracked, or staged-but-never-committed) is reported at error severity exactly as before. The grandfathering covers word_cap plus sentence_cap and nothing else: line_cap, backtick, ac_id and path_token shipped in M105, every consumer already passes them, and they keep firing at error severity under every provenance class. Test coverage: tests/gate-check-fr-summary-altitude.test.ts + tests/m137-ste-534-fr-word-caps.test.ts + tests/m137-ste-535-plan-narrative-cap.test.ts + tests/fr-word-cap-epoch-grandfathering.test.ts.
migration_coverage — call runMigrationCoverageProbe(projectRoot) from adapters/_shared/src/migrations/coverage.ts. Severity: error. Walks every archived plan specs/plan/archive/M*.md — M<N> and M_<epic-key> filenames alike — whose shipped_in is ≥ the coverage epoch (MIGRATION_COVERAGE_EPOCH, 2.49.0) and enforces the milestone-plan migration declaration: the migration: key MUST be present and — unless it declares migration: none — resolve to a registry entry (MIGRATIONS in adapters/_shared/src/migrations/index.ts) whose introduced_in equals the plan's shipped_in; a missing key, an unknown id, or a version mismatch → GATE FAILED with an NFR-10 diagnostic naming the plan, the offending value, and the remedy (migration: null/empty are treated as absent — the M103 template-sentinel lesson). Pre-epoch archived plans are exempt (grandfathered) and tallied into a single GATE PASSED WITH NOTES row counting them. Active plans under specs/plan/ missing the key surface an advisory warning only (consumer-project-safe — the /ship-milestone assertMigrationDeclared pre-flight is the hard gate). Pure file reads + a registry module load (no git, no network). Vacuous when specs/plan/ is absent or empty. Test coverage: tests/m108-ste-393-probe.test.ts.
upgrade_staleness — call runUpgradeStalenessProbe(projectRoot) from adapters/_shared/src/upgrade_staleness.ts. Severity: notes (warn-only — this probe never emits GATE FAILED; pre-existing drift must not block a merge, so violations is always empty). Step 0 — applicability short-circuit: when the project's CLAUDE.md carries no toolkit-managed section (the <!-- generated by /dev-process-toolkit:setup --> marker, or a managed section such as ## Task Tracking / ## Docs) and no specs/settings.yaml (the settings_file signal marks a tree managed), the probe emits zero rows and returns clean without walking a single detector — mirroring skills/upgrade/SKILL.md Step 0 — except the legacy-monolith sniff: on such an unmanaged tree it still runs ONLY the monolith-split detector, and when the retired pre-1.16.0 monolithic layout is present it renders exactly one warn-only NOTES row closed by the byte-pinned LEGACY_MONOLITH_HINT literal (which routes /setup then /upgrade, since /upgrade Step 0 refuses unmanaged trees); severity stays notes and it never emits GATE FAILED, and every other unmanaged tree stays byte-identical to before. Otherwise it imports MIGRATIONS (adapters/_shared/src/migrations/index.ts) and calls each entry's detect(projectRoot) in registry order; every entry reporting applies: true renders exactly one GATE PASSED WITH NOTES row shaped <entry-id> (<introduced_in>): <evidence joined by "; ">, evidence in the detector's returned order (never re-sorted, never truncated). With ≥ 1 row the NOTES block closes with the byte-pinned UPGRADE_STALENESS_REMEDY literal exactly once per run; with zero rows the remedy is never emitted. Pure file reads + a registry module load (no git, no network, no LLM judgment, no writes). On a legacy managed tree that has not moved, the settings-file entry renders its warn-only row like any other. Vacuous on a clean managed tree and on any tree the toolkit does not own. Test coverage: tests/gate-check-upgrade-staleness.test.ts.
spec_write_milestone_gate_routed — call runSpecWriteMilestoneGateRoutedProbe(projectRoot) from adapters/_shared/src/spec_write_milestone_gate_routed.ts. Severity: error. Single-file documentation-contract probe on skills/spec-write/SKILL.md: byte-checks that the milestone-allocation gate carries its marker/refusal routing — the four literals requireOrRefuse, milestone_allocation_default_applied, RequiresInputRefusedError, and the non-tty anchor prose-ask-then-end-turn is forbidden under non-tty. Any missing literal → GATE FAILED with a file:line — reason note in NFR-10 canonical shape (Remedy: / Context: sub-lines). Closes the 2026-07-19 conformance F1 (both trackers): the milestone-allocation decision fell to prose under claude -p and ended the turn — a clean-success exit with zero artifacts. Literal substring match (no regex — the STE-270 lesson). Sibling shape to probe #55 not_a_trigger_anchor_present and probe #47 spec_write_first_turn_drift_scan. Vacuous when the spec-write SKILL is absent. Test coverage: tests/gate-check-spec-write-milestone-gate-routed.test.ts. (M110)
report_issue_publish_gate_marker — call runReportIssuePublishGateMarkerProbe(projectRoot) from adapters/_shared/src/report_issue_publish_gate_marker.ts. Severity: error. Single-file documentation-contract probe on skills/report-issue/SKILL.md: byte-checks that the gist publish gate carries its marker/refusal routing — the five literals check_marker_runtime.ts (sole decider), RequiresInputRefusedError (marker-absent + non-tty refusal, no gh gist create), the NOT-a-trigger anchor NOT authorization to publish, the surfacing mandate refusal MUST be surfaced verbatim, and the canonical refusal marker <dpt:requires-input-refused>v1</dpt:requires-input-refused> that mandate puts on the stream (without it a correct refusal scores vacuous, a non-pass). Any missing literal → GATE FAILED with a file:line — reason note in NFR-10 canonical shape (Remedy: / Context: sub-lines). Closes the 2026-07-19 conformance Jira-leg F7: an authorization gate on an irreversible external side effect (a public gist) failed open under claude -p on prose authority. Literal substring match (no regex). Sibling shape to probe #70 spec_write_milestone_gate_routed and probe #55 not_a_trigger_anchor_present. Vacuous when the report-issue SKILL is absent. Test coverage: tests/gate-check-report-issue-publish-gate-marker.test.ts. (M110)
spec_write_first_turn_tracker_create_clause — call runSpecWriteFirstTurnTrackerCreateClauseProbe(projectRoot) from adapters/_shared/src/spec_write_first_turn_tracker_create_clause.ts. Severity: error. Single-file documentation-contract probe on skills/spec-write/SKILL.md: byte-checks that the first-turn contract names the tracker-create MCP tools (mcp__atlassian__createJiraIssue, mcp__linear__save_issue) as forbidden before the first ask/refusal. Any missing literal → GATE FAILED in NFR-10 canonical shape. Closes the 2026-07-20 conformance re-run F4 (HIGH): under the autonomous-mode reminder + no marker, /spec-write made a real tracker create before asking — a gap because the first-turn forbidden set omitted tracker-create tools. The assertFirstTurnShape arbiter enforces it at runtime (TRACKER_CREATE_TOOLS); this probe pins the SKILL clause. Literal substring match (no regex). Sibling shape to probe #70/#71. Vacuous when the spec-write SKILL is absent. Test coverage: tests/gate-check-spec-write-first-turn-tracker-create-clause.test.ts. (M110)
plan_identity_mode_conditional — call runPlanIdentityModeConditionalProbe(projectRoot) from adapters/_shared/src/plan_identity_mode_conditional.ts. Severity: error. Bidirectional plan-frontmatter identity invariant over specs/plan/** (active + archive/), the plan-file twin of probe #13: in mode: none a MINTED plan (M_<key>, the id milestoneIdFromUlid derives) MUST carry id: fr_<26-char ULID> — the value Provider.mintId() returned, verbatim; in tracker mode the key must be absent from every plan file, whatever its id shape. Non-minted sequential M<N> plans under mode: none are classified by git introduction provenance, never by filename shape (a mis-named new plan is byte-identical to an old one), into exactly four labels: fresh — introduced at or after the mint epoch (MINT_EPOCH, 2026-07-26, the ship date that made sequential tracker-less plans legacy), or untracked, or staged but never committed → an error-severity violation; legacy — introduced before the epoch, or the project is not a git repository at all → nothing, the coexistence/no-migration promise probe #68 makes for pre-epoch archived plans; undecidable — tracked in HEAD but no introducing commit is discoverable (a severed or unreachable object), or git itself refused to answer (missing binary, corrupt index) → a warning-severity advisory only, whose Remedy: names kind: legacy as the permanent way to clear it. Note a shallow clone does NOT land here, in ANY arm: git log --diff-filter=A returns the boundary commit's date rather than failing, so a legacy plan in a shallow clone reads fresh and DOES fail — under mode: jira and mode: linear as well as mode: none, and CI that clones at --depth 1 is the case that hits it. kind: legacy is the remedy there too. The introducing-commit query is rename-aware by hopping renames explicitly — find the adding commit, ask that one commit whether the path arrived as a rename destination, continue from the source — and deliberately NOT via git log --follow, whose content-similarity matching launders a template-shaped fresh plan into legacy. Without rename-awareness, archiving a legacy plan would re-date it to the archive commit and fail it; exempt — the plan's frontmatter declares kind: legacy or kind: scaffolding (read through normalizeFrontmatterSource, so CRLF/BOM count) → nothing, whatever git says. The scaffolding half of that exemption is narrowed, not retired: under mode: none a LONE scaffolding plan stays silent (a freshly bootstrapped project must never fail on its own /setup output), but an UNCONSUMED scaffold sitting beside an ACTIVE minted M_<6-char> plan is an error-severity violation whose note names the scaffold's path — /spec-write's minted branch is supposed to have consumed it (consumeScaffoldPlan, adapters/_shared/src/consume_scaffold_plan.ts), and two active plans under two naming schemes is precisely what the old blanket exemption hid. kind: legacy is unnarrowed, and the jira/linear arms are untouched by that narrowing. Under mode: jira that id-absence rule is joined by a second, independent invariant riding the SAME provenance machinery, keyed on the mode string (never the isTracker boolean, which cannot express jira but not linear): a sequential M<N> plan is dated against its own epoch — JIRA_EPIC_EPOCH, 2026-08-05, the ship date of the Epic-first path, ten days after MINT_EPOCH, whose reuse here would retroactively fail plans already committed under the older shape — so fresh → an error whose Remedy: is to create the milestone as a Jira Epic and rename the plan to the M_<KEY> that Epic derives (kind: legacy is the escape hatch when git provenance is misleading — a re-created tree, a squashed import); undecidable → a warning-severity advisory naming kind: legacy as its only operator-controllable remedy; legacy/exempt → nothing. Epic-keyed M_<KEY> and minted M_<6-char> plans are skipped — neither is the mis-naming this arm catches, which also bounds the git cost. The two tracker-mode invariants are independent, so there is NO early exit on an id: hit: one jira plan can fail both and both rows must surface. Under mode: linear the same provenance arm joins id-absence, dated against a third epoch — LINEAR_TRACKER_KEY_EPOCH, 2026-09-19, the release that closed the explicit-M<N> door under tracker modes and routed every new Linear milestone through the decision front door (resolve_milestone_identity.ts); reusing either earlier epoch would fail this repository's own shipped sequential history — so a sequential plan introduced at or after it is fresh → an error whose Remedy: is to mint through that front door and rename the plan to the M_<6-hex> its identifier derives, undecidable → a warning, legacy/exempt → nothing; front-door M_<6-hex> plans are skipped. Severity travels per violation and the report takes the maximum, so an advisory-only report does not fail the gate. Sibling module, never an extension of probe #13, whose FR-only walk and zero-runtime-dep-on-ulid.ts scope isolation stays intact. Filename acceptance rides the shared milestone_token union matcher (PLAN_FILENAME_RE), never a private M\d+ copy. Any violation → GATE FAILED with a file:line — reason note in NFR-10 canonical shape (Remedy: / Context: sub-lines). Vacuous when specs/plan/ is absent. Test coverage: tests/gate-check-plan-identity-mode-conditional.test.ts + tests/m119-ste-441-plan-provenance.test.ts + tests/m120-ste-443-jira-plan-provenance.test.ts. (M115; grandfathering re-keyed to provenance in M119; jira Epic arm added in M120; linear arm added in M_685ff6)
claudemd_probe_managed_guard — call runClaudeMdProbeManagedGuardProbe(projectRoot) from adapters/_shared/src/claudemd_probe_managed_guard.ts. Severity: error. Allowlist-driven conformance scan over the shared adapter layer, sibling shape to probe #54: every module under adapters/_shared/src/*.ts whose applicability derives from CLAUDE.md (the legacy home) or that resolves the specs/settings.yaml path MUST either import the shared predicate ./toolkit_managed or be named in CLAUDEMD_GUARD_EXEMPT with a recorded reason. Only project_settings.ts and its legacy module may open the settings file. A module that reads CLAUDE.md without either — no shared predicate, no recorded exemption — is an unguarded applicability decision, the exact drift this scan exists to catch. Any such module → GATE FAILED with a file:line — reason note in NFR-10 canonical shape (Remedy: / Context: sub-lines). Vacuous when the shared adapter layer is absent. Test coverage: tests/gate-check-claudemd-probe-managed-guard.test.ts. (M118)
active_plan_ship_ready — call runActivePlanShipReadyProbe(projectRoot) from adapters/_shared/src/active_plan_ship_ready.ts. Severity: warning (NotesOnly, never GATE FAILED). Ship-ready nudge over specs/plan/**: a milestone is ship-ready when its plan is active, zero active FRs remain bound to it, and at least one archived FR is bound — the state where /ship-milestone is the natural next step; renders one GATE PASSED WITH NOTES row ship-ready milestones: …, parked plans (ship_state: parked) are excluded and surface via the parked-note row instead, and the probe is vacuous when specs/plan/ is absent or empty. A spanning plan (spans_repos declared) is ship-ready only when every declared sibling is proved idle; any other sibling state holds it out of the ship-ready predicate and it surfaces in an awaiting-sibling milestones: … NOTES row instead, each entry naming the sibling and its state, except that a sibling that cannot be located renders on a sibling-unlocatable milestones: … row and is equally not ship-ready — both resolved through adapters/_shared/src/spans_repos.ts — and a malformed spans_repos on an otherwise ship-ready plan propagates its refusal rather than rendering a row. Test coverage: tests/gate-check-active-plan-ship-ready.test.ts. (M122)
best_practices_manifest_hygiene — call runBestPracticesManifestHygieneProbe(projectRoot) from adapters/_shared/src/best_practices_manifest_hygiene.ts. Severity: error. Hygiene probe over specs/best-practices.yaml (the best-practices manifest): the manifest shape must validate against the best_practices_manifest.ts reader (closed entry keys name/path/scope/topics/notes, repo-relative paths, unique names — a shape error surfaces as one GATE FAILED violation carrying the reader's NFR-10 reason, never a silent skip, never a crash), AND every entry's path must resolve on disk relative to the project root — each dangling path is one GATE FAILED violation naming the entry and the missing document. Violation shape follows probe #16/#63: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Vacuous when the manifest is absent — the day-one default for existing consumer projects (a present-but-empty best_practices: [] manifest is valid, not vacuous-by-shape). Test coverage: tests/gate-check-best-practices-manifest-hygiene.test.ts. (M124)
first_turn_refusal_marker — call runFirstTurnRefusalMarkerProbe(projectRoot) from adapters/_shared/src/first_turn_refusal_marker.ts. Severity: error. Carrier-scoped first-turn observability probe over plugins/dev-process-toolkit/skills/*/SKILL.md: every skill whose body carries a > **FIRST ACTION blockquote — the ask-or-refuse contract — MUST also name the canonical refusal marker (REQUIRES_INPUT_REFUSED_MARKER, sourced from adapters/_shared/src/requires_input.ts, never re-typed) somewhere in that same file, because a refusal that never reaches the stream is byte-indistinguishable from a run that did nothing and scores vacuous, a non-pass. Scope is narrow in two directions on purpose: a SKILL.md with no FIRST ACTION blockquote is out of scope entirely (it makes no first-turn promise, so it owes no marker — without this the probe would false-red the large majority of the tree), and the marker check is file-scoped rather than clause-scoped (/report-issue correctly names it in its publish gate rather than its clause). Rooted at the plugin skills tree like probe #66/#33, so a consumer's .claude/skills/ is never dragged in. Each carrier missing the marker → one GATE FAILED violation whose note is <repo-relative-file>:<line> — <reason> (the line being the clause itself) and whose message is the NFR-10 canonical shape with Remedy: / Context: sub-lines; CRLF/BOM-normalized before matching. Vacuous when the skills tree is absent. Closes the measured 2026-08-16 conformance gap where one of five carriers named the marker zero times and scored a non-pass on all three tracker legs. Test coverage: tests/m126-ste-479-brainstorm-refusal-marker.test.ts. (M126)
delegation_irreversible_exclusion — call runDelegationIrreversibleExclusionProbe(projectRoot) from adapters/_shared/src/delegation_irreversible_exclusion.ts. Severity: error. Carrier-scoped probe over plugins/dev-process-toolkit/skills/**/*.md and docs/**/*.md: any surface that describes the standing authorization by which an operator delegates the mechanical gate class for the rest of a /deliver run MUST also name every action the delegation can never cover: merge a pull request, open a pull request, push to trunk, deploy to an environment, publish a package or release, and send an outward-facing message. The required phrase list is DERIVED from IRREVERSIBLE_GUARDS in adapters/_shared/src/gate_class.ts, never a retyped second copy, so adding a guard automatically widens what carrier prose must say. The exclusion is the milestone's Tier-1 rule — a silent drift there causes an action that cannot be undone — so prose alone is insufficient evidence and each guard is drop-one mutation-verified in the module's own suite. Non-carriers are out of scope: a file that never names the standing authorization owes no exclusion list, which is what keeps the probe from demanding this vocabulary of every skill in the tree. Vacuous (zero violations, no crash) when the plugin tree is absent, so a consumer project never fails on it. Violation shape follows probe #77: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines, and severity travels per violation. Test coverage: tests/m129-ste-493-gate-class.test.ts. (M129)
merge_policy_override_ratchet — call runMergePolicyOverrideRatchetProbe(projectRoot) from adapters/_shared/src/merge_policy_override_ratchet.ts. Severity: error. Carrier-scoped probe over plugins/dev-process-toolkit/skills/**/*.md and docs/**/*.md: any surface describing the conversational merge-policy override MUST also name every transition the ratchet REFUSES — offer → auto, never → offer, and never → auto — and the sole enabling act for auto, which remains the operator writing merge_policy: auto into the orchestration config themselves. The required phrases are DERIVED from LOOSENING_GUARDS plus the enabling-act literal in adapters/_shared/src/merge_policy_ratchet.ts, never retyped, so a widened transition set widens the documentation obligation with it. The ratchet is restriction-only — the legal transitions are exactly offer → never, auto → offer and auto → never, none of which has auto as its target — which is what keeps the shipped "auto is never inferred" and "auto is strictly opt-in" guarantees byte-intact; a loosening that slipped through would cause an unrecoverable action, so every loosening guard is drop-one mutation-verified. Non-carriers are out of scope, and the probe is vacuous (zero violations, no crash) when the plugin tree is absent. Violation shape follows probe #77: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Test coverage: tests/m129-ste-494-merge-policy-ratchet.test.ts. (M129)
runnability_declared — call runRunnabilityDeclaredProbe(projectRoot) from adapters/_shared/src/runnability_declared.ts. Severity: error. Runnability-contract probe: when a repo carries discoverable run instructions, its verification.run_cmd setting MUST be declared — in specs/settings.yaml, or in the legacy CLAUDE.md ## Verification section. Detection comes from detectRunnability in adapters/_shared/src/detect_runnability.ts (a CLOSED, exact-match source set — a dev/start script in package.json, an exact run: makefile target, or a Running/Getting Started/Development heading in README.md or CLAUDE.md), never a private re-derivation; the declared value is read through the loader (readVerificationConfig in adapters/_shared/src/verification_config.ts on a legacy tree), never a bare grep — a run_cmd: line OUTSIDE the section is not a declaration. The probe's design constraint is restraint, so it is silent three ways: silent when detection did not fire (a library is never asked, whatever run_cmd says), silent the moment the author has answered — a real command AND the literal run_cmd: none both count, because none is an answer ("this project cannot be run") and an absent key is not — and vacuous on a tree carrying no toolkit-managed signal, routed through the shared ./toolkit_managed predicate per probe #74, so a hand-written CLAUDE.md is never nagged about a toolkit key. A probe that reds every library trains the author to type none unread, and a contract everyone silences looks like coverage without being it. Fires as exactly one GATE FAILED violation, not one per fired source, whose message names EVERY fired source with its concrete evidence and offers none as a legitimate answer, so the fix takes one step. Violation shape follows probe #16/#63: note is <repo-relative-file>:<line> — <reason> (the line being the ## Verification heading, or 1 when there is no section yet; a settings-file tree cites verification.run_cmd in specs/settings.yaml), message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Never throws — a malformed ## Verification block reads as undeclared and surfaces as a verdict, not a crashed gate. Test coverage: tests/gate-check-runnability-declared.test.ts. (M131)
module_reachability — call runModuleReachabilityProbe(projectRoot) from adapters/_shared/src/module_reachability.ts. Severity: error for one thing only: the pinned count. Generated-inventory probe over both shipped markdown trees — plugins/dev-process-toolkit/skills/**/*.md AND docs/**/*.md, walked with the shared collectMarkdownFiles / CARRIER_SCANNED_TREES engine (probe #78/#79's), never a second walk. It emits one classified record per module reference — surface, line, module, class, reachable — and nothing in that record is hand-authored. Classification is exactly three values (ordered | descriptive | harness) and the ordered test is line-scoped, not file-scoped: a carrier phrase elsewhere in the file never makes a reference ordered, because that would collapse the distinction the three classes exist to draw. Reachability is mechanical and transitive: a module is reachable when it carries the if (import.meta.main) command-line guard, OR when something carrying one imports it, directly or transitively — a test-file importer never rescues. The narrower entry point AND >= 1 non-test consumer rule was rejected on measurement: it calls nine shipped front doors unreachable, one of them probe #69's own upgrade_staleness. The probe fails the gate on two conditions. The count of references that are both ordered and unreachable has moved off the pin — which is the head of ORDERED_UNREACHABLE_PIN_LEDGER, the module's own newest-first record of every move the pin has made, so the number has exactly one home and a move is one prepended entry carrying the new count, the commit that lands it, and why it fell. Or the ledger itself breaks the ceremony: gradePinLedger runs on every gate run and refuses a recorded RAISE, a move with no rationale, a move naming no commit, and a move that changed nothing — the rules that used to sit in prose above a bare literal and were therefore enforced by whoever happened to re-read the comment. Every pre-existing ordered-and-unreachable reference is catalogued, not failed: they surface as a single GATE PASSED WITH NOTES warning row carrying the count, because a probe that redded every one of them would be silenced within a day. Violation shape follows probe #16/#63: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Never throws — an absent surface, a directory handed in where a file was expected, and a BOM/CRLF-mangled surface all read as a verdict rather than a crashed gate run; vacuous (zero records, ok: true) when the walk finds no module reference at all. Test coverage: tests/m133-ste-517-module-reachability.test.ts. (M133)
stage_block_adoption — call runStageBlockAdoptionProbe(projectRoot) from adapters/_shared/src/stage_block_adoption.ts. Severity: error. Adoption probe over the eleven stages named by ADOPTING_STAGES (best-practices, brainstorm, deps, gate-check, implement, report-issue, setup, spec-archive, spec-review, spec-write, upgrade), read from the const and never re-listed in code. It grades ADOPTION on the authoring surface, and narration is deliberately not one of its clauses: a SKILL.md is documentation, so prose around its fence is legitimate — measured, eleven SKILL.md carrying 60 narration paragraphs above and below a compliant fence score clean. Narration is readable only from a RENDERED report, which verifyStageReportAdoption grades. Three clauses per stage: the SKILL.md documents a closed ```stage-status-block fence; it no longer emits /deliver's ```deliver-stage-result hand-off banner (one banner, one owner — DELIVER_STAGE_IDS was deliberately not widened); and every cap-exempt section listed for the stage in CAP_EXEMPT_SECTIONS is still emitted, because exempt is not optional and a carve-out checked one way is unguarded the other way. The rendered-report half of the same module (verifyStageReportAdoption) layers the 12-line prose lead-in cap, the both-narration-and-block refusal, the one-block count (delegated to verifyStageStatusBlock, in its own words, on the exempt-filtered span — never the raw report, which would refuse reports for a cap the carve-out already funds) and the block-comes-last rule on top of that shipped grader. Violation shape follows probe #16/#63: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Never throws — an absent tree, an unreadable surface and a BOM/CRLF-mangled SKILL.md all read as a verdict rather than a crashed gate run; vacuous (zero violations, vacuous: true) on a tree carrying none of the eleven. The module carries the if (import.meta.main) front door probe #81 requires, so this registration is ordered AND reachable. Test coverage: tests/m137-ste-533-stage-block-adoption.test.ts. (M137)
external_link_verdicts — call runExternalLinkVerdictsProbe(projectRoot) from adapters/_shared/src/external_link_verdicts.ts. Severity: error. Verdict-grading probe over the external-link records the authoring side wrote into specs/**: rows are read with scanExternalReferences from adapters/_shared/src/scan_design_references.ts, never a reader-side copy of the parser — producer/consumer asymmetry has shipped here three times. Classification is the SECTION, never a token on the row: ## Design References means REQUIRED and ## External References means informational, because formatExternalReferenceLine writes no classification word. Only required rows can fail the gate, through the two VERDICT_RULES — dead-required (the liveness check RAN and answered dead) and unrecorded-required (the row carries no (checked <ISO>: <verdict>) tail at all, so an UNMEASURED required link is a failure rather than a pass by default). Informational rows with the same defect surface as notes, off the rule table, so mutating a rule cannot silently retitle one. Staleness outranks classification: any row whose checked_at is older than the exported EXTERNAL_LINK_TTL_DAYS (30) is a note in either section, since an aged measurement is not evidence about today. now is INJECTED and defaulted LAST, mirroring runUpgradeStalenessProbe(projectRoot, registry), so a fixture graded against the wall clock cannot rot silently. Violation shape follows probe #16/#63: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Never throws — an absent specs/ tree reads as a verdict (violations: [], notes: [], vacuous: true), which is this repository's own measured state today. The module carries the if (import.meta.main) front door probe #81 requires, so this registration is ordered AND reachable. Test coverage: tests/m140-ste-543-external-link-verdicts.test.ts. (M140)
driven_suppression_adoption — call runDrivenSuppressionAdoptionProbe(projectRoot) from adapters/_shared/src/inline_terminal_block.ts. Severity: error. Adoption probe over the driven-suppression clause every adopting stage's closing-block instruction must carry, so a stage whose close still narrates a step the orchestrator already ran is a gate verdict rather than one suite's private red. Rows come from the shipped scanDrivenSuppressionAdoption walk in the same module — the wrapper RENDERS, it does not re-scan, so reason stays the scanner's own words the day its wording changes, and a reader-side paraphrase cannot drift away from the walk it describes. The clause has ONE owner (DRIVEN_SUPPRESSION_CLAUSE) and the graded stage list one (ADOPTING_STAGES), so a stage joins the graded set by joining the const, never by being re-listed here. Violation shape follows probe #16/#63: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines, and severity travels PER VIOLATION rather than as a report-level field. Vacuity is MEASURED, not inferred: vacuous is true exactly when no adopting stage's SKILL.md exists under the root — the consumer-project case — and never merely because the walk returned nothing, because a clean tree is a graded tree and collapsing the two lets a probe that scans nothing report itself vacuous forever. Never throws — an absent tree, an unreadable surface and a BOM/CRLF-mangled SKILL.md all read as a verdict rather than a crashed gate run. The module carries the if (import.meta.main) front door probe #81 requires, so this registration is ordered AND reachable. Test coverage: tests/m_8f8e25-ste-558-scanner-registration.test.ts. (M_8f8e25)
continuation_offer_adoption — call runContinuationOfferAdoptionProbe(projectRoot) from adapters/_shared/src/continuation_offer.ts. Severity: error. ONE probe over BOTH shipped walks in that module, because they grade one subject — whether a shipped close still asks for, or performs, a step the orchestrator's own chain already runs. scanContinuationOfferAdoption grades adoption: every registered offer's span still carries DRIVEN_OMISSION_CLAUSE. scanDrivenClaimProse grades the prose: no offer's driven branch still CLAIMS a step the chain names, measured against shippedChainSteps — derived from /deliver's inline phases and both resumeChain shapes, never a hand-typed step list, since a list stopping at the inline phases scores the /ship-milestone double-run perfectly clean. Two defects, one subject, so the remedy travels PER VIOLATION by source (adoption | prose | registry) instead of one remedy per probe. The wrapper RENDERS, it does not re-scan: reason stays each scanner's own words. Violation shape follows probe #16/#63: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Vacuity is MEASURED, not inferred: vacuous is true exactly when no offering skill's SKILL.md exists under the root — the consumer-project case — never merely because the walks returned nothing; the chain derivation runs only on that graded path, so a half-present tree cannot go quietly vacuous. Never throws — an absent, unreadable or BOM/CRLF-mangled surface reads as a verdict rather than a crashed gate run. The module carries the if (import.meta.main) front door probe #81 requires, so this registration is ordered AND reachable. Test coverage: tests/m_8f8e25-ste-558-scanner-registration.test.ts. (M_8f8e25)
milestone_name_unasked — call runMilestoneNameUnaskedProbe(projectRoot) from adapters/_shared/src/milestone_name_unasked.ts. Severity: error. A milestone's title and codename are composed, never asked: the codename moves into the plan at spec time and /ship-milestone no longer prompts for it, and a rule living only in prose regrows the day someone writes a new prompt. Two arms, one subject. The PROSE arm walks every plugins/dev-process-toolkit/skills/**/SKILL.md line by line against a CLOSED set of prompt shapes — an Enter milestone … prompt, a request to the operator for its name, title or codename, and an AskUserQuestion instruction carrying one; a shape governed by a negation in the few words before it is not a match, so the rule that forbids the prompt cannot red the gate that enforces it, while a stray no elsewhere on the line clears nothing. The PLAN arm reads every active specs/plan/*.md (never specs/plan/archive/) through readPlanCodename from adapters/_shared/src/milestone_codename.ts, never a probe-side re-parse: a thrown refusal is a violation naming the plan path and the rule validateCodename broke, and an absent key passes. Violation shape follows probe #16/#63: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Vacuity is MEASURED, not inferred: vacuous is true exactly when neither a skills tree nor an active plan existed to grade, never merely because both arms returned nothing. Read-only — no git, no network, no child process. The module carries the if (import.meta.main) front door probe #81 requires, so this registration is ordered AND reachable. Test coverage: tests/m_6c25dd-ste-659-milestone-name-unasked.test.ts. (M_6c25dd)
video_tooling_uncommitted — call runVideoToolingUncommittedProbe(projectRoot) from adapters/_shared/src/video_tooling_uncommitted.ts. Severity: warning (warn-only, like probe #69 — this probe never emits GATE FAILED; an uncommitted house style is a nudge, not a broken build). In a video-configured project it reports every path listUncommittedVideoTooling (adapters/_shared/src/video/commit_nudge.ts) returns over git status --porcelain=v1 -z --untracked-files=all — untracked, modified, renamed or deleted style and tooling under .dpt/video/, never .dpt/video/work/** and never .dpt/.env — as one GATE PASSED WITH NOTES row per path, read through the video_commit_nudge.ts front door's own lister, never a re-derivation. Violation shape follows probe #16/#63: note is <repo-relative-file> — <reason>, message is the NFR-10 canonical shape with Remedy: (bun run ${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/video_commit_nudge.ts <projectRoot> --commit) and Context: sub-lines. Vacuous (zero rows, vacuous: true) when the loader reports no video section — no video key in specs/settings.yaml, or no .dpt/video/config.yaml on a legacy tree; clean (non-vacuous, zero rows) when the list is empty. The module carries the if (import.meta.main) front door probe #81 requires, so this registration is ordered AND reachable. Test coverage: tests/gate-check-video-tooling-uncommitted.test.ts. (M_866092)
bug_fr_shape — call runBugFrShapeProbe(projectRoot) from adapters/_shared/src/bug_fr_shape.ts. Severity: error. Every active kind: bug FR carries the bug FR body (docs/resolver-entry.md § "Bug FR body"). The SHAPE arm reports one violation per missing piece: ### Steps to reproduce, ### Expected and ### Actual present under ## Requirement and not TODO-only; ### Root cause present under ## Technical Design and not TODO-only, with the needs-technical-review placeholder satisfying it on an FR flagged needs_technical_review: true; at least one AC under ## Acceptance Criteria whose body begins Regression: and carries more than nothing or a TODO marker. A subsection found under any other ## section is reported as misplaced, naming that section, and never also as missing; fenced code is never read as a heading or an AC. The COHERENCE arm flags a kind: bug FR whose changelog_category is outside {Fixed, Security}, and any kind: value other than bug. FRs with no kind: key and anything under specs/frs/archive/ are never graded. Violation shape follows probe #16/#63: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Vacuity is MEASURED, not inferred: vacuous is true exactly when no active FR carries kind: bug. Read-only — no git, no network, no child process. The module carries the if (import.meta.main) front door probe #81 requires, so this registration is ordered AND reachable. Test coverage: tests/m_7384cf-ste-680-bug-import-and-probe.test.ts + tests/m_0cac80-ste-681-bug-shape-placement.test.ts. (M_7384cf; placement and TODO-regression grading added in M_0cac80)
tracker_write_gate_setting — call runTrackerWriteGateSettingProbe(projectRoot) from adapters/_shared/src/tracker_write_gate_setting.ts. Severity: info (informational — this probe never emits GATE FAILED and never a violation). It reports the effective per-user tracker write gate setting in exactly one row, tracker_write_gate_setting: enforce or tracker_write_gate_setting: off (per-user), resolved the way the pre-tracker-write-gate hook resolves it through trackerWriteGateSetting: the CLAUDE_PLUGIN_OPTION_TRACKER_WRITE_GATE variable when present, otherwise the user settings file's pluginConfigs["dev-process-toolkit@<marketplace>"].options.tracker_write_gate, otherwise enforce; an unknown value is enforce. Project-scope pluginConfigs never reach the hook (measured at spec time) and are never read. A project settings env block does reach it, so when .claude/settings.json or .claude/settings.local.json names the variable in its env block the row reads enforce and carries a warning naming the variable and every such file — the hook enforces then, because a file the model can write is not a per-user switch. Never vacuous. The module carries the if (import.meta.main) front door probe #81 requires, so this registration is ordered AND reachable. Test coverage: tests/gate-check-tracker-write-gate-setting.test.ts. (M_bae31f)
optimizations_reuse_only — call runOptimizationsReuseOnlyProbe(projectRoot) from adapters/_shared/src/optimizations_config.ts. Severity: error. Grades the optimizations: section of specs/settings.yaml, deciding its shape from the parsed value (settingsSectionValue), never from the raw lines: a plain-object value is a mapping in block or flow style, and optimizations: {} holds no knob and passes. Reasons: unknown-knob, unknown-value, never-reusable, not-a-mapping and requires-gate-outcomes (gate_commands: reuse without tracking.gate_outcomes on), graded through the same validator the reuse front door calls, so their verdicts cannot drift. Violation shape follows probe #16/#63: note is specs/settings.yaml:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Vacuous (zero violations, zero notes) when the tree is not toolkit-managed, the settings file is absent, foreign or unparseable, or it has no optimizations: section. The module carries the if (import.meta.main) front door probe #81 requires, so this registration is ordered AND reachable. Test coverage: tests/gate-check-optimizations-reuse-only.test.ts. (M_fd9a03)
best_practices_digest_match — call runBestPracticesDigestMatchProbe(projectRoot) from adapters/_shared/src/best_practices_digest_match.ts. Severity: error. Every specs/best-practices.yaml entry that declares sha256 must match the digest of its document's bytes, computed by the same documentSha256 helper the manifest's select leg uses; each mismatch is one GATE FAILED violation naming the entry, the path, the declared and the actual digest. Violation shape follows probe #16/#63: note is <repo-relative-file>:<line> — <reason>, message is the NFR-10 canonical shape with Remedy: and Context: sub-lines. Vacuous when the manifest is absent or empty, and for every entry without the key; a malformed manifest or a dangling path is probe #76's to report. The module carries the if (import.meta.main) front door probe #81 requires, so this registration is ordered AND reachable. Test coverage: tests/m_43bc84-ste-879-cli-sha256-probe.test.ts. (M_43bc84)
Full details: docs/layout-reference.md § /gate-check.
Run bun "${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/gate_probe_runner.ts" "<projectRoot>" as its own Bash call, with nothing before or after it, and quote its rows verbatim. Never retype or reword a row. Each row has one shape: probe #<N> <probe-id>: <verdict> (<count>). The verdict is one of pass, notes, fail or vacuous.
The runner does not call every probe. The tracker and MCP probes, such as #8, #14 and #26, and the prose-defined probes are run by the model. The model renders each of their rows in the same grammar.
After all conformance probes complete, render a single roll-up summary line in the canonical shape:
conformance-probes pass: <N>/<N> [<active> active, <vacuous> vacuous]
Where:
<N> is the total probe count (the same numerator and denominator unless a probe failed — failures route through GATE FAILED above).<active> is the count of probes that ran with non-empty input and exercised at least one assertion against active content.<vacuous> is the count of probes that early-returned because their scope was empty (no active FRs to walk, mode: none skip, specs/ absent, plan file missing, etc.). Vacuous probes are still passing probes — the count distinguishes them from active passes so the operator can tell at a glance whether the suite is exercising real content.An earlier Jira smoke run caught the previous shape 29/29 (most vacuous post-archive) — the parenthetical wording was soft and operator-unparseable. The bracketed [N active, M vacuous] form is deterministic; the brackets are the parseable signal a CI step or smoke driver can scan for.
What counts as vacuous post-archive. When the only active FR is archived, the FR-traversal probes (probes that walk active specs/frs/*.md — e.g., #1 filename-frontmatter convention, #2 required frontmatter, #7 duplicate AC-prefix, #8 ticket-state drift, #14 ticket-state drift active-side, #15 guessed tracker-id scan, #25 task-tracking workspace-binding, #26 tracker-project-milestone-attached, #27 frontmatter-milestone-not-archived) early-return as vacuous because there are no active FRs to walk. The counter must reflect this — the same probe set that ran fully active before the archive becomes mostly vacuous after, and the summary line should make that visible to the operator.
Every new /gate-check probe ships with a corresponding tests/gate-check-<slug>.test.ts test file. Self-review refuses a probe
declaration without its test — a probe advertised in prose without an
integration test can drift from the implementation without detection. The
test must cover both a positive fixture (probe passes clean) and a
negative fixture (probe fires with the documented note shape:
file:line — reason). Each probe above has a corresponding
tests/gate-check-<slug>.test.ts — probe #14 (active-side
ticket-state drift) is covered by tests/gate-check-active-ticket-drift.test.ts,
probe #15 (guessed tracker-ID scan) by
tests/gate-check-guessed-tracker-id.test.ts, probe #16
(archive plan-status invariant) by
tests/gate-check-archive-plan-status.test.ts, probes 17–23
(setup-output-completeness, claudemd-docs-section-present,
setup-audit-section-presence, bun-zero-match-placeholder,
task-tracking-canonical-keys, toolkit-bootstrap-committed,
traceability-link-validity) by their corresponding
tests/gate-check-<slug>.test.ts files, probe #24
(signature-strategy-honors-setup) by
tests/gate-check-signature-strategy-honors-setup.test.ts, probe
#25 (task-tracking-workspace-binding-present) by
tests/gate-check-task-tracking-workspace-binding-present.test.ts,
probe #26 (tracker-project-milestone-attached) by
tests/gate-check-tracker-project-milestone-attached.test.ts,
probe #27 (frontmatter-milestone-not-archived) by
tests/gate-check-frontmatter-milestone-not-archived.test.ts, and
probe #28 (plan-verify-line-validity) by tests/gate-check-plan-verify-line-validity.test.ts, and
probe #29 (requirements-md-no-placeholder) by tests/gate-check-requirements-md-no-placeholder.test.ts,
probe #30 (setup-bootstrap-commit-subject) by tests/setup-bootstrap-commit-subject.test.ts,
probe #31 (implement-invocation-grammar-doc) by tests/gate-check-implement-invocation-grammar-doc.test.ts,
probes #32 (plan-file-single-milestone, STE-197),
#33 (plan-task-fr-coverage, STE-201),
#34 (mcp-config-shape, STE-209),
#35 (setup-permissions-shape, STE-209),
#36 (archive-frontmatter-coherent, STE-210),
#37 (cross-cutting-spec-stale-file-refs, STE-215), and
#38 (auto-approve-marker-in-canonical-spawns, STE-226), and
#42 (requires-input-sentinel-coverage, STE-232) by their corresponding
tests/gate-check-<slug>.test.ts files (mcp-config-shape and
setup-permissions-shape share tests/gate-check-mcp-config-shape.test.ts;
auto-approve-marker lives at tests/gate-check-auto-approve-marker.test.ts;
requires-input-sentinel-coverage at tests/gate-check-requires-input-sentinel-coverage.test.ts),
and probe #74 (claudemd-probe-managed-guard) by
tests/gate-check-claudemd-probe-managed-guard.test.ts, and
probe #75 (active-plan-ship-ready) by tests/gate-check-active-plan-ship-ready.test.ts.
Contributors adding probe 60+ must ship the matching test file in the same commit.
Registering a probe now costs one line probe #81 counts. A registration reads call \run…Probe(projectRoot)` from adapters/_shared/src/<module>.ts`` — an order naming a module. Probe #81 (module_reachability) classifies that line as ordered, and grades it unreachable unless the module carries a command-line entry point or something that does imports it. A registration that does neither is unreachable, so **registering probe #92 will turn probe #81 red** unless it does, and probe #81's pinned count is not the fix: raising a pin to admit a new unrunnable order is the drift the pin exists to catch. The two sanctioned resolutions are to give the new probe's module an import.meta.main` entry, or to word its registration so it names the module without ordering the reader to run it by hand. Probe #81's own registration is itself one of the records it pins — the probe is in the class it counts, which is disclosed rather than carved out. The count is deliberately absent here: it lives in the ledger head and nowhere else, because restating it in shipped prose is what used to make a lowering cost three coordinated edits.
Read the project's CLAUDE.md to find the gate check commands (look for "Key Commands" or "Gating rule" section). If no CLAUDE.md exists, ask the user what commands to run. Only when the receipt call above also printed reuse: on, run each gate command as bun run "${CLAUDE_PLUGIN_ROOT}/adapters/_shared/src/gate_reuse.ts" run "<root>" <label> -- '<command>', passing the command text as ONE argument and a lowercase label matching ^[a-z][a-z0-9_-]{0,39}$ such as tests; without reuse: on each command runs exactly as the lines below say, and no step receipt is written.
Typical commands by stack (use as fallback if CLAUDE.md doesn't specify):
npm run typecheck (or fvm flutter analyze, mypy ., etc.)npm run lint $ARGUMENTS (if $ARGUMENTS contains --fix, add -- --fix)npm run test (or fvm flutter test, pytest, etc.)npm run build (optional — include if your project has a build step)npm audit (or pip-audit, cargo audit, flutter pub audit). Flag known vulnerabilities. This step is advisory — failures here produce NOTES, not GATE FAILED, unless your project explicitly gates on audit.For each step:
(reused) with the stored run's numbers from its dpt-reuse: lineCite actual output numbers — do not report GATE PASSED from memory of a previous run. Run each command fresh and read the result, or read the front door's dpt-reuse: line, which cites the stored run's numbers. If a failure cause is unclear after reading the error output, use /dev-process-toolkit:debug for structured investigation. The status block SUPERSEDES this section's closing shape. The per-command ✓/✗ rows are reference material to surface inline while the gate runs, not verbatim content the closing report reproduces beneath the fence: the block carries one commands: <P> of <N> pass summary: row citing each command's own numbers (typecheck 0 errors, lint 0 warnings, tests 9412 passed / 0 failed), and names in full only the commands that FAILED — a failure is what the operator must act on, so it is never bounded away. See docs/stage-status-block.md § How a stage FITS.
After all commands pass, review the changed code. Use git diff against the base branch (e.g., git diff main...HEAD) if on a feature branch, or git diff HEAD~1 if on the main branch. If there are uncommitted changes, include git diff (unstaged) and git diff --cached (staged) as well. Your job here is to find problems, not to praise the work. Approach this as if reviewing someone else's code — look for what's wrong, not what's right.
Use the canonical review rubric in agents/code-reviewer.md as the source of truth for criteria (quality, security, patterns, stack-specific). Run the review inline — gate-check must return a verdict in one turn, so do not delegate to the code-reviewer subagent from here. Also check spec compliance: every AC has a corresponding test, and no undocumented behavior has been added (security and spec-compliance concerns are the only critical criteria in gate-check; other concerns are non-critical).
For each criterion, report: OK or CONCERN with specifics. Use the exact shape documented at the bottom of agents/code-reviewer.md (<criterion> — OK or <criterion> — CONCERN: file:line — <reason>). The status block SUPERSEDES this section's closing shape. The five criterion rows plus their OVERALL: line are reference material to surface inline while the review runs, not verbatim content the closing report reproduces beneath the fence: the block carries one code review: <K> of 5 criteria OK — OVERALL: <verdict> summary: row, and names in full only the criteria that raised a CONCERN — a concern is what the operator must act on, so it is never bounded away.
Never read
specs/frs/archive/orspecs/plan/archive/— only live spec files count for drift detection.
If specs/ directory exists, check whether the implementation has drifted from the spec:
specs/requirements.md and extract all ACs| AC ID | Status | Location |
|---|---|---|
AC-<tracker-id>.1 | implemented | src/feature.ts:42 |
AC-<tracker-id>.2 | not found | — |
AC-<other-tracker-id>.1 | implemented | src/service.ts:15 |
potential drift)If specs/ directory does not exist, skip this section silently.
Drift findings do NOT cause GATE FAILED. They appear under GATE PASSED WITH NOTES as informational items for the developer to review. The status block SUPERSEDES this section's closing shape. The traceability table above is reference material to surface inline while the drift check runs, not verbatim content the closing report reproduces beneath the fence: the block carries a drift: <K> of <N> ACs not found summary: row plus at most the first 3 findings as first 3 of <K> rows, total always stated, so the bound is never a silent truncation and specs/requirements.md still holds every AC. See docs/stage-status-block.md § How a stage FITS.
Combine command results + code review into a final verdict:
Optionally produce a JSON summary alongside the Markdown report so CI pipelines can parse results. The status block below supersedes the closing shape this section formerly mandated; the JSON stays a CI artifact written alongside the report rather than verbatim content the report reproduces beneath the fence.
{
"steps": [
{ "step": "typecheck", "status": "pass", "summary": "No type errors" },
{ "step": "test", "status": "pass", "summary": "47 passed, 0 failed" },
{ "step": "code-review", "status": "pass", "summary": "No critical concerns" },
{ "step": "drift-check", "status": "notes", "summary": "2 ACs not found" }
],
"verdict": "GATE PASSED WITH NOTES"
}
The verdict field uses one of: GATE PASSED, GATE PASSED WITH NOTES, GATE FAILED. Closing summary — the status block. /gate-check closes with exactly one stage-status-block fence as the LAST thing in its report, with at most 12 lines of prose lead-in above it — the block replaces the narration this contract formerly mandated rather than riding beneath it. Fixed section order, the - (none found) fallback and the caps live in docs/stage-status-block.md; adoption is graded by adapters/_shared/src/stage_block_adoption.ts. Skip this block when the invocation body carries the driven-run marker: the orchestrator drives the next step in the same turn.
stage: gate-check # then milestone, status, summary, gate, drive, e2e, follow_ups in fixed order — docs/stage-status-block.md
(reused) counts as run, and the code review is never reusedIf you hear yourself thinking any of these, stop and run the gate anyway:
| Excuse | Reality |
|---|---|
| Should work now | Run the verification |
| I'm confident | Confidence ≠ evidence |
| Just this once | No exceptions |
| Linter passed | Linter ≠ compiler / tests |
| Agent said success | Verify independently |
| Partial check is enough | Partial proves nothing |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nesquikm/dev-process-toolkit --plugin dev-process-toolkit29 skills in this plugin
/best-practicesManage the project best-practices manifest at `specs/best-practices.yaml`. Add, edit, delete, or list entries cataloguing house best-practices docs with scope globs and topics that feed guidance retrieval into planning and implementation./brainstormSocratic design session for greenfield features with open solution spaces. Clarifies goals one question at a time, proposes 2-3 approaches with tradeoffs, gets design approval, then feeds into /spec-write./debugStructured debugging protocol for failed gate checks, failing tests, unexpected behavior, or a reported bug. Use when /gate-check or /tdd fails and the cause is unclear, or when a reported bug (a symptom, a ticket, a bug FR) needs its cause found and a test that proves the fix. Phases: Root Cause → Pattern Analysis → Hypothesis Testing → Implementation./deliverFull delivery pipeline orchestrator — takes a feature request from idea through specs to shipped, merged milestones by chaining the toolkit's phase skills end-to-end./depsManage the sibling-package dependency manifest at `specs/deps.yaml`. Add, edit, delete, list, or sync entries that feed topic-aware retrieval into /brainstorm and /spec-write via the deps-researcher fork./deps-researchInternal research fork — invoked exclusively by /brainstorm and /spec-write via context:fork pairing with the deps-researcher subagent. Returns topic-aware sibling-package retrieval as a ≤25-line block. Do not invoke directly.Other plugins' skills for the same job