Skip to content

chore: delete self-referential meta-machinery in docs/plans verification - #3404

Merged
Sinity merged 7 commits into
masterfrom
feature/chore/purge-meta-machinery
Jul 30, 2026
Merged

Sinity merged 7 commits into
masterfrom
feature/chore/purge-meta-machinery

Conversation

@Sinity

@Sinity Sinity commented Jul 30, 2026

Copy link
Copy Markdown
Owner

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/*.yaml registries, the
devtools lab policy checks, the topology-projection machinery, and
structure-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

  • Deleted 5 schema-only docs/plans/*.yaml manifests (api-parity,
    evidence-freshness, lint-escalation, oracle-quality, test-coverage-domains)
    plus their Pydantic model classes, MANIFEST_MODELS entries, and two
    dedicated check functions (check_lint_escalation,
    check_test_coverage_domains) in devtools/verify_manifests.py. Two of
    the five self-described as "not a source of verification authority" /
    "transitional" in their own file headers; test-coverage-domains.yaml was
    already marked superseded by test-closure-matrix.yaml.
  • Deleted the topology-status render target
    (devtools/render_topology_status.py, docs/topology-status.md) — its own
    docstring self-classified it as "a navigation/advisory artifact, not a
    blocking architectural gate," with zero consumption evidence beyond
    render all --check passing. Kept devtools/verify_topology.py and
    devtools/build_topology_projection.py — their orphan/missing/conflict/
    kernel-rule checks are real drift detection against the realized tree, not
    ceremony.
  • Deleted 5 presence-only tests in
    tests/unit/architecture/test_topology_invariants.py (e.g.
    assert (ROOT/"polylogue"/"archive"/"query"/"__init__.py").exists()) whose
    only 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_exists was removed as redundant with
    verify_topology/render_topology_projection themselves failing hard).
  • Deleted one fossilized-diff test
    (test_storage_correctness_manifest_records_the_realized_archive_family)
    that asserted a YAML row's exact field content back at itself.
  • Updated CLAUDE.md, docs/internals.md, docs/architecture.md, and
    docs/plans/docs-media-coverage.yaml's now-dangling topology_status
    entry; regenerated docs/devtools.md and docs/README.md via
    devtools render.
  • Filed two follow-up beads for genuinely ambiguous items that need an
    operator call rather than a unilateral delete: polylogue-ganm
    (reduce topology-target.yaml's 4618-line placement-judgment bulk to a
    bare file inventory — real generator/schema rewrite, not a deletion) and
    polylogue-2jga (split the enforced ci_gate check from the unenforced
    narrative 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/execution
check 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 policy checks — confirmed load-bearing against live
Beads/CI-workflow/DDL state, not doc-sync. devtools/dev_loop.py,
devtools/daemon_workload_probe.py, devtools/verify.py — large but
legitimate verification-tooling complexity (process orchestration, live
SQLite introspection, pytest supervision), not ceremony.

Verification

  • python3 -m devtools.verify_manifests passes.
  • 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).
  • Net: 29 files changed, 23 insertions(+), 1116 deletions(-).

Ref polylogue-ganm, polylogue-2jga (follow-ups filed, not this PR's scope).

Sinity added 5 commits July 30, 2026 18:40
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.
@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 4 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 6ca7f637-1be8-43b6-9b46-ec41ab46e460

📥 Commits

Reviewing files that changed from the base of the PR and between 32266af and 7fcae14.

📒 Files selected for processing (29)
  • CLAUDE.md
  • devtools/bead_cluster.py
  • devtools/command_catalog.py
  • devtools/docs_surface.py
  • devtools/generated_surfaces.py
  • devtools/render_pages.py
  • devtools/render_quality_reference.py
  • devtools/render_topology_status.py
  • devtools/verify_closure_matrix.py
  • devtools/verify_manifests.py
  • docs/README.md
  • docs/architecture-hotspots.md
  • docs/architecture.md
  • docs/devtools.md
  • docs/internals.md
  • docs/plans/api-parity.yaml
  • docs/plans/docs-media-coverage.yaml
  • docs/plans/evidence-freshness.yaml
  • docs/plans/lint-escalation.yaml
  • docs/plans/oracle-quality.yaml
  • docs/plans/test-closure-matrix.yaml
  • docs/plans/test-coverage-domains.yaml
  • docs/test-quality-workflows.md
  • docs/topology-status.md
  • polylogue/verification/manifests/models.py
  • tests/unit/architecture/test_topology_invariants.py
  • tests/unit/devtools/test_bead_cluster.py
  • tests/unit/devtools/test_lab_scenario.py
  • tests/unit/devtools/test_render_topology_status.py

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread CLAUDE.md Resolved
Sinity and others added 2 commits July 30, 2026 19:27
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
@Sinity
Sinity merged commit 98bbf25 into master Jul 30, 2026
2 of 3 checks passed
@Sinity
Sinity deleted the feature/chore/purge-meta-machinery branch July 30, 2026 17:48
@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

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.

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