Skip to content

fix(prime): preserve turns through startup and restart snapshots - #577

Merged
rynfar merged 5 commits into
pylonfrom
test/prime-native-notice-acceptance
Sep 18, 2026
Merged

rynfar merged 5 commits into
pylonfrom
test/prime-native-notice-acceptance

Conversation

@rynfar

@rynfar rynfar commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

Prime turns could fail during Python startup or immediately after restart. Pylon rejected attributed setWorkingMessage updates, and a fast completed prompt could put both the submitted user message and its answer in the authoritative snapshot before their message events arrived.

Recognize working-message progress and clears through the existing status presentation. Recover the exact submitted prompt plus one terminal answer only under the same delivered, completed lifecycle, verified replay and current proof generation. Retain prompt/image matching, transcript overlap, no queued inputs, no streaming message and no unfinished tool calls. Malformed attribution, altered history and unproved ownership still fail closed.

The signed-artifact acceptance proof also executes and consumes a real background-command result without a redundant completion notice or extra model turn, retaining instance isolation and reconnect checks.

Validation: 339 focused tests passed, including adversarial completed-snapshot cases. Targeted lint and server typecheck passed. The native two-instance proof and managed install/update/rollback proof passed against independently verified immutable preview pylon-build-g3694cfef31d2-r2. The complete sequential local graduation suite subsequently passed all 33 tests with zero skips, including both restart modes. Protected graduation runs at https://github.com/pylon-code/pylon/actions/runs/35371860196/attempts/2 and remains required before stable approval.

Existing wire presentations serve web, desktop and mobile; no contract or migration change. Scope is Prime native mode. Other providers are unaffected. Final signed promotion and installed Nightly app/runtime delivery remain tracked in #557.

Implemented and reviewed with GPT-6 Astra in Pylon/Codex.

Protected final evidence: graduation attempt 2 passed 33/33 with zero skips; exact artifact ID 10559453910. Prime stable sequence 3 (pylon-stable-000003-g3694cfef31d2-r2) was published from these same verified bytes. Installed Electron required the separate digest compatibility fix in #641.

@vercel

vercel Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pylon-marketing Ready Ready Preview Sep 18, 2026 4:27pm UTC

@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful main measurement shown below.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 14.0 KiB 14.0 KiB +19 B (+0.1%) 15.1 KiB ✅
Codex Thread snapshot wire 7.2 KiB 7.2 KiB −11 B (−0.1%) 7.3 KiB ✅
Codex Live turn WebSocket wire 6.7 KiB 6.8 KiB +30 B (+0.4%) 7.8 KiB ✅
Codex Live turn WebSocket decoded 58.0 KiB 58.0 KiB +44 B (+0.1%) 66.4 KiB ✅
Codex Live turn messages 9 10 +1 (+11.1%) 21 ✅
Claude Total thread wire 14.0 KiB 14.0 KiB 0 B (0.0%) 15.1 KiB ✅
Claude Thread snapshot wire 7.2 KiB 7.2 KiB −1 B (−0.0%) 7.3 KiB ✅
Claude Live turn WebSocket wire 6.8 KiB 6.8 KiB +1 B (+0.0%) 7.8 KiB ✅
Claude Live turn WebSocket decoded 58.9 KiB 58.9 KiB +44 B (+0.1%) 66.4 KiB ✅
Claude Live turn messages 9 10 +1 (+11.1%) 21 ✅

Baseline: a85762e · PR result: 1ff50ce · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 115.6 KiB
  • Claude decoded thread snapshot: 116.3 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@rynfar rynfar changed the title test(server): exercise native background-result consumption fix(prime): preserve turns during Python startup and verify background consumption Sep 18, 2026
@rynfar
rynfar marked this pull request as ready for review September 18, 2026 16:03
@github-actions github-actions Bot added size:S and removed size:XS labels Sep 18, 2026
@rynfar rynfar changed the title fix(prime): preserve turns during Python startup and verify background consumption fix(prime): preserve turns through startup and restart snapshots Sep 18, 2026
@github-actions github-actions Bot added size:M and removed size:S labels Sep 18, 2026
@rynfar
rynfar merged commit 2b6007f into pylon Sep 18, 2026
20 checks passed
@rynfar
rynfar deleted the test/prime-native-notice-acceptance branch September 18, 2026 16:34

This branch was successfully deployed

1 active deployment
Preview — 1ff50ce5 Deployed Sep 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant