Skip to content

Bridge S2: unified owner pipeline, notes owner read, unified agents list (#14369) - #14409

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/14369-bridge-pipeline
Nov 24, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/14369-bridge-pipeline

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Implements bridge build-out slice S2 (design doc/2026-11-24_design_message-bridge-buildout.md §4.3, spec items 3, 6, 7). Left unmerged for Felix's review.

What

Owner-token routes only, read projections over the existing tables — no rows copied, no store migration:

  • GET /api/<token>/pipeline — one normalized feed over connector messages, fleet messages and notes: {surface, id, batch, ts, kind, sender_addr, sender_label, receiver, direction, read_at, reply_to, body}, filters kind, sender, receiver, surface, batch, unread_only, since_id/before_id, limit, order. since_id/before_id are per-surface id cursors. Sender/receiver filters match an address or its bare name; a full class/name identity filter is exact.
  • GET /api/<token>/notes — the owner's first read over note_message, same filters, rows in the table's own shape.
  • GET /api/<token>/agents — unified connected-agents list: fleet registry (name, groups, first/last seen, unread counts) merged with note identities (identity, scopes folded over its tokens, signal counter), each row marked by surface. Notes rows carry presence: "none" and last_seen: null — no presence is invented.

New store surface: noteOwnerList + noteDirectory on both the Durable Object (SQL in index.js) and MemoryStore.

Anonymity

Untouched recipient-side: forAgent and commandForAgent are not modified, and a test asserts the agent inbox still strips a command's sender while the pipeline shows the same row's real sender to the owner. Owner surfaces always show the real sender, per §4.3.

Verification

  • New test/pipeline.test.mjs (6 tests) names the cross-surface oracles: one-query provenance for a fleet command + connector instruction + note; kind=instruction&sender=agent:<name> and receiver=<name> filter composition returning exactly the matching rows; ack-state agreement between the identity API, the pipeline's unread_only and the owner notes read; fleet agent + notes-only identity side by side in the agents list; unchanged recipient stripping; owner-only + filter validation.
  • Local (iterating): full worker suite 78/78 pass (72 existing + 6 new), node v24.22.1. The two new Durable Object SQL queries were additionally exercised against node:sqlite with the DO's table definitions.
  • Remote, fleet-command run 45406525253 on head c819c4b: died node: command not found (exit 127) — the known executor-image gap (code#14267 / fleet-command executor: ring/aws-lc-sys build-script binary fails to execute (os error 2) — native build-script dependency trees unbuildable dezren39/fleet#111), no test executed.
  • Remote, fleet-command run 45408487386 on head c819c4b with a node v24.22.1 bootstrap in the command: Execute step completed success (the full node --test test/*.test.mjs suite). The run's Post Execute step was still hanging at PR time (known pathology); executed counts from the remote log will be added as a PR comment when the run concludes. Local counts for the identical tree: 78 tests, 78 pass, 0 fail.

Closes #14369

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T14:11:07Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch/workspace/issue-14369/wt",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch/workspace/issue-14369/wt",
      "repo": "developing-today/code",
      "branch": "felix/14369-bridge-pipeline",
      "sha": "c819c4b0aa408c1befe5324fbd6d9964cfc52d6d"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…#14369)

Design §4.3 (S2): GET /api/<token>/pipeline serves one normalized
feed over connector messages, fleet messages and notes; GET
/api/<token>/notes is the owner's first read over note_message; GET
/api/<token>/agents merges the fleet registry with note identities,
each row marked by surface (notes rows say presence none rather than
inventing a last_seen).

Read projections over the existing tables only — no rows copied, no
store migration. Owner views show the real sender on every surface;
recipient projections (forAgent, commandForAgent) are untouched.

New store surface: noteOwnerList + noteDirectory on both the Durable
Object (SQL) and MemoryStore. Tests: test/pipeline.test.mjs names the
cross-surface oracles (one-query provenance, kind+sender and
receiver filter composition, ack-state agreement, side-by-side
agents, unchanged recipient stripping).
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c638461a-6a74-4b66-a1cb-17710fc14c0a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit b3527e0 into main Nov 24, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/14369-bridge-pipeline branch November 24, 2026 14:14
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.

Bridge build-out S2 — unified owner pipeline API (worker)

0 participants