Design and Plan Convergence Audit
Core contract
Audit one current readiness gate from current evidence. Keep the audit read-only.
Treat old reports and modifier summaries as claims, never as facts.
- Read applicable organization, project, methodology, repository, and artifact-format rules.
- Freeze the charter, gate, artifact set, Non-Goals, decisions, accepted risks, evidence boundary, and snapshot.
- Use the smallest evidence set that proves or disproves the gate, including complete affected decision chains and siblings.
- Do not edit artifacts, implement future work, run release verification, or broaden the charter.
- Route only
BLOCKER and REQUIRED findings to remediation.
Choose one audit mode:
- Audit: inspect the current artifact without relying on an earlier verdict.
- Re-audit: verify claimed repairs on the current snapshot.
- Convergence: detect recurrence, drift, and repair-created mechanisms.
Select the gate and risk profile
Use the explicit gate, otherwise infer it from the primary artifact:
| Gate |
Current responsibility |
DESIGN READY |
OpenSpec or equivalent design contracts, decisions, compatibility, risks, and recovery principles are sufficient to write a plan. |
PLAN READY |
An existing implementation plan is aligned, ordered, feasible, and mechanically verifiable. |
IMPLEMENTATION READY |
Route only when the user explicitly asks to verify completed implementation or invokes the repository implementation-verification workflow. |
RELEASE READY |
Route only on an explicit release-readiness request after implementation evidence and a release candidate or target environment exist. |
Do not automatically advance from document convergence to implementation or release.
A missing plan at DESIGN is NEXT STAGE NOT STARTED, not a blocker.
Use AUTO unless the user selects LEAN or ASSURANCE:
LEAN: cover the main flow, approved boundaries, credible single failures, and mandatory safety/data protections.
AUTO: apply LEAN globally and a local ASSURANCE SLICE only to security/trust boundaries, money/quota, irreversible data changes, public compatibility, concurrency/idempotency/state machines, or production activation/rollback.
ASSURANCE: deepen evidence for the selected gate; never change the gate or authorize implementation.
If assurance would add a capability, controller, persistent state, protocol, artifact, live-environment execution, or Non-Goal change, return DECISION REQUIRED.
Read references/gate-risk-watch-contract.md for classification, risk slices, test admission, and stopping rules.
For an implementation plan or plan-only request, read
references/implementation-plan-profiles.md.
For design artifacts that are not OpenSpec, read
references/generic-design-profile.md.
For design or plan artifacts whose frozen scope authoritatively includes
user-visible UI/UX behavior, read
references/ui-ux-planning-profile.md.
Do not select this profile from frontend technology or UI-related keywords alone.
For independent closure, re-audit, or multi-cycle work, read
references/evidence-isolation-snapshots.md.
Freeze the boundary
Record:
gate, mode, and LEAN/AUTO/ASSURANCE profile
charter, observable result, scope, Non-Goals, must-not-change behavior
primary artifacts and artifact generation
editable artifacts: none
read-only rules, code, configuration, tests, runtime, and external evidence
acceptance environment and gate completion criteria
frozen decisions, unresolved decisions, accepted residual risks
snapshot and boundary version
“Full boundary” means the frozen charter, applicable rules, and complete impact
chains, not the whole repository. Verify current facts from code, configuration,
tests, CI, or runtime evidence; do not infer them from target documents.
Run the OpenSpec preflight
For an artifact set governed by OpenSpec delta semantics, run this mechanical
preflight before the general gate lenses:
- Resolve the current change, authoritative OpenSpec root, governing format,
and snapshot. For a standard repo-local change, run the read-only validator:
openspec validate <change> --type change --strict --no-interactive. If
governing rules or a selected store require another exact command, use that
command instead.
- Parse delta operation and Requirement headings. For every
MODIFIED or
REMOVED Requirement, locate its Requirement heading in the authoritative
main spec using OpenSpec's canonical normalized-header matching. An intended
rename requires the format-native rename mapping. Do not substitute an
unanchored body search or stricter byte-for-byte matching.
- When a delta capability has no authoritative main spec, treat it as a new
capability and confirm that it uses the governing added-requirements
operation header; under the standard format this is
## ADDED Requirements.
Any unsuccessful mandatory validator or preflight check is at least REQUIRED
and prevents READY; upgrade it to BLOCKER only when the normal finding contract
requires that severity. Continue every lens whose evidence remains reliably
readable. If a structural failure makes an artifact identity or boundary
unreliable, mark only the affected partition UNVERIFIED, retain the
corresponding finding at its classified severity, and state why.
Apply this bounded textual trace only when the delta contains MODIFIED or
REMOVED Requirements from an existing main spec:
- For each decision in the frozen change, search separately for its stable
identifier and exact heading or title, where present. Use the union of
fixed-string matches; do not derive extra search terms from prose.
- Treat matching Requirements as the affected candidate set and review only
that set for semantic contradictions with the decision.
- If the search has no match, report only that the bounded textual trace found
no explicit link. Do not claim that no impact exists.
Pure ADDED new-capability deltas and bug fixes with no spec change skip this
OpenSpec-specific textual trace, but never skip otherwise applicable gate
lenses. Do not extend this adapter into inferred shared-semantic-resource or
unmentioned-Requirement analysis. This limit scopes only the adapter's candidate
generation; it does not suppress conflicts directly evidenced while applying
the general lenses.
Apply the gate lenses
At DESIGN READY, audit:
- Premise/value: problem evidence, observable result, completion criteria.
- Scope/boundary: scope, Non-Goals, must-not-change behavior, no hidden product expansion.
- Architecture/contracts: one owner per behavior, decision trade-offs, compatibility, affected consumers, intermediate states.
- Delivery/operations: dependencies, implementation ownership, rollout, backup/rollback or fail-closed principle, accepted residual risk, and automation proportional to repeat risk.
At PLAN READY, audit the plan against frozen upstream design through:
- Dependency: outputs exist before use; environments, owners, and permissions are ordered.
- Granularity: tasks split by behavioral result, compatibility phase, or failure boundary, not file or line count.
- Risk: critical sequencing, destructive actions, compatibility, rollback, and current-gate assurance slices are explicit.
- Coverage: every approved contract maps to work and verification; every task maps back to an approved contract.
- Feasibility: current paths, symbols, interfaces, tools, cwd, prerequisites, commands, and oracles are credible.
Do not import a global “cover every edge case” objective. Apply the bounded
UI/UX planning profile only when its authoritative-scope trigger holds. Other
optional DX, security, or operations lenses apply only when the frozen scope
contains them.
Automate checks that are repeated, high-risk, cross-service, or prone to false
positives; do not add a script merely to make a one-time low-risk review look
complete.
Complete the frozen lens and risk-partition inventory before issuing the first
repair handoff. Time spent is not coverage. Stop an over-deep branch by applying
the risk, sufficiency, and routing contracts; do not stop the whole audit while
mandatory partitions remain incomplete.
Close decision chains
Trace each relevant path:
evidence -> requirement/scenario -> decision/trade-off -> implementation owner
-> valid and rejected behavior -> verification responsibility
-> rollout/acceptance -> rollback/recovery principle
Preserve artifact ownership:
- proposal: problem, value, scope, Non-Goals;
- spec: observable behavior and acceptance boundary;
- design: decisions, trade-offs, flows, compatibility, risks;
- tasks: implementation and verification responsibility;
- plan: order, paths, interfaces, commands, oracles, phase boundaries.
These are semantic roles, not required filenames. A generic document may own
several roles; audit its content rather than forcing it into an OpenSpec shape.
Use stable Requirement, Scenario, Decision, and Task identifiers where the
artifact format supports them. A downstream artifact must not silently rewrite
an upstream decision.
Keep tests at the correct stage
- OpenSpec defines testable behavior, critical journeys, acceptance scenarios, and verification ownership; it does not need an exhaustive test-case library.
- A plan maps contracts to unit, integration, E2E, or release responsibility, prerequisites, environment, fixture category, and oracle; it does not implement the tests.
- Development creates detailed cases and fixtures.
- Integration and release workflows execute full E2E, smoke, deployment, rollback, and recovery checks.
At DESIGN and PLAN, future outcomes remain PLANNED. Do not fail an earlier gate
because later tests have not run. Require only gate-appropriate evidence:
| Gate |
Prove now |
May remain planned |
| DESIGN |
charter, facts, contracts, decisions, impact surface, compatibility, risk and recovery principles |
exact implementation and test execution |
| PLAN |
paths, interfaces, dependencies, ordering, present command feasibility, stable oracles |
future red/green, integration, deployment, runtime results |
| IMPLEMENTATION |
implementation and required regression evidence |
release-only execution |
| RELEASE |
deployment, runtime acceptance, observability, rollback and recovery |
nothing release-critical |
Use static contract audit, gate-appropriate safe rehearsal, and reverse
traceability. At DESIGN/PLAN, rehearsal validates current facts and feasibility;
it does not execute future implementation. Select adapters from artifact
identity and governing rules, not installed CLI availability. Never install
validators automatically or run one that writes, uses the network, or changes
the environment without authorization. After one safe unavailable or
unauthorized check, mark the evidence UNVERIFIED.
For an exact mandatory validator or action, equivalent evidence cannot
substitute; retain REQUIRED until it succeeds on the current snapshot or the
requirement is waived or amended. For a mandatory property or evidence outcome,
equivalent current evidence may satisfy its parent contract; otherwise retain
REQUIRED. Optional-validator unavailability alone creates no finding; continue
the semantic audit. Missing execution authorization alone does not create
DECISION REQUIRED. Route future-gate execution as NEXT-STAGE NOTE.
Manage findings
Use project statuses when stricter. Otherwise:
BLOCKER: the main flow cannot work, contracts conflict, or reachable security/data/irreversible harm lacks a safe decision.
REQUIRED: necessary for the current gate or a proportionate prevention of major quality failure.
CONCERN: confirmed non-blocking residual risk requiring authorized acceptance.
WATCH: low-probability trigger-based observation; do not remediate now.
NEXT-STAGE NOTE: work owned by development, integration, implementation verification, or release.
OUT OF SCOPE: real, separately deliverable work outside the charter.
REJECTED: disproved claim.
CLOSED: independently verified root-cause closure.
For each BLOCKER or REQUIRED, record the violated current-gate contract,
evidence, root cause, siblings, minimum correction invariant, authorized
boundary, and closure evidence. A modifier may return a remediation-defined candidate outcome, but never CLOSED or READY.
Read references/templates.md only when a formal
ledger, manifest, attestation, or report is required.
Audit frequency and verdict
- Perform one initial full-boundary audit.
- If it finds no
BLOCKER or REQUIRED and the snapshot stays unchanged, it is also the final audit; do not repeat it.
- After mutation, inspect the exact diff plus the complete affected decision chain, siblings, removed semantics, and new mechanisms.
- Upgrade an intermediate review to full after a gate, boundary, rule, profile, generation, or key mechanism changes.
- In a standalone re-audit, perform one blind full audit on the stable repaired
snapshot. Under
design-plan-convergence-loop, follow its frozen cadence:
one final blind discovery per artifact generation, then mandatory closed-world
certification. Reuse a complete zero-blocking blind synthesis only on its
unchanged snapshot; after post-blind root-preserving repairs or another
escalation trigger, run a fresh whole-artifact consistency scan. Do not
interpret a certification repair as a reason to restart blind discovery.
Declare READY only when:
- current-gate
BLOCKER = 0 and REQUIRED = 0;
- no unresolved decision or upstream reopen affects the gate;
- current evidence is reproducible and future checks have stable planned oracles;
- concerns are authorized and watch/next-stage items are correctly routed;
- no unapproved scope change or repair-created subsystem remains; and
- the audited snapshot is unchanged.
Lead with the terminal defined by the selected gate profile. Use <GATE> READY,
<GATE> NOT READY, or DECISION REQUIRED only when the profile does not define
a more specific routed terminal. Report blockers and required findings first,
then accepted residuals, routed items, verified closures, and the next action.
1---2name: design-plan-convergence3description: Use when a plain or structured technical design, OpenSpec artifact, generic or Superpowers implementation plan, repaired planning document, or design or plan artifact whose frozen scope includes user-visible UI/UX behavior needs read-only current-gate review, artifact-role normalization, re-audit, semantic-drift or scope-creep checking, plan-only review against an approved design, or risk-proportionate closure.4---56# Design and Plan Convergence Audit78## Core contract910Audit one current readiness gate from current evidence. Keep the audit read-only.11Treat old reports and modifier summaries as claims, never as facts.12131. Read applicable organization, project, methodology, repository, and artifact-format rules.142. Freeze the charter, gate, artifact set, Non-Goals, decisions, accepted risks, evidence boundary, and snapshot.153. Use the smallest evidence set that proves or disproves the gate, including complete affected decision chains and siblings.164. Do not edit artifacts, implement future work, run release verification, or broaden the charter.175. Route only `BLOCKER` and `REQUIRED` findings to remediation.1819Choose one audit mode:2021- **Audit**: inspect the current artifact without relying on an earlier verdict.22- **Re-audit**: verify claimed repairs on the current snapshot.23- **Convergence**: detect recurrence, drift, and repair-created mechanisms.2425## Select the gate and risk profile2627Use the explicit gate, otherwise infer it from the primary artifact:2829| Gate | Current responsibility |30|---|---|31| `DESIGN READY` | OpenSpec or equivalent design contracts, decisions, compatibility, risks, and recovery principles are sufficient to write a plan. |32| `PLAN READY` | An existing implementation plan is aligned, ordered, feasible, and mechanically verifiable. |33| `IMPLEMENTATION READY` | Route only when the user explicitly asks to verify completed implementation or invokes the repository implementation-verification workflow. |34| `RELEASE READY` | Route only on an explicit release-readiness request after implementation evidence and a release candidate or target environment exist. |3536Do not automatically advance from document convergence to implementation or release.37A missing plan at DESIGN is `NEXT STAGE NOT STARTED`, not a blocker.3839Use `AUTO` unless the user selects `LEAN` or `ASSURANCE`:4041- `LEAN`: cover the main flow, approved boundaries, credible single failures, and mandatory safety/data protections.42- `AUTO`: apply LEAN globally and a local `ASSURANCE SLICE` only to security/trust boundaries, money/quota, irreversible data changes, public compatibility, concurrency/idempotency/state machines, or production activation/rollback.43- `ASSURANCE`: deepen evidence for the selected gate; never change the gate or authorize implementation.4445If assurance would add a capability, controller, persistent state, protocol, artifact, live-environment execution, or Non-Goal change, return `DECISION REQUIRED`.46Read [references/gate-risk-watch-contract.md](references/gate-risk-watch-contract.md) for classification, risk slices, test admission, and stopping rules.4748For an implementation plan or plan-only request, read49[references/implementation-plan-profiles.md](references/implementation-plan-profiles.md).50For design artifacts that are not OpenSpec, read51[references/generic-design-profile.md](references/generic-design-profile.md).52For design or plan artifacts whose frozen scope authoritatively includes53user-visible UI/UX behavior, read54[references/ui-ux-planning-profile.md](references/ui-ux-planning-profile.md).55Do not select this profile from frontend technology or UI-related keywords alone.56For independent closure, re-audit, or multi-cycle work, read57[references/evidence-isolation-snapshots.md](references/evidence-isolation-snapshots.md).5859## Freeze the boundary6061Record:6263```text64gate, mode, and LEAN/AUTO/ASSURANCE profile65charter, observable result, scope, Non-Goals, must-not-change behavior66primary artifacts and artifact generation67editable artifacts: none68read-only rules, code, configuration, tests, runtime, and external evidence69acceptance environment and gate completion criteria70frozen decisions, unresolved decisions, accepted residual risks71snapshot and boundary version72```7374“Full boundary” means the frozen charter, applicable rules, and complete impact75chains, not the whole repository. Verify current facts from code, configuration,76tests, CI, or runtime evidence; do not infer them from target documents.7778## Run the OpenSpec preflight7980For an artifact set governed by OpenSpec delta semantics, run this mechanical81preflight before the general gate lenses:82831. Resolve the current change, authoritative OpenSpec root, governing format,84 and snapshot. For a standard repo-local change, run the read-only validator:85 `openspec validate <change> --type change --strict --no-interactive`. If86 governing rules or a selected store require another exact command, use that87 command instead.882. Parse delta operation and Requirement headings. For every `MODIFIED` or89 `REMOVED` Requirement, locate its Requirement heading in the authoritative90 main spec using OpenSpec's canonical normalized-header matching. An intended91 rename requires the format-native rename mapping. Do not substitute an92 unanchored body search or stricter byte-for-byte matching.933. When a delta capability has no authoritative main spec, treat it as a new94 capability and confirm that it uses the governing added-requirements95 operation header; under the standard format this is `## ADDED Requirements`.9697Any unsuccessful mandatory validator or preflight check is at least `REQUIRED`98and prevents READY; upgrade it to `BLOCKER` only when the normal finding contract99requires that severity. Continue every lens whose evidence remains reliably100readable. If a structural failure makes an artifact identity or boundary101unreliable, mark only the affected partition `UNVERIFIED`, retain the102corresponding finding at its classified severity, and state why.103104Apply this bounded textual trace only when the delta contains `MODIFIED` or105`REMOVED` Requirements from an existing main spec:1061071. For each decision in the frozen change, search separately for its stable108 identifier and exact heading or title, where present. Use the union of109 fixed-string matches; do not derive extra search terms from prose.1102. Treat matching Requirements as the affected candidate set and review only111 that set for semantic contradictions with the decision.1123. If the search has no match, report only that the bounded textual trace found113 no explicit link. Do not claim that no impact exists.114115Pure `ADDED` new-capability deltas and bug fixes with no spec change skip this116OpenSpec-specific textual trace, but never skip otherwise applicable gate117lenses. Do not extend this adapter into inferred shared-semantic-resource or118unmentioned-Requirement analysis. This limit scopes only the adapter's candidate119generation; it does not suppress conflicts directly evidenced while applying120the general lenses.121122## Apply the gate lenses123124At `DESIGN READY`, audit:1251261. **Premise/value**: problem evidence, observable result, completion criteria.1272. **Scope/boundary**: scope, Non-Goals, must-not-change behavior, no hidden product expansion.1283. **Architecture/contracts**: one owner per behavior, decision trade-offs, compatibility, affected consumers, intermediate states.1294. **Delivery/operations**: dependencies, implementation ownership, rollout, backup/rollback or fail-closed principle, accepted residual risk, and automation proportional to repeat risk.130131At `PLAN READY`, audit the plan against frozen upstream design through:1321331. **Dependency**: outputs exist before use; environments, owners, and permissions are ordered.1342. **Granularity**: tasks split by behavioral result, compatibility phase, or failure boundary, not file or line count.1353. **Risk**: critical sequencing, destructive actions, compatibility, rollback, and current-gate assurance slices are explicit.1364. **Coverage**: every approved contract maps to work and verification; every task maps back to an approved contract.1375. **Feasibility**: current paths, symbols, interfaces, tools, cwd, prerequisites, commands, and oracles are credible.138139Do not import a global “cover every edge case” objective. Apply the bounded140UI/UX planning profile only when its authoritative-scope trigger holds. Other141optional DX, security, or operations lenses apply only when the frozen scope142contains them.143Automate checks that are repeated, high-risk, cross-service, or prone to false144positives; do not add a script merely to make a one-time low-risk review look145complete.146147Complete the frozen lens and risk-partition inventory before issuing the first148repair handoff. Time spent is not coverage. Stop an over-deep branch by applying149the risk, sufficiency, and routing contracts; do not stop the whole audit while150mandatory partitions remain incomplete.151152## Close decision chains153154Trace each relevant path:155156```text157evidence -> requirement/scenario -> decision/trade-off -> implementation owner158 -> valid and rejected behavior -> verification responsibility159 -> rollout/acceptance -> rollback/recovery principle160```161162Preserve artifact ownership:163164- proposal: problem, value, scope, Non-Goals;165- spec: observable behavior and acceptance boundary;166- design: decisions, trade-offs, flows, compatibility, risks;167- tasks: implementation and verification responsibility;168- plan: order, paths, interfaces, commands, oracles, phase boundaries.169170These are semantic roles, not required filenames. A generic document may own171several roles; audit its content rather than forcing it into an OpenSpec shape.172173Use stable Requirement, Scenario, Decision, and Task identifiers where the174artifact format supports them. A downstream artifact must not silently rewrite175an upstream decision.176177## Keep tests at the correct stage178179- OpenSpec defines testable behavior, critical journeys, acceptance scenarios, and verification ownership; it does not need an exhaustive test-case library.180- A plan maps contracts to unit, integration, E2E, or release responsibility, prerequisites, environment, fixture category, and oracle; it does not implement the tests.181- Development creates detailed cases and fixtures.182- Integration and release workflows execute full E2E, smoke, deployment, rollback, and recovery checks.183184At DESIGN and PLAN, future outcomes remain `PLANNED`. Do not fail an earlier gate185because later tests have not run. Require only gate-appropriate evidence:186187| Gate | Prove now | May remain planned |188|---|---|---|189| DESIGN | charter, facts, contracts, decisions, impact surface, compatibility, risk and recovery principles | exact implementation and test execution |190| PLAN | paths, interfaces, dependencies, ordering, present command feasibility, stable oracles | future red/green, integration, deployment, runtime results |191| IMPLEMENTATION | implementation and required regression evidence | release-only execution |192| RELEASE | deployment, runtime acceptance, observability, rollback and recovery | nothing release-critical |193194Use static contract audit, gate-appropriate safe rehearsal, and reverse195traceability. At DESIGN/PLAN, rehearsal validates current facts and feasibility;196it does not execute future implementation. Select adapters from artifact197identity and governing rules, not installed CLI availability. Never install198validators automatically or run one that writes, uses the network, or changes199the environment without authorization. After one safe unavailable or200unauthorized check, mark the evidence `UNVERIFIED`.201202For an exact mandatory validator or action, equivalent evidence cannot203substitute; retain `REQUIRED` until it succeeds on the current snapshot or the204requirement is waived or amended. For a mandatory property or evidence outcome,205equivalent current evidence may satisfy its parent contract; otherwise retain206`REQUIRED`. Optional-validator unavailability alone creates no finding; continue207the semantic audit. Missing execution authorization alone does not create208`DECISION REQUIRED`. Route future-gate execution as `NEXT-STAGE NOTE`.209210## Manage findings211212Use project statuses when stricter. Otherwise:213214- `BLOCKER`: the main flow cannot work, contracts conflict, or reachable security/data/irreversible harm lacks a safe decision.215- `REQUIRED`: necessary for the current gate or a proportionate prevention of major quality failure.216- `CONCERN`: confirmed non-blocking residual risk requiring authorized acceptance.217- `WATCH`: low-probability trigger-based observation; do not remediate now.218- `NEXT-STAGE NOTE`: work owned by development, integration, implementation verification, or release.219- `OUT OF SCOPE`: real, separately deliverable work outside the charter.220- `REJECTED`: disproved claim.221- `CLOSED`: independently verified root-cause closure.222223For each `BLOCKER` or `REQUIRED`, record the violated current-gate contract,224evidence, root cause, siblings, minimum correction invariant, authorized225boundary, and closure evidence. A modifier may return a remediation-defined candidate outcome, but never `CLOSED` or READY.226227Read [references/templates.md](references/templates.md) only when a formal228ledger, manifest, attestation, or report is required.229230## Audit frequency and verdict231232- Perform one initial full-boundary audit.233- If it finds no `BLOCKER` or `REQUIRED` and the snapshot stays unchanged, it is also the final audit; do not repeat it.234- After mutation, inspect the exact diff plus the complete affected decision chain, siblings, removed semantics, and new mechanisms.235- Upgrade an intermediate review to full after a gate, boundary, rule, profile, generation, or key mechanism changes.236- In a standalone re-audit, perform one blind full audit on the stable repaired237 snapshot. Under `design-plan-convergence-loop`, follow its frozen cadence:238 one final blind discovery per artifact generation, then mandatory closed-world239 certification. Reuse a complete zero-blocking blind synthesis only on its240 unchanged snapshot; after post-blind root-preserving repairs or another241 escalation trigger, run a fresh whole-artifact consistency scan. Do not242 interpret a certification repair as a reason to restart blind discovery.243244Declare READY only when:2452461. current-gate `BLOCKER = 0` and `REQUIRED = 0`;2472. no unresolved decision or upstream reopen affects the gate;2483. current evidence is reproducible and future checks have stable planned oracles;2494. concerns are authorized and watch/next-stage items are correctly routed;2505. no unapproved scope change or repair-created subsystem remains; and2516. the audited snapshot is unchanged.252253Lead with the terminal defined by the selected gate profile. Use `<GATE> READY`,254`<GATE> NOT READY`, or `DECISION REQUIRED` only when the profile does not define255a more specific routed terminal. Report blockers and required findings first,256then accepted residuals, routed items, verified closures, and the next action.