Skip to content

Make talk transport and binding lifetimes explicit - #277

Merged
DocksDocks merged 12 commits into
mainfrom
271-make-talk-transport-and-binding-lifetimes-explicit
Dec 1, 2026
Merged

DocksDocks merged 12 commits into
mainfrom
271-make-talk-transport-and-binding-lifetimes-explicit

Conversation

@DocksDocks

@DocksDocks DocksDocks commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Plan run: #271 Make talk transport and binding lifetimes explicit

Pull request: #277. Checks: Passed all 10 jobs in run 46569161713. Reviewed head: c5ae5349817c04a0b185ccd03aa0541d6f487031.

What changed

  • Registration, withdrawal and request ownership now carry their valid data in listener.ts. A failed replacement retains the last published descriptor.
  • The binding uses its pending registration directly. Frame decoding, socket read pressure and competing route results no longer use duplicate flags.
  • The talk smoke identifies peer and sender conversations by their actual user messages. Background requests cannot start the script or consume an outstanding call.

Decisions and corrections

  • The original smoke could inspect a background request instead of the prompted conversation. On the pinned omp, that request offered no tools while the real conversation did. The corrected smoke still fails when the real turn lacks talk.

Delegated decisions

  • Use separate owners for publication and outstanding requests. A shared phase cannot represent a draining listener and independent connections. Revert the transport commit to undo. Record: Research decision 1.
  • Derive state from the existing payload or count where possible. A second flag or new state library would duplicate the owner. Revert the transport commit to undo. Record: Research decision 2.
  • Verify with two real processes in a private namespace and temporary registry. Using a live registry could inspect unrelated sessions. The namespace disappears on exit. Record: Research decision 3 and the A4 isolation recipe.
  • Match the fixture conversation before evaluating its tools. Retrying the smoke or disabling background traffic would hide the observed interleaving. Revert the fixture commit to undo. Record: Research decision 4.

Reviews

Plan review passed in round 4. Code review: passed in round 8; no open findings.

Verification

  • bun run check:types, targeted lint and formatting: passed.
  • Focused transport, binding and smoke tests: 328 passed across six files. The hosted-only default-folder test passed separately in a private mount.
  • bun run check:generated and 97 build tests: passed.
  • Real omp/19.2.1 V6 talk: all 21 checks passed, including the end of each session and registry cleanup.
  • Each missing-tool case exited 1 at talk-offered, identified the correct process and stopped before messaging. Both private registries were removed.
  • All 12 sync snapshots that include the installed bundle passed after regeneration. No other snapshot value changed.

Limits and failures

  • The complete local bun run check suite was not run. The initial fixture inspected background traffic and failed on the unchanged base. The repaired test uses the intended turn.
  • The first hosted run rejected the old bundle digest in those 12 snapshots. No invariant failed.

Kept resources

  • If merged: retain the pinned test binary and the two missing-tool fixtures for final reconciliation. Remove the child branch and its review scratch. If left open: retain the PR, linked branch and plan.

After merge

Checklist

  • bun run check passes locally: not run in full.
  • bun run check:types passes.
  • Tested locally end to end: A1–A4, including two isolated real omp processes.
  • Required Full CI passes: Passed all 10 jobs in run 46569161713.
  • Code review passes: passed in round 8; no open findings.

Closes #271

…t order

Keep auxiliary requests away from the scripted peer and sender. Check the offered tools on the actual first fixture turn, including when the host sends reminders in a separate text part.
Retain the published descriptor through withdrawal and make ended request sets reject new work. Derive read pressure from buffered bytes and keep failed decoder and lost route states terminal.
…tadata

Reserve generated IDs under the admission lock. Use the same display metadata for publication and repair. Once withdrawal owns cleanup, interruption cannot strand its descriptor or entry.
Exercise interrupted cleanup, first-publication failure, metadata changes and the original terminal frame error.
@DocksDocks DocksDocks linked an issue Dec 1, 2026 that may be closed by this pull request
@DocksDocks
DocksDocks marked this pull request as ready for review December 1, 2026 03:14
@DocksDocks
DocksDocks marked this pull request as draft December 1, 2026 03:21
@DocksDocks
DocksDocks marked this pull request as ready for review December 1, 2026 03:31
@DocksDocks
DocksDocks merged commit 2337d2a into main Dec 1, 2026
10 checks passed
@DocksDocks
DocksDocks deleted the 271-make-talk-transport-and-binding-lifetimes-explicit branch December 1, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make talk transport and binding lifetimes explicit

1 participant