Repository navigation
Conversation
…dmate teardown gates
|
Speaking as Kun's firstmate: first look on head Contract-class: new-default — removes the hard refuse ( VISION: aligns on fleet-outlives-vendor (Orca adapter), restart/durability (receipts under the home), and refusal paths; Authority — enabling a previously refused spawn surface is new capability on the Orca secondmate path (captain merge-or-leave when otherwise ready). Attestation: MISSING — body says this is not a completed no-mistakes publication / CI-green attestation, and there is no Live validation: body reports Test classified the automated live verdict as inconclusive (read-only scenario only in that pass; earlier live proof retained privately). Please live-test the Orca secondmate lifecycle (seeded home, labelled worker, correlated replies, guarded retirement) on a disposable home, post evidence on this PR, or re-raise through no-mistakes so attestation MATCHES workflow-zero. Security: none for fork CI approve — careful refuse/receipt binding; no workflows. (Will re-check if tip changes.) CI: approved fork runs CI |
|
Measured live lifecycle evidence from Orca 1.4.224 / Pi 1.2.0, with UTC timestamps below. This used a disposable primary home, a separately seeded Commands used by the proof (private paths replaced by variables; the remaining FM_HOME="$PROOF_PRIMARY" bash bin/fm-home-seed.sh olilit-orca-test "$PROOF_HOME" olilit
FM_HOME="$PROOF_PRIMARY" FM_SKIP_SECONDMATE_SYNC=1 bash bin/fm-spawn.sh olilit-orca-test --secondmate --backend orca --harness pi
FM_HOME="$PROOF_PRIMARY" bash bin/fm-send.sh olilit-orca-test '<commission the read-only Orca/Pi scout; report through the correlated parent channel>'
FM_ORCA_SECONDMATE_LIVE=1 FM_ORCA_PROOF_PHASE=verify bash bin/fm-test-run.sh tests/fm-orca-secondmate-live-e2e.test.sh --json "$EVIDENCE/verify.json"
# After the secondmate guarded-cleaned its scouts and the parent resolved the cleanup reply:
FM_ORCA_SECONDMATE_LIVE=1 FM_ORCA_PROOF_PHASE=retire FM_ORCA_PROOF_VISUAL_CONFIRMED=1 bash bin/fm-test-run.sh tests/fm-orca-secondmate-live-e2e.test.sh --json "$EVIDENCE/retire.json"Observed spawn output (path redacted):
Post-retirement scoped inventories reported Scope: this is the earlier measured proof, not a claim of a new live run at the current tip. The subsequent late-retirement recheck and registration-race fixes have deterministic hermetic regressions; all six focused suites also passed after local integration. Pi process liveness/restart/recovery remains unverified and refused. The reusable commands and observations are recorded in The fork target is now configured in no-mistakes; revalidation/publication will let the pipeline bind its own attestation to the PR head. |
|
Superseded by #7401. |
Orca secondmates can now launch in their separately seeded persistent homes, with a chat terminal in the home's registered root workspace.
Their workers use independent Orca worktrees under each project repository, with
2ndmate-<id> · fm-<task-id>labels on both worktrees and terminals.Guarded retirement closes the recorded terminal and removes only owned, empty registrations before retiring the home.
Relates to #2083.
Behavior and boundaries
LINEAGE_PARENT_CONTEXT_CONFLICT, so this change does not claim parent/child lineage in Orca.unverifiedand preserve exit/relaunch refusal. Terminal presence, completed work, and closed-terminal history do not prove Pi process liveness.Backend defaults, SSH remote-secondmate transport, home-seeding policy, registry format, harness/account selection, and the supervision architecture retain their existing contracts.
Validation
The original live proof ran on Orca 1.4.224 and Pi 1.2.0 from an isolated code worktree, using a disposable primary home and a separately seeded
olilit-orca-testhome with a fresh olilit clone.A read-only scout reported GitHub pull requests, branches, and deployment status without Railway credentials, CLI, or API access.
The secondmate and labelled worker were confirmed in the remote M1 Orca UI under
M6 clean, and correlated replies returned to the parent.Guarded child-first retirement passed; scoped checks confirmed the proof terminals, worktrees, owned registrations, home, and routing records were removed.
The operational primary fleet was untouched.
The following maps all eight no-mistakes Test scenarios to their actual evidence.
The named live-proof artifacts are retained privately; the reusable measured verification record and live test entry point are committed in
docs/verification/runtime-backends.mdandtests/fm-orca-secondmate-live-e2e.test.sh.Hermetic tests below execute the real scripts against fake runtime boundaries; they are not live Orca scenarios.
FM_HOME, duplicate refusallive-verify-labels.json;fm-backend-orca.test.sh:test_spawn_orca_secondmate_reuses_seeded_homechecks launch, environment and duplicate refusallive-verify-labels.json,visual-check-confirmation.txt;test_spawn_secondmate_worker_labels,test_home_worker_stays_independent,test_worker_label_postconditions_fail_closedtest_spawn_orca_secondmate_reuses_seeded_hometest_concurrent_first_registrations_keep_ownershiplive-scout-retirement.md,live-cleanup-resolved-record,live-retire-labels.json,proof-scoped-after-retirement.json;test_spawn_orca_secondmate_reuses_seeded_home,test_home_close_requires_complete_scoped_inventory,test_home_registration_uncertainty_and_binding,test_home_setup_identity_refuses_mismatch,test_home_retirement_ownership_and_retrylive-orca-readonly-contract.txt: real Orca 1.4.224 reads plus crafted negative parser inputslive-labelled-parent-reply.status,live-labelled-scout-report.md,live-cleanup-resolved-record;fm-send-secondmate-marker.test.sh:test_orca_secondmate_inbox_and_correlated_replylive-verify-labels.json,visual-check-confirmation.txt,live-retire-labels.json,proof-scoped-after-retirement.jsonUnqualified test function names in this table are in
tests/fm-backend-orca.test.sh.Pi alive/dead recovery, restart and relaunch remain unproven and unsupported by the control plane.
Local validation before the pipeline:
fm-backend-orca,fm-backend,fm-secondmate-safety,fm-send-secondmate-marker,fm-control, andfm-pending-reply.No-mistakes run
01M51TJ64M49SC7HAQVP67XNBRreviewed this change, fixed the late-retirement ordering and concurrent-registration receipt race, and completed Document and Lint.Its focused
fm-backend-orca,fm-spawn-orca-worktree, andfm-send-secondmate-markersuites passed; the opt-in live lifecycle suite was skipped.Test classified the automated live verdict as inconclusive because only the read-only real-runtime scenario ran in that validation pass.
An explicit operator exception accepted the earlier live proof plus deterministic hermetic regressions; this is not a fresh all-scenarios live pass.
The run then failed at Push because the authenticated account lacked upstream write permission.
Publication from the fork was explicitly authorized afterward using the exact pipeline head
9eb029be8afac2efda3f0c0ae4000580004c8ab4, preserving both safety fixes and the documentation update.This is not a completed no-mistakes publication or CI-green attestation.
Prior art
Thanks to #3579 for the persistent-home terminal-reuse approach, and #5348 for exact workspace identity, persistent-home protection, and explicit unknown-state handling.
Those design ideas informed this implementation; neither branch was imported wholesale.
No supervised-worker implementation was imported, and no recovery parity is claimed.