Repository navigation
Delete unconsumed devtools machinery - #4155
Conversation
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).
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 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: 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".
…lete-unconsumed-machinery
There was a problem hiding this comment.
💡 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".
|
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. |
|
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. |
Summary
devtools verify --quickclean,devtools test tests/unit/devtoolsgreen, anddevtools render all --checkin 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:Solution (deletion ledger, gross LOC deleted per packet)
Kept back from the original packet map, with reasons found during execution:
devtools/lineage_validation.pyand its dependencydevtools/index_snapshot.py(packet C) -- a real cross-import survives outside the deletion set:tests/unit/storage/test_topology_cycle_quarantine_live.pydoesfrom 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}.pyimportDEFAULT_REGRESSION_CASE_DIR/RegressionCase/RegressionCaseStorefrom it, andpipeline_probeis explicitly out of scope (ep3pz-owned). Onlyregression_capture.py(its own consumer-less wrapper) was deleted.devtools/benchmark_compare_nightly.py(packet D) -- restored after deletion..github/workflows/nightly-scale.yml'sscale-largejob runsdevtools bench nightly-compareon every scheduled nightly run;devtools verify ci-commandscaught the break on the first post-deletion verify pass. Module and itsCommandSpecare back.polylogue.maintenance.*product apply logic for the packet-A one-shots (and itstests/unit/maintenance/test_*_apply.pycoverage) 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 ondevtools/affordance_usage.py's_cli_action_rowsbeing 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 retiredthreads_ftsat 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-contextcatalog entry purely as a placeholder subcommand name for monkeypatch testing -- Click resolves subcommands from a group built at catalog-import time, so the test'sCOMMANDS-dict monkeypatch needs a name Click's group already knows. Repointed at the still-liveworkspace lineage-validation.docs/export.md's "Repeatable Local Packages" section, which only documented the now-deletedread-packagecommand, was removed.Verification
devtools test tests/unit/devtools(+ the packet's own touched product-adjacent tests) green,devtools verify --quickclean,devtools render all --checkexit 0 with no "out of sync" lines.devtools verify --quickclean (ruff format/check, mypy, render all, verify layering/ci-commands/doc-commands/schema-roundtrip/schema-versioning/oracle-integrity, schema promotion audit, schema privacy registry -- allok).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 pushran the repo's pre-push quick-verify hook automatically -- clean.Residuals
blocks_command_trigramschema-justification question noted above is left for a follow-up bead; not resolved here.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