Skip to content

Mutation-scope health - #282

Merged
davidabram merged 7 commits into
pi-mutation-scope-integrationfrom
doctor-mutation-scope
Sep 30, 2026
Merged

davidabram merged 7 commits into
pi-mutation-scope-integrationfrom
doctor-mutation-scope

Conversation

@davidabram

Copy link
Copy Markdown
Member

No description provided.

@davidabram
davidabram added this pull request to stack #240 September 18, 2026 21:37
@davidabram
davidabram force-pushed the doctor-mutation-scope branch 18 times, most recently from 6eec59e to 618505d Compare September 20, 2026 18:52
@davidabram
davidabram force-pushed the doctor-mutation-scope branch 2 times, most recently from 155fcb8 to 7adca5b Compare September 29, 2026 12:10
davidabram and others added 7 commits September 29, 2026 21:50
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
davidabram force-pushed the doctor-mutation-scope branch from 7adca5b to 4ef8189 Compare September 29, 2026 19:51
@davidabram
davidabram merged commit 27ff543 into main Sep 30, 2026
13 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant