Skip to content

Delete unconsumed devtools machinery - #4155

Merged
Sinity merged 5 commits into
masterfrom
feature/devtools/delete-unconsumed-machinery
Aug 25, 2026
Merged

Sinity merged 5 commits into
masterfrom
feature/devtools/delete-unconsumed-machinery

Conversation

@Sinity

@Sinity Sinity commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Deletes ~24K LOC of consumer-traced-dead devtools machinery in four packets, one commit each, per the standing one-shots-never-become-durable rule.
  • Each packet leaves the tree green: devtools verify --quick clean, devtools test tests/unit/devtools green, and devtools render all --check in sync after each commit.

Problem

An overseer audit (polylogue-9m6ry) traced every devtools module against CI workflows, docs, .agentctl/project.toml, cross-imports, and Beads, and found four classes of devtools machinery with no live consumer:

  • Packet A -- 12 completed one-shot sweep/apply repair pairs (their product-side fix already shipped; the devtools CLI wrapper is the only thing left).
  • Packet B -- campaign proof machinery (raw-authority restart/scale/daemon-health proofs, artifact census, cold-model continuity replay) with no CI or doc consumer.
  • Packet C -- orphan analytics/probes (affordance usage, cost reconciliation, failure context, read-package) with zero non-devtools importers.
  • Packet D -- bench estate (run-campaign, synthetic benchmark runtime, large-archive generator, scale-regression probe, daemon-live benchmark, regression capture, campaign archive location).

Solution (deletion ledger, gross LOC deleted per packet)

Packet Prod deleted Tests deleted Catalog entries removed
A: one-shot sweep/apply pairs ~2.2K ~2.8K (24 files: 17 modules + 1 whole test file + 2 mixed test files trimmed) 19
B: campaign proof machinery ~4.6K ~2.1K (7 test files) 4
C: orphan analytics/probes ~0.5K (net; see kept-back below) ~2.1K (4 test files) 4
D: bench estate ~1.7K ~0.6K (5 test files) 3

Kept back from the original packet map, with reasons found during execution:

  • devtools/lineage_validation.py and its dependency devtools/index_snapshot.py (packet C) -- a real cross-import survives outside the deletion set: tests/unit/storage/test_topology_cycle_quarantine_live.py does from devtools.lineage_validation import census_topology_links. Per the bead's own "stray importer → STOP" rule, both stay.
  • tests/infra/regression_cases.py (packet D) -- the bead's own stated precondition: devtools/pipeline_probe/{request,report}.py import DEFAULT_REGRESSION_CASE_DIR/RegressionCase/RegressionCaseStore from it, and pipeline_probe is explicitly out of scope (ep3pz-owned). Only regression_capture.py (its own consumer-less wrapper) was deleted.
  • devtools/benchmark_compare_nightly.py (packet D) -- restored after deletion. .github/workflows/nightly-scale.yml's scale-large job runs devtools bench nightly-compare on every scheduled nightly run; devtools verify ci-commands caught the break on the first post-deletion verify pass. Module and its CommandSpec are back.
  • polylogue.maintenance.* product apply logic for the packet-A one-shots (and its tests/unit/maintenance/test_*_apply.py coverage) is untouched -- the deleted devtools modules were thin CLI wrappers over that product code, not the logic itself.
  • benchmark_results.py, verify_slos.py (packet D lab-gate consumers), raw_authority_ledger/raw_authority_verdict* product tests (packet B), polylogue.insights.affordance_usage/polylogue.maintenance.raw_authority_artifact_census (different-namespace product modules that share a name with deleted devtools modules) -- all confirmed untouched.

Residual for a follow-up bead: blocks_command_trigram's v63 schema-lifecycle comment (polylogue/storage/sqlite/archive_tiers/index.py, polylogue/storage/sqlite/lifecycle.py) justified keeping that FTS5 index on devtools/affordance_usage.py's _cli_action_rows being a real consumer. That consumer is now deleted with no product-surface replacement, so whether the index itself is still justified (the same test that retired threads_fts at v63) is now an open question. Comments were updated to say so; dropping the index itself would be a schema migration, out of this packet's scope.

Also fixed in passing: tests/unit/devtools/test_devtools_main.py's dispatch test had incidentally borrowed the (now-deleted) workspace failure-context catalog entry purely as a placeholder subcommand name for monkeypatch testing -- Click resolves subcommands from a group built at catalog-import time, so the test's COMMANDS-dict monkeypatch needs a name Click's group already knows. Repointed at the still-live workspace lineage-validation. docs/export.md's "Repeatable Local Packages" section, which only documented the now-deleted read-package command, was removed.

Verification

  • Per packet: devtools test tests/unit/devtools (+ the packet's own touched product-adjacent tests) green, devtools verify --quick clean, devtools render all --check exit 0 with no "out of sync" lines.
  • After all four packets: devtools verify --quick clean (ruff format/check, mypy, render all, verify layering/ci-commands/doc-commands/schema-roundtrip/schema-versioning/oracle-integrity, schema promotion audit, schema privacy registry -- all ok).
  • devtools test tests/unit/devtools -- 880 passed, 3 warnings.
  • devtools test tests/unit/storage/test_raw_authority_ledger.py -- 59 passed (proves the kept product raw-authority semantics untouched).
  • git push ran the repo's pre-push quick-verify hook automatically -- clean.

Residuals

  • The blocks_command_trigram schema-justification question noted above is left for a follow-up bead; not resolved here.
  • The layering baseline (devtools verify layering) was not manually re-pinned; it passed as-is (shrinking is allowed by design, and this diff has no surface→substrate import growth).

🤖 Generated with Claude Code

Sinity added 4 commits August 25, 2026 21:38
Removes 12 completed one-shot devtools CLI wrappers (agent-meta-sidecar,
antigravity-phantom, attachment-reacquisition, binary-artifact,
raw-append-chain-backfill, raw-byte-duplicate-supersession,
raw-failure-disposition, raw-live-source-reconciliation,
raw-membership-writeback, raw-quarantine-group-dedup, tool-result-history,
unknown-export-reclassification), their 19 command_catalog.py CommandSpec
entries, and their dedicated devtools-side tests, per the
standing one-shots-never-become-durable rule (polylogue-9m6ry). The
underlying polylogue.maintenance product apply logic and its
tests/unit/maintenance/* coverage are untouched -- these devtools modules
were thin CLI wrappers. Two mixed test files
(tests/unit/storage/test_antigravity_phantom_sweep.py,
test_tool_result_history_sweep.py) keep their read-only scan/product-
semantics tests and lose only the devtools apply-actuator tests.
Removes the raw-authority restart/scale/daemon-health proof harnesses,
the raw-authority artifact census CLI, and the cold-model continuity
replay scenario (~4.6K prod, ~3K tests), plus their 4 command_catalog.py
CommandSpec entries -- completed campaign proof machinery with no live
consumer, per the standing one-shots-never-become-durable rule
(polylogue-9m6ry). Product raw-authority semantics
(tests/unit/storage/test_raw_authority_ledger.py,
test_raw_authority_verdict_cache.py, test_raw_authority_verdict_projection.py,
tests/unit/archive/test_raw_authority_verdict.py) are untouched and still
pass -- they live in polylogue.storage/archive, not devtools.
Removes affordance_usage, cost_reconciliation_probe, failure_context, and
read_package -- devtools CLI wrappers with no live product consumer (~4.5K
prod, ~2.5K tests), plus their 4 command_catalog.py CommandSpec entries and
the stale docs/export.md "Repeatable Local Packages" section that only
documented read-package. Also fixes test_devtools_main.py's dispatch test,
which had incidentally borrowed "workspace failure-context" as a
placeholder subcommand name (Click resolves subcommands from a group built
at catalog-import time, so the monkeypatched COMMANDS-dict entry needs a
name Click already knows) -- repointed at the still-live
"workspace lineage-validation".

Kept back from the packet-C list, per the "STOP on cross-import outside the
deletion set" rule: lineage_validation.py is a real import
(`from devtools.lineage_validation import census_topology_links`) in
tests/unit/storage/test_topology_cycle_quarantine_live.py, and
index_snapshot.py is lineage_validation's own dependency, so both stay.

Residual left for a follow-up bead: `blocks_command_trigram`'s v63 schema
comment (polylogue/storage/sqlite/archive_tiers/index.py,
polylogue/storage/sqlite/lifecycle.py) justified keeping that FTS5 index on
affordance_usage.py's `_cli_action_rows` being a real consumer -- that
consumer is now gone with no product-surface replacement, so whether the
index itself is still justified (the same test that retired threads_fts at
v63) is now an open question. Comments updated to say so; the index itself
is untouched here -- dropping it would be a schema migration, out of this
packet's scope.
Removes run_campaign, synthetic_benchmark_runtime, large_archive_generator,
scale_regression_probe, daemon_live_benchmark, regression_capture, and
campaign_archive_location (~2.1K prod, ~1.5K tests) plus their 3
command_catalog.py CommandSpec entries -- completed campaign/benchmark
scaffolding with no live consumer, per the standing
one-shots-never-become-durable rule (polylogue-9m6ry).

Kept back from the packet-D list against the initial plan:
benchmark_compare_nightly.py -- .github/workflows/nightly-scale.yml's
scale-large job invokes `devtools bench nightly-compare` as a real,
currently scheduled CI consumer (verify-ci-commands caught this on the
first verify pass after deleting it). Restored the module and its
CommandSpec.

Also kept per the bead's own precondition: tests/infra/regression_cases.py
has a non-bench importer -- devtools/pipeline_probe/{request,report}.py
(pipeline_probe is explicitly out of scope, ep3pz-owned) -- so
regression_cases.py stays; only regression_capture.py (its own
consumer-less devtools wrapper) is deleted. benchmark_results.py and
verify_slos.py are untouched (lab-gate consumers, per the bead).
@coderabbitai

coderabbitai Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 73c6e23c-d7f3-4871-b9e8-8584cf3e5120


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: a48502a575

ℹ️ 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".

@Sinity
Sinity merged commit d6d5462 into master Aug 25, 2026
3 checks passed
@Sinity
Sinity deleted the feature/devtools/delete-unconsumed-machinery branch August 25, 2026 20:30

@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: 0dd2f3cfde

ℹ️ 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".

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at bf68918):

Resolving every thread listed; confirmed defects are fixed under the named bead.

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at 5d56c3a):

Resolving every thread listed; confirmed defects are fixed under the named bead.

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