Skip to content

Harden Pi native session v3 projection (GEN-2139) - #191

Merged
exe-dev-github-integration[bot] merged 1 commit into
mainfrom
gen-2139-pi-session
Oct 9, 2026
Merged

exe-dev-github-integration[bot] merged 1 commit into
mainfrom
gen-2139-pi-session

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

Pi's native session projection dropped tool-result links and compaction/branch boundaries, and retained unbounded tool arguments. Support the deployed @earendil-works/pi-coding-agent 1.1.0 session v3 contract, preserve native tree provenance separately from tool-call IDs, and project documented message blocks, usage, bash execution, prompt patches, context edits and structural metadata.

Keep native_session as Pi's primary artifact with CLI/format version receipts. Check the CLI version before launch so image drift fails explicitly. Bound arguments/results and extension metadata, omit image bytes and replay signatures, and retain future records as safe metadata. Document historical best-effort parsing without rewriting artifacts.

Versioned fixtures include every documented entry type and native JSONL captured from the deployed binary using a local deterministic model. Tests cover linked tool calls/results, sibling branches, compaction boundaries, streaming equivalence, live chunk retries, legacy fallback, malformed records and display bounds.

Validation: npm run check (workspace API boundary checks, TypeScript, tests and Worker dry-run builds); targeted Pi/live trace tests; git diff --check. Optional database-dependent tests require AUTH_TEST_DATABASE_URL and are skipped locally.

Closes GEN-2139.

@linear

linear Bot commented Oct 9, 2026

Copy link
Copy Markdown

GEN-2139

@exe-dev-github-integration
exe-dev-github-integration Bot added this pull request to the merge queue Oct 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Oct 9, 2026
@exe-dev-github-integration
exe-dev-github-integration Bot added this pull request to the merge queue Oct 9, 2026
Merged via the queue into main with commit 4041605 Oct 9, 2026
2 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