Repository navigation
docs: state the derived-tier identity regime that replaced delta classes - #4702
Conversation
CLAUDE.md and docs/internals.md still described the deleted storage/sqlite/lifecycle.py, its per-version delta classes, and the index fast-forward executor as the derived-tier schema regime. They are the files an agent reads to classify a schema change before editing, so the stale text routes work toward a mechanism that no longer exists. Also corrects the generated message_id formula in four places: it grew n:/p: prefixes and a companion identity_source column, and every copy still showed the old COALESCE form. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
|
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: ef48daf169
ℹ️ 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".
|
Codex review threads on this PR whose cited code is gone (checked against master at 23f91a5):
Resolving these threads. |
|
Closing out open Codex review threads on this PR (evidence checked against master at ef10e59):
Resolving the fixed, stale and refuted threads; tracked threads stay open. |
|
Closing out open Codex review threads on this PR (evidence checked against master at f88b4a6):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
Summary
CLAUDE.md and
docs/internals.mddescribedstorage/sqlite/lifecycle.py, its per-version delta classes, and the index fast-forward executor as the current derived-tier schema regime. All three were deleted when the identity-hash regime landed. This replaces that text with what the code does now, and corrects the generatedmessage_idformula in the four places that still carry the pre-identity_sourceform.Problem
CLAUDE.md's "Schema regimes" paragraph and
docs/internals.mdlines 127-210 are what an agent reads to classify a schema change before editing, and they named a mechanism that no longer exists:polylogue/storage/sqlite/lifecycle.py— gonepolylogue/storage/sqlite/archive_tiers/index_fast_forward_executor.py— gonedevtools/index_fast_forward.py— goneFive further references cited the deleted module as the authority for individual version transitions. The practical cost is a wrong cost model: the old text says a derived-tier change is a cheap classified delta, when at head every derived-schema edit moves
derived_schema_identity()and forces a full reconvergence.Separately,
messages.message_idgainedn:/p:prefixes and a companionidentity_sourcecolumn. Four documents still showedCOALESCE(native_id, position||'.'||variant_index), which is a load-bearing formula CLAUDE.md tells readers to know cold.Solution
docs/internals.md: replace the derived-tier, fast-forward-executor and ownership-map blocks with the identity-hash regime; correct the two descriptions of whatdevtools verify schema-manifestenforces; drop the deleted-module citations from the version-history entries while keeping their semantic content.message_idformula in CLAUDE.md,docs/schema.mdanddocs/material-protocol-v1.md, notingidentity_source.Classification
Metadata-only. No DDL, no migration, no tier version, no code. The existing durable archive at
/realm/state/polylogueis untouched.Verification
green, including
gate schema-manifest ... okandgate doc-commands ... ok.Each deleted-path claim was checked against the filesystem rather than inferred:
lifecycle.py,index_fast_forward_executor.pyanddevtools/index_fast_forward.pyare all absent at HEAD. The replacement text's anchors were read at head —schema_identity.py:derived_schema_identity(),schema_bootstrap.py:assert_derived_schema_identity,verify_schema_manifest.py:_durable_ddl_evolution_violations.Residual risk
Documentation only, so no runtime behavior changes. The remaining risk is the reverse of the one fixed: the version-history entries below the regime section still enumerate index versions 37-94, which describe derived archives the restart destroys. They are left in place here because several carry live semantic facts (which event kinds stopped materializing, which tables became views); pruning them is a judgment call that belongs with the restart, not with this correction.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid