Repository navigation
fix(release): preserve legacy gh log reads - #137016
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 1:29 AM ET / 05:29 UTC. ClawSweeper reviewWhat this changesThe PR retries an FRV GitHub Actions job-log read without Regression provenancePossible regression — probable (reviewed change; failure trace; known regression link). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 3 items remain Keep this member-authored, maintainer-labeled PR open for release-tooling owner approval. The introduced fallback is narrowly scoped, preserves protected reads and unrelated errors, and has no concrete correctness or security defect in review; the remaining decision is the intended support range for legacy Priority: P2 Review scores
Verification
How this fits togetherFull Release Verification reads GitHub Actions job logs before it can validate and rerun failed release jobs. This changes only the local GitHub CLI read used during that preflight, leaving later rerun mutations unchanged. flowchart LR
A[FRV recovery command] --> B[Job-log preflight]
B --> C[Protected GitHub CLI read]
C --> D{Legacy flag rejected?}
D -->|yes| E[Retry read without flag]
D -->|no| F[Propagate error]
E --> G[Validated job-log evidence]
C --> G
G --> H[Rerun decision]
Decision needed
Why: The fallback is technically narrow, but its retirement condition is an operational support-policy decision rather than a code-only conclusion. Before merge
Agent review detailsSecurityNone. PR surfaceTests +31, Other +19. Total +50 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the local exact-error fallback if the release-tooling owner confirms legacy Do we have a high-confidence way to reproduce the issue? Yes—source establishes that the previous unconditional flagged job-log read aborts before FRV rerun mutations when a legacy CLI rejects the argument; the supplied test harness exercises that exact command ordering. Is this the best way to solve the issue? Yes, contingent on the support-policy decision. The fallback is constrained to the known pre-dispatch CLI rejection and matches the existing release-summary handling pattern without altering unrelated failures. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a426ebae2169. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
The requested upstream boundary proof is now recorded in the PR body for exact head
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Release-tooling owner decision for exact head
This resolves the current ClawSweeper support-policy decision. No broader transient transport fallback or retry policy is accepted here. |
|
Merged via squash.
|
* commit '13b1f71c7010baaf2394555198e2fc04bef03586': (283 commits) fix(ui): retire stale MCP feedback across context changes (#128490) fix(agents): clarify set-identity workspace output (#126320) fix(auth): preserve OAuth metadata during session SDK refresh (#127988) fix(agents): recover catalog worker after generation mismatch (#127712) fix(memory-wiki): reject out-of-range claim confidence (#125656) ci: remove redundant contract runs and costly test work (#137220) fix(release): assert the Codex CLI pin the candidate declares (#137136) test(voice-call): reuse shared guards and deferred gates (#137262) fix(cron): isolate scheduler-disabled shared-store writes (#131733) fix(telegram): surface allowed custom reactions in react guidance (#129817) test(infra): reuse the shared npm call presence guard (#137254) fix: generated images disappear after failed tool calls (#131226) fix(docs): match source anchor checks to published sections (#137157) fix(backup): preserve audit capture across slow snapshots (#130962) fix(release): preserve legacy gh log reads (#137016) fix(memory-core): make forget rewrites atomic (#131383) fix(agents): write settings atomically (#131431) fix(plugins): keep the memory indexing runtime with the selected slot owner (#131779) fix(ci): pin iOS screenshot evidence to workflow revision (#136334) test(logging): remove redundant stderr spy casts (#137238) ... # Conflicts: # scripts/e2e/lib/codex-release-package-assertions.mjs
Related: #136856
What Problem This Solves
Fixes an issue where maintainers using
gh2.96 or older could not runpnpm frv continue --failedafter #136856 because the job-log preflight passed an unsupported--allow-escape-sequencesflag and aborted before any recovery mutation.Why This Change Was Made
The FRV client keeps the flagged, protected no-cache request as the primary path. It retries once without the flag only when stderr contains the exact standalone legacy-client line
unknown flag: --allow-escape-sequences; every other error is propagated unchanged.The fallback stays local to
scripts/frv.mjs. The protected PATH route,Cache-Control: max-age=0, transport classifier, workflows, timeouts, and rerun policy are unchanged. Remove this compatibility branch once maintainer environments requiregh >= 2.97.User Impact
Maintainers can recover failed FRV children with both ANSI-capable current
ghclients and legacy clients that predate the flag. No runtime product behavior changes.Evidence
cli/clisource: v2.96.0 has no--allow-escape-sequencesAPI flag; v2.97.0 adds the flag and permits raw non-JSON response bodies to bypass escape-sequence refusal.gh2.96.0 (f23a0c37...) exits 1 with the exact standalone lineunknown flag: --allow-escape-sequences; checksum-verified 2.97.0 (a58b8fd7...) accepts the samegh apiarguments and proceeds to authentication (exit 4 with no unknown-flag error). Releases were published July 2 and July 31, 2026, respectively.test/scripts/frv.test.tshad 45 passing cases and one expected failure. The legacy-client case stopped onunknown flag: --allow-escape-sequences, proving recovery aborted in preflight.24db7f902f0fc49fa2a3acdeee4e5892df8875f0:node scripts/run-vitest.mjs run test/scripts/frv.test.tspasses 46/46.node --check scripts/frv.mjs, focused Oxfmt, both changed-file Oxlint targets, test-root tsgo, coercion-helper guard, Docker E2E boundary guard, raw HTTP/2 guard, andgit diff --checkpass.check-changedinitially stopped because the GWT lacked nested workspace dependency links. After enabling the full checkout and linking the canonical workspace dependencies, the failed test-root typecheck and every remaining planned check passed.9c2000becddd95bf6637e25b43543c4d054ef772.Agent Transcript
Redacted Codex session transcript