Skip to content

Bound check failures and elapsed-time updates - #1748

Merged
mergify[bot] merged 3 commits into
mainfrom
lean178/1086-check-output-r50
Nov 26, 2026
Merged

mergify[bot] merged 3 commits into
mainfrom
lean178/1086-check-output-r50

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Bound check failures and elapsed-time updates

Context and goal

  • Goal: Keep the failure cause and receipt identity visible while keeping check output short.
  • Problem: Long structured failure lines and unchanged 30-second heartbeats dominate transcripts.
  • Context: An oversized failure preview clips long lines and marks omissions. The checked head and full diagnostic tail remain in the check receipt. A silent stage reports at 30 seconds and every five minutes thereafter.

Closes #1086
Closes #1084

Acceptance

  • The large failure fixture stays below 2,500 bytes and retains the failing command, exit code, standalone migration error, final assertion, offline remedy and matching receipt path. Stale or failed receipt publication emits no receipt pointer.
  • A simulated hour-long stage in a 24-stage check stays below 2,400 bytes and retains stage completion, verdict and receipt identity.

Transcript size

Scenario Before After
Oversized check failure 16,618 bytes 1,355 bytes
Check with one silent hour 5,928 bytes 1,893 bytes

Notes

Replaces #1463.

Validation

Recorded for 5d924132195d

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

Architecture-Review: unchanged; the command data flow and delivery roles still apply.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by claude on 68705f1ec93f566cef7270a52b89f0a1ac8e4cff, 28.5s: approve (0 critical, 0 important, 1 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.

Comment thread src/loopzero/cli.py
for line in lines
)
if len(preview) > limit:
preview = b"[...]\n" + preview[6 - limit:]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Magic offset in the final byte slice depends on the marker length

preview[6 - limit:] is correct only because b"[...]\n" is exactly 6 bytes. It also breaks if limit is 6 or less (a zero or positive start index), although the default 1536 is safe. Suggested fix: bind the marker to a name, e.g. marker = b"[...]\n", and slice with preview[len(marker) - limit:] so the length and the slice can't drift apart.

eowca and others added 2 commits November 26, 2026 10:16
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero delta review by claude on 5d924132195d46b7abd156961597fed203f3a20e, 6.5s: approve (0 critical, 0 important, 0 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.

@eowca
eowca marked this pull request as ready for review November 26, 2026 09:43
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as e2f12ec at 09:48 UTC

4 min in the queue, 3 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 09:44 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1778
  • ✅ Merged 09:48 · e2f12ec · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit e2f12ec into main Nov 26, 2026
16 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1086-check-output-r50 branch November 26, 2026 09:49
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.

Keep oversized check failure output in the receipt and show a short preview Reduce repetitive elapsed-time updates from loopzero check

1 participant