Repository navigation
Conversation
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 1e2c5a09fbf4225de6acfd0a447bddd488671bf4, 58.7s: request_changes (0 critical, 1 important, 2 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| return 0 | ||
|
|
||
|
|
||
| def _check_failure_preview(tail: str, limit: int = 1536) -> str: |
There was a problem hiding this comment.
important: Failure preview silently drops long lines, including the final error, and adds no omission marker
When the tail is over 1536 bytes, _check_failure_preview removes every line longer than 768 bytes, wherever it is, then keeps the last 1536 bytes. Nothing in the output shows where lines were removed. Many real failures end in one long line, such as a pytest AssertionError: assert {...} == {...}, a compiler diagnostic or a JSON error. That line is dropped, and the terminal shows the earlier lines as if they were a continuous tail. Only the fixture's short final line survives. The only pointer to the full text is the Full diagnostic tail line. That line is not printed when the head moved or the receipt write fails, which happens after printing. In those cases the dropped text is lost from the transcript, whereas before the change all 40 lines were printed. The byte slice can also start partway through a line.
Smallest fix: keep the lines in order and shorten each long line in place, keeping its start and end around a [... N bytes omitted] marker, instead of deleting it. Always keep the last non-empty line. When the cut-off is not at a line boundary, start the preview with a marker. Add a test where the oversized line is the final error line.
| while not stopped.wait(delay): | ||
| status(f"stage {ordinal}/{total}: running " | ||
| f"({time.monotonic() - started:.1f}s elapsed)") | ||
| delay = 300.0 |
There was a problem hiding this comment.
suggestion: The five-minute heartbeat interval is a hard-coded number that tests cannot change
delay = 300.0 is a bare literal inside heartbeat(), while the first delay is the module constant FIRST_HEARTBEAT_DELAY. The sandbox tests now only exercise the first heartbeat. A later edit to the repeat interval would not show up in a named constant, and tests could not shorten it. Add a constant such as HEARTBEAT_INTERVAL = 300.0 next to FIRST_HEARTBEAT_DELAY and use it here.
| if readiness is not None and args.wait is not None and _pending_checks(config, pr, readiness): | ||
| # One waiter and one deadline span source checks and landing: a check created | ||
| # by the ready transition must not end the turn between `ready` and the queue. | ||
| # Share the merge deadline with checks scheduled after readiness. |
There was a problem hiding this comment.
suggestion: Unrelated cleanup removes explanatory comments and docstrings
The diff also removes or shortens comments that explain why the code works as it does:
_wait_for_checksloses its docstring, which said readiness is omitted for an allowed merge.- The
_pending_checksdocstring no longer says that a skipped result from draft CI is why skips are allowed. - The merge comment no longer says that a check created by the ready transition must not end the turn between
readyand the queue. - The missing-run comment no longer says that missing runs do not prove no workflow was scheduled.
It also makes one-line rewrites that are not needed for this task, such as the env merge, the walrus in cmd_check and the long cmd_ready condition. None of this changes behaviour, but it makes the diff noisier and removes the reasoning behind non-obvious wait rules. Keep the original wording, or move this cleanup to a separate change.
Architecture-Review: unchanged; the bounded preview now marks truncation and keeps excerpts of long lines Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; preserves guarded receipt publication and the documented output cadence Co-Authored-By: Codex <noreply@openai.com>
Bound check failures and elapsed-time updates
Context and goal
Refs #1086
Refs #1084
Acceptance
Notes
Transcript size
Base
Base: 52ddf36
Validation
(no
loopzero checkrun recorded)Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review