Repository navigation
Description
Problem
Three documents state facts that are false in the tree at origin/main 46cf288. An agent that follows them looks in the wrong place. The evaluation of the window 2026-11-03T15:05Z to 2026-11-04T15:05Z found these statements.
AGENTS.md:39says "review guards are in.devops/review.md"..devops/holdsreview.toml,survey.tomlandtuicr.config.toml. refactor(review): the review guards of .devops/review.md get a reader, or the guards and the unread constant are deleted #1916 and commit 6ae7123 retired the guards file.docs/SELF_IMPROVEMENT.md:134says that.devops/review.tomlholds suppressions and severity caps. That file holds no guards, so the line must not say that the guards moved.docs/SELF_IMPROVEMENT.md:261says "Documented settled claims in.devops/review.md". This line is in a calibration record, under the historical note at line 202.docs/TESTING.md:203says "most test files still sit flat intests/", and line 205 says "flat" and "a new flat file". 0 of 791 test files sit at the top oftests/. test(cli): every test file sits in the directory mirroring the package it tests or in tests/invariants/, and the root conftest holds only the hermetic floor #1313 is complete.docs/TESTING.mdnames 14 paths of the formtests/test_*.pythat do not exist. Each file now sits in a subdirectory oftests/. For example,tests/test_rag_qdrant.pyis nowtests/ai/rag/test_rag_qdrant.py, andtests/test_architectural_invariants.pyis nowtests/invariants/test_architectural_invariants.py.docs/TESTING.mdalso namestests/__snapshots__/test_fail_to_pass.ambr, which is nowtests/ci/__snapshots__/test_fail_to_pass.ambr.
No test holds these facts. test_agents_md_routes_each_kind_of_task_to_a_document_that_exists (tests/invariants/test_agents_md_claims.py:192) reads link hrefs only, so it does not read the backticked path at AGENTS.md:39. test_a_generated_agents_md_routes_no_task_to_a_review_guards_file reads only a generated file.
Expected
AGENTS.mdnames no review guards file. It says that suppressions and severity caps are in.devops/review.toml.- The calibration record stays, and it says that refactor(review): the review guards of .devops/review.md get a reader, or the guards and the unread constant are deleted #1916 retired the file that it names.
docs/TESTING.mdstates the mirror layout, has no flat-file text, and names the real path of each test file.- Lines 867-989 of
docs/SELF_IMPROVEMENT.mdstay as they are. They are the measurement protocol, and refactor(review): Pass AGENTS.md to the review prompt and set digest #2594 lists them for removal or change.CHANGELOG.md,openspec/specs/review-conventions/spec.mdand the archived OpenSpec changes also stay.
Acceptance criteria
grep -n '\.devops/review\.md' AGENTS.mdprints nothing.AGENTS.mdnames.devops/review.tomlfor suppressions and severity caps.grep -c flat docs/TESTING.mdprints 0..devops/review.mdis inCONST_DELETED_PROCESS_TERMSoftests/invariants/test_agents_md_claims.py, andtest_no_agent_instruction_names_a_deleted_processpasses. At 46cf288,AGENTS.mdis the only file that this test scans and that names the term.- A new test fails when a backticked
tests/path indocs/TESTING.mddoes not exist. It accepts a placeholder such astests/support/fakes/<edge>.pyand a path marked*(target)*, such astests/roadmap/test_duplicate_candidates.py. - The calibration record of session
20260927-150737indocs/SELF_IMPROVEMENT.mdsays that refactor(review): the review guards of .devops/review.md get a reader, or the guards and the unread constant are deleted #1916 retired the file.
Existing tool considered
tests/invariants/test_agents_md_claims.py holds the term check. lychee runs in CI (.github/workflows/ci.yml:703), and it reads links, not backticked paths, so it does not cover this need.
Related
#1336 and #2594 touch nearby text, but neither removes these statements.
Related: #2594, #1336, #1916, #1313
Proposed design
Problem statement
Three documents name paths that are gone or moved. An agent follows them to the wrong place. The change corrects AGENTS.md and docs/TESTING.md, annotates the calibration record, and adds a test for backticked tests/ paths.
Acceptance criteria
Requirement: No retired review guards path
AGENTS.md SHALL name no .devops/review.md path.
Scenario: The retired path is absent
- WHEN A reader runs
grep -n '\.devops/review\.md' AGENTS.md. - THEN The command prints nothing and exits with status 1.
Requirement: Review configuration path
AGENTS.md SHALL name .devops/review.toml as the file that holds suppressions and severity caps.
Scenario: The review row names the configuration file
- WHEN A reader reads the review row of
AGENTS.md. - THEN The row names
.devops/review.tomlfor suppressions and severity caps.
Requirement: Retired file in calibration record
The calibration record of session 20260927-150737 in docs/SELF_IMPROVEMENT.md SHALL state that #1916 retired .devops/review.md.
Scenario: The calibration record names the retirement
- WHEN A reader reads the calibration record of session
20260927-150737. - THEN The record says that refactor(review): the review guards of .devops/review.md get a reader, or the guards and the unread constant are deleted #1916 retired
.devops/review.md.
Requirement: No flat test file text
docs/TESTING.md SHALL contain no occurrence of the text flat.
Scenario: The text is absent
- WHEN A reader runs
grep -c flat docs/TESTING.md. - THEN The command prints
0.
Requirement: Mirror test layout
docs/TESTING.md SHALL state that test files sit in mirror subdirectories under tests/.
Scenario: The layout text names the mirror layout
- WHEN A reader reads the test layout section of
docs/TESTING.md. - THEN The section states that each test file sits in the subdirectory that mirrors its source path.
Requirement: Moved test files keep a real path
docs/TESTING.md SHALL name each moved test file by its real path under tests/, including tests/ai/rag/test_rag_qdrant.py and tests/invariants/test_architectural_invariants.py.
Scenario: A moved test path resolves
- WHEN A reader reads the Qdrant and architectural-invariant examples in
docs/TESTING.md. - THEN The document names
tests/ai/rag/test_rag_qdrant.pyandtests/invariants/test_architectural_invariants.py, and both files exist.
Requirement: Snapshot path resolves
docs/TESTING.md SHALL name tests/ci/__snapshots__/test_fail_to_pass.ambr for the fail-to-pass snapshot.
Scenario: The snapshot path resolves
- WHEN A reader reads the fail-to-pass snapshot path in
docs/TESTING.md. - THEN The document names
tests/ci/__snapshots__/test_fail_to_pass.ambr, and the file exists.
Requirement: Missing test path fails the check
A new invariant test SHALL fail when a backticked tests/ path in docs/TESTING.md does not exist.
Scenario: A missing path is rejected
- WHEN The new test reads a temporary
docs/TESTING.mdthat names a missing backtickedtests/path. - THEN The test fails and names the missing path.
Requirement: Allowed test path forms
The new invariant test MUST accept a backticked tests/ path that holds a <...> placeholder or that a *(target)* mark follows.
Scenario: Allowed forms pass
- WHEN The new test reads a temporary
docs/TESTING.mdthat namestests/support/fakes/.pyandtests/roadmap/test_duplicate_candidates.pywith a*(target)*mark. - THEN The test passes and reports no missing path.
Requirement: Deleted process term
tests/invariants/test_agents_md_claims.py SHALL list .devops/review.md in CONST_DELETED_PROCESS_TERMS.
Scenario: The deleted-term check covers the retired path
- WHEN A reader runs
test_no_agent_instruction_names_a_deleted_process. - THEN The list contains
.devops/review.md, and the test passes.
Requirement: Historical records stay unchanged
The change SHALL leave lines 867-989 of docs/SELF_IMPROVEMENT.md, CHANGELOG.md, openspec/specs/review-conventions/spec.md and the archived OpenSpec changes unchanged.
Scenario: Historical records stay unchanged
- WHEN A reviewer inspects the diff of the change.
- THEN The diff holds no change to those files or lines.
Existing Tool Considered
No alternatives check has run. lychee runs in CI at .github/workflows/ci.yml:703, and it reads links, not backticked paths, so it does not cover this need. tests/invariants/test_agents_md_claims.py holds the deleted-process-term check and can hold the new path check.
Key questions
- Which test holds the deleted-process-term check?:
test_no_agent_instruction_names_a_deleted_processintests/invariants/test_agents_md_claims.pyholds the check. [sources: tests/invariants/test_agents_md_claims.py] - Which file does AGENTS.md name for suppressions and severity caps?: AGENTS.md names
.devops/review.toml. (best practice) [sources: AGENTS.md:39, .devops/review.toml, docs/SELF_IMPROVEMENT.md:134]- Rejected: Keep
.devops/review.md. Commit 6ae7123 and refactor(review): the review guards of .devops/review.md get a reader, or the guards and the unread constant are deleted #1916 retired the file, and.devops/does not hold it. - Chosen: Name
.devops/review.toml. The file holds suppressions and severity caps, and the review reads it at the base revision. - Rejected: Name no review configuration. An agent needs the route to the live review configuration.
- Rejected: Keep
- How does the calibration record treat
.devops/review.md?: Keep the record and state that refactor(review): the review guards of .devops/review.md get a reader, or the guards and the unread constant are deleted #1916 retired the file. (best practice) [sources: docs/SELF_IMPROVEMENT.md:202, docs/SELF_IMPROVEMENT.md:261, docs/SELF_IMPROVEMENT.md:134]- Rejected: Delete the line. The calibration record is history and must stay.
- Rejected: Rewrite the line to
.devops/review.toml. That file holds suppressions and caps, not the settled-claims guards that the line names. - Chosen: Keep the line and add the retirement note. The record stays true and names the retirement.
- How should
docs/TESTING.mddescribe the test layout?: It states that test files sit in mirror subdirectories undertests/. (best practice) [sources: docs/TESTING.md:203, docs/TESTING.md:205, tests/ai/rag/test_rag_qdrant.py, tests/invariants/test_architectural_invariants.py]- Rejected: Keep flat-file text. No test file sits at the top of
tests/, so the text is false. - Chosen: State the mirror layout. The repository holds test files in subdirectories that mirror their source paths.
- Rejected: Remove the layout text. A reader needs the rule that places a new test module.
- Rejected: Keep flat-file text. No test file sits at the top of
- How does the new test treat a placeholder or a target-marked path?: The new test accepts a path with a
<...>placeholder and a path that a*(target)*mark follows. (best practice) [sources: docs/TESTING.md, tests/invariants/test_agents_md_claims.py]- Rejected: Reject every non-existing path. A placeholder names a planned fake, and a target-marked path names a planned test.
- Rejected: Skip every
tests/path. The check would miss the 14 moved paths that this issue corrects. - Chosen: Accept a placeholder and a target-marked path. The exception keeps a planned path in the document and still checks every real path.
- What are the real paths of the two cited test files?:
tests/test_rag_qdrant.pyistests/ai/rag/test_rag_qdrant.py, andtests/test_architectural_invariants.pyistests/invariants/test_architectural_invariants.py. [sources: tests/ai/rag/test_rag_qdrant.py, tests/invariants/test_architectural_invariants.py] - What is the real path of the fail-to-pass snapshot?:
tests/__snapshots__/test_fail_to_pass.ambristests/ci/__snapshots__/test_fail_to_pass.ambr. [sources: tests/ci/snapshots/test_fail_to_pass.ambr]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 4, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(docs)scope of the title gives the scope.Stale doc paths misdirect agents but do not break build or runtime.Fixes wrong file references that cause agents to look in the wrong place.Edit a few lines in three doc files and add one new invariant test.devops-cli-service commentedon Nov 5, 2026
Status set to Ready at f481be8 (see proposed design in issue body).
devops-cli-service commentedon Nov 6, 2026
Released in v0.67.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.67.0
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 07:13 UTC