fix: bootstrap active Inspector derived access - #656
Merged
Conversation
Start the existing derived lifecycle rebuild in the background when an explicitly active Inspector opens without a current generation. Keep authoritative truth read-only, preserve typed availability during publication, and cover the first-start path through the real Inspector process.
Allow the asynchronous first-start proof to keep polling while the full parallel suite saturates the host. The guard remains finite and still fails with the last typed availability state.
Allow the real Inspector first-start proof to observe the documented rebuild-required interval between generation promotion and publication. It still requires the background worker to converge to a 200 current response.
Keep a single background rebuild worker alive through cross-process lease contention and truth changes. Trigger recovery from typed route reads so a running Inspector converges after out-of-band writes and sidecar failures without requiring a restart.
Revalidate quarantine decisions under the canonical writer lock, stabilize generation publication reads, and keep ordinary catch-up out of the full-rebuild path. Convert transient read failures into typed availability and document the background recovery state machine.
Retry one read when lifecycle publication becomes current after the initial open selection, and prevent unavailable responses from serializing the current state without a usable payload.
Sweep lease files only after their immutable generation is absent and no reader holds the lock. Throttle repeated writer-idle confirmation and document the recovery and quarantine invariants so future lifecycle changes preserve them.
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
Validation
just check— 3,149 passed, 5 skippedjust lint,just fmt, andgit diff --checkIndependent review accepted the final revision with zero open requests.