Repository navigation
Bridge S2: unified owner pipeline, notes owner read, unified agents list (#14369) - #14409
Merged
Merged
Conversation
…#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).
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
5 tasks
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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}, filterskind, sender, receiver, surface, batch, unread_only, since_id/before_id, limit, order.since_id/before_idare per-surface id cursors. Sender/receiver filters match an address or its bare name; a fullclass/nameidentity filter is exact.GET /api/<token>/notes— the owner's first read overnote_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 carrypresence: "none"andlast_seen: null— no presence is invented.New store surface:
noteOwnerList+noteDirectoryon both the Durable Object (SQL in index.js) and MemoryStore.Anonymity
Untouched recipient-side:
forAgentandcommandForAgentare 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
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>andreceiver=<name>filter composition returning exactly the matching rows; ack-state agreement between the identity API, the pipeline'sunread_onlyand the owner notes read; fleet agent + notes-only identity side by side in the agents list; unchanged recipient stripping; owner-only + filter validation.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.node --test test/*.test.mjssuite). 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-botwith what you need.