Repository navigation
fix(link): a revoke names its link (disconnect --expect-link), and no revoke removes a tombstone it did not write - #8662
Merged
Conversation
…e is that link's Child
A Home's revoke sends a plain disconnect, so a revoke delayed past a re-enrollment could disconnect the
newer link. ocx disconnect now takes --expect-link <linkId>: the same identity check ocx sync
--expect-link makes (ClientSyncExpectation), read-only under the client lifecycle and config locks,
before the client-link teardown and again inside disconnectClient before anything is written. A
mismatch changes nothing, exits 5 and ends stderr with {"phase":"child_link_mismatch","reason":...};
a malformed or repeated flag, or one combined with --orphaned-token, exits 2. An older ocx rejects the
flag as an unexpected argument (exit 2) before doing anything, which lets the Home fall back.
…only a bound answer settles a tombstone A revoke sent a plain disconnect (or the managed purge) to whatever answered at the alias, so a revoke delayed past a re-enrollment could disconnect the newer link, and its commit then removed the tombstone unconditionally. An ordinary revoke now runs disconnect --expect-link <id>, and --purge passes --expect-link <id> to the managed binary. A Child that answers 5 (another link, a hub, no connection) or 6 (an ocx-child residual) changed nothing: 502 remote_disconnect_failed with hint child_link_mismatch or child_residual, the tunnel restarts and the link stays. A Child older than the flag rejects it as a usage error (exit 2) before acting, and the command reruns without it, unbound. The commit removes a tombstone left for this link only after a bound answer. ocx disconnect --expect-link is exempt from the root Codex-shim repair so a refusal changes nothing. Docs: structure/remote-link.md, structure/cli-management.md, the Remote Link guide (en, es).
Contributor
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
|
✅ Deterministic PR hygiene checks passed. |
…nd may resume its own link's unfinished disconnect With --expect-link, teardownClientLink ran between the identity check and the locked disconnect, so a machine re-enrolled in that gap could have its new tunnel reaped and its Home link revoked. The Home sends --expect-link only for Home-initiated links, whose tunnel and record it owns, so the teardown no longer runs there. The check is now classifyDisconnectLinkExpectation: the sync expectation, except that an unfinished disconnect resumes when the machine is still connected to that link and the receipt's owner is that connection, so a Home whose bound disconnect lost its answer can finish it.
…ne on its alias, and a pending disconnect is not clean After an older Child rejects --expect-link (exit 2), the Home reruns the command unbound only while this link still exists and no other Home-initiated link names its alias (re-read just before the retry); otherwise it answers expect_link_unsupported with nothing changed. A bound exit 5 whose reason is disconnect_pending counts as cleanup attempted (child_disconnect_pending), never failed_clean. Docs: structure/remote-link.md, structure/cli-management.md, the guide (en, es).
… revoke disconnect
…instead of skipping its teardown ocx disconnect --expect-link skipped the client-link teardown for any matching link, so a person or script running it on a client-initiated link would leave that link's Home record and key active. A Home sends the flag only for Home-initiated links, so a sidecar naming the expected link (a client-initiated link) is now refused before anything changes: exit 5, reason client_initiated_link (invalid_state for an unreadable sidecar), with the instruction to disconnect without --expect-link. Exit 2 is avoided on purpose: the Home reads it as a Child older than the flag. Docs: structure (cli-management, remote-link known limits incl. cross-Home re-enrollment), the registry details.
Conflicts: disconnect usage, capability and registry text carry both --recover-config --yes (dev) and --expect-link (this branch); src/cli/connect.ts keeps the expect-link checks and skipped teardown with dev's --recover-config flag, yes rule and nativeIntentOnly output; src/client/connect.ts keeps assertDisconnectExpectation beside dev's drainLoneNativeIntentOriginals, and disconnectClient takes both options; link-routes.ts keeps lastStderrReason beside dev's retirement helpers and one-step commit, with the tombstone settled on a committed ordinary revoke only when the Child answered link-bound; the skills reference is regenerated.
…rain and refuses --recover-config Needed by the merge of #8416, beyond picking lines: dev's disconnectClient drains lone native-intent originals on a disconnected machine before any identity check, so a link-bound disconnect racing a local disconnect could change state where it must change nothing; it now skips the drain and refuses under the locks. dev's new --recover-config is a person's own recovery, never sent by a Home, so combining it with --expect-link is a usage error (exit 2). The teardown test now ignores the config loader's repair notice dev prints on stderr and asserts only that no refusal was printed.
…link whose sidecar is lost, and reports an unfinished disconnect first The Home-initiated check moves under the client locks (assertHomeInitiatedDisconnect), runs before teardown and again inside disconnectClient, and reads the Child-initiated marker that survives a lost sidecar (isChildInitiatedLink, fail-closed on an unreadable marker). When this link's own unfinished disconnect is on record, a refusal says disconnect_pending instead of client_initiated_link or invalid_state, so the Home counts the cleanup as attempted and never journals failed_clean after a partial cleanup.
…ild answers, before the commit Round-4 review: a retry resumes a retirement without running the cleanup again, so linkBound stayed false and the commit left the tombstone even though the first attempt's Child had confirmed the link. The settle now follows the bound answer itself (ordinary and --purge); nothing in the journal or receipt schema changes, so an older Home can still read both. Test: a bound cleanup followed by a failed key revoke settles the tombstone (both rows failed before).
…e Child command, and only while the link exists Round-5 review: a force revoke in another process can write a fresh tombstone while the bound command is in flight (for example against a Child an enrollment has not attached yet); the early settle removed it, leaving no recovery evidence. removeTombstoneIfUnchanged removes the tombstone only when it still equals the version read before the command and the link is still listed. Tests: a tombstone written during the bound command stays, with and without an older one (both failed before).
… link is gone Round-6 review: a forced revoke in another process can write its tombstone just before an ordinary revoke reads it, then pause before removing the record while an enrollment attaches the Child. Rounds 4 to 6 moved the settle to the commit, to the bound answer and to an unchanged snapshot; each left a race with a forced revoke the ordinary revoke is not serialized with. Beside a listed link a tombstone always belongs to a forced revoke in flight or one that died, so no revoke removes one now, including dev's purge revoke at commit; ocx link recover settles it under the alias lock once the link is gone. removeTombstoneIfUnchanged is dropped, so tombstones.ts matches dev. Tests: an ordinary bound revoke and a purge revoke leave the tombstone and recover then settles it (both failed at 982955e).
…ld needs a person's --forget Round-7 review: recover cannot prove an unbound cleanup (an older ocx-child purges without a link-bound receipt, or answers child_recover_unsupported), so the guide (en, es) and structure name the manual path and its cost against the 256 limit.
Conflicts: link-routes.ts keeps #8661's committed = true after the commit step and drops dev's commit-time tombstone removal (this branch: no revoke removes a tombstone); structure/remote-link.md 'Recover's limits' keeps this branch's tombstone rule with dev's binary_in_use wording (revoke only; recover settles on the in-use marker); link-recover.test.ts harness takes both options (holdThrows, ordinary) and keeps both appended describe blocks.
3 tasks done
… that tombstone Final review P3-1 of #8661: recordTombstone writes the file and then chmods; if the chmod or the lock COMMIT throws, the revoke answered tombstone_write_failed and kept the link with the tombstone beside it. The catch now marks it written and drops it by its attempt token. Structure: that drop, like every own-tombstone drop, is best effort under busy_timeout 0. Test failed before the fix.
…ked means Final review P3-2 of #8661: every recover refusal printed only "Link management request failed (409)", so alias_linked looked like child_residual, whose remedy (ocx-child detach on the machine) would there detach the other link. runLinkRecover now names the code with the CLI's own text for alias_linked, link_present, link_retirement_pending, tombstone_not_found and host_key_changed, and a hint only when it is a plain word; the server message is never printed and the exit code is unchanged. Tests failed before.
…routes Final review P3-3 of #8661: the alias_linked guard compared each link's primary alias only, so a Home-initiated link that reaches the same machine through a sibling route was missed. It now compares the alias and every route (effectiveLinkRoutes). Test failed before.
…ists it and link_present Final review P3-4 of #8661: the guide said recover waits (it answers 409 at once) and another link (a Home-initiated one, by alias or route); the Spanish text used resuelva, narrower than settling (an open revoke can only be repeated); the CLI reference (en, es) listed recover refusals without alias_linked and link_present. The structure note on throws before the commit landed with the P3-1 commit.
…mbstone Final review P3-5 of #8661 (coverage): after the commit the link is gone, so a later throw answers link_remove_failed and the tombstone stays as the only cleanup evidence.
…link
Security review P2-C: recordTombstone replaced any tombstone of the same link, and removeOwnTombstone dropped the slot by the new token. A forced revoke F0 in another runtime writes T0 and has not committed; F1 replaces it with T1, fails before its commit and drops T1; F0 commits with no tombstone and recover answers tombstone_not_found. recordTombstone now keeps an existing tombstone ("kept") and the attempt then owns none it could drop. Tests: F1 failing keeps T0, and F1 committing keeps T0 (both failed before); the tests that simulate another writer swapping a tombstone now do so explicitly.
…nother link may reach the same machine Security review P2-A: enrollment refuses a second link with the same primary alias, so the guard (no other Home-initiated link with this alias) never fired in a state this Home can create. It now refuses the unbound disconnect, and the unbound --purge, while another Home-initiated link has the same pinned host key (the machine enrolled under another alias or address) or names this alias as its alias or among its routes. Tests use stores enrollment can produce, on the ordinary and the --purge path (all four failed before); the old test with two links of the same alias is replaced. Known limits: the machine enrolled with another Home, or under a new host key.
…l ocx and ocx-child Security review P2-B, a regression from dev, where the plain command resumed both: full ocx resumed only while still connected, so once clearClientConnection had run every bound retry answered disconnect_pending; ocx-child answered residual for a detach interrupted after state.json went. Full ocx now resumes an unfinished receipt once the connection is cleared and no connect is pending (connect refuses while a disconnect is unfinished, so no link is attached and the cleanup cannot detach a newer one; no receipt schema change, which an older ocx would refuse). ocx-child resumes when the owner record names this link in phase detaching and no attach rollback is left; an attach interrupted before its state write (phase attaching) stays residual. Tests: the classifier rows and owner_link detach resume both failed before; another link is still refused. cargo fmt --check, clippy -D warnings and cargo test pass locally (1.100.0).
…as failed_clean Security review P3: lastStderrReason failed open, so any exit 5 whose last stderr line was not disconnect_pending (an unknown reason, garbled or extra output) settled failed_clean, and every exit 6 did. classifyBoundRefusal (remote-plant.ts) reads the last line against a closed set: full ocx child_link_mismatch with a no-write reason, or ocx-child detach --expect-link <this link> refused (conflict|residual); anything else counts as a cleanup attempted, on the ordinary and the --purge path. Also drops the dead purged.bound store. Tests: the outcome each answer settles as in a journalled revoke, ordinary and --purge, and the expect_link_unsupported refusal (the four fail-open rows failed before).
…ate; recover text ignores prototype keys Security review P3: a corrupt marker made every bound revoke refuse as client_initiated_link and print that the machine joined its Home itself; readChildLinkMarker tells absent, naming a link and unreadable apart, and the bound check refuses an unreadable one as invalid_state (isChildInitiatedLink keeps failing closed for its other callers). RECOVER_REFUSALS read prototype keys such as constructor; it now uses Object.hasOwn. Both tests failed before.
…each hint's remedy Security review P3: structure/remote-link.md listed failed_clean causes without recognised exit 5/6 refusals and expect_link_unsupported, and called every other nonzero exit unknown without saying which exit 5/6 count; it now names classifyBoundRefusal, child_disconnect_pending, the wrappers' own exits (POSIX 125/127 or 125/1, a failed exec 126/127, Windows 1/126/127) and that an older full ocx runs its root preflight before the usage error (cli-management too). The guide (en, es) gives what child_link_mismatch, child_residual and child_disconnect_pending mean and what to do.
5 tasks done
…s truth table covers the commit-time tombstone Follow-up to the #8654 merge. journalledRevokeError dropped the remote_disconnect_failed hints, so a journalled revoke could not tell child_link_mismatch from a timeout; it now prints the hint and the CLI's own text for it, from a closed set (Object.hasOwn, plain-word pattern), never the server message; child_disconnect_pending keeps the unknown outcome's conditional repeat guidance. The truth table gains rows for those hints (their texts claim a state) and corrects tombstone_limit and tombstone_write_failed for the commit-time check: it runs after the key_revoked intent and stopLink and before the key revoke, so a fresh revoke settles unknown and "this attempt did not touch the link" no longer holds; the CLI tombstone_limit text and its test now claim only no key revoked, no record removed and no Child contacted (the server's early refusal keeps #8654's sentence). Tests: one per hint, closed-set rejection (ssh_failed, constructor, a path), and the journalled commit-time limit settling unknown.
Sentence audit after the #8654 merge: the guide (en, es) said a fresh tombstone_limit refusal leaves the link, its key and the Child as they were; one met at the commit-time check has also stopped the tunnel.
… the Codex effort probe Security review P3-h, continued: three older connect-then-disconnect tests timed out at 5 s locally because connectClient probed the real Codex for its supported efforts; a timed-out test kept running into the next one (an unhandled error between tests), which made the following --expect-link and config-import tests fail too. All five connectClient calls that lacked it now stub catalogCompatibility as the rest of the file does; the whole file runs 66/66 in about 2 s at the default timeout.
… pending answers already disconnected" Review round 13 P1: a Home-initiated enrollment writes its link record before it sends the Child's connect, so a concurrent ordinary revoke could receive alreadyDisconnected, remove the record and key, and the delayed connect then attaches that link on the Child with no record and no tombstone. The exit-5 refusal (disconnected) keeps the record. The lost-answer case this covered becomes a known limit with --force as the way out. The two resume tests that came later stay; the leftover-sidecar test, which existed only for the reverted answer, goes.
… and child_residual give safe remedies Review round 13. P1 follow-up: the registry, capability summary, skills reference, cli-management and structure no longer promise exit 0 for a disconnected machine; structure names the lost-answer case as a known limit (the bound retry keeps the link, --force removes it) and why (an enrollment writes its record before its connect). P3: child_link_mismatch is an identity or state refusal, which also covers a disconnected machine and a link the Child started (run ocx disconnect there). P2: child_residual says to inspect first, since what is left can be an interrupted attach of another link and a plain ocx-child detach would remove that link too. Guide en and es.
…I hints carry the safe remedies Review round 13 P2 and P3, in the server's fixed messages (BOUND_REFUSAL_MESSAGES) and the journalled CLI hints (BOUND_REFUSAL_HINTS): child_residual no longer recommends a plain ocx-child detach unconditionally, and child_link_mismatch covers a disconnected machine and a client-initiated link.
…disconnect a Child another link owns Review round 14 P2: --force is now the remedy when the Child belongs to another link, a hub or another Home, yet its success text said to run ocx disconnect on the remote client, or a plain ocx-child detach on a lightweight one, either of which removes the link the refusal protected. The text, the revoke usage line and the guide's Remove here only step (en, es) now require checking there that the Child is still connected to this link first, and point a lightweight Child at the link-bound ocx link recover. Tests updated first; they failed on the old text.
…erence check Child ownership before a disconnect Review round 15 P2: the link revoke capability (and the generated skills reference) still said to run ocx disconnect on the remote client after a forced revoke, and the CLI reference (en, es) did too. All now say to check there that the Child is still connected to this link first, to leave it if another link, hub or Home owns it, and to use the link-bound ocx link recover for a lightweight Child.
… before a plain ocx-child detach Review round 16 P2 (recover side): child_residual from recover can be an interrupted attach of another link, which a plain ocx-child detach would restore and then remove. The management message, the link recover capability (and its generated skill reference) and the CLI reference (en, es) now say to inspect first and run it only when that is safe. child_recover_unsupported likewise no longer sends the operator to a bare detach: an older ocx-child cannot check which link it belongs to, so plant a current one, check ownership first, or forget a machine that is gone.
…pted attach before a plain detach Review round 17 P2-1: checking current ownership is not enough, since an interrupted attach can keep a rollback to another link that a plain ocx-child detach restores and then removes.
3 tasks done
lidge-jun
added a commit
that referenced
this pull request
Nov 13, 2026
…k and the disconnect and keep another link's machine untouched Both the full-install and the unknown-type notice ask for a check of the machine's link and then a disconnect: two commands, and an enrollment that lands between them would be removed. The disconnect line (remoteLink.forceRemoved.fullDisconnect, remoteLink.forceRemoved.unknownDisconnect) now says to run them right after each other, to disconnect by hand only when the machine shows this link or no connection, and not to disconnect a machine that shows another link, a hub or another Home, since this Home has already revoked its own with the forced removal (as #8662's guide says for child_link_mismatch). The lightweight Child's notice keeps the link-bound ocx link recover and is unchanged. All 11 locales. The tests failed first on the missing sentences.
lidge-jun
added a commit
that referenced
this pull request
Nov 13, 2026
…onnect a Child another link owns (#8685) * fix(link): the force-remove dialog and the cleanup report never send the operator to disconnect a Child another link owns The dashboard dialog after a failed disconnect (Remove here only) told the operator to run ocx disconnect, or a plain ocx-child detach on a lightweight Child, on the machine afterwards. A forced removal is also the way out when that machine now belongs to another link, a hub or another Home, and such a disconnect would remove that link. A full Child now gets the command only if it is still connected to this link, and to leave it otherwise; a lightweight Child gets the link-bound ocx link recover --link-id <id>, run on the Home, which cleans it only while it still belongs to this link (new key remoteLink.forceRemove.ephemeralBody in all 11 locales). ocx link cleanup's Windows step carries the same condition. Tests updated first; they failed on the old text. * fix(gui): the Remote Link status parser accepts only a store link id, so no copied command carries anything else The force-remove dialog copies a row's id into ocx link recover --link-id <id>, and the parser accepted any nonempty string. It now refuses a row whose id is not lnk_ plus 16 hex digits, the form the store already enforces, so a malformed status answer cannot put shell syntax into a copied command. Test fixtures use store-form ids; the new test failed on the old parser. * fix(gui): a forced removal leaves a notice with the link id and the Child's next step until it is dismissed Remove here only closed the dialog and the refresh removed the row, so the command and the link id the operator needs once the Child answers vanished with it. The page now keeps one notice per forced removal until it is dismissed: a lightweight Child gets ocx link recover --link-id <id>, run on this Home, which cleans the machine only while it still belongs to that link; a full Child gets ocx connect status, then ocx disconnect only if it shows Link: <id>, and is left alone when another link, a hub or another Home owns it. Three new keys in all 11 locales. Tests failed first on the missing notice. * fix(link): an enrollment's residual step tells the operator to leave a Child that has since joined another link After a failed enrollment that may have left the Child connected, the dashboard, ocx link add and the guide told the operator to run ocx disconnect (or ocx-child detach, or its --purge) on the Child, unconditionally. The step can be acted on long after the attempt, when the same Home or another one has enrolled that machine into a newer link, and following it then removes that link. Each residual step now ends with: check the Child first; if it has since joined another link, a hub or another Home, leave it as it is (new key remoteLink.residual.ownership in all 11 locales; the English and Spanish guides). The server's fixed recovery line is unchanged: the dashboard matches it exactly and the CLI never prints it. Tests failed first on the missing sentence. * fix(gui): a forced removal of a Child of unknown type checks either install's link instead of assuming a full install A link saved before the Home recorded the Child type has no childKind. The force-remove dialog and the notice treated it as a full install and named ocx connect status and ocx disconnect, which cannot clean a machine that runs only ocx-child; its forced removal also leaves no tombstone, so ocx link recover has nothing to settle. The dialog now names no command and says the Home kept nothing to recover from. The notice asks for ocx connect status --json, or ~/.cache/opencodex/bin/ocx-child connect status --json on a lightweight Child (every ocx-child prints its link there), and only if the output names this link, ocx disconnect or that ocx-child's detach; otherwise leave it. A link-bound detach --expect-link is not offered because the earliest ocx-child ignored unknown detach flags. Four new keys in all 11 locales; the full-Child test fixture now says childKind full. The new test failed on the full-install text. * fix(gui): the unknown-type notice names every place an ocx-child can live and how to find the one on PATH The notice for a Child of unknown type named only the planted ~/.cache/opencodex/bin/ocx-child. The Home also runs an ocx-child placed by hand in ~/.local/bin or on PATH, and on Windows plants it under %LOCALAPPDATA%\opencodex\bin, or %USERPROFILE%\.cache\opencodex\bin where LOCALAPPDATA is not set. A new line (remoteLink.forceRemoved.unknownLocate) names those locations and gives command -v ocx-child (where ocx-child on Windows) to find the copy on PATH; the planted path stays as the example in the commands, which now say to use the path of the ocx-child the machine runs if it is not the planted copy (remoteLink.forceRemoved.unknownLightweight, reworded). All 11 locales. The test failed first on the missing locations and chip. * fix(gui): the forced-removal notices name the window between the check and the disconnect and keep another link's machine untouched Both the full-install and the unknown-type notice ask for a check of the machine's link and then a disconnect: two commands, and an enrollment that lands between them would be removed. The disconnect line (remoteLink.forceRemoved.fullDisconnect, remoteLink.forceRemoved.unknownDisconnect) now says to run them right after each other, to disconnect by hand only when the machine shows this link or no connection, and not to disconnect a machine that shows another link, a hub or another Home, since this Home has already revoked its own with the forced removal (as #8662's guide says for child_link_mismatch). The lightweight Child's notice keeps the link-bound ocx link recover and is unchanged. All 11 locales. The tests failed first on the missing sentences. * fix(gui): the unknown-type notice prints where.exe ocx-child, which also works in PowerShell In PowerShell 'where' is the alias of Where-Object and prints nothing, which reads as no ocx-child on PATH. where.exe works in Command Prompt and PowerShell. All 11 locales (remoteLink.forceRemoved.unknownLocate); the test failed first on the old text. * fix(gui): the force-remove dialog asks to note the link id, and the unknown-type text says how long the steps stay The forced-removal notice is page state: a reload or leaving the page loses it, yet the unknown-type dialog promised the steps stay on this page afterwards. It now says they stay until the operator dismisses them or leaves the page (remoteLink.forceRemove.unknownBody), and for a full Child or one of unknown type, whose removal leaves no tombstone, the dialog shows the link id with a request to note it (new remoteLink.forceRemove.noteId). A lightweight Child's tombstone records the id, so its dialog does not ask. All 11 locales; the tests failed first on the missing sentences. * fix(link): an enrollment residual's ownership check comes before the step, names its command, and says the attempt's link id is not shown The ownership sentence came after the command it guards and named no check. In the dashboard (remoteLink.residual.ownership, its own element before the step), in ocx link add's residual text and in the English and Spanish guides it now comes first: check the Child with ocx connect status (ocx-child connect status --json on a lightweight Child). A live failure answer carries no link id, so the text says the attempt's link id is not shown and to treat any link the operator does not recognise as another's: leave the Child as it is and skip the step. All 11 locales; the dashboard and CLI tests failed first on the old order and wording. * test(gui): pin the force-remove and ownership texts' paths, commands and placeholders across all 11 locales An operator copies these literals. The test requires each one (the planted and Windows paths, ~/.local/bin, PATH, where.exe ocx-child, ocx-child connect status --json, Link: {linkId} and the placeholders) to appear in every locale exactly when it appears in English. Changing where.exe in one locale fails it.
…fore any disconnect, and the next step follows the recorded outcome Final security review of #8662 at 29be1bd. P2-1: the child_link_mismatch remedy said "if it joined this Home by itself, run ocx disconnect on it", which also matches a machine whose stale Home-initiated link L1 sits beside the live client-initiated L2, and disconnects L2. The branch is deleted in the server message, the journalled CLI hint, both guides and the structure row; a client-initiated link cannot answer a Home's revoke. P2-2: the journalled child_residual hint said to repeat with the same operation id, which only replays a failed_clean answer. The hints are now functions of the outcome the answer recorded: a new operation id after failed_clean, the same id after unknown, "revoke again" for a plain revoke (child_link_mismatch, child_disconnect_pending, expect_link_unsupported). Rule for every remedy: ocx disconnect or ocx-child detach is named only after the check that allows it (ocx connect status --json shows this link's id or no connection); every other branch says what not to do and which Home-side command to run. child_residual and recover's child_residual and child_recover_unsupported no longer offer a plain detach (an interrupted attach of another link would be restored and removed); a person can forget the tombstone of a machine that is gone or whose cleanup cannot be proven (P3-10: the --forget command now carries --link-id <id> --yes; "plant a current ocx-child" is gone). P3-2: --force for a Child that shows no connection is safe only once any enrollment of this link has finished (said in the hint, guide and structure). P3-3: child_disconnect_pending checks whose disconnect it is first, finishes it only for this link or no connection, and names the unsafe-receipt refusal. P3-4: no POSIX-only ocx-child path remains in these remedies (they no longer name a detach). P3-5: expect_link_unsupported says an older planted ocx-child cannot be updated from this Home. P3-6: a plain ocx link revoke prints the validated closed-set hint text too (plainRevokeError). P3-7: the guide's Remove here only block gives ocx link recover --link-id <id> for a lightweight Child and the check-then-disconnect order with the window for a full install, in en and es with identical code blocks. P3-8: the commit-time tombstone refusals say the retirement receipt stays claimed (structure, guide, link-routes comment). P3-9: link_present says --purge only for a lightweight Child. P3-11: the revoke usage line and the full-Child force text use the same check (this link's id or no connection); the ephemeral force text keeps only the link-bound recover. P3-1: structure states the ocx-child NotAttached race as a known limit. P3-12: the client_initiated_link row (unreachable for a Home's revoke) is gone and the cap test's title no longer claims a key it does not observe. Tests failed first on the old texts: the journalled hint table (each hint with each outcome, with absent texts), the plain-revoke hint tests, the force texts, recover's link_present, and the server message rows.
…cx-child by its path A planted ocx-child is usually not on PATH (POSIX or Windows), so a bare ocx-child connect status --json may not run. The hint, the server message and the en/es guides now name the planted copy: ~/.cache/opencodex/bin/ocx-child, or %LOCALAPPDATA%\opencodex\bin\ocx-child.exe on Windows. Found while writing the sentence-by-state table; the CLI test failed first.
… and the forced-revoke recipe follows the receipt's own recovery Terra round 19: when LOCALAPPDATA is not set the plant uses %USERPROFILE%\.cache\opencodex\bin\ocx-child.exe, which the child_link_mismatch check (CLI hint, server message, en/es guides) now names. The skill recipe for a forced revoke said to follow an ocx disconnect recovery; it now gives the full-Child check-then-disconnect and the lightweight ocx link recover. The CLI test failed first.
…o, and otherwise leaves the machine and lets the tombstone wait Final review of #8662 at 2166a43, P2. A force-revoked ephemeral L1 leaves a tombstone; the same machine is enrolled again on this Home under the same alias as L2 (enrollment takes only the alias lock). Recover then answers alias_linked, whose step was to settle that link's operations, revoke it and recover: followed, L2's bound revoke succeeds, the live L2 and its key go, and the recover purges the binary of a machine with nothing attached. The step is now conditional in the CLI text, the server message, the en and es guide and the en and es CLI reference: check which link the machine runs; revoke the other link first only if it is stale too; if the machine runs it, leave it: the tombstone waits until that link is removed and recover runs then, or a person forgets it once the machine is confirmed clean. The CLI and server tests failed first and now also assert the unconditional step is gone.
…if it is stale too Final review of #8662, P3-e, the same shape as the alias_linked P2: "or revoke the other link first" had no condition. Under the same pinned host key that link's revoke meets the same guard and loops; through a shared route it would disconnect that link. The CLI hint, the server message and the en and es guide now name both and revoke it only if the machine does not run it. The CLI hint test failed first.
…d the unbound-retry guard names the alias itself Final review of #8662, two P3-h items. The guide wrote `ocx link revoke --force`, which the CLI refuses without --yes (and a link id); it now writes `ocx link revoke --link-id <id> --force --yes`. The description of the guard that refuses an unbound retry left out a link whose own alias is this alias; it now says "as its alias or among its routes". English and Spanish.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks done
lidge-jun
added a commit
that referenced
this pull request
Nov 13, 2026
…und detach finishes its own interrupted attach (#8691) * fix(cli): O1c-8, the journalled revoke's guidance runs as printed and follows every state a repeat can leave Follow-ups to #8654's review: - operation_journal_unreadable printed "ocx link revoke --force without --operation-id also runs", a usage error as printed. It now names ocx link revoke --link-id <id> --force --yes, without --operation-id, built from the validated link id like the retirement guidance. - An unknown revoke whose record is already gone and whose receipt this id still owns: the repeat's resume settles the entry committed, and clearing the receipt can still answer 503. The unknown-outcome text and the structure paragraph now say: if it reads committed, the removal finished: repeat it once more to clear what it left. - The structure's alias-lock sentence said a waiter that gets the lock can still finish before the CLI calls the outcome uncertain; it now uses alias-lock.ts's own wording (the wait is bounded, the finish is not promised). - "A resume reopens the entry" holds only while the record is still listed (link.ts comment and structure). - The tombstone-limit test's title and comment use the text's own words (the link, its key or the Child). The two behaviour tests failed first on the old texts. * fix(link): alias_linked checks the machine first, keeps it when the check cannot tell, and gives the forget way out on its own with the link id #8662 delta review, P3 1, 3 and 4: - A machine that cannot be reached, whose state cannot be read, or that shows a connect or key rotation in progress now counts as running that link: leave it, and the tombstone waits until that link is removed. - The server message and the en and es CLI reference now carry the check step the CLI text and the guide had: check which link the machine runs (ocx connect status --json, or the planted ocx-child's), and revoke the other link only if it shows neither that link nor a connect or key rotation in progress. - The forget way out was inside the branch that keeps the machine running that link; it is its own sentence now (once the machine is confirmed clean or gone), and the CLI fills the link id it was called with instead of printing <id> (the placeholder stays for --operation-id). The CLI and server tests failed first on the old texts. * fix(link): expect_link_unsupported says how to tell the other link is stale, and keeps the pinned-key case apart #8662 delta review, P3 2. The parenthesis mixed the same-pinned-key case into the staleness test and never said how to check it. The step now reads: revoke the other link first only if it is stale too, that is, ocx connect status --json on the machine (the planted ocx-child's on a lightweight Child) does not show its id; if the check cannot be run, leave it, since through a shared route its revoke would disconnect it. Under the same pinned host key its revoke is refused the same way, so use --force instead. CLI hint, server message, en and es guide. The CLI hint test failed first. * fix(link): child_disconnect_pending finishes a disconnect by hand only when the machine shows no connection #8662 follow-up P3-a. The remedy said to check "whose it is" with ocx connect status, which cannot answer that, and to finish the disconnect when it shows this link's id or no connection. It now says the status cannot tell whose disconnect it is, finishes it with ocx disconnect only when the machine shows no connection, and sends every other answer (any link, a hub or another Home, an unreadable state, an unreachable machine) to --force. CLI hint, server message, en and es guide, structure row. The CLI hint tests failed first. * fix(link): child_link_mismatch has a branch for a machine that shows this link's id, and one for a check that cannot answer #8662 follow-up P3-b. A Child refuses a bound disconnect of its own link while a connect or key rotation of it is in progress (pending_operation), so the status can show this link's id. The remedy now says so: let it finish on the Child, then revoke again (a new or the same operation id by outcome). An unreadable state is repaired on the Child; if that is not possible, or the machine cannot be reached, revoke this link with --force once any enrollment of this link has finished. CLI hint, server message, en and es guide. The CLI hint tests failed first. * fix(link): a forced revoke's full-Child step uses ocx disconnect --expect-link, which closes the race between a check and a plain disconnect #8662 follow-up P3-c. The force texts said to check ocx connect status and then run a plain ocx disconnect right after, accepting that an enrollment landing between the two would be removed. ocx disconnect --expect-link <id> (from #8662) acts only while the machine is connected to this link, so it is the step now; an OpenCodex older than the flag refuses it as a usage error before it acts on the link, and only then does the check-then-disconnect order apply, with "its state cannot be read" added to the leave-it branch. The forced revoke's output, the revoke usage line, the guide's Remove here only block and code block (en and es), the CLI reference (en and es), the capability text and the generated skill reference, and the recipe. The force-output tests failed first. * fix(link): a forced revoke of a link without a recorded Child type names the steps for either install #8662 follow-up P3-d. A link saved before the Home recorded childKind keeps no tombstone (link-routes.ts writes one only for a known ephemeral Child), yet the forced revoke's output gave the full-install step only, and the guide and CLI reference had no step at all. The CLI now tells three cases apart (ephemeral, full, unknown, where unknown also covers a link the store does not list or a store it cannot read): for unknown it names ocx link recover when ocx link recover --list shows the link, and otherwise ocx disconnect --expect-link <id> on a full install or the planted ocx-child's detach --expect-link <id> on a lightweight Child (with its paths), the fallback for a build older than the flag, and the leave-it branch. The guide (en and es) and the CLI reference (en and es) say the same. Released ocx-child builds all parse detach's arguments strictly (since v2.100.0), so the bound form never detaches a link it does not name. The force-output tests failed first. * fix(ocx-child): a bound detach finishes this link's own attach interrupted before its state write #8662 follow-up P3-f. An attach of link L interrupted after it wrote the owner record (phase attaching) but before state.json was refused as residual by detach --expect-link L, with a reason telling the operator to run a plain detach, while the Home's texts say never to run one; nothing could clean it. check_expected_link now finishes it as a plain detach would when no other link is involved: the record names L in phase attaching and any rollback snapshot names no prior link or L (a rollback naming another link is still refused as residual earlier in the check). The remaining refusal reasons no longer recommend a plain detach. A test barrier (attach-before-state-write) marks the point after the CODEX_HOME change and before the state write. Two tests in owner_link.rs (an attach stopped right after the record, and one stopped after it changed CODEX_HOME and left its rollback) failed first with residual (exit 6) and now restore the original config and release the record; another link's bound detach still answers conflict. structure/remote-link.md says so. cargo fmt --check, cargo clippy --locked --all-targets -D warnings and cargo test --locked (Rust 1.100.0): pass. * fix(link): child_recover_unsupported gives a way out that runs as printed, and the purge path's dead remedy text goes #8662 follow-up, the rest of P3-e. After recover answered child_recover_unsupported (the planted ocx-child predates detach --expect-link) the operator was told only not to detach and, for a gone machine, to forget. The answer now gives the check first: that ocx-child's connect status --json; only if it shows this link's id, its plain detach right after the check removes this link's attachment; another link, nothing, an unreadable state or an unreachable machine: leave it. Recover cannot confirm either case with that build, so the forget command follows with this link's id filled in. The purge path's own remedy for expect_link_unsupported (remote-plant.ts) never reached a user, since the route answers the hint's fixed message; it now names only what happened, with a comment saying where the remedy lives. The recover test failed first on the old message. * fix(link): the Windows planted path is said to be a Command Prompt path, and recover's promise says what it really checks #8662 follow-up, the rest of P3-h. - %LOCALAPPDATA%\opencodex\bin\ocx-child.exe expands only in Command Prompt (PowerShell spells it $env:LOCALAPPDATA). The child_link_mismatch check (CLI hint, server message, en and es guide) now says "in Command Prompt on Windows". - "It cleans the machine only while it still belongs to this link" was not what recover checks: it acts when the machine's records name this link or nothing at all (then it only removes the planted binary) and refuses a machine another link owns. The forced revoke's output, the guide (en and es) and the capability text with its generated skill reference now say so. The CLI tests failed first on the old texts. * fix(cli): ocx link cleanup's Windows steps run as printed and use the link-bound disconnect #8662 follow-up (F3 from #8685's review). The report printed ocx link revoke --link-id <id> --yes, which the CLI refuses (--yes requires --force), and tests/cli/cli-link-cleanup.test.ts pinned that line. The step is the ordinary revoke, which disconnects through the recorded SSH trust and, since #8662, only while the machine is connected to this link: ocx link revoke --link-id <id>. The step on the machine now runs ocx disconnect --expect-link <id> and then ocx restart; an OpenCodex older than the flag refuses it before it acts on the link, and only then the check-then-disconnect order applies, with the leave-it branch for another link, a hub, another Home or an unreadable state. The cleanup test failed first. * fix(gui): the force-remove dialog and notices use the link-bound commands, and a Child's refusal gets its own title and reason #8662 follow-ups for the dashboard (P3-g, the dialog title and hint, and the same steps as the CLI for P3-c and P3-h): - A Child of unknown type: the notice named a plain ocx-child detach first. Every released ocx-child parses detach's arguments strictly (since v2.100.0), so the link-bound forms come first: ocx disconnect --expect-link <id> on a full install, or the planted ocx-child's detach --expect-link <id>; each acts only while the machine still belongs to this link. The check and the plain commands follow only for a build older than the flag. - A full Child: the dialog and the notice name ocx disconnect --expect-link <id>, which closes the race between a check and a plain disconnect; the check-then-disconnect lines stay for an OpenCodex older than the flag, now with an unreadable state in the leave-it branch. - A lightweight Child: "it cleans the machine only while it still belongs to this link" now says what recover checks: it acts only when the machine's records name this link or nothing at all, and refuses a machine another link owns. - After #8662 a link-bound refusal (remote_disconnect_failed with hint child_link_mismatch, child_residual, child_disconnect_pending or expect_link_unsupported) opens the Remove here only dialog. It was titled "This machine could not reach {alias}", which is false when the Child answered, and it never showed why. The dialog now says "{alias} refused to disconnect from this link" with the reason from that closed set; any other hint keeps the unreachable title. Seven changed and seven new keys in all 11 locales; the byte-for-byte pin covers the new ones. The dialog, notice and locale tests failed first on the old texts. * docs(ocx-child): the residual classification comment no longer calls a plain detach the way out * fix(link): alias_linked leaves the other link, since no status check can show it is stale * fix(link): expect_link_unsupported no longer judges the other link stale from a status check * fix(link): no remedy advises a plain ocx-child detach on the strength of a status check * fix(gui): the unknown-type notice offers no unbound ocx-child detach, in every locale * fix(cli): ocx link recover prints its own child_recover_unsupported text with the link id * docs(link): the structure note and recover reference describe the bound detach finishing its own interrupted attach
This was referenced Nov 13, 2026
lidge-jun
added a commit
that referenced
this pull request
Nov 13, 2026
…overy mock (#8700) The subprocess mock of ./src/client/connect listed four functions. #8662 made src/cli/connect import assertDisconnectExpectation as well, so the CLI module failed to link and both CLI scenarios exited with a SyntaxError before running. The mock now spreads the real module and overrides only the four functions. Co-authored-by: lidge-jun <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lane O5b, part 2: a Home's revoke now names the link it means. Before this change, an ordinary revoke ran a plain
disconnecton whatever machine answered at the link's alias, and--purgeran the managed binary's purge the same way. A revoke delayed past a re-enrollment of that machine could therefore disconnect the newer link. For example: an ordinary revoke's SSH command stalls; meanwhile another process force-revokes the link,ocx link recovercleans the machine, and it is enrolled again as a new link. The commit then also removed any tombstone left for the old link, unconditionally, even when a forced revoke in another process still relied on it.Child side:
ocx disconnect --expect-link <linkId>. Fullocxgains the flagocx sync --expect-linkalready has, with the same identity check.disconnectClient's first locked block, before anything is written.--expect-link. The Home sends the flag only for Home-initiated links, whose tunnel and record it owns.client_initiated_link. Its sidecar, or the Child-initiated marker that outlives a lost sidecar, names the expected link. An unreadable sidecar or marker refuses withinvalid_state.{"phase":"child_link_mismatch","reason":...}: no connection and no unfinished disconnect, another link or key, a hub client, a pending key rotation or connect, another connection's unfinished disconnect while connected, or unreadable state.--orphaned-tokenor--recover-config.Child side:
ocx-child.detach --expect-link(from #8612) now also finishes a detach of that link that was interrupted afterstate.jsonwent: the ownership record names the link in phasedetaching, and no attach rollback is left. An attach interrupted before its state write is in phaseattachingand staysresidual.Home side (
src/server/management/link-routes.ts,purgeDisconnectRemoteinsrc/link/remote-plant.ts):disconnect --expect-link <id>, and--purgeruns the managed binary with--expect-link <id>.classifyBoundRefusal): full ocx'schild_link_mismatchwith a no-write reason, orocx-child's conflict or residual line naming this link. Such a refusal changed nothing on the Child: the Home answers502 remote_disconnect_failedwith hintchild_link_mismatchorchild_residualand keeps the link. A fresh revoke restarts the tunnel, and a journalled one settles failed_clean. A revoke that resumes an earlier attempt's retirement keeps the tunnel down and settles unknown, since that attempt may have run the cleanup.child_disconnect_pendingand any other exit 5 or 6 count as a cleanup attempted: a journalled revoke settles unknown and keeps the link suspended. Each hint has its own fixed message with its remedy, under one rule:ocx disconnectorocx-child detachis named only after the check that allows it (ocx connect status --json, or the plantedocx-child's, shows this link's id or no connection). Every other branch says what not to do and which Home-side command to run:--force, once any enrollment of this link has finished where the Child shows no connection, orocx link recover --link-id <id>for a lightweight Child.child_residualnever offers a plain detach, since what is left can be another link's interrupted attach. A branch for a state that cannot answer a Home's revoke (a link the machine started itself) is not offered.ocxstill runs its root preflight, including the Codex-shim auto-restore, first. Neither wrapper produces exit 2, 5 or 6 itself: the POSIX scripts exit 125 or 127 (ordinary) or 125 or 1 (managed purge), a failed exec gives 126 or 127, and the Windows wrapper exits 1, 126 or 127. After exit 2 the Home reruns the command without the flag, as before. It re-reads its store just before the retry and refuses (hintexpect_link_unsupported, with a remedy: update the Child, revoke the other link first, or use--force) unless both hold: this link still exists, and no other Home-initiated link of this Home may reach the same machine, either by the same pinned host key or by naming this alias as its alias or among its routes.ocx link recover --link-idsettles it once the link is gone. A forced revoke that does not commit still drops the one it owns, matched by its attempt token, at best effort.503 tombstone_write_failedor409 tombstone_limit. In both cases this attempt has revoked no key and removed no record, but has stopped the tunnel; a fresh journalled one settles unknown.CLI. A forced revoke's success text no longer says to run a bare
ocx disconnectorocx-child detachon the Child. For a full Child it names the disconnect only ifocx connect status --jsonthere shows this link's id or no connection, right after that check (an enrollment between the two commands would be removed); a lightweight Child gets only the link-boundocx link recover, since--forceis also the remedy when another link owns the machine. The revoke usage line says the same. Thelink revokecapability, its skills reference and the CLI reference say the same, and recover'schild_residualandchild_recover_unsupportedanswers no longer send the operator to a bareocx-child detach(an interrupted attach of another link may be what is left). The dashboard's force-remove dialog,ocx link cleanup's Windows step and the enrollment-failure guidance, which predate this PR, were fixed in #8685 (merged). A journalled revoke prints the refusal's hint and the CLI's own text for it, from a closed set (journalledRevokeError, which #8654 added), and its next step follows the outcome the answer recorded: a new operation id afterfailed_clean, which that id only replays, and the same id afterunknown. A plainocx link revokeprints the same closed-set text with "revoke again" (plainRevokeError).ocx link recovernames its refusals, from #8661's final review. Itsalias_linkedanswer (CLI, server message, guide and CLI reference, en and es) revokes the other link only if that link is stale too: the machine may run it now (enrolled again under the same alias while the tombstone waited), and revoking it would remove the live link and let recover purge a machine with nothing attached. If the machine runs it, the tombstone waits until that link is removed, or a person forgets it once the machine is confirmed clean.expect_link_unsupported's "revoke the other link first" carries the same condition: under the same pinned host key that revoke meets the same guard, and through a shared route it would disconnect that link. Only closed codes and plain-word hints reach the terminal.Merged from dev. The branch merges dev three times with normal merge commits: 60a3e77 (dev f23910a, #8416), 24388c5 (dev a089ac7, #8661) and cf829ef (dev 41344a5, #8654).
--recover-configrefusal.tombstone_limitmessage verbatim, since that attempt touched nothing. The commit-time check gets its own wording.structure/remote-link.mdgains rows for the new hints, and itstombstone_limitandtombstone_write_failedrows now cover the commit-time check.Known limits.
managed_child_missing, orchild_recover_unsupported). A person checks the machine and runsocx link recover --forget --link-id <id> --yes; until then the tombstone counts toward the 256 cap.ocxdisconnect that finished but whose answer was lost, or one another link's bound call finished, a bound retry finds the machine disconnected and keeps the link (hintchild_link_mismatch); dev's plain retry succeeded there.ocx link revoke --forceremoves it, safely only once any enrollment of this link has finished. Answering success instead would let a Home remove a link whose enrollment has written its record but not yet sent the connect, which would then attach with no record and no tombstone.ocx-childkeeps that race: its bounddetachwith nothing attached succeeds (NotAttached), so an ordinary revoke can commit while a Home-initiated enrollment of a lightweight Child has written its record but not yet attached. This is unchanged from dev.ocx link revoke --forceleaves a tombstone that onlyocx link recover --link-id <id>settles; GOAT's detach does this today. Otherwise the tombstones wait for a person and count toward the cap.Compatibility. A Home with this change and an older Child behaves as today, except in three ways:
An older Home and a newer Child behave as today: the Child gets no flag. No record schema changes: the tombstone store, the journal and the disconnect receipt keep their shapes.
Stays inert by default. No setting changes. A current Home and a current Child behave differently only in these cases:
invalid_state;Follow-ups (after this PR, with O1c-8, in one PR; not on this branch):
child_disconnect_pending:ocx connect statuscannot say whose unfinished disconnect it is (link.ts,link-routes.ts, guide, structure); proposal: a plain disconnect only when status shows no connection,--forceotherwise.child_link_mismatchhas no branch for a status that shows this link's id.ocx disconnect --expect-link <id>closes (link.ts, the usage line, the guide's Remove here only block, the CLI reference, capabilities, skills reference).childKindexisted has no working step in the CLI and the guide.src/link/link-recover.ts,link.ts; the comment innative/ocx-child/src/cli.rssays the opposite).%LOCALAPPDATA%paths assume Command Prompt, and the sentence "cleans the machine only while it still belongs to this link".expect_link_unsupportedafterchild_recover_unsupportedleaves no way out, and theremote-plant.tspurge-refusal text never reaches a user.ocx link cleanup's Windows line prints--yeswithout--force, and the dashboard dialog's title and hint for a link-bound refusal (already listed above).Verification
Tests that failed first:
tests/server/link-recover.test.ts: revokes are bound to their link.tests/server/link-recover.test.ts: the unbound fallback is refused for the same machine under another alias, and for the alias among another link's routes, on the ordinary and--purgepaths.tests/server/link-recover.test.ts: a forced revoke keeps another attempt's tombstone (it fails, it commits, the owner drops it before the commit). A commit-time write that throws after writing is dropped. The commit-time cap answerstombstone_limit, and settles unknown when journalled.tests/server/link-recover.test.ts: the outcome each answer settles as; recover settling the tombstones a revoke leaves.tests/cli/cli-sync-expect-link.test.ts:--expect-linkrefusals (a lost sidecar with the marker, an unreadable marker, a leftover sidecar on a disconnected machine,--recover-config, the drain); both resume rules run throughhandleDisconnectCommand.tests/cli/cli-link-operation.test.ts: a journalled revoke prints each hint's text; hints outside the closed set print nothing.tests/cli/cli-link-recover.test.ts: refusals name their code;link_presentnames--purgeonly for a lightweight Child;alias_linkednames its condition and no longer the unconditional revoke (also asserted on the server's message intests/server/link-recover.test.ts).tests/cli/cli-link-operation.test.ts:expect_link_unsupportedrevokes the other link first only if it is stale too.child_residual), the plain-revoke hint tests, the force texts intests/cli/cli-link-force.test.ts, the server'schild_link_mismatchmessage rows intests/server/link-recover.test.ts, and the Windows fallback location in the lightweight check.native/ocx-child/tests/owner_link.rs: a bound detach finishes that link's interrupted detach.At head b748ab0 (the last round changed text and its assertions only):
tests/cli/cli-link*file,cli-sync-expect-link,link-remote-plant, the Spanish docs and skill-surface tests): 605 pass, 0 fail.client-link-connectpassed at the default timeout. Its connect calls now stub the Codex effort probe, which had made five tests time out or cascade.bun run typecheck,structure:check,skill:surface:checkandprivacy:scan: exit 0.docs-spanish-localization: 30/30.native/ocx-childwith Rust 1.100.0 at 29be1bd (no native change since):cargo fmt --check,clippy -D warningsandcargo test --lockedpass. Theremote helperCI job runs them on Linux.OCX_GIT_CONFIG_GUARD_CHECKOUTto a directory without.git. On this macOS machine the preload's git-config guard from fix(test): keep test git off the developer's repository when GIT_DIR is inherited #8652 cannot rungitunder the test environment, and fails the first test of every file, independent of this branch.NOT RUN:
bun run testandbun run test:changed;Checklist
lnk_and 16 hex digits) before it reaches an argv and travels as data. A recognised refusal changes nothing on the Child; a journalledchild_disconnect_pendingkeeps the link suspended. Only fixed hints, closed codes and plain-word hints reach the caller, never remote free text.