Repository navigation
Bridge S8 (#14374): console Messages + Agents surfaces over the unified pipeline - #14463
Conversation
…ed pipeline Bridge worker: per-agent credential state (fold over fleet_credential, hashes never read out) at GET /api/<owner>/fleet/credentials, and the read scope widened to the unified projections the console reads — /fleet/<credential>/pipeline, /directory, /credentials — the same functions the owner's routes answer with. Revoking stays owner-only. fleet bridge CLI: new central verbs pipeline, directory, credentials and revoke (--agent | --identity), so the console speaks one argv on both transports, as S7 established. Console: Ops.pipeline/directory/credentials/revokeCredential; platformRead pipeline + directory; agent.revoke action (held for a machine at the edge — the PM credential is read-scope and never revokes); edge bridgeCall translations for the three reads and the bridgeReady gate widened to them; Messages screen under More with kind/sender/receiver/surface/batch/unread/work-state filters and full provenance; Agents screen roster from the unified directory with credential state and a Revoke control per agent. Read-only slice: no send or provisioning added (S9/S10 own those).
- Ops: the bridge feed method is pipelineFeed — Ops already has an internal pipeline() for queue-store statements, and the feed method shadowed it for every board read (console suite, run 45428754116). - fleet-bridge: register the new verbs' value flags in VALUE_FLAGS (--receiver, --surface, --batch, --work-state, --identity); the Args accessors assert on it (cargo suite, run 45428774695). - worker test: a note's sender is its notes identity (user/drew), not the connector spelling (user:drew) (run 45428706451).
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
…essages-agents # Conflicts: # pkgs/message-bridge/worker/README.md # pkgs/message-bridge/worker/src/fleet.js
|
agent-note:v1 Merged current origin/main ( Conflicts and resolutions
Sanity after resolution: no duplicate definitions ( Re-verification (remote only, fleet-command on developing-today/fleet; target HEAD
Not merged — left for Felix. |
Bridge build-out S8 (#14374, design §4.9): the PM Stack console gains its Messages and Agents surfaces over the bridge's unified projections. Read-only slice — no send capability added (S9's composer) and no provisioning (S10).
What is here
Bridge worker (
pkgs/message-bridge/worker)fleet_credential(state active/revoked, live scope union, service addr, mint/revocation times — hashes are never selected) atGET /api/<owner>/fleet/credentials, on both stores (Durable Object SQL + MemoryStore).readscope now also opens the unified projections at the credential address —GET /fleet/<credential>/pipeline,/directory,/credentials— answered by the very functions the owner's S2 routes use. Revoking stays an owner-token route: a service credential can see a revocation, never make one. Enroll-minted credentials (noread) and the shared fleet token still get the plain 404.fleet bridge CLI (
pkgs/fleet/crates/fleet-bridge)pipeline,directory,credentials,revoke(--agent|--identity), so the console speaks one argv on both transports, as S7 established. Per-verb help for each; the new value flags registered inVALUE_FLAGS.Console (
pm-stack/console)Ops.pipelineFeed / directory / credentials / revokeCredential. The directory merges credential state in by agent name; a notes row's state derives from its token scopes (revoked tokens = both scopes off, identity keeps its directory place). Notes identities keeppresence: "none"— nothing invented.platformReadgainspipeline+directory; the edge gate treats them likemessages(attempted only while the PM bridge credential is held).edgeRun's bridgeCall translates the three reads to the new credential routes and refusesrevokeas a machine's;agent.revokeis HOLDABLE with anagent:<surface>:<name>ordering subject (edge-proto + outbox kept in step), so the owner's kill switch is held for a machine, never performed by the edge's read-scope credential.Acceptance, against the issue
agent:felix → agent:archer, connector instruction, note; sender filter asserted).muse/scout,presence: "none",last_seen: null) and console/edge directory tests.Verification (remote only, fleet-command on developing-today/fleet, target HEAD
d1ed40ab9named in every log)node --testvianix shell nixpkgs#nodejs_22), incl. the 6 newconsole-viewstests by name.bun test; baseline 648, +5 new), incl. the edge end-to-end test by name.cargo test -p fleet-bridge).First round (runs 45428706451 / 45428754116 / 45428774695) caught three defects, all fixed in
d1ed40ab9: the feed method shadowed Ops' internal queue-storepipeline()(renamedpipelineFeed), the new CLI flags were missing fromVALUE_FLAGS, and one worker-test expectation used the connector spelling for a note's sender.Left unmerged for Felix's review. Refs #14374.
{ "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-24T16:15:43Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/workspace/issue-14374/wt", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/workspace/issue-14374/wt", "repo": "developing-today/code", "branch": "felix/14374-console-messages-agents", "sha": "d1ed40ab94806e5a10813bf025ba83f798cd7deb" }, "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.