Repository navigation
Conversation
|
Speaking as Kun's firstmate: thanks @kesslerio, this is a careful, well-scoped fix for #6898, and I appreciate you catching the fake- I re-read head VISION.md: aligns. It keeps the interface honest under load and stops a misread from duplicating delivered work. Scripts own the wording, the change is confined to the remote leg, and there's nothing vendor-specific in it. Contract-class: new-default (my own read, matching the CI: the only red job is One thing I need from you, if you can: live validation is inconclusive (0 of 3 rows driven live). If you have a second Firstmate home reachable over SSH, could you run the procedure from your body? Register a remote secondmate whose agent has exited, run |
Live validation complete: 3 of 3 rows driven live against the productFollowed the live-validation procedure from the PR body. No fake SSH transport anywhere this time: everything below ran over a real OpenSSH connection to a reachable second Firstmate home, with the remote agent in the exited state the procedure prescribes. Setup
Row 1 — delivered remote steer reports its own delivery ✅ live
exit status: (The supervision guard's Row 2 — delivered steer whose reply bookkeeping fails ✅ liveThe remote leg is byte-for-byte the same live ssh path as row 1. The bookkeeping failure is a parent-side filesystem fault injected at the parent's own pending-reply store only: at send start, exit status: Row 3 — remote leg older than the record report still gets a delivered verdict ✅ liveRoute's exit status: Defect surfaced by the live run (fixed, one line)The very first live attempt of row 1 died before delivery on this host — a real product defect the fake-SSH suites cannot reach because their runners have
Verdict
Lab teardown: disposable worker stopped, remote-job state and homes removed, entrypoint symlink removed; only the one-line fix commit remains on the branch. |
|
Follow-up on the fix commit in the previous comment: |
|
Speaking as Kun's firstmate: thank you @kesslerio for driving all three rows live over a real OpenSSH connection, including the older remote leg on On the conflict: please don't rebase. Merge conflicts are ours to fix, and on a merge word from Kun we'll resolve them against #7902, #7905 and #6489, then run fresh CI. On the openssl-less |
390076b to
111abd2
Compare
[Medium impact] The PR appears safe to merge; no new actionable issues were found. Reviews (3) · Last reviewed commit: "no-mistakes(document): Correct fm-send n..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thanks @kesslerio for the new round. I read head Where it stands: waiting on you for two small things. After that, it goes back to Kun:
A note on overlap, with nothing needed from you: the Contract-class: new-default (my own read, unchanged). The unconfigured remote send prints a new |
|
Speaking as Kun's firstmate: thanks @kesslerio. Buffering the remote leg's stderr and replaying it after The new conflict is ours, not yours. Since your push, main picked up #8276 ( One small thing still waits on you: please add Beyond that, this waits on Kun's decision, not on you. Contract-class: new-default (my own read, unchanged). The unconfigured remote send now prints a |
A remote steer that lands prints only whatever went wrong after delivery: a doorbell notice, or a reply-tracking notice. All of those are accurate, but none leads with 'delivered', so a reader - and especially an agent - can take a delivered steer for a failed one and send it again. On our setup that mistake reran a whole pass at the far end. fm-send now prints one 'sent:' confirmation naming the far-side record whenever the remote record lands, and every advisory a successful send can still report is labelled 'advisory (steer delivered):' so none of them can be read as a refusal that invites a resend. The remote leg's own notices lead with the durable-record fact for the same reason. The confirmation depends on the remote leg's exit status alone, so a remote leg older than the new report line still gets a delivered verdict - only the named path is missing. Delivery, retry and exit-code behaviour are unchanged.
…set -u without openssl fm_pending_reply_new_id declared 'local raw hex' and only assigned raw when openssl was on PATH. On a host without openssl the fallback branch expanded the unset raw under the caller's set -u and killed fm_pending_reply_create: every reply-bearing fm-send died with 'failed to create parent pending-reply expectation' before delivery. Found during live remote-steer validation on an openssl-less Linux host where the shipped fake-SSH suites had never exercised the fallback.
dddd3c5 to
f1b3848
Compare
|
Speaking as Kun's firstmate: thank you @kesslerio. Nothing more is needed from you. This waits on Kun's decision, not on you. Contract-class (my own read): new-default, unchanged. An unconfigured remote send now prints a |
What Changed
fm-send.shnow prints asent:confirmation for a delivered remote steer, naming the far-side record from a newsteer_record=report emitted byfm-remote-secondmate-control.sh, and falls back to naming the remote steering inbox when an older remote leg reports no path.advisory (steer delivered):/notice: steer durably recorded at ...and can no longer be read as a refused send; a stderr-buffer creation failure refuses the send before any remote attempt and discards the pending-reply expectation.set -uwithoutopenssl, and extendedtests/fm-send-remote-delivery.test.shplusdocs/remote-secondmates.mdand the recovery skill notes to cover the confirmation-first contract.Risk Assessment
✅ Low: The bounded change preserves delivery and retry semantics while ensuring confirmation precedes buffered remote notices.
Testing
Ran the targeted remote-delivery suite (22 cases, all ok) and then drove five end-to-end scenarios against the real fm-send → fm-on → remote-entrypoint → remote-secondmate-control path, with only the ssh binary replaced at the product's documented FM_SSH_BIN seam executing the real remote entrypoint against a disposable local remote-home fixture. The delivered-steer transcript shows
sent:(line 8) ahead of the remote leg's bufferednotice:(line 9), the same ordering holds across an ambiguous ssh 255 plus retry (two notices, one record), a real remote-leg failure still surfaces its own error and never printssent:, and an unusable TMPDIR now refuses before any remote attempt instead of falling back to unbuffered delivery. All assertions passed; evidence transcripts are in the run's evidence directory.sent:delivery confirmation printed before that buffered noticesent:at s…TMPDIR=<missing> bin/fm-send.sh rsm …exits 1 with `error: steer not sent to remote secondmate rsm: could not…error: remote home is not a Firstmate checkoutreplaye…notice:lines (one per attempt) both printed…Evidence: Live scenario 1: sent: precedes the buffered remote notice
Source: Live scenario 1: sent: precedes the buffered remote notice
Evidence: Live scenario 2: unusable TMPDIR refuses before any remote attempt
Source: Live scenario 2: unusable TMPDIR refuses before any remote attempt
Evidence: Live scenario 3: real remote-leg failure still surfaces buffered diagnostics
Source: Live scenario 3: real remote-leg failure still surfaces buffered diagnostics
Evidence: Live scenario 4: buffered notices span the ssh 255 retry, both after sent:
Source: Live scenario 4: buffered notices span the ssh 255 retry, both after sent:
Evidence: Live scenario 5: remote leg without a record report still confirms delivery
Source: Live scenario 5: remote leg without a record report still confirms delivery
Evidence: Driver console: all five live scenarios (29 checks)
Source: Driver console: all five live scenarios (29 checks)
Evidence: Targeted suite transcript: tests/fm-send-remote-delivery.test.sh
Source: Targeted suite transcript: tests/fm-send-remote-delivery.test.sh
Evidence: Delivered steer stderr ordering (key excerpt)
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
sent:delivery confirmation printed before that buffered noticesent:at s…TMPDIR=<missing> bin/fm-send.sh rsm …exits 1 with `error: steer not sent to remote secondmate rsm: could not…error: remote home is not a Firstmate checkoutreplaye…notice:lines (one per attempt) both printed…bash tests/fm-send-remote-delivery.test.sh(22/22 cases ok, exit 0) — drives the real bin/fm-send.sh, bin/fm-on.sh and bin/fm-remote-secondmate-control.sh against a seeded remote-home fixturebash ~/.no-mistakes/evidence/01M71BRK3FQ4N0VND596HQN12Z/drive.sh(29/29 checks pass) — five named live scenarios driven against bin/fm-send.sh at the product's FM_SSH_BIN seam, which executes the real bin/fm-remote-entrypoint.sh + bin/fm-remote-secondmate-control.sh against a disposable remote home fixture, writing real inbox records and real pending-reply stateScenario 1:bin/fm-send.sh rsm 'please rename the metric'→ exit 0, stderr line 8sent: … durably recorded at <remote-home>/state/parent-route/rsm.inbox/001.msg, line 9notice: steer durably recorded at … doorbell did not reach fm-remote:p1; direct run ofbin/fm-remote-secondmate-control.sh send-stdin rsmshows the same notice produced on the leg's own stderr, plus thesteer_record=stdout report (stripped from operator output)Scenario 2:TMPDIR=<missing dir> bin/fm-send.sh rsm …→ exit 1,error: steer not sent … could not create remote stderr buffer; check TMPDIR, 0 ssh invocations, no remote record, pending-reply expectation discarded, nosent:Scenario 3: remote home without a parent-route endpoint (real remote-leg refusal) → exit 1,error: remote home is not a Firstmate checkoutreplayed from the buffer followed bysteer not sent to remote secondmate rsm, nosent:, no recordScenario 4: first ssh call executes the real leg then returns 255, identical retry succeeds → exit 0, 2 ssh attempts, exactly one far-side record, 2 bufferednotice:lines both printed aftersent:Scenario 5: remote leg that reports no record (FM_FAKE_SSH_DROP_REPORT=1) → exit 0,sent: … durably recorded in remote secondmate rsm's own steering inbox, no internalsteer_record=leak, exactly one recordVerified the remote stderr buffer file is removed after a successful send and no /tmp fixture or buffer files remain✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
Closes #6898