Repository navigation
Mutation-scope health - #282
Merged
Merged
Conversation
davidabram
added this pull request to stack #240
September 18, 2026 21:37
davidabram
force-pushed
the
doctor-mutation-scope
branch
18 times, most recently
from
September 20, 2026 18:52
6eec59e to
618505d
Compare
davidabram
force-pushed
the
doctor-mutation-scope
branch
2 times, most recently
from
September 29, 2026 12:10
155fcb8 to
7adca5b
Compare
Document the need for `sce doctor` to surface persisted mutation-scope runtime health instead of exposing only hook registration state. Define the shared status contract, adapter-owned classification investigations, doctor rendering requirements, and validation/context synchronization work while keeping recovery behavior unchanged. Plan: doctor-mutation-scope-health (T01–T06) Co-authored-by: SCE <sce@crocoder.dev>
Define shared Healthy, Recovering, Blocked, and Invalid statuses plus a per-adapter reason and detail record, and register the new module for upcoming doctor classification work. Record completion of T01 in the doctor-mutation-scope-health plan. Plan: doctor-mutation-scope-health (T01) Co-authored-by: SCE <sce@crocoder.dev>
Expose a read-only health classifier so doctor checks can distinguish healthy, recovering, blocked, and invalid persisted mutation-scope state. Treat unresolved recovery attempts as blocked because the recovery barrier cannot self-clear while attempts remain, and surface state read errors as invalid. Ref: context/plans/doctor-mutation-scope-health.md (T02) Co-authored-by: SCE <sce@crocoder.dev>
Surface Codex recovery-state combinations through the shared health vocabulary so doctor can distinguish normal lifecycle state, self-healing recovery, persistent admission blockage, and invalid persisted state. The read-only classifier is backed by behavioral tests that drive real admission, recovery, and failed-cleanup paths, including repeated global denial for unresolved attempts and orphaned flush reclamation. Plan: `context/plans/doctor-mutation-scope-health.md` (T03) Co-authored-by: SCE <sce@crocoder.dev>
Classify persisted OpenCode adapter state as healthy, recovering, blocked, or invalid, including stale PendingStart and structurally impossible PendingAbandon states. Exercise the real dispatch and recovery paths with focused tests, and document the state mapping for doctor integration. Ref: doctor-mutation-scope-health T04 Co-authored-by: SCE <sce@crocoder.dev>
Classify persisted Pi adapter state as healthy, recovering, or invalid, including dead-owner attempts and structurally impossible PendingAbandon states. Exercise the real dispatch and recovery paths with focused tests, and document the state mapping for doctor integration. Plan: `context/plans/doctor-mutation-scope-health.md` (T05) Co-authored-by: SCE <sce@crocoder.dev>
Expose each configured or detected adapter's read-only health classification in doctor text and JSON output. Map recovering, blocked, and invalid states to stable problem categories and readiness, while preserving manual-only remediation for persisted recovery state. Implements `doctor-mutation-scope-health` T06 and synchronizes its operator contracts. Co-authored-by: SCE <sce@crocoder.dev>
davidabram
force-pushed
the
doctor-mutation-scope
branch
from
September 29, 2026 19:51
7adca5b to
4ef8189
Compare
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.
No description provided.