Repository navigation
chore: delete self-referential meta-machinery in docs/plans verification - #3404
Conversation
Problem: api-parity.yaml, evidence-freshness.yaml, lint-escalation.yaml, oracle-quality.yaml, and test-coverage-domains.yaml were validated only by generic Pydantic shape-checking (check_pydantic_models) with no downstream consumer that reads their content to catch real drift. Two files self-describe as "not a source of verification authority" / "transitional... retained only while..." in their own headers. test-coverage-domains.yaml was already marked superseded by test-closure-matrix.yaml's deprecated_pointer. lint-escalation.yaml's promised severity-escalation-on-sunset mechanism was never implemented in code. git history on all five shows only creation/consolidation commits, never a caught defect (PR #1737 already removed sibling ceremony from this same file). What changed: removed the five YAML manifests, their Pydantic model classes (ApiParityManifest, EvidenceFreshnessManifest, LintEscalationManifest, OracleQualityManifest) and MANIFEST_MODELS entries, check_lint_escalation and check_test_coverage_domains in devtools/verify_manifests.py, the deprecated_pointer block + its verify_closure_matrix.py check, and stale doc references. Regenerated docs/test-quality-workflows.md. Verification: python3 -m devtools.verify_manifests passes; ruff check on touched files passes.
…e-only tests Problem: docs/topology-status.md / devtools/render_topology_status.py had zero consumption evidence beyond `render all --check` passing — no code path reads it, and no doc tells an agent to consult it before a placement decision (render_topology_status.py's own docstring self-classified it as "a navigation/advisory artifact, not a blocking architectural gate"). Its git history is only mechanical regeneration commits. Separately, tests/unit/architecture/test_topology_invariants.py carried five presence-only assertions (`(ROOT / ...).exists()` / a docstring truthiness check) whose only failure mode duplicates what an ordinary import or the real `verify_topology`/`render_topology_projection` invocation already fails loudly on. What changed: removed render_topology_status.py, its command_catalog.py entry, its generated_surfaces.py wiring, its dedicated test file, and the five presence-only tests (kept the two behavioral ones: test_polylogue_root_matches_kernel_rule, which diffs the realized root files against an explicit allowlist). Kept verify_topology.py and build_topology_projection.py as-is — their orphan/missing/conflict/ kernel-rule checks are real drift detection, not ceremony (see the docs/plans/topology-target.yaml placement-judgment reduction tracked as a follow-up, not done here — that needs a generator rewrite, not a deletion). Updated CLAUDE.md, docs/internals.md, docs/architecture.md, and docs-media-coverage.yaml's now-dangling topology_status entry; regenerated docs/devtools.md and docs/README.md via `devtools render`. Verification: devtools test tests/unit/architecture/test_topology_invariants.py tests/unit/devtools/test_bead_cluster.py tests/unit/devtools/test_render_docs_surface.py tests/unit/devtools/test_verify_manifests.py tests/unit/devtools/test_command_catalog.py tests/unit/devtools/test_generated_surfaces.py -- 68 passed; devtools render all --check green (no "out of sync"); python3 -m devtools.verify_manifests passes.
Completes the previous commit: the render_topology_status wiring removal (command_catalog.py, generated_surfaces.py, render_pages.py, docs_surface.py, bead_cluster.py), doc references (CLAUDE.md, docs/internals.md, docs/architecture.md, regenerated docs/devtools.md + docs/README.md), docs-media-coverage.yaml's dangling entry, and the five presence-only topology tests did not make it into that commit due to a `git add` pathspec error on an already-staged deletion silently truncating the staged set. This commit lands the rest so the tree matches the prior commit's stated diff.
Problem: test_storage_correctness_manifest_records_the_realized_archive_family asserted a YAML row's exact field content back at itself (name, description, scenario_count, location, bead id) — it only fails if the row's own text changes, i.e. a textbook fossilized-diff test per CLAUDE.md's mandate. Any real drift (module moved, scenario count changed) is already caught by devtools/verify_manifests.py's coverage-gap/reference checks, which read the manifest against the live scenario catalog rather than against its own committed text. What changed: removed the test and its now-unused `yaml` import. Verification: devtools test tests/unit/devtools/test_lab_scenario.py -- 11 passed.
…urge polylogue-ganm: reduce topology-target.yaml to a bare file inventory (drop the unread placement-judgment columns; the orphan/missing/conflict/kernel checks only need a path list). polylogue-2jga: split or delete test-closure-matrix.yaml and test-quality-coverage.yaml's unenforced narrative fields (each mixes one real enforced check with free-text that nothing re-verifies). Ref feature/chore/purge-meta-machinery.
|
Warning Review limit reached
Next review available in: 4 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (29)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cb100f4c97
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This branch removes `devtools render topology-status`, but the hotspot guide still instructed every author adding a module under `polylogue/` to run it -- a command that no longer exists after the deletion. Caught by review. Both call sites updated to the surviving `devtools render topology-projection`. Co-Authored-By: Claude <[email protected]>
# Conflicts: # .beads/issues.jsonl # docs/topology-status.md
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Deletes verification apparatus that only checked the codebase's own tidiness
(a doc/registry in sync with itself) rather than product behaviour, per this
repo's own CLAUDE.md mandate against fossilized-diff checks. Landed after a
five-way parallel audit of all 20
docs/plans/*.yamlregistries, thedevtools lab policychecks, the topology-projection machinery, andstructure-asserting tests.
Problem
CLAUDE.md already states: "Do not add tests, static scans, policy gates,
allowlists, or deny lists that merely memorialize a refactoring diff... If
such fossilized-diff checks already exist in the touched surface, remove them
instead of updating them to encode the latest spelling." An audit found five
manifests, one render target, six tests, and one CI-doc reference that fit
this pattern exactly — validated only by generic Pydantic shape-checking or
existence assertions, never by a check that reads their content against live
behavior, with git history showing only mechanical regenerate/consolidate
commits and never a caught defect.
Solution
docs/plans/*.yamlmanifests (api-parity,evidence-freshness, lint-escalation, oracle-quality, test-coverage-domains)
plus their Pydantic model classes,
MANIFEST_MODELSentries, and twodedicated check functions (
check_lint_escalation,check_test_coverage_domains) indevtools/verify_manifests.py. Two ofthe five self-described as "not a source of verification authority" /
"transitional" in their own file headers;
test-coverage-domains.yamlwasalready marked superseded by
test-closure-matrix.yaml.topology-statusrender target(
devtools/render_topology_status.py,docs/topology-status.md) — its owndocstring self-classified it as "a navigation/advisory artifact, not a
blocking architectural gate," with zero consumption evidence beyond
render all --checkpassing. Keptdevtools/verify_topology.pyanddevtools/build_topology_projection.py— their orphan/missing/conflict/kernel-rule checks are real drift detection against the realized tree, not
ceremony.
tests/unit/architecture/test_topology_invariants.py(e.g.assert (ROOT/"polylogue"/"archive"/"query"/"__init__.py").exists()) whoseonly failure mode duplicates what an ordinary import already fails loudly
on. Kept the two behavioral tests in the same file
(
test_polylogue_root_matches_kernel_rule,test_topology_projection_yaml_existswas removed as redundant withverify_topology/render_topology_projectionthemselves failing hard).(
test_storage_correctness_manifest_records_the_realized_archive_family)that asserted a YAML row's exact field content back at itself.
CLAUDE.md,docs/internals.md,docs/architecture.md, anddocs/plans/docs-media-coverage.yaml's now-danglingtopology_statusentry; regenerated
docs/devtools.mdanddocs/README.mdviadevtools render.operator call rather than a unilateral delete:
polylogue-ganm(reduce
topology-target.yaml's 4618-line placement-judgment bulk to abare file inventory — real generator/schema rewrite, not a deletion) and
polylogue-2jga(split the enforcedci_gatecheck from the unenforcednarrative fields in
test-closure-matrix.yaml/test-quality-coverage.yaml).Kept (examined, not touched)
hash-boundary-registry.yaml,layering.yaml,mutation-census.yaml,degrade-loudly-allowlist.yaml,distribution-coverage.yaml,docs-coverage-baseline.yaml,campaign-coverage.yaml,security-privacy-coverage.yaml,slo-catalog.yaml,test-clock-allowlist.yaml— each has a real AST/cross-reference/executioncheck that catches actual production drift (e.g. layering enforces
substrate/surface import boundaries; hash-boundary-registry protects
content-hash idempotency; slo-catalog runs real pytest-benchmark comparisons).
All 9
devtools lab policychecks — confirmed load-bearing against liveBeads/CI-workflow/DDL state, not doc-sync.
devtools/dev_loop.py,devtools/daemon_workload_probe.py,devtools/verify.py— large butlegitimate verification-tooling complexity (process orchestration, live
SQLite introspection, pytest supervision), not ceremony.
Verification
python3 -m devtools.verify_manifestspasses.devtools render all --check— no "out of sync" lines.devtools test tests/unit/architecture/test_topology_invariants.py tests/unit/devtools/test_bead_cluster.py tests/unit/devtools/test_render_docs_surface.py tests/unit/devtools/test_verify_manifests.py tests/unit/devtools/test_command_catalog.py tests/unit/devtools/test_generated_surfaces.py tests/unit/devtools/test_lab_scenario.py— all pass.devtools verify --quick— exit 0 (format + lint + mypy + render-all-check).Ref polylogue-ganm, polylogue-2jga (follow-ups filed, not this PR's scope).