GeezerVison is showing github.com — Bridge build-out S1 — pattern + limit addressing (worker) · Issue #14367 · developing-today/code
Bridge build-out S1 — pattern + limit addressing (worker) #14367DescriptionBridge build-out S1 — pattern + limit addressing (worker)
Implements design §4.1. Traces to spec items 2 and 8.
Scope
In pkgs/message-bridge/worker (src/relay.js, src/fleet.js, src/notes.js):
- Glob addresses for fleet sends:
agent:<glob> over registered agent names, resolved at send time in deterministic name order. group:<name>, agents, all unchanged. Notes sends keep their segment wildcards and gain the same matching rule.
- Optional
limit: N on fleet and notes sends: first N matches (name order) receive a row.
- Every pattern send returns a match report:
{matched, delivered, recipients, remaining}. Zero matches stays an error.
- New store table
bridge_distribution (batch, sender_addr, pattern, limit, matched set, delivered set, ts). A follow-up send with broaden: <batch> and a new limit/pattern delivers only to matched-but-undelivered recipients — broadening never double-sends.
Acceptance
-
agent:f* with two matching registered agents and limit: 1 delivers to exactly the first by name order; the response reports matched 2, delivered 1, remaining 1.
-
broaden on that batch with limit: 2 delivers to exactly the remaining agent; a second identical broaden delivers nothing.
- Existing addressing (
agent:<name>, group:, all, notes wildcards) behaves exactly as before; node --test suites for relay/fleet/notes pass with new tests naming these oracles.
- The distribution record is written for every pattern send and readable by the owner (pipeline slice S2 consumes it; this slice only writes it).
Design of record: doc/2026-11-24_design_message-bridge-buildout.md (PR #14364). Spec numbers below refer to §1 of that doc; design detail is in the section cited per issue.
Filed by Felix's design lane, 2026-11-24. Not enqueued in this pass, per the filing-comment rule: Felix dispatches lanes from the slice index (design doc §7, also posted on #13907). Activitydeveloping-today commented on Nov 24, 2026 developing-today-fleet commented on Nov 24, 2026 Claimed by worker felix (Felix lane, 2026-11-24): implementing S1 — glob addressing (agent:, same matching rule on fleet + notes), limit + match report, bridge_distribution records, and broaden. Branch felix/14367-bridge-pattern-limit; PR will be left unmerged for Felix's review. developing-today-fleet commented on Nov 24, 2026 S1 implemented by worker felix — PR #14412 (branch felix/14367-bridge-pattern-limit, head e7cd26e), left UNMERGED for Felix's review; the PR carries Closes #14367.
What landed: shared glob rule (src/glob.js) on both surfaces; agent: in parseTargets + relay grammar; limit + match report {matched, delivered, recipients, remaining} on fleet and notes sends; bridge_distribution written for every pattern send (fleet + notes; notes gained an additive batch column); broaden delivering only to the matched-but-undelivered remainder, original-sender-only; MCP send_message gained limit/broaden + the report.
Verification: fleet-command run 45410331060, conclusion success — full worker suite 81 tests / 8 files, 81 pass / 0 fail, with the acceptance oracles passing by name (quoted on PR #14412, comment 7134713979). Runner caveat recorded there: the executor image has no node (code#14267 / dezren39/fleet#111), so the suites ran under its bun test runner per the documented fallback.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|