Skip to content

Observe adapter errors before lifecycle serialization - #203

Merged
PLN merged 1 commit into
mainfrom
fix/lifecycle-error-observations
Sep 13, 2026
Merged

PLN merged 1 commit into
mainfrom
fix/lifecycle-error-observations

Conversation

@PLN

@PLN PLN commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Slow adapter error formatting or classification could hold lifecycle serialization, blocking snapshots and independent operations. Launch, cleanup, native-query, user-manager and operation completion now observe error text and classification before taking the decision lock. Identity and cancellation are rechecked when accepting the observation. Operation publication joins any concurrently accepted manager cancellation under the same lock, while preserving the observed protocol error.

Both new public lifecycle regressions fail on previous main: a partially created process with a blocked error formatter stalls independent start/stop and snapshots, and a blocked start-error classifier stalls cancellation. Twenty repetitions pass with the fix. Cleanup ownership, retained diagnostics and cancellation-before-publication are checked after releasing each delayed observation.

Validation: full uncached race suite passed (manager 59.834s, journal 46.218s), vet and Windows/Linux staticcheck passed. Three repetitions of the final ten-case cleanup/cancellation matrix passed. Documentation links and complete diff/privacy review passed. Exact source dd515c8bf09dbb8ca7a0682132920c520fa0a583 passed CI 34766883282 and all ten cases ten times per SYSTEM/headless standard-user identity (2.569s/1.121s), with no skips and full fixture cleanup. The binary/source hashes and retained raw evidence were verified. Full R2 writer and worker-class acceptance remains open.

@PLN
PLN merged commit 726c3a7 into main Sep 13, 2026
3 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