perf(code-index): delta-seal reuse via generation-independent identities (#800) - #1336
Conversation
|
|
Drain: HOLD pending focused delta-seal / partitioned_codec verify on exact head |
Revision 11 persists generation-independent symbol identities on each file-segment descriptor so one-file seal reuse can compare key lists without rematerializing occurrence digests. Revision 10 abstains as SupersededSealedGenerationRevision and rebuilds. Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Reuse must compare sorted unique symbol identity lists for equality, not subset membership, so a richer prior descriptor cannot be carried forward under an unchanged capture row. Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
c2a12fa to
46d4f05
Compare
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. |
fbb7aca
into
codex/tracedecay-total-redesign-plan-reopened
Performance Comparison
|
Summary
symbol_identitieson each partitioned file-segment descriptor and rebind occurrences at restore, so one-file seal reuse no longer SHA-256-rebounds every unchanged file's symbols.SEALED_GENERATION_FORMAT_REVISION_V110 → 11. Revision 10 abstains asSupersededSealedGenerationRevision(rebuild); never silent migrate.chore(campaign): wip snapshot 20260915T204220Zonagent/800-delta-seal(merged onto current base tip).Motivation
Issue #800: one-file sync still did repository-sized work in the seal reuse gate via
rematerialized_symbol_occurrence_id(316k digests at 4,160 files in prior Hotpath). Capture/segment publish were already delta-proportional; this is the remaining encode-side design slice.Changes
PartitionedFileSegmentDescriptorV1: persistsymbol_identities;symbol_occurrencesis restore-only (#[serde(skip)]).SEALED_GENERATION_FORMAT_REVISION_V1 = 11with typed refusal coverage for revision 10.Hotpath evidence (small-scale, this host)
domain.canonical.sha256calls46698151a46698151aTreatment is constant across 4× repo growth. Logs under agent store
internal/long-tail/800/.Test plan
production_orchestration::partitioned_encode_publishes_only_the_edited_file_segmentproduction_orchestration::partitioned_*including stable bytes / rev-10 refusalproduction_orchestration::(49) +sealed_generation_restore::(5)format_gate_accepts_only_the_monolithic_and_partitioned_revisionscodex/tracedecay-total-redesign-plan-reopened(not master); close perf(code-index): make incremental capture and seal delta-proportional #800 with evidenceNotes
CARGO_TARGET_DIR/TRACEDECAY_DATA_DIR(never~/.tracedecay).