Forward-port the #2161 close-report reviewer-gate stdin + empty-skip fix onto dev-factory main (builds on #2156; gates #1684) #2163

Open
opened 2026-11-04 15:41:33 +00:00 by matou-build-agent · 0 comments

The #2161 fix — (1) feed the close-report independent-reviewer prompt to claude -p on stdin (< "$prompt_file") instead of as a single argv argument, removing the MAX_ARG_STRLEN (~128 KiB) exec-failure ceiling, and (2) classify an absent/empty reviewer result file as can-not-run → SKIP (verdict unauthenticated) rather than malformed (fail CLOSED) in _cr_review_is_auth_error — landed on the dev-factory backport branch backport/idss-2161 (SHA 472d5636cbc64ae56487a4aeee3cdd9c53b662eb, off the current pin ea75077899) and was re-vendored into idss at FACTORY_REF 472d5636 (idss main 6df89b67).

dev-factory main is LANDING=pr, so this needs a human-merged PR to forward-port — hence ready-for-human.

Files (dev-factory root): close-report.sh, close-report-lib.sh, tests/close-report-lib-test.sh, tests/close-report-test.sh.

Dependency: the backport branch backport/idss-2161 is built on top of backport/idss-2155 (ea75077899), so this forward-port sits on top of #2156 (the #2155 forward-port). Land #2156 first, or cherry-pick the chain in order (#2155 → #2161) onto dev-factory main. Part of the #1684 / #2053 forward-port debt.

Proof on the backport branch: TDD red-before-green; close-report-lib (81) + close-report (142) suites pass; drift gate OK after re-vendor.

The #2161 fix — (1) feed the close-report independent-reviewer prompt to `claude -p` on **stdin** (`< "$prompt_file"`) instead of as a single argv argument, removing the `MAX_ARG_STRLEN` (~128 KiB) exec-failure ceiling, and (2) classify an **absent/empty** reviewer result file as can-not-run → SKIP (verdict `unauthenticated`) rather than `malformed` (fail CLOSED) in `_cr_review_is_auth_error` — landed on the **dev-factory backport branch** `backport/idss-2161` (SHA `472d5636cbc64ae56487a4aeee3cdd9c53b662eb`, off the current pin `ea75077899`) and was re-vendored into idss at FACTORY_REF `472d5636` (idss `main` `6df89b67`). dev-factory `main` is `LANDING=pr`, so this needs a human-merged PR to forward-port — hence `ready-for-human`. **Files** (dev-factory root): `close-report.sh`, `close-report-lib.sh`, `tests/close-report-lib-test.sh`, `tests/close-report-test.sh`. **Dependency:** the backport branch `backport/idss-2161` is built on top of `backport/idss-2155` (`ea75077899`), so this forward-port sits on top of **#2156** (the #2155 forward-port). Land #2156 first, or cherry-pick the chain in order (#2155 → #2161) onto dev-factory `main`. Part of the #1684 / #2053 forward-port debt. **Proof on the backport branch:** TDD red-before-green; `close-report-lib` (81) + `close-report` (142) suites pass; drift gate OK after re-vendor.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#2163
No description provided.