Skip to content

pipeline lab: scenario rows name their capture origin; reconnect-gap and never-lands Finish scenarios - #26309

Merged
Git-on-my-level merged 2 commits into
lane/pipeline-lab-scenariosfrom
lane/pipeline-lab-scenarios-origin
Nov 25, 2026
Merged

Git-on-my-level merged 2 commits into
lane/pipeline-lab-scenariosfrom
lane/pipeline-lab-scenarios-origin

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #26303, stacked on lane/pipeline-lab-scenarios. It covers the P3 lab gap from the review of #26304.

Change

  • Batch rows name their capture origin. The scenario writer now stamps external_data.recording_origin_id (scenario-origin-<origin label>) next to the session id, as listen does for every generation of one client recording. Before this, scenarios could not exercise any rule keyed on the capture origin.
  • New synthetic scenario finish_after_long_reconnect_gap.
    • Recording A runs 0-64 s and its transcript lands late. After a 360 s reconnect gap, longer than the 300 s silence gap, recording B runs 424-449 s under the same origin with a new session, and the user taps Finish at 447 s.
    • Expected: the Finish conversation holds A and B, is visible and is a manual end, and no hidden conversation holds A. This tests the reconnect rule on its own: without it, the gap alone splits A off.
  • New synthetic scenario finish_transcript_never_lands.
    • The incident capture with fast finish off. B's batch transcript never lands; A lands inside the Finish wait.
    • Expected: the Finish conversation holds A and F, is a manual end and is visible.
  • Both scenarios carry a strict expected_failure until v3: Finish waits for a predecessor's pending transcript; a stream gap is not silence #26304 lands. tests/unit/test_pipeline_lab_scenario.py pins the long-gap shape and the origin and session on batch rows.

All ids, uids and text are synthetic.

Evidence

Command: python -m testing.pipeline_lab scenario run finish_after_reconnect_late_transcript finish_single_recording_fast finish_after_long_reconnect_gap finish_transcript_never_lands.

scenario this branch (main code) with #26304 merged locally
finish_after_reconnect_late_transcript XFAIL XPASS (F+B+A, 233 w, manual_end, visible)
finish_single_recording_fast PASSED PASSED
finish_after_long_reconnect_gap XFAIL (A hidden; B alone) XPASS (B+A, 230 w)
finish_transcript_never_lands XFAIL (F manual; A hidden) XPASS (F+A, 163 w)

Lab gap, not fixed here: a device-sync fragment whose age already exceeds the lock delay when it lands, before the Finish recording's cut is stored, locks by the ordinary rule. The long-gap scenario therefore has no fragment.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

Git-on-my-level and others added 2 commits November 25, 2026 11:29
…ever-lands Finish scenarios

- ScenarioOps writes external_data.recording_origin_id on batch rows, as listen
  stamps every generation of one client recording, so the v3 reconnect rule
  (same origin, new session, same device) is exercised.
- finish_after_long_reconnect_gap: the incident's capture with a 360 s stream
  gap, longer than the 300 s silence gap; only the reconnect rule joins A and B.
- finish_transcript_never_lands: fast finish off and B's batch transcript never
  lands (from the review of #26304); the cut must survive the Finish wait.
Both are strict expected failures on main until the v3-finish-late-predecessor
fix (#26304) lands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An aged sync fragment that lands before the Finish cut is stored locks by the
ordinary lock delay, a separate rule; the scenario keeps to A and B.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T17:01:36.170305Z fa7047d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit 6460da0 into lane/pipeline-lab-scenarios Nov 25, 2026
31 of 32 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/pipeline-lab-scenarios-origin branch November 25, 2026 20:19
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