Note 06 · Verification

From Specifications to Executable Acceptance Tests

Linking declared acceptance criteria to real checks you already own—with honest not_run states and zero certification theater.

3 min read (538 words) Applies to SpecPlane 0.1.0a6 · Schema v9.2.1 Published 2026-12-05

Specifications lose credibility the moment "checks passed" becomes rubber-stamp theater. When a specification tool wraps prose in green checkmarks without running real code—or quietly invents a trivial test just to report success—engineers stop trusting both the spec and the gate.

SpecPlane connects intended behavior (criteria and must: statements inside a change packet's success.yaml) to real verification you already own, while staying strictly honest about what a deterministic tool can and cannot prove.

Verification boundary in SpecPlane: Declared Coverage via check_sync compared side-by-side with Execution and Evidence via run, record_evidence, and checklist STRUCTURAL ACCOUNTING Declared Coverage (check_sync) • Checks touched graph IDs against change packets • Audits declared implementation.realization.paths • Enforces proposal.evidence_contract presence Declared coverage only — never behavioral proof OBSERVED PROOF & SIGN-OFF Execution & Evidence run · record_evidence · checklist • Executes bound unittest / argv (pass or fail) • Unbound must: lines report honest not_run • Stamps evidence.json & human sign-off with commit_sha Zero synthesized tests · Zero certification theater
SpecPlane separates structural graph coverage (check_sync) from real bound-check execution (run), external QA receipts (record_evidence), and human sign-off.

Two halves of verification in 0.1.0a6

SpecPlane separates structural accounting from behavioral execution so neither pretends to be the other.

1. Declared graph coverage (specplane check_sync). Before or after editing code, check_sync inspects an open or promoted change (specs/changes/<slug>/) against touched specification IDs and optional implementation.realization.paths. It verifies that affected promises are accounted for in the change packet and checks proposal.yaml's evidence_contract to ensure acceptance criteria or explicit exemptions are declared rather than silently omitted.

A check_sync pass proves declared coverage—every touched node has a declared place in the graph. It is never behavioral proof that the software works.

2. Bound check execution (specplane run). When you want execution evidence, specplane run --change <slug> --record (also exposed via the run MCP tool) executes only checks explicitly bound in success.yaml via run.unittest or run.argv. SpecPlane runs each bound command in a subprocess, captures exit codes, failure details, and timings, writes an immutable run log under .specplane/evidence/<slug>/, and updates the committed specs/changes/<slug>/evidence.json summary manifest.

sensors:
  - id: sensor_token_expiry
    promise: capability.authentication
    must: "Expired session tokens return HTTP 401 and do not refresh."
    run:
      argv: ["pytest", "tests/test_auth.py", "-k", "expired_token"]

If a must: criterion is bound to an actual pytest, unittest, or script invocation, specplane run executes that check and records pass or fail. If it has no binding, SpecPlane refuses to guess.

Implemented today vs. planned (0.1.0a6): SpecPlane does not synthesize executable tests from English prose and does not parse test_strategy strings. Any English must: criterion without a run.unittest or run.argv binding honestly prints not_run on specplane run—never a fake pass and never a compliance certificate. Tighter test-framework adapters and automated spec-to-test generation remain future work.

External QA agents and human checklists

Not every requirement belongs in a unit test. Browser flows, visual regressions, and subjective product sign-offs happen outside unittest or argv subprocesses.

For browser, Playwright, or dedicated QA agents, 0.1.0a6 ships a structured handshake over both CLI and MCP:

  • get_acceptance_criteria / specplane criteria --change <slug> returns the merged criteria across live specs, open change deltas, realization.paths, and current evidence status.
  • record_evidence / specplane record-evidence appends structured verification results (outcome, test_type, runner, artifact_refs, and notes) stamped with the Git commit_sha and spec revision fingerprint. If code or specs move afterward, specplane list_gaps and specplane promote --dry-run flag that evidence as stale.

For non-technical reviewers—product owners, founders, or release leads—specplane checklist --change <slug> renders a plain-language verification list and records explicit human approval via --sign-off <criterion_id> --reviewer <name>.

Verification in SpecPlane stays grounded: declared coverage shows where promises sit, bound checks execute real commands, external QA and human sign-offs carry commit-stamped receipts, and anything unverified remains visibly not_run.

See SpecPlane on a real workspace: inspect live capabilities, blast graphs, and staged changes without installing anything.