Repository navigation
chore: delete the manual rebuild engine and the generic repair product - #4698
Conversation
…oute Ordinary daemon convergence (the raw-materialization drain) is the only build path. Removes maintenance/rebuild_index.py, sharded_rebuild.py, replay.py, reindex_canary.py, daemon/bulk_rebuild.py, the rebuild-index, rebuild-index-status and reindex-canary CLI verbs, the four daemon HTTP routes that served them, the daemon loop's bulk-rebuild routing, the devtools rebuild-safety scenario, and the writer-less active_rebuild_index_attempts readers; next-action prose points at `polylogued run`. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
…wner storage/repair.py's daemon-path closure (raw materialization conveyor, whale pass, backlog census, raw-authority frontier strategies) moves to storage/raw_convergence.py with RepairResult renamed RawConvergenceResult and repair_raw_materialization renamed converge_raw_materialization. The generic framework goes: REPAIR_HANDLERS, run_selected_maintenance, empty-session/superseded-snapshot/session-insight mutators, archive-debt previews and readiness vocabulary, maintenance planner/targets/replay/ failure_routing/envelope/registry/preview/cost_backfill/scope, the doctor --repair/--cleanup/--target/--preview/--vacuum flags, the maintenance plan/run/run-preview/preview/status CLI verbs, the daemon HTTP maintenance plan/run/status/operations routes, MCP maintenance preview/execute/status/list, the failures.jsonl status projection, and the blob-reference-closure mutation half. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
… for the sole route storage/index.py had no production caller; tests reach the FTS lifecycle owner through tests/infra/fts.py. docs/maintenance.md, cost-model, security, daemon, configuration, onboarding, atlas/mcp and the design inventory describe daemon convergence as the only build path. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
The inactive-candidate construction operation and its domain check plan existed only for the retired rebuild engine; nothing routed them. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
The blob-reference-closure suite proved the deleted mutation half. Its two tests that outlive it move to their owners: the exact-hash predicate proof to test_archive_verification.py (reached through verify_archive) and the append-merge position proof to test_attachment_relink.py (reached through write_parsed_session_to_archive). The archive-debt readiness component and MaintenanceCategory died with the repair product, so their readiness case goes; ArchiveDebtStatus is no longer a legacy readiness source. raw_authority.repair_materialization is converge_materialization. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
Post-merge follow-through for the repair/rebuild deletion. The archive-debt operation reads the blob limit from storage/raw_convergence. The layering baseline ratchets 297 -> 288: entries for deleted files go, and the two status readers' baselined edge follows the storage/repair rename. The stuck- source runbook points at commands that exist. Tests pin the retirement: the maintenance MCP tool neither declares nor dispatches preview/execute/status/ list, and the nine retired `ops maintenance` verbs fail discovery. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
mypy resolves a missing attribute but silently ignores a missing module, so imports of the deleted modules survived every static gate. The Codex 804 proof keeps acquisition, append planning, raw authority and both converge_materialization passes, and reads the archive convergence built; its crash/resume/promotion half went with the engine that drove it. The maintenance CLI registration suite keeps operation-recovery, blob-conservation and blob-integrity. The single-basis cost backfill and the maintenance failure-sample status projection have no route left. operation_ids guarded a path lookup that no longer exists, and rebuild_receipt has no caller. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
get_type_hints resolves the handler's operation Literal; inspect.signature returns the unevaluated string under postponed annotations, so the retired- operation assertion read an empty set. The status payload counts no maintenance failures, so its key leaves the expected projection and the count test goes with the projection it measured. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
…delete # Conflicts: # polylogue/maintenance/rebuild_index.py # tests/unit/maintenance/test_archive_verification.py
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team 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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 253f99cd0c
ℹ️ 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".
| if (root / ".index-active-pointer").exists(): | ||
| raise click.ClickException( | ||
| "reset --index is unsafe for a managed active generation; " | ||
| "use `polylogue ops maintenance rebuild-index` to create and promote a replacement" | ||
| "the pointer-managed index.db must not be deleted in place" |
There was a problem hiding this comment.
Provide a rebuild path for pointer-managed indexes
For an existing archive with .index-active-pointer whose active index has an older schema, both reset --index and reset --database now stop at this refusal, while daemon schema preflight classifies the mismatch as critical and parks the convergence loops. Since this commit also removes the only command that could create and promote a replacement generation, such archives have no supported way to reach the current schema without manually dismantling their topology. Preserve a daemon-owned replacement path before retiring the manual engine.
AGENTS.md reference: AGENTS.md:L76-L77
Useful? React with 👍 / 👎.
…delete # Conflicts: # docs/maintenance.md # polylogue/daemon/convergence_stages.py # polylogue/maintenance/blob_reference_closure.py # polylogue/storage/raw_convergence.py # tests/unit/maintenance/test_archive_verification.py # tests/unit/maintenance/test_rebuild_index_candidate_promotion.py # tests/unit/storage/test_attachment_relink.py
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
…delete # Conflicts: # docs/maintenance.md
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c576801489
ℹ️ 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".
Summary
Delete the manual rebuild engine and the generic repair product. Raw
convergence keeps one owner, the storage/index FTS shim and the
declared-not-routed candidate-build operation contract go with them, and the
maintenance docs are rewritten for the sole surviving route.
Problem
Two retired build paths stayed in the tree behind the production daemon route:
a manual rebuild engine with its own daemon bulk-rebuild entry point, and a
generic "repair" product whose CLI verbs (
preview,plan,run-preview,run,blob-reference-closure) duplicated convergence semantics the daemonalready owns. Derived read models converge from durable evidence; a standing
repair concept is a second truth.
Solution
CLI surface, the FTS shim, and the candidate-build operation contract.
converge_materializationand retargetevery proof and doc reference at it.
blob-dispositionand its documentation: the command survives, and anearlier revision of this branch dropped its only doc section.
tests/unit/daemon/test_daemon_cli.pypatches the globalpolylogue.config.load_polylogue_configseam.convergence_stages.pybindsthat name at module import, so a module first imported inside the patch
window keeps a partial
SimpleNamespacepermanently —monkeypatchonlyrestores
polylogue.config. Deleting the bulk-rebuild tests changed whichmodule imports first, so three daemon-startup tests began failing on
sinex_mode. The stand-in now resolves a realPolylogueConfigthroughcli_overrides, so it answers every key. No production change: the stagebuilder and both of its call sites are byte-identical to master.
Verification
devtools verify --quickon the final merged tree, re-run by the pre-pushhook on the pushed commit
c57680148— 14/14 gates ok (format, lint, mypy,generated-surfaces, layering, patterns, doc-commands, schema-manifest,
oracle-integrity, testmon-selection, consumer-reachability,
timestamp-doctrine, durable-enum-checks, schema-privacy).
devtools gate layering→"violations":[],"count":0,"baselined_count":288, "stale_baseline_count":0.devtools render all --checkreports noout of syncsurface.No focused pytest run executed against this head. Two attempts were
queued on the host's single pytest slot while the
pytestpueue group waspaused under backpressure; the first (task 1719) ended as
Killedwithoutrunning, the second was abandoned under quota pressure. The last focused run
on an earlier base gave 407 passed / 11 failed: four from the
converge_materializationrename and three from the config seam, all fixedhere; the remaining six were master's and landed on master as #4703.
Residuals
SimpleNamespacefakes at the samepolylogue.config.load_polylogue_configseam and carry the same leakhazard. Out of scope here.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid