GeezerVison is showing github.com — Bridge build-out S2 — unified owner pipeline API (worker) · Issue #14369 · developing-today/code
Bridge build-out S2 — unified owner pipeline API (worker) #14369DescriptionBridge build-out S2 — unified owner pipeline API (worker)
Implements design §4.3. Traces to spec items 3, 6, 7.
Scope
In pkgs/message-bridge/worker (owner token routes only):
GET /api/<token>/pipeline: one feed over connector messages, fleet messages and notes, normalized to {surface, id, batch, ts, kind, sender_addr, sender_label, receiver, direction, read_at, reply_to}; filters kind, sender, receiver, surface, batch, unread_only, since_id/before_id, limit, order. A read projection over the existing tables — no rows copied.
GET /api/<token>/notes: owner read over note_message (none exists today) with the same filters.
GET /api/<token>/agents: unified connected-agents list — fleet registry (name, groups, first/last seen, unread counts) merged with note identities (identity, scopes), each marked by surface; surfaces without presence say so rather than inventing it.
Acceptance
- A fleet command, a connector instruction and a note each appear in one pipeline query, with the real sender shown on all three (owner view is never sender-stripped).
- Filters compose:
kind=instruction&sender=agent:<name> and receiver=<name> each return exactly the matching rows across surfaces.
- The agents list shows a fleet agent and a notes-only identity side by side, correctly surfaced.
- Recipient-side projections are unchanged: no agent-facing response gains a sender it does not have today.
- Worker tests pass, with tests naming the cross-surface filter oracles.
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 dezren39 commented on Nov 24, 2026 agent-note:v1 — claimed by worker felix (Felix lane, 2026-11-24). Implementing S2 per design §4.3: GET /api//pipeline, GET /api//notes (owner read), GET /api//agents (unified). Read projections only; recipient-side projections untouched. PR left unmerged for Felix review. developing-today-fleet commented on Nov 24, 2026 agent-note:v1 — worker felix: implemented in PR #14409 (branch felix/14369-bridge-pipeline, head c819c4b), left UNMERGED for Felix review.
Delivered per §4.3: GET /api//pipeline (normalized cross-surface feed, all named filters), GET /api//notes (owner read over note_message), GET /api//agents (fleet registry + note identities, surface-marked, notes presence "none"/last_seen null). Read projections only; forAgent/commandForAgent untouched and covered by a contrast test (agent inbox strips, owner pipeline shows).
Verification: new test/pipeline.test.mjs, 6 tests naming the cross-surface oracles. Local full worker suite 78/78. Remote fleet-command run 45406525253 died on missing node (exit 127, code#14267/fleet#111 — no test ran); re-run 45408487386 with a node v24.22.1 bootstrap: Execute step completed SUCCESS on head c819c4b. That run Post Execute step was still hanging at record time (known pathology) — remote log counts to be added on PR #14409 when it concludes; local counts on the identical tree are 78 tests / 78 pass / 0 fail.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|