Repository navigation
refactor(code-index): type the freshness observation ladder - #1517
Closed
ScriptedAlchemy wants to merge 4 commits into
Closed
ScriptedAlchemy wants to merge 4 commits into
ScriptedAlchemy wants to merge 4 commits into
Conversation
One projector owns staleness, coverage, and rebuild-in-flight so the two serving reads cannot diverge, and a terminal publication park is the shared slot rather than a worker-local bool. Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
|
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tracedecay-contractsnow owns staleness, coverage, andrebuild_in_flight. A park withretries_on_wake = falsecannot look like a racing rebuild.This lands into
codex/tracedecay-total-redesign-plan-reopened(#707). It does not target master.Motivation
Types and shared state had not converged. Callers matched English tokens (
"fresh","verifying","complete"), and two serving-read paths could drift. The worker-localpublication_authority_terminalflag was a second latch that admission did not share.Changes
CodeIndexStalenessStateV1andCodeIndexFreshnessCoverageV1are the wire vocabulary (same snake_case tokens).CodeIndexFreshnessLadderV1::project.publication_authority_is_terminalon the shared slot.3e6167b265: dropped the removedchanges.reusedlist, kept the singleNotApplicableadmission arm, kept tip clippyclone_intoon park remediation.Test plan
cargo check -p tracedecay-contracts -p tracedecay-code-index-runtime -p tracedecay-mcp -p tracedecay-dashboard-api -p tracedecay-cli -p tracedecay --testscargo clippyon those packages--all-targets -- -D warningscargo test -p tracedecay-contracts --lib code_index_freshness::tests(12 passed)cargo test -p tracedecay-code-index-runtime --lib planted_terminal_publication_park_suppresses_later_wakes(1 passed)npm run contracts:checkand SDK codegen diff limited to the staleness enumIndexFreshness/CompareView/ observatory unit tests (41 passed)cargo nextest run --workspacenot run hereChecklist
CHANGELOG.mdupdated (wire tokens unchanged; new closed variants only).envfiles included