Skip to content

fix(coding-agent): preserve SDK recovery event cursors - #63

Merged
rynfar merged 1 commit into
pylonfrom
fix/recovery-event-cursors
Sep 12, 2026
Merged

fix(coding-agent): preserve SDK recovery event cursors#63
rynfar merged 1 commit into
pylonfrom
fix/recovery-event-cursors

Conversation

@rynfar

@rynfar rynfar commented Sep 12, 2026

Copy link
Copy Markdown

Pylon could finish a native conversation but reject its transcript after an idle restart: the public Prime SDK dropped the event cursor, leaving durable recovery progress behind the saved messages. Accepted session and prompt-lifecycle events now carry their original cursor through the existing validation path.

The regression covers message completion, lifecycle delivery, stale/duplicate/foreign events, retired generations, invalid attribution, and cursorless legacy events. All 226 focused tests and npm run check pass; the regression fails without the fix. No daemon wire, SDK feature token, artifact recipe, or publication policy changes. Publication must produce new immutable SDK bytes.

Fixes #62. Part of pylon-code/pylon#114. Maintainer authorization to finish the necessary fixes, reviewed green merges, and managed publication is recorded in the owning Pylon task.

Independent adversarial checkpoint review passed at 5defac13059ba2707cf62c03f0108bfd8a88ca5f. The review confirmed that stale, foreign, retired-generation and invalid-attribution events remain excluded before cursor metadata reaches subscribers.

Model: GPT-6. Harness: Codex.

@rynfar
rynfar merged commit 65d9c02 into pylon Sep 12, 2026
24 checks passed
@rynfar
rynfar deleted the fix/recovery-event-cursors branch September 12, 2026 07:16
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.

fix(coding-agent): preserve SDK recovery event cursors

1 participant