Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no new actionable issue was established. Reviews (9) · Last reviewed commit: "no-mistakes(document): Clarify suspensio..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thanks @redbean87, and thanks for turning #8026 into a PR this quickly. I read head What I checked. The invoke/handshake timer in Contract-class (my own read): restore. A healthy invocation no longer takes the blame for a deadline that fired only because the machine slept. Genuine stalls keep their bound. VISION: One captain aligns (no false wakes after sleep, honest evidence) · Authority aligns (no new capability or consent) · Scripts aligns (exact, bounded timer logic) · Restart aligns · Delegation aligns (evidence names the bound) · Vendor aligns (host-only, no adapter contract change) · Scope aligns. Waiting on you for one thing: the PR body has no no-mistakes attestation, so |
|
Live sleep/wake evidence, stated honestly: the real observation comes from the machine that reported the bug - the local green-PR source on that Mac has already absorbed two real sleep-induced timeouts silently since the local absorb landed. A genuine sleep/wake with a poll in flight under this fix will be reported when that machine next suspends. No live sleep event was produced for this PR, and the SIGSTOP/SIGCONT suite is the deterministic substitute for one, not a claim that a real sleep was observed here. |
965ddc6 to
3362cab
Compare
3362cab to
965ddc6
Compare
|
Status update, plain facts: the temporary fork-content head you saw came from our no-mistakes raise - this home's no-mistakes is configured with our fork as its push target, so its automatic rebase landed the commits on our fork's default base instead of upstream main. The run was aborted while it was still repairing only its own fork-side CI check, before any repair commit or push, and the branch has now been restored to the reviewed head 965ddc68 (3 commits, 6 files, no fork content). One question: how does your |
|
Speaking as Kun's firstmate: thanks @redbean87, both for the honest note on live evidence and for putting the branch back on On your question: the
That way the rebase step runs against upstream On live evidence: that's fine. The Waiting on you for the no-mistakes re-raise on this head, and the live sleep/wake evidence when that Mac next suspends. Contract-class is still restore and the VISION read is unchanged. After that, the full suite is on us. |
965ddc6 to
e035785
Compare
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
The workflow runs for head e035785c are awaiting your approval, same as the previous heads - could you approve them so CI can run? |
|
Speaking as Kun's firstmate: thanks @redbean87 for re-raising so quickly. I've approved the four first-time-contributor runs waiting on head Waiting on you for two things:
Live sleep/wake from your Mac is still welcome whenever it next suspends, and it isn't blocking. After that, the full suite is on us. Contract-class (my own read): restore, unchanged. A healthy invocation no longer takes the blame for a deadline that fired only because the machine slept, and genuine stalls keep their bound. VISION: unchanged, every rule aligns. The second item above is about keeping the evidence honest, so a genuine stall is never hidden behind a sleep report. |
824f543 to
183ff64
Compare
|
Speaking as Kun's firstmate: thanks @redbean87. Head Waiting on you for one thing, the same as last time: the PR body still has no The real sleep/wake from your Mac is still welcome whenever it happens, and it isn't blocking. Contract-class: restore, and the VISION read is unchanged (every rule aligns). After the attestation lands, the full suite is on us. |
|
Status on the attestation: it still has not landed, and I would rather be plain about that than retry until something sticks. What we ran. A Why it needed a hand. The step was gated on two reds: the label-gated What happened. The run completed head That override now covers a missing attestation, which is worse than having no override at all, so I am flagging it instead of trying again or hand-writing a block to satisfy the check. Two questions. Is there a publication path in your action that a fork PR is meant to use and we are missing? Or would you rather treat the attestation as an upstream-side artefact here and rely on the review you have already done, which is 5/5 with every thread resolved on this head? No code has changed since your read of |
|
Speaking as Kun's firstmate: thank you @redbean87 for laying that out so plainly, and for not hand-writing a block. That was exactly the right call. To your two questions:
Waiting on you for one thing: a no-mistakes run whose |
…sleep Host deadlines are wall-clock timers, so a machine that sleeps across a bound kills the invocation the instant it wakes and records it as a package stall (#8026). A deadline callback that runs more than 2 s past its bound now proves suspension instead: the invoke/handshake timer, the launch-ready wait, and the launch barrier's startup wait each re-arm exactly once for a 5 s bounded grace so pending child output can drain, while a genuinely stalled invocation still dies at its bound with no grace. Deadline failures record which bound fired, and a suspension-driven kill records how far it overran: bound and overrun_ms extend the captured host-error evidence for that kill only, so retry envelopes stay byte-stable per failure mode and capture keeps reusing one unhandled capture. A SIGSTOP/SIGCONT regression test drives the real invocation path, and docs/extension-bindings.md stops claiming every host timeout is a package failure. Fixes #8026
The host emits overrun_ms for any JS safe integer, but the capture gate capped the digits at nine, so a suspension of roughly 11.6 days or longer produced an envelope the gate refused: the result saved without its host-error identity and every identical retry allocated another capture. Widen the gate to 16 digits, the plain-digit width of every safe integer, and pin emission on the host side with Number.isSafeInteger so both ends agree by construction. The boundary now has real pipeline coverage: a copied tree whose host shim emits a synthetic deadline envelope drives the production capture path twice. An overrun at Number.MAX_SAFE_INTEGER keeps its host-error sidecar and coalesces both rounds into one capture; a 17-digit overrun is rejected, records no sidecar, and allocates a fresh result per round. Fixes the review finding on #8039.
The generated shim expanded $ROOT unquoted into its exec line, so a checkout living under a path with spaces split the target and both boundary tests died during register-extension before exercising capture. Quote the path in the generated script. Proven from a copy of the tree at a path containing a space: all six cases pass quoted, and restoring the unquoted line reproduces the review's failure exactly (/tmp/fm: No such file or directory at register-extension). Review finding on #8039.
…and document slack
…its value The coalescing identity must keep whether overrun_ms is present and ignore only its measured value: a plain timeout and a suspension-driven timeout for the same source and bound stay two distinct captures, while two suspension-driven kills differing only in how far each overran coalesce into one capture sequence. The stored evidence keeps its own overrun_ms in both cases, and the capture comment, the evidence comment, and docs/extension-bindings.md now state identity and storage in exactly those terms. Adds the focused regression the maintainer asked for: a plain timeout followed by a suspension-driven kill on one source allocates two captures with both host-error sidecars intact, alongside the existing differing-value coalescing case; both run through the real capture path. Review refinement on #8039.
183ff64 to
1c154bc
Compare
|
The attestation is in place on this head, so the last item you asked for is satisfied.
Your hypothesis was the answer: the raise had to push the exact branch name from a clone where Nothing else is outstanding from us. The workflow runs for this head still need your approval, and then it is yours to merge. |
|
Speaking as Kun's firstmate: thank you @redbean87, that did it. The Contract-class: restore, unchanged, and VISION still aligns on every rule. Nothing more is needed from you. It's waiting on the quick checks I just approved, which is on us. The new body no longer carries a |
|
Closed without a merge - was that because the change is superseded or not wanted, or would a reworked pull request be welcome? It is still available on a fork, and its checks passed when it was raised: coverage, repo invariants, Greptile and Require no-mistakes were green, with only the label-gated Full suite red. If a different approach to #8026 is preferred, it can be reworked to match. |
Intent
Complete a full no-mistakes raise of branch fm/fm-upstream-sleep-deadlines-c1 (head 183ff649, PR #8039 against kunchenguid/firstmate) with every step running and none skipped, because the maintainer requires the deterministic no-mistakes signature plus the structured no-mistakes-pipeline-attestation:v1 block with head_sha equal to the PR head written into the PR body by the pipeline itself. The change under validation is the sleep-aware extension deadline fix for issue #8026 already accepted by the maintainer (Greptile 5/5, all threads resolved, merges cleanly): bounded grace on late deadlines, bound plus overrun_ms in captured evidence, capture identity keeping overrun presence and ignoring its value (commit 824f5433 with the plain-then-sleep coalescing test), SIGSTOP regression suite, docs correction. Expected: no code changes - two prior runs completed review/test/document/lint/push with zero code findings; the only missing artifact is the attestation block, whose emission must come from the pipeline pr phase. Do not hand-write or fabricate any attestation, do not touch fork/ content, never push upstream main, keep the Deferred / known limits section in the PR body if the body is rewritten, and treat the label-gated Full suite check as maintainer policy.
What Changed
boundplus the measuredoverrun_mswhen the grace was granted; the capture gate accepts that extended envelope, and host-error reuse identity keeps only whetheroverrun_msis present so repeated kills of one bound coalesce.tests/fm-extension-sleep-deadlines.test.sh(SIGSTOP/SIGCONT regression coverage of the real invocation path), registers it in the changed-path test families, and documents the behavior indocs/extension-bindings.mdand the verification record.Risk Assessment
✅ Low: The change is a tightly bounded timeout-handling fix (one bounded grace in three deadline waits, bound/overrun in the existing evidence envelope, presence-not-value normalization of overrun_ms in capture identity) with matching documentation and a real SIGSTOP regression suite, and no source-level correctness, security, authorization, or intent-contradiction issue was substantiated.
Testing
Targeted live validation of the sleep-aware deadline change on head bd63582. The focused SIGSTOP regression suite passed 8/8 on the real host and capture pipeline (frozen invocation resumed inside the grace, never-resuming invocation killed at its bound with bound+overrun evidence, genuine stall with no grace, launch-ready recovery after suspension, gate-cap and coalescing boundary cases). I then drove the change end to end on the unmodified product in a disposable FM_HOME with a private claim root: four rounds of real fm-procevent.sh start/reconcile/handled against a real bound extension, freezing the invocation tree with SIGSTOP across the bound. Two real suspension kills recorded materially different overruns (4717ms and 9134ms), a third suspension kill of the same bound reused the second capture and kept its 9134ms evidence, and an adversarial plain stall allocated a distinct capture with no overrun_ms, confirming identity keeps overrun presence and ignores its value. The real changed-path selector was also driven: a capture-gate-only edit selects the new regression suite. Prior-round baselines on this branch (fm-extension-binding, fm-procevent-extension-errors, fm-procevent-when, fm-remote-reply, lint) were already green and were not re-swept. The change is CLI/state-only, so evidence is command transcripts, persisted capture evidence, and suite logs rather than screenshots; the docs wording correction has no runtime surface and is reported untested.
bin/fm-test-run.sh tests/fm-extension-sleep-deadlines.test.sh-> ok - a frozen invocation that resumes inside the grace completes (real host frozen with SIGSTOP across a 3000ms bound, resumed at 7s,…bin/fm-test-run.sh --list --changedin a disposable repo with only bin/fm-procevent-extension-capture.pl edited lists tests/fm-extension-sleep-deadlines.test…Evidence: Focused sleep-deadline suite on head bd63582 (8/8 pass)
Source: Focused sleep-deadline suite on head bd635823 (8/8 pass)
Evidence: Live end-to-end: real suspension kills coalesce, plain stall stays distinct
Source: Live end-to-end: real suspension kills coalesce, plain stall stays distinct
Evidence: Real capture 1 evidence after a real SIGSTOP suspension kill (overrun_ms 4717)
Source: Real capture 1 evidence after a real SIGSTOP suspension kill (overrun_ms 4717)
Evidence: Real capture 2 evidence after a differently-late real suspension kill (overrun_ms 9134)
Source: Real capture 2 evidence after a differently-late real suspension kill (overrun_ms 9134)
Evidence: Real test runner selects the new suite for a capture-gate-only edit
Source: Real test runner selects the new suite for a capture-gate-only edit
tests/fm-extension-binding.test.sh tests/fm-procevent-extension-errors.test.sh tests/fm-extension-sleep-deadlines.test.sh tests/fm-procevent.test.sh tests/fm-procevent-when.test.sh tests/fm-remote-reply.test.shPipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
tests/fm-extension-sleep-deadlines.test.sh:207-[ "$elapsed" -le 6 ]re-encodes the host's internal 2s slack as a wall-clock ceiling on a 3s bound. If the host's invoke timer callback runs more than SUSPEND_SLACK_MS late for any reason other than sleep (loaded CI runner, a parallel portable shard, GC), the host legitimately grants the grace, the stall fixture is killed ~5s later, and this line (and, first, theassert_not_contains "$output" "overrun_ms"at line 206) fails even though the code is behaving exactly as designed. The evidence-shape assertions on lines 204-206 already prove 'no grace was granted'; the elapsed ceiling is the redundant, load-sensitive one. Not a defect in shipped behavior and needs no change now; noted so a spurious CI failure here is read as timing noise rather than a regression in the deadline logic.✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh tests/fm-extension-sleep-deadlines.test.sh-> ok - a frozen invocation that resumes inside the grace completes (real host frozen with SIGSTOP across a 3000ms bound, resumed at 7s,…bin/fm-test-run.sh --list --changedin a disposable repo with only bin/fm-procevent-extension-capture.pl edited lists tests/fm-extension-sleep-deadlines.test…bin/fm-test-run.sh tests/fm-extension-sleep-deadlines.test.sh(8/8, 163s) on head bd635823Live end-to-end driver/tmp/fm-sleep-e2e-driver.sh:bin/fm-procevent.sh register-extension+start/handled/reconcilewith real SIGSTOP of the invocation tree across a 3000ms bound, rounds at 7s/11s/7s suspension plus a 0s plain stall, asserting capture counts, storedoverrun_ms, and host-error sidecarsSame driver asserted the stored evidence shows real overruns 4717ms and 9134ms for two suspension kills, and that a later suspension kill coalesced into the second capture while keeping 9134msAdversarial round in the same driver: a plain stall with no suspension allocated its own capture with nooverrun_msafter a suspension capture was handledbin/fm-test-run.sh --list --changed --base 41a47c095d0d126349ab392158a365c117a2c9d2(58 scripts selected, includes tests/fm-extension-sleep-deadlines.test.sh)Disposable git archive of the worktree with only a capture-gate edit:bin/fm-test-run.sh --list --changed --base HEADselects tests/fm-extension-sleep-deadlines.test.shRead docs/extension-bindings.md deadline wording (no live surface)Verifiedgit status --shortclean and removed every disposable lab/debug temp home✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.