Skip to content

check: parity S02 (Pi output boundary) and S08 (OpenCode helper turns) - #291

Merged
ualtinok merged 3 commits into
mainfrom
check/parity-s02-s08
Nov 23, 2026
Merged

ualtinok merged 3 commits into
mainfrom
check/parity-s02-s08

Conversation

@oaiauth-alfonso

@oaiauth-alfonso oaiauth-alfonso Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Check branch for the full CI matrix before main.


Summary by cubic

Implements S02 and S08 parity so Pi routes on the first real output and OpenCode keeps helper turns separate from the primary turn.

Pi output boundary (S02)

  • Holds lifecycle events until the first output or terminal event before routing; vault billing uses the same boundary.
  • An abort after an empty start is now failed instead of cut; non-empty deltas still report cut.

OpenCode helper turns (S08)

  • Tracks the latest primary turn separately from each transport's history; helpers borrow it or get a throwaway turn before the first primary.
  • Keeps OC1 helper socket history separate and ignores OC2 helper completions for frame-turn tracking.
  • Updates HTTP and frame turn tests to pin the borrowed turn and unchanged primary continuation.

Written for commit 8d50884. Summary will update on new commits.

View guided diff Turn on auto-fix

Use the same output boundary for routing and vault billing. The old OA-60 witness only asserted a start event; the replacement proves that a text delta reached Pi before the late error, with no wait, decision, or second send. An abort after only text_start and an empty delta is now failed rather than cut; the non-empty-delta control still reports cut.
Track the most recent primary turn separately from each transport’s history. Helpers borrow it or get a throwaway turn before the first primary. Keep OpenCode 1 helper socket history separate and ignore OpenCode 2 helper completions for frame-turn tracking.

Replace the old HTTP and frame byte expectations that encoded helpers advancing the primary turn: the new literals pin the borrowed turn and unchanged primary continuation. Add primary-only controls and helper-first and incomplete-primary regressions.
@ualtinok
ualtinok merged commit 8d50884 into main Nov 23, 2026
9 checks passed
@ualtinok
ualtinok deleted the check/parity-s02-s08 branch November 23, 2026 16:25
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