Repository navigation
Done
Labels
Description
Bridge: class/name notes, public wake signal, and Archer hook
Design
Extend the existing message bridge at bridge.security.cab with a minimal note system:
- Identities are
class/name(for examplemuse/archer). - Authenticated senders can address one identity or use a wildcard in either segment:
muse/*,*/archer, or*/*. - Notes are stored server-side in the bridge Durable Object and delivered to every registered identity matching the address.
GET /<class>/<name>is a public, content-free signal. It returns the same bare UUID shape for registered and unregistered paths. Registered signals change on delivery; all paths also rotate on deterministic, per-path jittered schedules, so a change does not prove delivery or reveal registration.- Authenticated inbox and acknowledgement endpoints belong to the identity token. Token values are kept in the vault by name and are represented server-side only by hashes.
- A small
bridgehelper providessend,inbox, andackwithout hand-written HTTP calls. - Archer gets a Muse hook that polls only the public
muse/archersignal, compares one UUID to its last-seen value, and wakes only when it changes. On waking, Archer fetches and acknowledges the inbox, reviews the notes, and surfaces or acts on them in the main chat according to their content and standing alignment rules.
Acceptance proof
- Worker deployed at
bridge.security.cab. muse/archerregistered.- Direct and wildcard test notes delivered.
- Public signal changed after delivery.
- Hook script detects a changed signal in a manual run and is dry-run before enabling.
- Inbox fetch and acknowledgement verified; inbox empty after acknowledgement.
- An unregistered path still rotates its synthetic UUID across windows.
- Code, helper, documentation, tests, and this proof record landed by PR.
Privacy properties
The public signal has no note content, no identity existence proof, no differing response shape for registered paths, and decoy rotation for every path. Tokens are never committed, printed, or logged.
{
"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-24T00:18:17Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activity
developing-today commentedon Nov 24, 2026
CODE-5108
dezren39 commentedon Nov 24, 2026
Follow-up direction recorded (Drew, 2026-11-23 ~18:29 CST)
Noted for the record; it does not change this build's scope.
Drew's stated end state for the client surface: the bridge client eventually becomes a
fleetsubcommand family (get / send / receive / watch) that replaces or reimplements the standalonebridgehelper built here, and bridge coverage likely lands in the fleet book. The standalone helper stays minimal and working as built; this item is a follow-up for the fleet book / PM-book programme to pick up, not work for this issue.The service, addressing, public signal, and Archer wake hook proceed exactly as designed in this issue.
Merge pull request #13917 from developing-today/bridge/13895-notes-clean
dezren39 commentedon Nov 24, 2026
BRIDGE-RECOVERY checkpoint (2026-11-23 ~19:16 CST)
Progress on the ordered plan:
pkgs/message-bridge/workermatches the design (class/name + wildcards, hashed tokens, owner-only register, per-identity inbox/ack, public UUID signal with per-path 10–40 min decoy buckets + delivery counter). Full test suite: 72 pass / 0 fail on the laptop.bridge.archer-token(exists, 64 chars) andbridge.send-token(exists, 64 chars) are both in the vault; nothing needed creating.modelcommit (opencode.jsonc + claimant) in its base, so the bridge commit was cherry-picked clean onto current main: PR #13917, diff = exactly the 9 message-bridge files, merged17ff8a9b6a60.message-bridge-deployworkflow (run 45300613679, head17ff8a9b6a60); waiting on its completion now, then verifyingbridge.security.cab/muse/archerand a nonsense path both return bare UUIDs (no 404s).muse/archer+user/drew, send direct +muse/*test notes, observe the signal change, register + dry-run + enable thebridge-archerhook, inbox/ack proof, unregistered-path rotation check, final record here.No blockers; the wait is the CI deploy.
dezren39 commentedon Nov 24, 2026
BRIDGE-RECOVERY — complete proof record (2026-11-23)
All acceptance criteria pass. Summary of what was done and verified:
Code + PR
bridge/13895-note-signal, f1d7157) had a stray unrelatedmodelcommit in its base (opencode.jsonc + claimant changes), so the bridge commit was cherry-picked clean onto current main: PR #13917 — diff exactly the 9pkgs/message-bridge/workerfiles — merged17ff8a9b6a605f14c153c386aa35b24358a7aa80. (The straymodelcommit remains only on the old branch; it was not landed here.)Deploy
message-bridge-deployworkflow (run 45300613679, head17ff8a9b6a60): success. Code-only deploy;/healthznow reports a new version with the same token fingerprint (2c8d575594170044), so the access token did not change.GET /muse/archer→ 200, bare UUIDGET /zzqq/nothing-here→ 200, bare UUID, same shapeGET /foo/bar→ 200, bare UUIDRegistration + tokens
bridge.archer-token(exists, 64 chars),bridge.send-token(exists, 64 chars). Nothing needed creating; values never printed.muse/archer(send + inbox) anduser/drew(send + inbox). Only token hashes are stored server-side.End-to-end proof
ccc19646-7890-4b70-833d-39ef5811dbcf.bridgehelper + Drew's sender token: a direct note tomuse/archer(delivered, id 1, fromuser/drew) and a wildcard note tomuse/*(delivered tomuse/archer, id 2).ccc19646…→ae573d40-afbd-422d-aef0-17615accddd3.bridge ack 1 2→{"acked": 2}. Inbox again: empty.GET /probe/betareturned80817725-0044-463a-9214-9e21fa14aa7dbefore its computed window boundary and81cc6238-505c-4dde-9604-c6294ef0dcb6after it — both exactly the values the deterministic derivation predicts — and stayed stable inside the new window.Hook
bridge-archer(script~/hooks/scripts/bridge-archer-signal.sh, 60 s poll, main-chat delivery), dry-run first (silent baseline), then enabled.2e85ee42…, previousccc19646…→ currentae573d40…) and started the worker lifecycle; state advanced to the current signal and later polls are silent "signal unchanged". The woken worker found the inbox already emptied by this proof — the documented decoy/empty outcome.Endpoints (paths only):
POST /notes/register,POST /notes/send,GET /notes/inbox,POST /notes/ack,GET /<class>/<name>. Helper:bridge.mjsin the package, installed as~/tools/bin/bridge(byte-identical, verified).Closing this issue: the system is deployed and proven end to end. The fleet-subcommand direction stays recorded as the follow-up already noted on this issue.