Skip to content

fix(native): let authored hack run and interactive exec wait out another project's stop (HACK-2742) - #1285

Open
roodboi wants to merge 6 commits into
nextfrom
claude-lead/authored-run-waits-out-stop
Open

roodboi wants to merge 6 commits into
nextfrom
claude-lead/authored-run-waits-out-stop

Conversation

@roodboi

@roodboi roodboi commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Fixes HACK-2742. Follows #1278 (HACK-2739), which fixed the same failure for authored finite hack exec.

Problem

In an authored project (hack.project.json), two commands still sent their request straight to the project's owner, whose lease wait is 15 s inside a fixed 30 s budget on its only loop:

  • one-off hack run;
  • interactive hack exec (a terminal on both ends).

During another project's 30 s stop, both should fail after about 15 s with "completion is unconfirmed" (run) or "could not confirm admission or completion" (interactive), although nothing ran.

A third case affected all three authored commands, finite exec included. The owner's check (a pending signal, its own hack down, a changed publication or pin) runs before every lease attempt, so it can end the owner's wait. It returned the plain refused(), and the CLI also reported that as unconfirmed, although nothing had been read, touched or started.

Root cause

On next at cd2e21f:

  • packages/runtime-core/src/provider/graph/native/foreground.rs (one_off, interactive): neither requester waited for the lease before sending.
  • packages/runtime-core/src/provider/graph/native/runtime/run.rs (execute) and exec.rs (interactive): the owner's wait was the only wait, and its expiry kept a raw provider_busy.
  • exec.rs and run.rs: guard()? and the guard passed into connect_command_until returned the plain refused() (native_graph_foreground) for a pending signal before any effect.
  • src/backends/native-authored-project-oneoff.ts: the request bound was 45 s, too short for a 35 s requester wait plus the owner's fixed 40 s read, and every failure became "unconfirmed".
  • src/backends/native-interactive-exec.ts: the interactive report carried only one code, and every refusal read "could not confirm admission or completion".

Behaviour

  • The requester waits out the stop. native::foreground::one_off and ::interactive call lifecycle::await_free_command_lease before they send (35 s, the same wait fix(native): let authored hack exec wait out another project's stop (HACK-2739) #1278 added for the finite exec). It is one lock attempt when nothing holds the lease. The interactive requester passes its frontend leash as the check (await_free_command_lease_checked), so a frontend that is gone ends the wait. A refused check is returned as it is.
  • One owner path for all three. exec::owner_command_engine runs the owner's guard and the 15 s wait for finite exec, interactive exec and run. It answers with a pre-effect code only for a wait that ended before acquisition:
  • Honest refusal. The CLI reports these with nativeAuthoredCommandNotRun (shared by exec and run):
    hack run could not acquire the native runtime lock (provider_busy); nothing ran.
    Holder: project stop.
    Retry hack run once that project stop finishes.
    
    For the owner's not-started code:
    hack run did not start: the project's owner stopped or changed while the command waited for the native runtime lock (graph_authored_command_not_started); nothing ran.
    Check hack ps, then retry hack run once the project is up.
    
    The detail is {status: "not_run"} with the wire code and cause as they arrived, and a background command's admission slot is released. Everything else keeps "unconfirmed".
  • hack run bound. 85 s, the same as the authored finite exec (it was 45 s): the 35 s wait, 5 s to send, the fixed 40 s read and a 5 s margin.
  • Progress line. hack run sets onLeaseWait, as exec does. The interactive child's stderr is the user's terminal, so its lease-wait report goes on its private control channel (fd 3) as one closed event line ahead of the final report: {"version":1,"event":"lease-wait","holder":"project-stop"}. The CLI prints the usual single progress line for an authored interactive exec. A Compose interactive exec ignores the event (its own wait is 15 s).
  • Interactive refusal. A refusal report for an expired requester wait also carries the holder's closed token ("holder":"project-stop"). The requester forwards the owner's pre-effect codes as the report code, because that report carries only one code. For an authored exec refused before its session existed, the CLI prints the same lines as above; a session-correlated refusal and any Compose refusal keep their messages.
  • ps and the normal path are unchanged. ps takes no lease. With nothing holding the lease, each request makes one extra lock attempt and prints nothing.
Not changed
  • A Compose project's one-off hack run (HACK-2740 territory) is untouched: it keeps its owner's 15 s wait within one bound for selection and admission.
  • The interactive leash ends the requester's wait; Ctrl-C of the frontend still ends the child as before.
  • fix(native): keep redirected output when an authored command writes nothing to a stream (HACK-2744) #1283 (HACK-2744) also changes docs/guides/native-candidate.md, in a different paragraph. Neither PR changes src/lib/native-authored-command.ts in common: this one doesn't touch it. Whichever lands second gets next merged in.

Evidence

Local (macOS arm64):

  • Rust (--features native-config-plan, under the native-bench lock): 164 passed across the lease, command-lease, owner-lease, authored-exec, authored-run and interactive filters, including the new tests:
    • the_owners_wait_refusals_have_their_own_pre_effect_codes: the three codes per command; a refused guard wins over a busy lease; other codes are kept; all pass the reply-code filter.
    • the_owners_lease_wait_expires_with_each_commands_pre_effect_code: owner_command_engine on a held flock, for exec and run (scaled: 300 ms for 15 s).
    • a_refused_owner_check_ends_the_wait_as_not_started: a guard that starts refusing after 200 ms ends the wait as not started within 2 s; a guard that refuses at once does the same.
    • an_owner_failure_after_acquisition_keeps_its_code.
    • the_authored_run_requester_waits_before_it_contacts_the_owner: the one_off call site waits out a 600 ms stop.
    • a_refused_requester_check_ends_the_wait_with_its_own_error: the interactive leash check ends the requester's wait with its own error, and the refusal's holder token is project-stop.
  • TS (bun 1.4.4), 9 files, 311 passed:
    • native-authored-project-oneoff: the 85 s bound, one progress line, the three not-run refusals with their details and the released slot, other failures still unconfirmed with the slot held.
    • native-authored-project-exec: the not-started message and detail.
    • native-command-lease: only the exact owner cause pairs are not-run refusals.
    • native-interactive-exec: the event line parser, the report's closed holder field, the messages for native and Compose, and two new PTY cases (native-lease, native-not-started) in which the fake runtime sends the event and the refusal over the real fd 3: one progress line, "nothing ran", no session query.
    • native-runtime-client: the two new causes pass the closed cause filter.
    • Unchanged suites: native-authored-command, native-project-exec, native-project-one-off, native-project-dependency-refresh.
  • TLA+: ExecStopWait.tla gains Cancellable (the owner's check may end its wait) and CancelUnconfirmed (the report before the fix). Every earlier config sets both to FALSE, and their state counts are unchanged. New controls:
    • authored-cancel (335 states; report invariants, NoSendWhileHeld and Settles hold);
    • authored-cancel-old (UnconfirmedOnlyAfterSend violated: cancelled = TRUE, report = "unconfirmed", sent = FALSE);
    • authored-cancel-reach (the cancel is reachable, reported as not run).
    • The model's two waits stand for each command's requester and owner waits; run and interactive have the same shape as the finite exec.
    • bun run test:models: 496 controls verified.
  • Gates: bun install --frozen-lockfile, root bun run typecheck and bun run check (the Biome warnings are the existing set), docs:prepare and docs:check, privacy:check after staging, gitleaks, cargo +1.97.1 fmt --check, clippy --all-targets -D warnings with default features and with --all-features.

Linux x86_64, in the repo's toolchain image (.hack/toolchain/Dockerfile), every container run with --init, in a scratch clone:

  • At 5c4f1677: cargo fmt --check passed; clippy --all-targets -D warnings passed with default features and failed with --all-features: owner_pre_effect_code was dead code there, because its only reader is the macOS interactive requester. The second commit gates it to macOS. At 8b0bca62: fmt and both clippy runs pass.
  • bash scripts/test-runtime-core.sh: 1709 passed, 0 failed.
  • bash scripts/test-runtime-core.sh --all-features: 1924 passed, 0 failed.
  • bun run test:models: all 496 controls verified.

Not run: a VM, Docker on the Mac, or the full suite. None of this is real-VM evidence yet.

Mac rows to run

Row Steps Expect
1. Authored hack run during a 30 s stop X ready with a service that ignores SIGTERM and has a 30 s stop grace; Y authored, ready. hack down in X, then within a second hack run worker sh -c 'echo ran > /tmp/hack-2742-marker; echo ok' in Y About 3 s in, one progress line. The run starts after X's stop (about 31 s), prints ok, exits 0
2. Authored interactive hack exec during a 30 s stop As row 1, then hack exec worker -- sh in Y on a terminal One progress line about 3 s in; the shell opens after the stop
3. Lock held past 35 s Hold the lease past 35 s (a stop longer than 35 s). Remove the marker first, then run row 1's command, and row 2's on a terminal After about 35 s: exit 1 with nothing ran, Holder: …, Retry hack run … (or hack exec …). No "unconfirmed" or "could not confirm". The marker is absent
4. Owner stops while the run waits Hold the lease (another project's stop), start row 1's command in Y, and when the progress line appears run hack down in Y hack run exits 1 with either did not start … (graph_authored_command_not_started); nothing ran. or the requester's lease refusal; no "unconfirmed"; Y's hack down completes
5. Latency unchanged Nothing holds the lease. Time 20 runs of hack run worker true and hack exec worker -- true in Y, on this head and on next cd2e21f Medians within noise; no progress line

🤖 Generated with Claude Code


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

roodboi and others added 2 commits November 26, 2026 18:14
…her project's stop (HACK-2742)

HACK-2739 made an authored finite `hack exec` wait for the provider lease in
its requesting process. Authored one-off `hack run` and authored interactive
`hack exec` still had only the owner's 15 s wait and reported its expiry as
unconfirmed. In all three, the owner's guard (a pending signal, its own
`hack down`, a changed publication or pin) could end that wait with a plain
refusal, which the CLI also reported as unconfirmed although nothing ran.

- `native::foreground::one_off` and `::interactive` wait up to 35 s for a
  free lease before they send; the interactive one passes its frontend
  leash as the check.
- All three owner paths go through `exec::owner_command_engine`, which
  answers `graph_authored_exec_lease_busy`, `graph_authored_run_lease_busy`
  or `graph_authored_command_not_started` for a wait that ended before
  acquisition; later failures keep their codes.
- `hack run` gets the 85 s request bound (was 45 s), the progress line, the
  not-run refusals and the released admission slot.
- The interactive child sends its lease-wait report on its control channel
  as one closed event line, and its refusal report names the holder; the
  CLI prints the progress line and an honest refusal.
- ExecStopWait.tla gains the owner's cancel (Cancellable,
  CancelUnconfirmed) with three controls; earlier state counts unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…CK-2742)

The Linux all-features test build compiles the authored exec module but not
the macOS interactive requester that reads owner_pre_effect_code, so clippy
reported it as dead code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@roodboi

roodboi commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hack-docs Ready Ready Preview Nov 27, 2026 12:48am UTC

Request Review

@linear-code

linear-code Bot commented Nov 26, 2026

Copy link
Copy Markdown

HACK-2742

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T00:50:53.253495Z 73a1a61 Manual request
🔒 Security Review ✅ Completed 2026-11-27T00:52:43.287021Z 73a1a61 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 8b0bca629c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 8b0bca629c

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

roodboi and others added 3 commits November 26, 2026 18:51
…(HACK-2741)

The authored exec requester test (HACK-2739) and its compose sibling in
command_lease_tests held the lease for 600 ms against a 700 ms bound. The
retry loop sleeps up to 50 ms and checks the deadline before each attempt,
so on a hosted macOS runner the caller could give up just as the lock was
freed (provider_busy after about 0.75 s on next). As in #1280, the hold
stays and the positive case gets 500 ms of slack, ten capped poll
intervals; the expiry case asserts its exact refusal only after its
deadline has passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dline (HACK-2742)

As in #1280 and #1286: the expiry cases this branch added (the interactive
requester's checked wait and the owner's wait per command) now assert that
their deadline passed before they check the exact refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@roodboi roodboi added the ci:mac Run macOS checks for this pull request label Nov 27, 2026
@roodboi

roodboi commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@roodboi

roodboi commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Head 8c139fd: merged #1286's branch in (HACK-2741 test slack, so hosted macOS Candidate core is not red from the inherited #1278 test). The two expiry tests this PR added now assert their exact refusal only after the deadline. Checked on this Mac under the native-bench lock, --features native-config-plan: cargo nextest 20/20 and cargo test 20/20, 22 lease and owner-lease tests each run, no failures. Labelled ci:mac. Once #1286 lands, merging next here is a no-op for that file.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 8c139fdcf3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 8c139fdcf3

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@roodboi

roodboi commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Real-VM results at 8b0bca62 (Apple Silicon, pinned SmolVM 1.35.4, fresh isolated homes)

Control: next cd2e21fd (this PR's base). X is a Compose project whose web ignores SIGTERM with a 30 s grace. Y is an authored busybox worker sharing X's pool. Output is read through a pipe (HACK-2744 is not in this base). The interactive rows run on a real pty with HACK_NO_INTERACTIVE unset.

Verdict: FAIL on row 4: Y's own hack down while a run waits on the lock still ends that run as "unconfirmed". Rows 1, 2, 3, 5, 6 and smoke PASS. A storage-backed authored project could not be used for the marker rows (HACK-2752, the same on next).

Row Observed (this head) next cd2e21fd Result
1. Authored hack run worker sh -c 'echo …' in Y during X's 30 s stop, ×3 one line "Waiting for the native runtime lock, held by a project stop. This command continues once it is released (up to 35 s).", then the command's output; exit 0 after 29.7, 29.3, 29.3 s exit 1 after 15.1 s: "Native authored run completion is unconfirmed…", 3 of 3 PASS
2. Authored interactive hack exec worker -- /bin/sh in a pty during X's stop the same single progress line, then the shell prompt after 29.1 s. echo works, exit returns 0. The pty is back to icanon echo afterwards exit 1 after 15.2 s: "Interactive exec could not confirm admission or completion (native_graph_foreground)…" PASS
3. operation.lock held 45 s (flock): hack run exit 1 after 35.1 s: "E_LIFECYCLE_FAILED: hack run could not acquire the native runtime lock (provider_busy); nothing ran." / "Holder: unavailable." / "Retry hack run once the holder finishes." No "unconfirmed", no command output. hack ps shows only worker afterwards "unconfirmed" after 15.1 s PASS
3. The same: interactive exec in a pty after one progress line, exit 1 after 35.1 s: "hack exec could not acquire the native runtime lock (provider_busy); nothing ran." / "Holder: unavailable." / "Retry hack exec once the holder finishes." No "unconfirmed". Terminal not left raw (icanon echo after exit). Marker absent (touch never ran) "could not confirm admission or completion" after 15.2 s PASS
4. Y's own hack down while a run waits on the lock (lock held 15 s, run started, down 3 s later) the run prints the progress line, then after 24.6 s exits 1 with "E_LIFECYCLE_FAILED: Native authored run completion is unconfirmed; command effects may have occurred and its one-off container may remain until down." The down exits 0 after 21.8 s ("services stopped · data retained") the run fails "unconfirmed" after 3.1 s FAIL
5. Latency, nothing holding the lock, 20× run and 20× exec, order head, next, next, head run medians 0.325 / 0.32 s, exec 0.28 / 0.285 s; no progress line in any of the 80 calls run 0.335 / 0.33 s, exec 0.30 / 0.29 s PASS
6. Finite hack exec during X's stop one progress line, output, exit 0 after 29.3 s the same (from #1278) PASS
7. smoke PASS

Marker files: for rows 1 and 3 I first used an authored project with persistent /data storage, so hack run could leave a marker. On that project, hack run fails at once as "unconfirmed" (0.10 s, nothing holding the lease) and hack exec takes ~16 s, on this head and on next alike. Filed as HACK-2752. So the busybox project's command output is the proof that the command ran (row 1) or did not run (row 3).

Evidence: 20261126-191440-8b0bca62-p1285-s0 (rows 1, 3 run, 4, 6), 20261126-193424-8b0bca62-p1285-pty-s0 (rows 2, 3 interactive), latency …190802-8b0bca62, …190906-cd2e21fd, …191012-cd2e21fd, …191117-8b0bca62 (p1285-lat), smoke 20261126-191221-8b0bca62-smoke-s0; next: 20261126-192139-cd2e21fd-p1285-s0, 20261126-193729-cd2e21fd-p1285-pty-s0.

Harness false failures, fixed and rerun: the harness sets HACK_NO_INTERACTIVE=1, which forced finite exec in the first pty runs. The first pty driver also could not read termios after the session ended.

Nothing was merged.

…end as not started (HACK-2742)

VM row 4: Y's own `hack down` ran while a Y `hack run` waited for the lease.
After the wait, the requester found the owner's pin gone (Pin::load or
pin.connect in request_selected, pin.connect in the interactive requester)
and returned the plain refusal, which the CLI reported as "unconfirmed",
although nothing had been sent.

Every requester failure before the request is written now answers
graph_authored_command_not_started: for finite exec and run as the cause
of the native_graph_foreground refusal, for interactive exec as the report
code. Status, observe, logs and cleanup keep their refusals. A failure after
the write, including an owner that accepted and then exited, keeps
"unconfirmed". The CLI's not-started line now says the owner stopped or
changed before the command was sent or started.

Review L4: the call sites go through owner_exec_engine and
run::owner_engine, and tests check that each passes its own command; the
interactive requester's forwarding of owner codes is a tested function.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@roodboi

roodboi commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Head 73a1a61 fixes VM row 4 (the review's L1) and adds the L4 tests.

  • Cause: the owner exited during the requester's lease wait (Y's own hack down). After the wait, the requester found the pin gone (Pin::load or pin.connect in request_selected, pin.connect in the interactive requester) and returned the plain refused(), which the CLI reported as "unconfirmed" although nothing was sent.
  • Fix: every requester failure before the request is written now answers graph_authored_command_not_started. For finite exec and run, it's the cause of native_graph_foreground; for interactive exec, it's the report code with no session. The CLI says the command did not start and nothing ran. Status, observe, logs and cleanup keep their own refusals. A failure after the write, including an owner that accepted and then exited during its own cleanup, keeps "unconfirmed".
  • Tests: foreground::tests::a_requester_whose_owner_is_gone_before_the_write_answers_not_started covers finite exec, run and interactive with no owner pin; status keeps its own refusal. the_interactive_requester_forwards_only_the_owners_pre_effect_codes covers the forwarding at the former foreground.rs:766. the_owners_lease_wait_expires_with_each_commands_pre_effect_code now goes through owner_exec_engine and run::owner_engine (L4: run.rs passes OwnerCommand::Run). The call-site tests in command_lease_tests assert the new code.
  • Checks on the Mac: 85 Rust tests under the lock (native::foreground::, authored_exec::, authored_run::, command_lease); 274 TS tests across 6 files; typecheck, check, fmt, both clippy runs, privacy and gitleaks all pass. Linux gates are running now.

@roodboi

roodboi commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 73a1a6137f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 73a1a6137f

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@roodboi

roodboi commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Linux x86_64 at 73a1a61 (toolchain image, --init): fmt and both clippy runs pass; test-runtime-core.sh 1709 passed, 0 failed; --all-features 1924 passed, 0 failed; test:models 496 verified.

@roodboi

roodboi commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Real-VM rerun at 73a1a613 (Apple Silicon, pinned SmolVM 1.35.4, fresh isolated home)

Same fixtures as before. In each round, operation.lock is held 15 s, a hack run (or interactive exec) in Y starts and waits, and Y's own hack down starts 3 s later.

Verdict: FAIL on row 4: the fix works 1 of 3 times for run and 1 of 2 for interactive exec. Rows 1 and 7 PASS.

Row Round Observed Result
4. hack run waiting on the lock while Y's hack down runs 1 exit 1 after 24.7 s: "hack run did not start: the project's owner stopped or changed before the command was sent or started (graph_authored_command_not_started); nothing ran." / "Check hack ps, then retry hack run once the project is up." ps: not_started, no entries PASS
2 exit 1 after 24.7 s: "Native authored run completion is unconfirmed; command effects may have occurred and its one-off container may remain until down." The command's output never appeared; ps is clean (not_started) FAIL
3 the same as round 2 FAIL
4b. Interactive hack exec worker -- /bin/sh in a pty (interactive mode on), same timing 1 exit 1 after 24.6 s: "hack exec did not start: …(graph_authored_command_not_started); nothing ran. Check hack ps, then retry hack exec once the project is up." Terminal restored (icanon echo); ps clean PASS
2 exit 1 after 24.7 s: "No receipt is currently retained for session 4c4c…. Interactive exec could not confirm admission or completion (session_cleanup_uncertain); no request was replayed." Terminal restored; ps clean FAIL (no did-not-start message)
1. hack run during X's 30 s stop one progress line, output, exit 0 after 29.4 s PASS
7. smoke PASS

In every round the down exits 0 in about 21.8 s, and the shell or command never ran. So the wrong text claims an uncertainty that is not real. The behaviour depends on timing: the same sequence produces the right message in round 1 and the old one in later rounds.

Evidence: 20261126-201450-73a1a613-p1285-r4-s0 (.keep), smoke 20261126-*-73a1a613-smoke-s0. Nothing was merged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:mac Run macOS checks for this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant