Skip to content

refactor(devtools): drop verification owner-map gates (#2177) - #2217

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/drop-coverage-owner-map-2177
Jun 20, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/drop-coverage-owner-map-2177

Conversation

@Sinity

@Sinity Sinity commented Jun 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

Remove two devtools verification gates that validated verification metadata instead of product behavior: verify test-coverage-contracts and verify lane-assertions.

Problem

#2177 and #2196 identify the same failure mode: Polylogue should keep ordinary pytest, type checks, generated user-facing surfaces, and focused behavioral checks, but it should not preserve owner-map or lane-catalog bureaucracy as correctness proof. verify test-coverage-contracts was actively red because it matched production files to dedicated test-file names while carrying 52 weak exemptions. verify lane-assertions had become a dead gate: it reported 0 lanes, 0 vacuous while still running in every default verify.

Solution

Delete both commands and their tests/files, remove them from devtools verify, remove the lane assertion dashboard entry, and regenerate docs/devtools.md plus AGENTS.md. This keeps the real gates in place: ruff, mypy, generated surfaces, topology, layering, closure matrix, schema roundtrip, manifests, CI workflow lint, doc-command checks, test-infra currency, clock hygiene, and pytest-testmon.

Verification

  • devtools test tests/unit/devtools/test_command_catalog.py tests/unit/devtools/test_render_devtools_reference.py tests/unit/devtools/test_verify.py -q -> 66 passed.
  • devtools verify --quick -> exit_code 0.
  • devtools verify --seed-testmon --skip-slow -> 11658 passed, 9 warnings; peak pytest tree RSS 3212.3 MB.
  • devtools verify -> 85 passed; exit_code 0.
  • Push preflight reran devtools verify --quick at 390b08ab -> exit_code 0.

Ref #2177

Summary by CodeRabbit

  • Chores
    • Removed two verification commands from the devtools suite.
    • Updated devtools command registry and documentation accordingly.

Problem: #2177/#2196 identified two devtools gates that validated verification metadata rather than product behavior. The test-coverage contract blocked on file-name ownership while carrying dozens of weak exemptions, and lane-assertions now reported zero lanes while still running in the default verify path.

What changed: remove both commands from the devtools catalog, default verify, evidence dashboard, generated devtools references, and their command-level tests/files. Keep ordinary coverage, pytest, mypy, rendering, topology, layering, manifest, doc-command, test-infra, and clock-hygiene gates intact.

Verification: devtools test tests/unit/devtools/test_command_catalog.py tests/unit/devtools/test_render_devtools_reference.py tests/unit/devtools/test_verify.py -q; devtools verify --quick; devtools verify --seed-testmon --skip-slow; devtools verify.

Ref #2177
@coderabbitai

coderabbitai Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: b76a619c-212d-4b96-b01a-269f00b83f34

📥 Commits

Reviewing files that changed from the base of the PR and between b222264 and 390b08a.

📒 Files selected for processing (10)
  • AGENTS.md
  • devtools/command_catalog.py
  • devtools/evidence_dashboard.py
  • devtools/verify.py
  • devtools/verify_lane_assertions.py
  • devtools/verify_test_coverage_contracts.py
  • docs/devtools.md
  • docs/plans/test-coverage-exemptions.yaml
  • tests/unit/devtools/test_verify.py
  • tests/unit/devtools/test_verify_test_coverage_contracts.py
💤 Files with no reviewable changes (10)
  • tests/unit/devtools/test_verify.py
  • devtools/verify_test_coverage_contracts.py
  • devtools/verify_lane_assertions.py
  • tests/unit/devtools/test_verify_test_coverage_contracts.py
  • docs/plans/test-coverage-exemptions.yaml
  • devtools/verify.py
  • AGENTS.md
  • docs/devtools.md
  • devtools/evidence_dashboard.py
  • devtools/command_catalog.py

📝 Walkthrough

Walkthrough

Removes two devtools verify gates (lane-assertions and test-coverage-contracts) from the codebase. This includes deleting the two implementation scripts, the exemptions YAML they consumed, their CommandSpec catalog registrations, their steps in build_verify_steps(), the evidence dashboard gate reference, related unit tests, and all generated documentation entries.

Changes

Remove verify lane-assertions and verify test-coverage-contracts gates

Layer / File(s) Summary
Delete gate implementation scripts and catalog registrations
devtools/command_catalog.py, devtools/verify_lane_assertions.py, devtools/verify_test_coverage_contracts.py, docs/plans/test-coverage-exemptions.yaml, tests/unit/devtools/test_verify_test_coverage_contracts.py
Removes the two CommandSpec entries from COMMAND_SPECS, deletes both gate implementation scripts (including their main() functions and _load_assertion_specs()), wipes the exemptions YAML consumed by the coverage-contracts script, and deletes the unit tests for that script.
Remove gates from verification pipeline and dashboard
devtools/verify.py, devtools/evidence_dashboard.py, tests/unit/devtools/test_verify.py
build_verify_steps() no longer appends the verify lane-assertions or verify test-coverage-contracts steps; _STATIC_GATE_NAMES drops "verify lane-assertions"; the quick-verify label assertion is updated to remove "verify lane-assertions" and add "verify test-infra-currency" and "verify test-clock-hygiene".
Update command catalog docs
docs/devtools.md, AGENTS.md
Removes both gate entries from the generated Verification command catalog sections in docs/devtools.md and AGENTS.md.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

  • Sinity/polylogue#1834: This PR directly implements the removal of verify lane-assertions and verify test-coverage-contracts from devtools verify --all, which is the stated objective of that issue.

Possibly related PRs

  • Sinity/polylogue#1073: Both PRs modify build_verify_steps() in devtools/verify.py to change which verification gates are included in the baseline step sequence.
  • Sinity/polylogue#1279: Both PRs edit build_verify_steps() to alter the default gate list — this PR removes two gates while that PR added verify-witness-coverage.
  • Sinity/polylogue#1413: Both PRs modify the default verification step wiring in devtools/verify.py, with overlapping edits to the same gate-list construction site.

Suggested labels

type:docs, area:docs, area:qa

Poem

🐇 Two old gates have hopped away,
No lane-assertions left to weigh,
Coverage contracts, gone today—
The verify queue is lighter, yay!
Less ceremony, cleaner play. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: removing two verification gates related to owner-map metadata validation.
Description check ✅ Passed The description includes all required sections: Summary, Problem, Solution, Verification with specific commands, and appropriate changelog guidance, providing comprehensive context.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/drop-coverage-owner-map-2177

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

github-actions Bot pushed a commit that referenced this pull request Jun 20, 2026
@Sinity
Sinity merged commit 41b111e into master Jun 20, 2026
12 checks passed
@Sinity
Sinity deleted the feature/refactor/drop-coverage-owner-map-2177 branch June 20, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant