Repository navigation
Description
Split from #7246.
Problem: Other living specs still ask a test to read a document or prompt and find a sentence. The stage rule removal does not need those edits. #7243 corrects five requirements in openspec/specs/agent-instructions/spec.md. The other specs are not read yet. Why deferred: The audit has no known list of specs. The stage check fix is workable without it. The audit can proceed as a separate change. Acceptance criteria: Each living spec scenario that asks a test to read a document or prompt sentence names a command proof or is removed. uv run devops ci --check --only openspec,docs exits 0. No new test reads a document or prompt sentence.
Proposed design
Problem statement
Other living specs ask a test to read a document or prompt and find a sentence. These proofs are brittle. This change audits the living specs under openspec/specs/ and replaces each such scenario with a command proof or removes it. The scoped OpenSpec and docs checks must pass. The change adds no test that reads a document or prompt sentence.
Acceptance criteria
Requirement: Sentence-reader scenarios use a command proof
Each living spec scenario that asks a test to read a document or prompt sentence SHALL name a command proof or be removed.
Scenario: The audit finds a sentence-reader scenario
- WHEN
git grep -n -E 'A test (SHALL|MUST)' -- 'openspec/specs/*/spec.md'runs - THEN each line that asks a test to read a document or prompt sentence names a command proof or is removed
Requirement: The scoped OpenSpec and docs checks pass
The change MUST pass the OpenSpec and docs checks.
Scenario: The author runs the scoped checks
- WHEN
uv run devops ci --check --only openspec,docsruns - THEN the command exits 0
Requirement: No new test reads a document or prompt
The change SHALL NOT add a test that reads a document or prompt and asserts a sentence.
Scenario: The diff adds a test line
- WHEN
git diff --unified=0 -- tests | grep -E 'read_text|open\('runs - THEN the command prints no line that reads a document or prompt file
Existing Tool Considered
No alternatives check has run. No open tool covers the sentence-proof audit itself. OpenSpec (ADR 0010) is the open, maintained spec layer that holds the living specs. The existing uv run devops ci --check --only openspec,docs validates the result. OpenSpec lacks a detector for a scenario that asks a test to read a document or prompt. The author uses git grep to find those scenarios. The change builds no new code, so no written cost applies.
Key questions
- How does the change list every living spec to audit?: Use
git ls-files 'openspec/specs/*/spec.md'. The Spec term inCONTEXT.mdgives the path patternopenspec/specs/<capability>/spec.md. [sources: CONTEXT.md, openspec/specs/agent-instructions/spec.md] - What replaces a scenario that asks a test to read a document or prompt sentence?: Use a command proof where a command exists. Remove the scenario when no command can prove it. Do not add a test that reads the document or prompt. (best practice) [sources: AGENTS.md, openspec/specs/agent-instructions/spec.md]
- Chosen: Command proof where a command exists, else remove. Rule 4 of
AGENTS.mdasks for a command proof, and the issue body asks for the same. - Rejected: Keep the sentence-reader test. The issue body forbids a new test that reads a document or prompt sentence.
- Rejected: Add a new test that reads the document. The issue body forbids this test, and rule 4 asks for a command proof.
- Chosen: Command proof where a command exists, else remove. Rule 4 of
- Which existing tool covers the spec and change layer?: OpenSpec covers the spec and change layer, per ADR 0010. The change uses OpenSpec and the existing
devops cicheck. It builds no new tool. (best practice) [sources: AGENTS.md]- Chosen: OpenSpec. ADR 0010 makes OpenSpec the spec and change-proposal layer.
- Rejected: A custom sentence-proof checker. The change builds no new code, and the issue asks for a spec audit.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 28, 2026
Both name a command proof in living spec scenarios, but #6118 covers k8s and stack specs while the candidate covers the remaining specs.devops-cli-service commentedon Nov 28, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.