[gh-aw] Pin the `gh-aw` engine import to the #13915 merge commit so the workflows write large session frames whole

Merged
DS
16d ago
+324-77

This pull request was posted by Claude Code using claude-opus-5-5 on behalf of David.

Closes #13878

Why we make these changes

#13915 fixed the gh-aw engine's session-frame recorder so a frame larger than the capture pipe is written whole instead of failing the run with [Errno 11]. The workflow locks still inline the recorder from the engine revision .github/workflows/shared/engine-zai.md imports, c9c896e9f0, so CI kept the old recorder. This PR moves that import to b11b8984ab, #13915's merge commit, and recompiles the 12 locks with gh-aw v1.2.1, as #12960 did after #12818. The runtime pin 0.70.0 is unchanged.

New public surface

None.

User-visible behavior

Each recompiled pydantic-ai-*.lock.yml recorder (RECORDING_MODULE) writes each frame with #13915's write loop:

-output = os.fdopen(capture_fd, 'w', encoding='utf-8', closefd=False)
+output = os.fdopen(capture_fd, 'wb', buffering=0, closefd=False)
+capture_poller = select.poll()
+capture_poller.register(capture_fd, select.POLLOUT)
 ...
-    print(f'\\x1eGH-AW-SESSION/{sequence}/{signature} {payload}', file=output, flush=True)
+    write_line(f'\\x1eGH-AW-SESSION/{sequence}/{signature} {payload}')

Each lock otherwise changes only in the import pin, its frontmatter hash and comments. The compiler's cached import under .github/aw/imports/ moves to the new revision.

Verification

  • Two compiles with gh aw compile --action-mode action --action-tag v1.2.1 are byte-identical, and agentics-maintenance.yml equals main's.
  • Each of the 12 locks changes by +25/−6 lines, carries write_line and capture_poller.poll(), and no longer carries file=output, flush=True. The new cached import equals src/pydantic_ai_harness/gh-aw/pydantic.md at b11b8984ab.
  • agentic_workflow_guard.py check passes.
  • Live Pydantic AI Community Demand run 44402019466 from this branch passed. Its log shows the recorder with write_line and capture_poller.poll(). Its frame 5, assistant.reasoning, carries a 70,497 B payload in the agent artifact's agent-session.jsonl, so the signed frame exceeded the 65,536 B pipe that failed runs 44335212137 and 44341327034. All 29 frames arrived in sequence, and session.result is success.

Known next risk. In Community Demand runs 44335212137 and 44341327034, the long reasoning turn returned only thinking and hit finish_reason length. Such a run would now get past the frame write and fail with OutputTokenLimitExceeded instead. That is predicted from source, not yet observed. This PR changes no token budget.

What changes for existing users

Nothing. Only this repository's agentic workflows change.

PR decisions

2026-11-18 · Follow-up pin PR · iter -

  • Decision: Move the shared/engine-zai.md import to #13915's merge commit in a separate follow-up PR, as #12960 did
  • Why: A squash merge leaves branch commits off main; manager dispatch local-notes/dispatch-20261118T212241Z.md
  • Source: https://github.com/pydantic/pydantic-ai/pull/12960
  • Session: 9475ad63-bfcc-4342-a8db-1f84d50b5087

2026-11-18 · This PR closes #13878 · iter -

2026-11-18 · Not a flake fix · iter -

2026-11-18 · pre-push review 1 of 3 at e4709fd43abe24c8d70cdaf2ae515127a875117c · iter -

2026-11-18 · Reopened #13878 · iter -

2026-11-18 · pre-push review 1 of 3 at e4709fd43abe24c8d70cdaf2ae515127a875117c · iter -

2026-11-18 · Thinking-only length risk left out · iter -

  • Decision: Skip: no token-budget change and no follow-up issue; the PR body names it as a known next risk. A Community Demand run that fails with OutputTokenLimitExceeded opens an incident the ci-health lane takes then
  • Why: Prediction, not an observed failure; a token-budget change needs David's own limit. Manager dispatch local-notes/dispatch-20261118T214420Z.md
  • Source: https://github.com/pydantic/pydantic-ai/pull/13924
  • Session: 9475ad63-bfcc-4342-a8db-1f84d50b5087

2026-11-18 · Step 7 second opinion: none · iter -

  • Decision: No additional review surface for PR 13924
  • Why: Overmanager's pick via /home/agent/pydantic/ai/manager/local-notes/dispatch-20261118T215249Z.md: generated lockfiles plus a one-line pin; #13915 reviewed the code it pulls in. Manager dispatch local-notes/dispatch-20261118T215302Z.md
  • Source: https://github.com/pydantic/pydantic-ai/pull/13924
  • Session: 9475ad63-bfcc-4342-a8db-1f84d50b5087

2026-11-18 · final metadata check at e4709fd43a · iter -

  • Decision: kept: mirror the Step 7 decision in the body's PR decisions. rejected: add area:gh-aw
  • Why: area:gh-aw: the diff changes no engine code (src/pydantic_ai_harness/gh-aw/pydantic.md untouched), only this repo's workflow sources and locks; skill: 'Choose the subsystem whose code changes', catalog: 'Engine code is area:gh-aw'; #12960 rejected the same
  • Source: https://github.com/pydantic/pydantic-ai/pull/12960
  • Session: 9475ad63-bfcc-4342-a8db-1f84d50b5087

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
  • PR title is fit for the release changelog.

https://claude.ai/code/session_01HhQjZBeLLfHNyg5ixiyNaG


Summary by cubic

Fixes the gh-aw session-frame recorder so frames larger than the capture pipe are written whole, instead of failing agentic workflow runs with [Errno 11] (#13878).

  • Pins the engine import in shared/engine-zai.md to b11b8984ab (#13915's merge commit) and recompiles all 12 pydantic-ai-*.lock.yml files with gh-aw v1.2.1.
  • Each recompiled lock writes frames with a loop that handles partial writes and waits for the reader to make room when the pipe is full.
  • No user-facing changes; the runtime pin 0.70.0 is unchanged.