Skip to content

Make talk transport and binding lifetimes explicit #271

Done

Description

@DocksDocks

Goal

Audit listener registration, publication, withdrawal, held requests, connection reads, client attempts and extension binding ownership. Model hidden phases at their current owners; preserve protocol bytes, cleanup, timing and cross-session behavior.

Yolo: the user delegated every decision except the merge to the agent.

Mode: plan-and-implement

Research

At base 5926c473170edba81e412529437685bb58b1af9b, inspected the twelve source modules in cli/talk/transport and the process and binding sections of extension.ts. The binding's starting pair, registry publication, per-connection request set, frame decoder, and route completion carry data specific to their phase. None needs a global state machine or new library.

Listener. listener.ts inserts a registration only after the first publication succeeds. A failed replacement keeps the previous published entry and its metadata. Withdrawal stops admission and takes outstanding request IDs before asynchronous replies finish. Status can see a non-live registration while withdrawal still holds the prior entry and its stale bit. Final cleanup releases that entry and clears stale before removing its file. Keep separate the endpoint, permanent ID reservations, open connections, and retry set for failed file removals. They outlive individual phases. HeldRequests owns the set until end; after that, no ID can start or answer. transport.test.ts covers initial failures, rebind, stale entries, retained descriptors, pending removal, and races with outstanding requests.

Binding. extension.ts:968–1017 sets and clears registering and publishing together. ensureRegistered and the guard against sending to the binding itself must read the same pending pair. An attached registration remains owned by delivery. Shutdown, suspended/active state, timers, an update in progress, and the metadata of the currently attached registration are independent: withdrawal and a new registration can finish before an older update returns. Keep its exact-pair guard. The process's starting set and owner lookup use different keys and lifetimes; do not collapse them. Preserve the marker check and diagnostics.

Byte reader and request completion. frame.ts uses offsets, an optional partial body and an optional failure. Only the header, the partial body or the same saved error governs the next push. The common one-chunk case decodes in place. connection.ts pauses when accumulated bytes cross above the existing limit and resumes at or below it. Only receipt and consumption change that count; no second paused flag is needed. Its queue owns termination; ready frames and the socket finish timer are separate. client.ts returns an independent won flag beside Attempt, even though a lost route cannot have won. Model lost, claimed and unclaimed results at the route-return boundary. Preserve shared first-winner notification, per-route ownership, the fallback path's result, and socket release on interruption. Do not change the handshake, selection, deadlines or retry policy.

Other paths. endpoint.ts: listening and replacement use the server and the optional file snapshot; endpoint kind is fixed at creation, not a phase. registry.ts: retained publications, platform adapters and single-operation file cleanup own independent resources. trustPosix.ts, sealWindows.ts and folder.ts implement host checks, filesystem operations and stateless conversions; no shared registration state lives there. handshake.ts and request.ts define wire data, not a second transport lifecycle. transport.ts wires the client and scoped listener; it adds no lifecycle. Existing typed exchange outcomes, frame write states, process-liveness probes, semaphore counts, publication indexes, timers and diagnostics stay distinct. Public registry, endpoint and status shapes do not change.

Delegated decisions:

  1. Model existing owners locally. Keep prior publication data through failed republish and asynchronous withdrawal; end the request set atomically. Reject one shared flag or one cross-subsystem enum: neither can represent overlap. Revert the child PR if needed.
  2. Represent phases with their payload or existing count. Use the starting pair directly, reuse the header buffer, and preserve the zero-copy fast path. A second mirrored flag or a new library adds state without evidence. Keep the shared route claim separate from each route's completed outcome.
  3. Verify with isolated real peers. docks-kit agent-docs verify-skill detect reports the verify skill. Its V6 talk flow drives a local fake model and two omp processes. On Linux use a private temporary mount and home for the smoke itself so its default registry check cannot read actual sessions. A bwrap mount probe passed. Do not use the user's talk tool, default registry, or deploy the kit. Tests drive controlled peers and owned folders. The complete remote check remains required; report local full-suite coverage separately.

Tool versions from local version commands and installed manifests: Bun 1.4.5, Node 26.13.0, Vitest 5.1.2, Effect 4.1.7, TypeScript 7.0.2, omp 19.4.0, bubblewrap 0.11.1, docks-kit 0.31.0, gh 2.103.3, Git 2.53.0. The TypeScript handbook describes payload narrowing. No new external API is required.

Baseline correction for the talk-specific test: at base 5926c473, V6 on kit-tested omp 19.2.1 can fail talk-offered. The private registry showed the extension registered. The isolated fake provider received a first request with no tools and no fixture prompt. When the prompted turn arrived first, the same binary offered talk and all exchange checks passed. PeerModel and ScriptedSession currently take the next request with their model ID regardless of conversation. This is #271's end-to-end test, not a product change or a change to #273's final-scan ownership.

Decision 4: identify the fixture conversation before settling the first-request promise or advancing a pending sender call. Keep tool availability as an assertion on the actual turn, not a filter; a genuinely missing tool must still fail. Keep the independent handover side-turn evidence. Reject retry-until-green and disabling auxiliary model traffic: both hide the ordering. Test auxiliary requests before startup and amid an outstanding call. Keep the fix local to the talk smoke.

Linux isolation recipe for A4: from the checkout set repo=$(pwd -P). Use the kit pin in SoT/toolchain.json (19.2.1 here). Download omp-linux-x64 into private scratch from the official release. Check SHA-256 e8b937f9bf023baa147bdd300ad5421af0a6ef8b1f350c47a9a93d5fca94feca against the release metadata before executing it; set omp to the binary's absolute path. Retain it for final reconciliation, then remove it.

Only after the checksum matches, run chmod u+x "$omp" on the private copy. The sandbox mounts that executable read-only.

bwrap --unshare-user --uid 0 --gid 0 --ro-bind /usr /usr --symlink usr/bin /bin --symlink usr/lib /lib --symlink usr/lib64 /lib64 --ro-bind /etc /etc --ro-bind /home /home --ro-bind "$repo" /repo --ro-bind "$omp" /verified-omp --dev /dev --proc /proc --perms 01777 --tmpfs /tmp --perms 0700 --dir /root --dir /tmp/work --chdir /tmp/work --clearenv --setenv PATH "$PATH" --setenv TMPDIR /tmp --setenv LANG C.UTF-8 -- bun --no-env-file /repo/.agents/skills/verify/scripts/omp-smoke.ts talk --repo /repo --omp /verified-omp

The namespace owns its root, ephemeral home and temporary mount. It does not mount the host root or default session registry. PATH is the only inherited value. Bun starts outside the checkout without dotenv; child sessions use private work directories. A scratch creation/removal probe passed here. A host-root bind failed the cleanup trust check; a home below the temporary root also invalidates that removal root.

Engineering standards

Apply type-safety-discipline, code-clarity and the repository's Effect 4 rules to listener, reads and binding. Keep the existing signatures, errors and fast paths. Use test-coverage for reachable behavior not covered by the current tests. For bundle, use code-clarity, verify and the two existing generators. Use commit-discipline for each commit and code-review for the self-review. This refactor specifies no new public behavior.

Steps

# Id Task Files Depends Effect Status Done when
1 listener Represent publication ownership, withdrawal and the held-request lifetime cli/talk/transport/listener.ts, cli/test/unit/talk/transport.test.ts - local done Initial publication, failed and successful replacement, withdrawal, and cleanup retain the same visible status, admission and descriptor lifetime. No ended request set can admit or answer an ID.
2 reads Represent frame decoding, read pressure, and route completion at their owners cli/talk/transport/frame.ts, cli/talk/transport/connection.ts, cli/talk/transport/client.ts, cli/test/unit/talk/frame.test.ts, cli/test/unit/talk/transport.test.ts 1 local done The frame owner holds only data for its next operation. Pause and resume occur only at threshold crossings. A lost route cannot report that it won. Public bytes, errors, timeouts and fallback behavior do not change.
3 binding Use the pending registration pair as the sole binding-level publication guard cli/talk/extension.ts, cli/test/unit/talk/extension.test.ts - local done Concurrent registration and self-target checks see the same pair until publication ends. Closure, update and active ownership remain independent.
4 bundle Rebuild the shipped extension and embedded payload from the checked source SoT/.omp/plugin/extensions/talk.js, cli/src/generated/sotPayload.ts 1, 2, 3 local done Both generated files reproduce exactly. The isolated smoke uses this shipped bundle.
5 talk_smoke Route only the intended talk fixture conversation to each scripted responder .agents/skills/verify/scripts/omp-smoke.ts, .agents/skills/verify/scripts/smokeTalkTurns.ts, cli/test/unit/verifySmokeTalkTurns.test.ts, .agents/skills/verify/SKILL.md - local done Auxiliary provider requests cannot satisfy startup or consume a pending scripted call. A real fixture turn without the tool still fails. The talk verification documents what it checks.

Acceptance

ID Command Expected
A1 CI= bun --no-env-file run test:unit cli/test/unit/talk/transport.test.ts cli/test/unit/talk/registry.test.ts cli/test/unit/talk/frame.test.ts cli/test/unit/talk/extension.test.ts cli/test/unit/verifySmokeTalkTurns.test.ts Transport, binding and smoke responders pass with controlled peers. CI is explicitly empty locally, not an unset variable that dotenv could restore. Hosted CI covers the default-folder case. Check publication failures and replacements, held requests, frame boundaries and persistent errors, read pressure, competing routes, shutdown, and interleaved scripted and auxiliary requests.
A2 bun run check:types, bun run lint cli/talk/transport/listener.ts cli/talk/transport/frame.ts cli/talk/transport/connection.ts cli/talk/transport/client.ts cli/talk/extension.ts, then bun fmt --no-script --check on those paths and any changed tests Types, lint and formatting pass. Inspect the full source diff against the base: no duplicate flags, unchecked types, changed public protocol, lost cleanup or per-frame fast-path allocation.
A3 bun cli/scripts/build-talk.ts, then bun cli/scripts/generate-sot-payload.ts, bun run check:generated and bun run test:unit cli/test/unit/talk/build.test.ts Both generated files match source. Build tests pass. No generated file is hand-edited.
A4 Run the exact Linux isolation recipe in Research against the generated bundle and kit-verified host. The real tool is offered in the prompted peer and sender turns. Two isolated processes register privately, exchange messages, report new and forked sessions, observe a closed peer and exit cleanly. The smoke removes its registry. The actual default registry is not visible.
A5 Open the reviewed PR as a draft. Before each ready transition, verify and review the exact candidate head and base, including a base-only advance. A maintainer marks it ready; check the new event, first attempt, tested merge parents, required Actions check and current head/base. On failure or changed inputs, return to draft before requesting a new run. All jobs succeed. GitHub accepts that first attempt's Full CI and reports CLEAN. Do not count remote CI as a full local run or an old rerun as a new request.

Do not touch

Do not change public actions or statuses, protocol bytes, authentication, trust policy, chosen endpoints, request order, slot limits, timers, refresh intervals, deployment, or dependencies. Do not read real session entries. Delivery and UI phases belong to #272. Rebuild generated outputs only with their generators.

Open questions

Verification Results

Candidate c5ae5349817c04a0b185ccd03aa0541d6f487031, base 5926c473170edba81e412529437685bb58b1af9b. The last commit changes two comments only. Types, scoped lint, formatting and generated artifacts passed after that commit's edits.

  • A1: 328 focused tests passed across six files. The separate hosted-only default-folder case passed in a private mount with CI=1. Coverage includes interrupted withdrawal, three observed drain phases, pressure exactly at the byte limit, registration across a second repair tick, and mismatched tool-call results.
  • A2: bun run check:types exited 0, with two existing suggestions in unrelated command files. Scoped lint and formatting passed. The existing smoke driver is outside the repository formatting gate; baseline-only formatting changes were removed. The new smoke module was formatted and checked.
  • A3: both generators ran. bun run check:generated passed. All 97 build assertions passed.
  • A4: the pinned omp binary passed all 21 isolated talk smoke checks, including the offered tool, private registration, ask/reply, cancellation, session replacement, closed peer and registry removal. The fake provider regression covers auxiliary requests before startup and during an outstanding call, and a host reminder alongside the actual prompt.
  • A4 negative cases: ran the unchanged real omp-smoke.ts talk driver twice. In each private namespace, the test extension omitted the talk registration from one process only. The peer and sender cases each exited 1 at talk-offered, named the correct process, skipped all scripted messages and removed the private registry. The positive run used the unmodified shipped extension.
  • A5: the first CI run on b074c643 rejected twelve outdated talk.js digests. Regenerating those snapshots changed no other snapshot value. All twelve passed locally. On PR #277, all ten jobs passed in run 46569161713, attempt 1. The authorized ready event, Actions app, required Full CI job 142377748435, reviewed head and base, and tested merge parents matched. GitHub reported CLEAN. The complete local suite was not run.

Activity

  1. self-assigned this
    on Nov 30, 2026
  2. DocksDocks commented on Nov 30, 2026

    @DocksDocks
    OwnerAuthor

    Delegation grant: yolo: next up is a yolo issue for "scan this codebase for any implicit state machines and make it explicit"
    Parent event: 7294751276

  3. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Delegation grant: yolo: do all issues remaining following yolo skill without asking please.

  4. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 1

    Plan-review: repair

    • goal_fit - Acceptance A1; Research decision 3 - A1 promises owned test folders, but cli/test/unit/talk/transport.test.ts:2663–2709 runs the default-folder case whenever CI is nonempty and removes DOCKS_KIT_TALK_DIR from the peer environment. With CI inherited on a workstation, the test registers a peer in the user's actual talk registry - Clear CI for the local A1 command. Keep the default-folder case in hosted CI, where the runner owns the registry. - class: local test inherits a flag that selects real user state
    • goal_fit - Acceptance A4; Research decision 3 - A4 isolates HOME and /tmp, but the bubblewrap manual confirms that --setenv does not clear other variables. omp-smoke.ts:641–647 creates its registry under tmpdir(), so an inherited TMPDIR outside the private mount can make setup fail on the read-only filesystem. The smoke also reads the host verify-gate log if it inherits the host's XDG_STATE_HOME (omp-smoke.ts:145–153,586–608) - Start the smoke with an allowlisted environment, retain the required executable paths, and set its temporary and state roots inside the private mount. - class: smoke isolation leaves host path overrides active
    • goal_fit - Acceptance A5 - A5 says to open the reviewed pull request and request Full CI, but omits the draft-to-ready transition required by AGENTS.md:79–81. Opening a ready pull request produces no qualifying run because .github/workflows/parity.yml:3–5 listens only for ready_for_review. Rerunning an old check does not substitute for that transition because the gate rejects attempts after the first (parity.yml:191–207) - Specify opening as a draft and having a maintainer mark the reviewed candidate ready. If the head or base changes or the run fails, return it to draft, update and review the candidate, then mark it ready again. - class: missing required pull request state transition
  5. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 2, delta

    Plan-review: repair

    • goal_fit - Acceptance A1 and A4; Research decision 3 - Bun 1.4.5 loads checkout .env files after the shell sanitizes the environment. Inference: a local .env with CI=true re-enables the default-folder test, which removes the registry override (cli/test/unit/talk/transport.test.ts:2663–2696). In A4, a local .env with XDG_DATA_HOME pointing to host data makes the smoke inspect host plugin registry metadata (.agents/skills/verify/scripts/omp-smoke.ts:553–580). - Disable dotenv loading for A1 and run A4 and its subprocesses from a private working directory without checkout env files. - class: Bun reloads host settings after environment sanitization
    • goal_fit - Acceptance A4; Research decision 3 - Inference: a non-root run with non-setuid bubblewrap 0.11.1 maps the caller but not host root. The bind-mounted / therefore reports an overflow UID, and cli/talk/transport/trustPosix.ts:188–208 rejects it before the peers can register. A successful mount probe does not prove that the registry accepts the mount. - Keep the sandbox-owned root and bind the required runtime and checkout paths beneath it. Keep the host default registry hidden. - class: sandbox root fails registry ownership checks
    • goal_fit - Acceptance A4 - Even with a trusted sandbox root, HOME=/tmp/home and TMPDIR=/tmp make the smoke create its registry directly under /tmp (.agents/skills/verify/scripts/omp-smoke.ts:641–646). allowedRemovalRoots excludes /tmp because it contains HOME (cli/src/engine-native/scratch.ts:124–143). The smoke then fails registry-removed even if the peer exchange succeeds (omp-smoke.ts:4054–4065). - Create a short private temporary directory beside the isolated home and set TMPDIR to it. Keep the private mount over /tmp for the default-folder scan. - class: registry is outside the authorized cleanup roots
    • goal_fit - Acceptance A5, retry after a head or base change - A5 says to review any repairs before marking the draft ready again. If only the base advances, there may be no repairs to review, but AGENTS.md:79–81 requires review of the exact new head and base before requesting Full CI. - Require review of the exact updated candidate before every ready transition, even when no repair was needed. - class: retry can request CI on an unreviewed candidate

    Previous findings:

    • Round-1 finding on Acceptance A1; Research decision 3: open - repeated above
    • Round-1 finding on Acceptance A4; Research decision 3: open - repeated above
    • Round-1 finding on Acceptance A5: resolved - A5 now opens a draft, requires a maintainer to mark it ready, and requires a fresh ready event instead of a rerun.

    Manager response to round 1

    Repaired:

    • A1 now unsets CI locally. The hosted runner covers the default-folder case.
    • A4 now clears the environment and explicitly sets all location overrides inside the private temporary mount. The shell passes only its executable search path.
    • A5 now opens a draft and verifies the authorized ready event and the exact merge inputs. A new request requires a new ready event, not a rerun.

    Redesigned: none.

    Rejected: none.

  6. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 3, delta

    Plan-review: repair

    • goal_fit - Research, Linux isolation recipe; Acceptance A4 - The recipe downloads and verifies the pinned omp binary but does not make it executable. A fresh download without execute permission fails with EACCES when omp-smoke.ts:356–368 starts it, before A4 can check registration or messaging. The existing release-binary procedure in .agents/skills/verify/SKILL.md:211 sets execute permission after verification. - After the checksum matches, run chmod u+x "$omp" before mounting the binary read-only. - class: pinned binary lacks executable preparation

    Previous findings:

    • Round-2 finding on Acceptance A1 and A4; Research decision 3: resolved - A1 fixes CI to an empty value and disables Bun dotenv loading. A4 clears the inherited settings, disables dotenv loading, and starts outside the checkout.
    • Round-2 finding on Acceptance A4; Research decision 3: resolved - The recipe uses a namespace-owned root instead of binding the host root. Its private /tmp hides the host default talk registry.
    • Round-2 finding on Acceptance A4: resolved - The recipe places the namespace home at /root, outside /tmp, so the private registry is under an authorized cleanup root.
    • Round-2 finding on Acceptance A5, retry after a head or base change: resolved - A5 requires review of the exact head and base before every ready transition, including a base-only advance.

    Manager response to round 2

    Repaired:

    • A1 uses CI= and Bun --no-env-file. A4 runs from a private working directory with a clean environment.
    • A4 uses a namespace-owned root. Executables and the checkout are read-only mounts. The temporary default registry and the home are separate. The scratch creation and disposal probe passed.
    • A5 requires exact head/base review before every ready event, even when only the base advances.
    • The isolation experiment also exposed a baseline problem in the talk-specific scripted responder. Decision 4, step talk_smoke and A1/A4 require identifying the real prompted conversation rather than accepting whichever auxiliary request arrives first. Do not weaken the offer check.

    Redesigned:

    • For dotenv, unsetting a variable lets Bun fill it. Set a defined empty CI for the direct local test, disable dotenv loading, and run the smoke outside the checkout. For A4, bind-mounting the host root or placing the home under the temporary root failed trusted cleanup. A namespace-owned root with separate home and temporary mounts passed the scratch probe. The pinned binary registered in that namespace. A diagnostic copy distinguished real and auxiliary provider requests without changing the assertion.

    Rejected: none.

  7. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Plan review round 4, delta

    Plan-review: pass

    None.

    Previous findings:

    • Round-3 finding on Research, Linux isolation recipe; Acceptance A4: resolved - The recipe now runs chmod u+x "$omp" on the private copy after checksum verification and before mounting it read-only as /verified-omp, the executable A4 passes to the smoke.

    Manager response to round 3

    Repaired: Research, A4 preparation now sets the execute bit after checksum verification and before the read-only mount. The scratch executable passed its version and could register in the private folder.

    Redesigned: none.

    Rejected: none.

  8. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Self-review

    Correctness

    First publication no longer cancels a pending removal of its filename. The generated registration ID path does not check the permanent ID set; only caller-chosen IDs do. A generated ID can therefore reuse an old name, however rare, and the removal pass could remove its new entry. The base cleared the pending removal after successful publication. Preserve that protection on the first publication as well as replacement. This conclusion follows from register, publishServed and the removal pass; no live registry was used.

    Spec and tests

    No additional findings. The local functional suites, separate private default-folder test and real two-session smoke cover the published outcomes. The fake provider includes an offered-tool negative case and an auxiliary request during a pending call.

    Text and safety

    No additional findings. Registered identity, request admission and the resource retained during withdrawal remain separate. The production protocol and host trust checks did not change. Both shipped artifacts reproduce from the edited sources.

  9. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 1, lens correctness

    Code-review: pass

    Standards

    • [LOW] Bug - .agents/skills/verify/scripts/smokeTalkTurns.ts:109-150, .agents/skills/verify/scripts/smokeTalkTurns.ts:179-193, .agents/skills/verify/scripts/omp-smoke.ts:2558 - Unreached: If the provider splits the handover marker across text parts, the refusal check misses the side turn. If that turn copies the fixture history, it can also consume the pending sender call. The former check joined the parts before matching. The current template and side-turn fixture supply the marker intact. - Match the handover marker against joined user-message text. Keep exact per-part matching for the opening prompt beside a host reminder. - class: marker matching before text assembly
    • [LOW] Bug - cli/talk/transport/listener.ts:493-517, cli/talk/transport/listener.ts:650-656 - Unreached: If a generated instance ID repeats for the same session after a failed removal, the next repair pass unlinks the new publication. First publication no longer clears a pending removal, and the reservation check covers only caller-supplied IDs. The binding supplies a checked ID, and the removal and registration fixtures do not force a random repeat. - Generate an ID absent from servedIds while holding the listener lock. Keep rejecting reused caller-supplied IDs. - class: generated ID bypasses reservation check
    • [LOW] Bug - cli/talk/transport/listener.ts:505-510, cli/talk/transport/listener.ts:453-462 - Unreached: If a caller changes its input while publication waits, the listener stores a different name or folder from the one it published. A later repair can publish that change without an update call. The binding and peer fixtures pass fresh inputs that they do not mutate. - Read the metadata once before publication and use those values for both the registry entry and the listener record. - class: metadata reread across publication boundary
    • [LOW] Bug - cli/talk/transport/listener.ts:560-579, cli/talk/transport/listener.ts:585-599, cli/talk/transport/listener.ts:707 - Unreached: Interrupting a scoped withdraw after admission stops can leave the descriptor open and the entry on disk. The new phase model retains the base interruption gap: a later withdrawal and shutdown both skip Withdrawing, and removal enters the retry set only after a typed failure. The binding and peer fixtures do not cancel withdrawal. - Keep lock acquisition interruptible, but guarantee cleanup once withdrawal takes the held requests. Preserve the order of replies, connection finish, descriptor release, and file removal. - class: interruptible withdrawal after ownership transition

    Spec

    None.

    Code review round 1, lens spec-and-tests

    Code-review: pass

    Standards

    • [LOW] Bug - cli/test/unit/talk/transport.test.ts:833-842, cli/talk/transport/listener.ts:574-576,707 - If an assertion in the release wrapper fails, the wrapper never closes the real descriptor. The listener already marked the registration ended, so scope cleanup skips it. The test also compares object identity even though the real release uses the path and descriptor. - Capture the observed status and descriptor, always run the real release, then assert on the captured values after withdrawal. - class: assertion interrupts fixture cleanup
    • [LOW] Bug - cli/test/unit/verifySmokeTalkTurns.test.ts:98-105,109-116,119-145,148-167,173-192 - Removing the routing guard makes several tests wait for a response that the test itself must release. During an outstanding sender call, the same regression rejects the result before the test attaches a handler, so Vitest can report an unhandled rejection instead of the routing failure. - Observe promise settlement before awaiting values, attach rejection handlers before sending the auxiliary request, and release the responders in cleanup. - class: regression strands fixture promises
    • [LOW] Maintainability - cli/test/unit/verifySmokeTalkTurns.test.ts:108-117, .agents/skills/verify/scripts/omp-smoke.ts:2491-2492,2524-2526 - The missing-tool test proves that the sender accepts the fixture turn, but it stays green if either driver check is removed. The positive smoke also cannot distinguish that mutation. - Drive the production startup check with a tool-free fixture turn for each model and assert that talk-offered fails before any scripted call. - class: missing negative gate assertion
    • [LOW] Maintainability - cli/test/unit/talk/transport.test.ts:825-828,860-885, cli/talk/transport/listener.ts:504-515,561-574,729-736 - The new fixture only fails publication after registration succeeds and only samples stale status before withdrawal or at release. It misses a first-publication failure that reserves the ID and a withdrawal that clears stale before draining. Both are ownership boundaries named in plan Make talk transport and binding lifetimes explicit #271, lines 15 and 52. - Inject a first publication failure and retry with the same ID. During withdrawal, pause the drain and assert live: false, stale: true, and no held requests before release. - class: untested publication phase boundaries
    • [LOW] Maintainability - cli/test/unit/talk/frame.test.ts:157-161, cli/talk/transport/frame.ts:88-90,123-130 - The persistence test stays green if a later push returns a new JSON error with a different diagnostic. Plan Make talk transport and binding lifetimes explicit #271, line 19, calls for “the same saved error.” - Capture the original failure and compare the follow-up diagnostic with it. - class: partial persistent error assertion

    Spec

    • [LOW] Spec - .agents/skills/verify/scripts/smokeTalkTurns.ts:109-150, .agents/skills/verify/scripts/omp-smoke.ts:2558-2559 - Unreached: If a provider divides the handover template between two text parts in one user message, the smoke no longer detects it. The base joined the parts before matching; the candidate checks each part in isolation. A split template in a copied fixture conversation can also enter the sender responder. The documented smoke, production template, and current side-turn fixtures do not show this split; provider reach is an inference. Plan Make talk transport and binding lifetimes explicit #271, line 32, says “Keep the independent handover side-turn evidence.” - Restore joined-message matching for the handover marker and retain separate-part matching for fixture prompts beside reminders. Test a split template in copied history. - class: marker lost across content parts
    • [LOW] Spec - cli/talk/transport/listener.ts:494-515,651-657 - If a caller omits the ID and the random ID repeats a withdrawn ID for the same session, a pending removal can unlink the newly published entry. The base cleared the pending removal after every successful publication; the candidate does so only for replacements. The default-ID path is documented, but the collision and failed removal must coincide. This breaks plan Make talk transport and binding lifetimes explicit #271, line 52, which requires the same cleanup and descriptor lifetime. - Reject or redraw generated IDs that the listener has already reserved. - class: new publication inherits a pending removal
    • [LOW] Spec - cli/talk/transport/listener.ts:504-511 - Unreached: If a caller mutates its input while initial publication is in progress, the file can contain one name and folder while the listener stores another. A later repair can then publish metadata that no update committed. The extension, spawned peer fixture, and in-process tests pass fresh inputs; the documented inputs do not mutate them. The base used one snapshot, and plan Make talk transport and binding lifetimes explicit #271, line 52, requires the same visible publication behavior. - Use the same metadata snapshot for publication and the stored registration. - class: metadata re-read after publication

    Code review round 1, lens text-and-safety

    Code-review: pass

    Standards

    • [MEDIUM] Bug - .agents/skills/verify/scripts/smokeTalkTurns.ts:135-150,180-195, .agents/skills/verify/SKILL.md:110,142 - An auxiliary request that copies the fixture history can take the sender's pending call. The classifier matches any historical user message, then the responder clears the pending call before checking for its result. The peer classifier likewise accepts a historical prompt or talk delivery as evidence of the current turn. Inference: whether a supported omp version sends a non-handover auxiliary request with copied history is uncertain; the new auxiliary fixtures omit that history. - Require the current fixture prompt, a current scripted peer event, or the continuation of the outstanding call. Keep tool availability as a separate assertion and add a copied-history regression. - class: request ownership inferred from historical text
    • [LOW] Bug - .agents/skills/verify/scripts/smokeTalkTurns.ts:109-127, .agents/skills/verify/scripts/omp-smoke.ts:2558-2559,3263-3267 - Unreached: the negative handover check misses a template that spans adjacent text parts of one user message. The old check joined the parts, and the TUI responder still does. The handover flow passes one prompt string, and the checked fixtures do not split the marker. Inference: if omp serializes that string across parts, handover-refused can miss the side turn. - Restore whole-message text matching for handover detection. Keep per-part matching for the fixture prompt beside a host reminder. - class: multipart evidence checked per fragment
    • [LOW] Bug - .agents/skills/verify/SKILL.md:261, .agents/skills/verify/scripts/omp-smoke.ts:2485-2492,2519-2525 - The troubleshooting row attributes every FAIL talk-offered to a missing or Bash-mounted tool. The step also fails when the responder never recognizes a fixture turn, before it inspects any tool list. - Distinguish the fixture-turn timeout from a recognized turn that does not offer talk. - class: incomplete failure diagnosis
    • [LOW] Bug - cli/talk/transport/listener.ts:215-218,575-576,729-732 - Ended and the cleared stale bit become visible before registry.release closes the descriptor. The new withdrawal test observes that status inside the release callback. The comments describe the close as already complete. - Say that Ended drops the descriptor from the registration and that withdrawal then closes it before removing the entry. - class: cleanup state documented as completed side effect

    Spec

    None.

  10. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 2, delta

    Code-review: pass

    Previous findings

    • Round-1 finding on .agents/skills/verify/scripts/smokeTalkTurns.ts:109-150,179-193: fixed - smokeTalkTurns.ts:134-139,186-187 joins the text parts before checking for the handover marker.
    • Round-1 finding on cli/talk/transport/listener.ts:493-517,650-656: fixed - listener.ts:472-477,502-509 redraws reserved IDs under the registration lock.
    • Round-1 finding on cli/talk/transport/listener.ts:505-510,453-462: fixed - listener.ts:459-465,516-524 uses one metadata snapshot for each publication and its retained registration.
    • Round-1 finding on cli/talk/transport/listener.ts:560-579,585-599,707: fixed - listener.ts:578-613 protects the drain, release, and removal without masking the wait for the lock.
    • Round-1 finding on cli/test/unit/talk/transport.test.ts:833-842: fixed - transport.test.ts:846-861,917-923 records the release state, runs real cleanup, then checks the captured values.
    • Round-1 finding on cli/test/unit/verifySmokeTalkTurns.test.ts:98-105,109-116,119-145,148-167,173-192: open - repeated under Standards.
    • Round-1 finding on cli/test/unit/verifySmokeTalkTurns.test.ts:108-117: open - the new tests exercise the shared offer check but not whether either startup path waits for it.
    • Round-1 finding on cli/test/unit/talk/transport.test.ts:825-828,860-885: open - transport.test.ts:877-887 covers first-publication failure. The drain-phase observation remains missing; synchronous socket methods do not prevent the Effect scheduler from yielding.
    • Round-1 finding on cli/test/unit/talk/frame.test.ts:157-161: fixed - frame.test.ts:157-163 checks that both empty and valid later pushes return the original error object.
    • Round-1 Spec finding on .agents/skills/verify/scripts/smokeTalkTurns.ts:109-150: fixed - smokeTalkTurns.ts:134-139 detects the split marker, and omp-smoke.ts:2537-2548 retains the independent refusal check.
    • Round-1 Spec finding on cli/talk/transport/listener.ts:494-515,651-657: fixed - listener.ts:472-477,502-509 prevents a generated ID from inheriting a queued removal.
    • Round-1 Spec finding on cli/talk/transport/listener.ts:504-511: fixed - listener.ts:516-524 uses the same metadata for the file and the registration.
    • Round-1 finding on .agents/skills/verify/scripts/smokeTalkTurns.ts:135-150,180-195: open - repeated under Standards.
    • Round-1 finding on .agents/skills/verify/scripts/smokeTalkTurns.ts:109-127: fixed - smokeTalkTurns.ts:134-139 checks the assembled message; verifySmokeTalkTurns.test.ts:109-119,209-222 covers the split form.
    • Round-1 finding on .agents/skills/verify/SKILL.md:261: fixed - SKILL.md:261-263 distinguishes a fixture-turn timeout, a missing tool, and a pending-call timeout.
    • Round-1 finding on cli/talk/transport/listener.ts:215-218,575-576,729-732: fixed - listener.ts:215-219,593-595,750 distinguishes dropping the descriptor from closing it.

    Standards

    • [MEDIUM] Bug - .agents/skills/verify/scripts/smokeTalkTurns.ts:95-98,185-200,273-287, cli/test/unit/verifySmokeTalkTurns.test.ts:203-222,233-243,265-275 - An auxiliary summary request can claim the sender’s pending call if it copies the matching result and appends a new user instruction before another assistant message. The peer can likewise treat a copied, unanswered prompt or ask as the current event. The fixtures put an assistant message after the matching result or ask, or give the current result a different ID. Whether a supported omp version emits these non-handover request shapes is an inference. - Reject auxiliary user instructions that follow copied fixture data. Keep known host reminders and genuine tool continuations, and test both responders with unfinished copied turns. - class: request ownership inferred from historical text
    • [LOW] Bug - .agents/skills/verify/scripts/smokeTalkTurns.ts:115-128,236-239,273-287, cli/test/unit/verifySmokeTalkTurns.test.ts:265-275 - If the provider splits a delivered ask between its trust line and reply hint, the peer answers ok instead of replying. The previous responder joined the message parts before reading the hint. The current fixtures use a single string, and provider reach is an inference. - Parse the assembled ask within one current user message. Keep per-part matching for opening prompts beside host reminders. - class: ask header parsed before text assembly
    • [LOW] Bug - cli/test/unit/verifySmokeTalkTurns.test.ts:240-243 - If peer startup stops recognizing the prompt beside a host reminder, respond still returns [] and the test waits on a promise that never settles. - Check settlement before awaiting firstRequest, as the neighboring startup tests do. - class: regression strands fixture promises
    • [LOW] Bug - cli/test/unit/talk/transport.test.ts:907-937 - If withdrawal returns without entering the release wrapper, the test waits on releasing until Vitest times out. The Effect never reaches cleanup, leaving its listener scope open. - Race release entry against withdrawal exit and bound the wait with the live clock so failures unwind the scope. - class: unbounded fixture gate
    • [LOW] Maintainability - cli/test/unit/verifySmokeTalkTurns.test.ts:123-143, .agents/skills/verify/scripts/omp-smoke.ts:2487,2514-2522 - Removing either startup await leaves the negative tests green because they call the helper directly. The smoke can then proceed without confirming that model offers talk. - Drive the startup boundary with each model missing talk in turn, and assert FAIL talk-offered before the first scripted call. - class: missing negative gate assertion
    • [LOW] Maintainability - cli/test/unit/talk/transport.test.ts:892-923, cli/talk/transport/listener.ts:580-595,750 - A regression that clears stale on entry to Withdrawing still passes. The fixture samples status before withdrawal and after Ended. Although socket writes are synchronous, Effect can yield between drain operations. - Use a controlled scheduler to observe live: false, stale: true, and zero held requests during the drain. - class: untested publication phase boundaries
    • [LOW] Maintainability - cli/talk/transport/listener.ts:472-477,502-509, cli/test/unit/talk/transport.test.ts:774-805,998-1059 - Reverting the generated-ID redraw leaves the reservation and removal tests green. One tests chosen duplicates; the other never registers a replacement while removal is pending. - Make the default-ID path draw a reserved ID and then a fresh one. Verify the repair pass removes only the old entry. - class: untested generated ID collision

    Spec

    None.

    Manager response to round 1

    Repaired:

    • Correctness, spec, self-review: the base cleared a pending removal after first publication. The generated-ID path did not check permanent reservations. Now it chooses an unused ID under the admission lock. A newly published file cannot inherit an old queued removal. Caller-chosen duplicates still fail.
    • Correctness and spec: snapshot display metadata before publishing. Registration and repair use the same name and folder even if the caller changes the input before the operation returns. A regression exercises first and replacement publication.
    • Correctness: an Effect caller could interrupt withdrawal after admission stopped and strand the file. The lock acquisition remains interruptible. Once withdrawal owns cleanup, it completes replies, descriptor release and removal. A regression interrupts the withdrawal during release and checks cleanup and the interrupted exit.
    • Spec and tests: collect typed status, path and descriptor values during fixture cleanup. Perform real release before assertions. Always release the two fixture gates. Verify failed first publication leaves nothing and the same chosen ID can register next.
    • Text and safety: Ended documents when the registration drops its descriptor, before the actual close finishes. The status sampling at real release checks that boundary.
    • Spec and tests: empty and valid pushes after an invalid frame must return the original error object, not a new error with its category.
    • All three lenses: restore whole-message matching for the handover marker, including across adjacent text parts, without concatenating host reminders with the fixture opening prompt. Preserve independent evidence for the refused handover.
    • Text and safety: correlate the sender with the current opening prompt and then the current result of its outstanding call. Match peer events only on the current turn. Copied history does not claim pending sender work or start a peer event.
    • Spec and tests: both real startup paths use the same offer check. The tests drive that check with a real fixture turn without the tool for each model. Negative tests observe promise settlement before awaiting it and always release their own responders. The docs distinguish a missing fixture turn, an unanswered call, and a recognized turn without the tool.

    Rejected:

    • The requested artificial pause in the Withdrawing interval has no controllable public boundary: the reply write and connection finish in connection.ts are synchronous. The regression observes stale/live before withdrawal, the held client's not-live reply, and committed status at the real async release, including interruption and removal. Adding a production test seam or relying on cooperative scheduling would change or weaken that proof.

    Redesigned: none.

  11. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 3, delta

    Code-review: pass

    Previous findings

    • Round-2 finding on .agents/skills/verify/scripts/smokeTalkTurns.ts:95-98,185-200,273-287: fixed - smokeTalkTurns.ts:121-152,211-222,295-310 uses the latest substantive event. The tests cover copied results, prompts and asks followed by a new instruction, and a genuine result followed only by a host reminder.
    • Round-2 finding on .agents/skills/verify/scripts/smokeTalkTurns.ts:115-128,236-239,273-287: fixed - smokeTalkTurns.ts:121-132,309 assembles the text before parsing the ask. verifySmokeTalkTurns.test.ts:285-294 covers the split.
    • Round-2 finding on cli/test/unit/verifySmokeTalkTurns.test.ts:240-243: fixed - verifySmokeTalkTurns.test.ts:249-252 checks settlement before awaiting the peer's first request.
    • Round-2 finding on cli/test/unit/talk/transport.test.ts:907-937: fixed - transport.test.ts:1020-1027,1056-1062 races release entry against withdrawal exit, bounds the wait with the live clock, and releases both fixture gates during cleanup.
    • Round-2 finding on cli/test/unit/verifySmokeTalkTurns.test.ts:123-143 and .agents/skills/verify/scripts/omp-smoke.ts:2487,2514-2522: fixed - Both supplied negative runs drive the unchanged startup checks at omp-smoke.ts:2487,2514. Each names the process missing talk, exits 1, and skips the scripted calls.
    • Round-2 finding on cli/test/unit/talk/transport.test.ts:892-923: fixed - transport.test.ts:1037-1041 observes all three phases, including the stale registration with admission closed and no held requests.
    • Round-2 finding on cli/talk/transport/listener.ts:472-477,502-509: fixed - listener.ts:509-514 uses the permanent reservations for generated IDs. transport.test.ts:433-445,884-908 covers redraws past reserved IDs and verifies that retrying removal leaves the replacement intact.

    Standards

    None.

    Spec

    • [LOW] Spec - .agents/skills/verify/SKILL.md:110,263, .agents/skills/verify/scripts/smokeTalkTurns.ts:121-152,185-189,211-222 - The timeout guide says no current turn contained the result, but the fixture at cli/test/unit/verifySmokeTalkTurns.test.ts:205 contains the matching result and correctly ignores it because a newer instruction follows. The guide also says each text part counts alone, but the responder now joins the parts. Step 5 of plan Make talk transport and binding lifetimes explicit #271, export line 56, requires that “The talk verification documents what it checks.” - Update the guide, timeout diagnosis, and sender comment to describe the latest substantive event and how the responder assembles text around host reminders. - class: stale smoke routing documentation

    Manager response to round 2

    Repaired:

    • The sender and peer route only the latest substantive input. An actual user instruction after a copied result, prompt or ask supersedes it, even without an intervening assistant message. A complete host reminder is metadata, not a user instruction; a correlated tool reply followed only by that reminder remains current. The fixture stitches content parts of the same user message before parsing a delivered ask. Tests include both unfinished copied turns and a split real ask.
    • The test that expects a peer to recognize the prompt beside a host reminder now proves its first request settled before awaiting its value. The other negative waiters keep their bounded observation and cleanup.
    • At the real startup gate, ran the unchanged V6 driver with the talk registration missing from the actual peer process, then from the actual sender process. Each exited 1 at the correct talk-offered diagnostic before any scripted call. Both cleaned up the private registry. Candidate files and driver checks stayed unchanged. The isolated wrapper is retained for the final parent replay, with the pinned omp binary. Unit coverage still checks both responders. The positive real V6 run passed all 21 checks.
    • The withdrawal fixture races entry into descriptor release against withdrawal exit and a bounded live-clock timeout. Its controlled scheduler records all three status transitions before, during, and after draining a held request. The gate teardown is unconditional.
    • The actual default-ID implementation calls the tested allocator with the permanent set. A plain symbolic sequence checks a reserved active value, a reserved withdrawn value, and the accepted fresh value, without replacing system entropy. The integration test starts a fresh registration while removal is pending and verifies only the old entry goes away.

    Rejected: none.

    Redesigned:

    • Copying history: searching every message in a turn still accepted the right result followed by an unrelated instruction. Replaced the search with the latest substantive event, with payload-specific parsing for user input and tool results.
    • Missing-tool evidence: unit testing the shared readiness check did not establish that the real startup driver awaited it. Verified the unchanged real driver twice against a test-owned extension missing the tool in one subprocess. The role-specific failure and skipped follow-up checks prove both startup paths.
    • Intermediate withdrawal: the public hooks have no native suspension point during writes. A controlled per-fiber scheduler observes the transition between Effect operations without adding a transport seam, changing socket methods or depending on timing. An explicit race also fails promptly if cleanup never enters release.
  12. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 4, delta

    Code-review: pass

    Previous findings

    • Round-3 finding on .agents/skills/verify/SKILL.md:110,263 and .agents/skills/verify/scripts/smokeTalkTurns.ts:121-152,185-189,211-222: fixed - The guide and responder comments now explain that a newer instruction supersedes a copied result and that the responder joins text parts after dropping complete host reminders. See .agents/skills/verify/SKILL.md:112-114,267 and .agents/skills/verify/scripts/smokeTalkTurns.ts:185-188,264-265.

    Standards

    • [LOW] Bug - .agents/skills/verify/SKILL.md:265,267 - The troubleshooting rows match more failures than they explain. If the peer passes its tool check but then stalls on get_state, the driver reports FAIL talk-offered: RPC get_state took more than 30 s, which the guide misdiagnoses as an unrecognized opening prompt. A cancelled new_session also reports FAIL new-session-list before any tool call, which the guide misdiagnoses as a failed tool result. See .agents/skills/verify/scripts/omp-smoke.ts:2121-2127,2486-2488,2624-2627. - Match fixture-turn and sender-call timeouts by their full reason, and direct readers with other failures to the reason printed after the step name. - class: overbroad failure diagnosis

    Spec

    None.

    Manager response to round 3

    Repaired: corrected the skill, timeout guide and responder comments. Only the latest substantive event counts. Whole host-reminder parts do not count, and the fixture joins the remaining text parts of a user message before reading an ask. Both real negative gates and the positive V6 flow were rerun.

    Rejected: none.

    Redesigned: none.

  13. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 5, delta

    Code-review: pass

    Previous findings

    • Round-4 finding on .agents/skills/verify/SKILL.md:265,267: fixed - Both timeout templates match the smoke driver: the opening-turn message names peer or sender, and the pending-call message names the action and talk-sender-<n>. Both use the 30-second limit. The fallback row now directs readers to the printed reason for failures such as a get_state timeout or a cancelled new_session. See .agents/skills/verify/SKILL.md:265-268, .agents/skills/verify/scripts/smokeTalkTurns.ts:42,66-70,171-181,229-240, and .agents/skills/verify/scripts/omp-smoke.ts:2121-2127,2486-2488,2624-2627.

    Standards

    None.

    Spec

    None.

    Manager response to round 4

    Repaired: the opening-prompt and pending-call rows match their complete timeout reasons. Other failures direct the reader to the reported operation instead of assuming a tool result. Verified the reason templates in withTimeout, expectTalkOffered and ScriptedSession.call. The documented fixture suite passed all nine tests.

    Rejected: none.

    Redesigned: none.

  14. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 6, lens correctness

    Code-review: pass

    Standards

    • [LOW] Bug - cli/talk/transport/listener.ts:352-359,419-427,582-588 - If a connection closes with a request handler queued, its finalizer can unlink the connection before Effect interrupts the child. A withdrawal in that gap skips the unlinked request set. If the child runs next, it can start the handler after withdrawal. The previous liveness check blocked this. This ordering is an inference from the scheduler; its reach under the default scheduler is unverified. - End the held-request set in the same synchronous step that unlinks the connection. - class: detached request set remains active

    Spec

    None.

    Code review round 6, lens spec-and-tests

    Code-review: pass

    Standards

    • [LOW] Maintainability - cli/test/unit/talk/transport.test.ts:433-445,884-908, cli/talk/transport/listener.ts:514 - The removal test does not force a collision. Inference: if register bypasses the redraw helper, the helper tests still pass and the removal test only fails on a random repeat. - Make registration draw the withdrawn ID first, then a fresh ID. Verify that repair removes only the withdrawn entry. - class: collision test bypasses registration
    • [LOW] Maintainability - cli/test/unit/talk/extension.test.ts:2041-2062,3569-3585, cli/talk/extension.ts:967-970,1049-1051 - The gated tests release publication before a second repair tick. Inference: removing the pending-pair guard can let that tick publish a second registration without failing these tests. - Hold publication across another repair tick. Verify that only the original pair is visible and that the binding still refuses it as a self-target. - class: missing registration reentry coverage
    • [LOW] Maintainability - cli/test/unit/talk/transport.test.ts:464-490, cli/talk/transport/connection.ts:66-81 - The pressure test observes an over-limit pause and a fully drained resume, but does not control when the queue is exactly at the limit. Inference: it can miss a regression that pauses at equality or resumes only below it. - Drive exact byte counts and check socket state at the limit, above it, and after draining back to it. - class: untested threshold equality
    • [LOW] Maintainability - cli/test/unit/verifySmokeTalkTurns.test.ts:179-229, .agents/skills/verify/scripts/smokeTalkTurns.ts:219-222 - The unrelated tool result in the test is followed by a user instruction, so it never exercises the mismatched-ID branch. Inference: removing the ID check leaves the test green and lets an auxiliary request whose latest event is a different tool result consume the pending call. - Add a request whose latest event is a different tool result. Verify that the responder answers without settling the pending call. - class: mismatched continuation not exercised

    Spec

    None.

    Code review round 6, lens text-and-safety

    Code-review: pass

    Standards

    • [LOW] Bug - .agents/skills/verify/SKILL.md:265-267 - The troubleshooting table treats missing evidence as a diagnosis. The supplied missing-tool run loads the extension but omits talk registration. It reports both FAIL talk-offered and ok extensions-loaded. Likewise, a sender call can time out because no result arrived, not because the responder rejected a result it received. - State what each check observed. List loading, registration, tool execution, and request matching as possible causes rather than conclusions. - class: overbroad failure diagnosis
    • [LOW] Bug - .agents/skills/verify/SKILL.md:114, .agents/skills/verify/scripts/smokeTalkTurns.ts:43,302-307, .agents/skills/verify/scripts/omp-smoke.ts:2574,2605-2610 - The guide and comments say the peer stays busy until the cancel check releases it. The responder can also return ok after 30 seconds without a release. On success, the driver releases it after confirming Cancelled:, before checking that the message never arrived. - Document both release conditions and distinguish the cancel result from the later absence check. - class: inaccurate fixture lifetime documentation

    Spec

    None.

    Manager response to round 5

    Repaired: the independent hosted gate found stale installed-bundle digests after round 5 passed. Regenerated only the twelve affected snapshots, verified both digests and replayed all twelve cases. No other JSON value changed.

    Rejected: none.

    Redesigned: none.

  15. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 7, delta

    Code-review: pass

    Previous findings

    • Round-6 finding on cli/talk/transport/listener.ts:352-359,419-427,582-588: fixed - The finalizer discards held requests before unlinking the connection in the same synchronous step at cli/talk/transport/listener.ts:429-432.
    • Round-6 finding on cli/test/unit/talk/transport.test.ts:433-445,884-908: rejected - Registration calls the allocator under the lock at cli/talk/transport/listener.ts:515-522. The allocator test forces symbolic collisions, and the listener test verifies that retrying removal preserves the replacement entry. The listener test does not force a collision. That limit does not justify adding a test-only production hook or replacing session entropy.
    • Round-6 finding on cli/test/unit/talk/extension.test.ts:2041-2062,3569-3585: fixed - The test holds publication across another repair tick and checks that only the original pair remains visible and is refused as a self-target at cli/test/unit/talk/extension.test.ts:3573-3585.
    • Round-6 finding on cli/test/unit/talk/transport.test.ts:464-490: fixed - The test checks the socket at the byte limit, above it, and after draining back to it at cli/test/unit/talk/transport.test.ts:464-481.
    • Round-6 finding on cli/test/unit/verifySmokeTalkTurns.test.ts:179-229: fixed - The test makes a different call's result the latest event and verifies that it does not settle the pending call at cli/test/unit/verifySmokeTalkTurns.test.ts:206-228.
    • Round-6 finding on .agents/skills/verify/SKILL.md:265-267: fixed - The table separates what the check observed from why a tool or result might be missing.
    • Round-6 finding on .agents/skills/verify/SKILL.md:114 and the slow-turn comments: open - The guide and responder comment are corrected, but the driver comment still omits the timeout. Repeated under Standards.

    Standards

    • [LOW] Bug - .agents/skills/verify/scripts/omp-smoke.ts:2574, .agents/skills/verify/scripts/smokeTalkTurns.ts:302-307 - If the slow turn reaches its 30-second deadline before cancellation completes, the responder stops holding the peer. The driver comment says the peer stays busy until the cancel check releases it. - State that the hold also ends on timeout, or remove the duplicate comment. - class: inaccurate fixture lifetime documentation
    • [LOW] Bug - cli/talk/transport/listener.ts:146-150,429-432,594-596 - When a connection ends without a registration withdrawal, the finalizer discards its held request IDs. The class comment still describes withdrawal as the only end of the set, which obscures why a detached handler cannot start or answer. - Document both end paths and how they differ: withdrawal takes the IDs to reply, while connection cleanup drops them. - class: inaccurate request ownership lifetime documentation

    Spec

    None.

    Manager response to round 6

    Repaired:

    • Detached request set: 774cd062 discards the held ID set synchronously before unlinking the connection. No claim survives detachment and dropping work copies no IDs. The existing withdrawal still takes IDs to reply while the connection is live.
    • Pending-pair registration and buffer equality: 774cd062 holds a publication across the next repair tick before checking its pair; a connection test checks unpaused at exactly the limit, paused above it and resumed after draining exactly to it. The real socket test still covers actual reads and platform I/O.
    • Mismatched continuation: babdfd78 supplies a different tool result as the latest event, with no subsequent user instruction. The responder answers without settling the outstanding call.
    • Conditional slow-turn release and overbroad diagnoses: babdfd78 describes both the driver's release after the cancel acknowledgement and the independent timeout. The guide reports what each failure actually observed; it distinguishes an unloaded extension from a loaded one without the tool, and an absent result from a result that did not match.

    Rejected:

    • Forcing a collision at the actual listener to test that it calls its allocator: the accepted round-3 repair already tests the allocator with deterministic symbolic values and independently tests real pending removal with a new registration of the same session. listener.ts calls firstUnreserved(servedIds, randomNameHex) under the existing lock. A deterministic integration collision would require replacing the source of actual session identifiers or adding a production test seam. Neither is necessary to verify this wiring. Keep the explicit limit: the integration case does not force the random draw itself to collide.

    Redesigned: The guide now separates the observed outcome from possible causes rather than assuming all missing evidence has one explanation.

  16. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Code review round 8, delta

    Code-review: pass

    Previous findings

    • Round-7 finding on .agents/skills/verify/scripts/omp-smoke.ts:2574 and .agents/skills/verify/scripts/smokeTalkTurns.ts:302-307: fixed - The driver no longer claims that only cancellation releases the peer. The responder and guide document both release and the 30-second timeout at .agents/skills/verify/scripts/smokeTalkTurns.ts:41-44,302-307 and .agents/skills/verify/SKILL.md:114.
    • Round-7 finding on cli/talk/transport/listener.ts:146-150,429-432,594-596: fixed - The class comment now distinguishes withdrawal, which takes the IDs for final replies, from connection cleanup, which discards them. Both prevent handlers from starting or claiming replies through the set, as described at cli/talk/transport/listener.ts:146-150.

    Standards

    None.

    Spec

    None.

    Manager response to round 7

    Repaired: documented both ways a held set ends: withdrawal takes IDs for final replies; disconnect drops them.

    Rejected: none.

    Redesigned: removed the stale duplicate driver comment instead of repeating the slow-turn deadline there. The guide and responder already document release and timeout.

  17. DocksDocks commented on Dec 1, 2026

    @DocksDocks
    OwnerAuthor

    Archived with landing pull request #277

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions