@aeolus-fleet/core 0.40.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +5 -5
  2. package/dist/adapters/crypto/account-token-signatures.js +1 -1
  3. package/dist/adapters/crypto/account-token-signatures.js.map +1 -1
  4. package/dist/adapters/prisma/delivery-notices.d.ts +2 -2
  5. package/dist/adapters/prisma/delivery-notices.js +2 -2
  6. package/dist/adapters/prisma/fleet-event-wakeups.d.ts +1 -7
  7. package/dist/adapters/prisma/fleet-event-wakeups.js +0 -19
  8. package/dist/adapters/prisma/fleet-event-wakeups.js.map +1 -1
  9. package/dist/adapters/prisma/generated/enums.d.ts +1 -0
  10. package/dist/adapters/prisma/generated/enums.js +2 -1
  11. package/dist/adapters/prisma/generated/enums.js.map +1 -1
  12. package/dist/adapters/prisma/generated/internal/class.js +1 -1
  13. package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
  14. package/dist/adapters/prisma/installation.js +2 -2
  15. package/dist/adapters/prisma/installation.js.map +1 -1
  16. package/dist/adapters/prisma/receiver-wakeups.d.ts +11 -17
  17. package/dist/adapters/prisma/receiver-wakeups.js +0 -60
  18. package/dist/adapters/prisma/receiver-wakeups.js.map +1 -1
  19. package/dist/adapters/prisma/registry.js +3 -3
  20. package/dist/adapters/prisma/registry.js.map +1 -1
  21. package/dist/adapters/telemetry/calls.d.ts +0 -8
  22. package/dist/adapters/telemetry/calls.js +3 -39
  23. package/dist/adapters/telemetry/calls.js.map +1 -1
  24. package/dist/adapters/trpc/console.d.ts +4 -0
  25. package/dist/adapters/trpc/fleet.d.ts +12 -13
  26. package/dist/adapters/trpc/fleet.js +4 -4
  27. package/dist/adapters/trpc/fleet.js.map +1 -1
  28. package/dist/adapters/trpc/installation.d.ts +12 -0
  29. package/dist/adapters/trpc/router.d.ts +30 -18
  30. package/dist/adapters/trpc/ship-protocol.js +1 -1
  31. package/dist/adapters/trpc/ship-protocol.js.map +1 -1
  32. package/dist/adapters/trpc/ship.d.ts +9 -13
  33. package/dist/adapters/trpc/ship.js +11 -14
  34. package/dist/adapters/trpc/ship.js.map +1 -1
  35. package/dist/adapters/trpc/trpc.js +0 -2
  36. package/dist/adapters/trpc/trpc.js.map +1 -1
  37. package/dist/app.d.ts +1 -3
  38. package/dist/app.js +8 -12
  39. package/dist/app.js.map +1 -1
  40. package/dist/domain/identity/authenticate-installation.d.ts +1 -1
  41. package/dist/domain/identity/authenticate-installation.js +2 -2
  42. package/dist/domain/identity/authenticate-installation.js.map +1 -1
  43. package/dist/domain/identity/notice.js +1 -0
  44. package/dist/domain/identity/notice.js.map +1 -1
  45. package/dist/domain/messaging/check-inbox.d.ts +6 -23
  46. package/dist/domain/messaging/check-inbox.js +14 -59
  47. package/dist/domain/messaging/check-inbox.js.map +1 -1
  48. package/dist/domain/messaging/message.d.ts +1 -1
  49. package/dist/domain/messaging/message.js +2 -2
  50. package/dist/domain/messaging/message.js.map +1 -1
  51. package/dist/domain/messaging/ports.d.ts +1 -16
  52. package/dist/domain/messaging/push-receive-deliveries.d.ts +4 -6
  53. package/dist/domain/messaging/push-receive-deliveries.js +5 -7
  54. package/dist/domain/messaging/push-receive-deliveries.js.map +1 -1
  55. package/dist/domain/messaging/receive-deliveries.d.ts +4 -34
  56. package/dist/domain/messaging/receive-deliveries.js +4 -46
  57. package/dist/domain/messaging/receive-deliveries.js.map +1 -1
  58. package/dist/domain/messaging/receive-reply.d.ts +5 -8
  59. package/dist/domain/messaging/receive-reply.js +10 -9
  60. package/dist/domain/messaging/receive-reply.js.map +1 -1
  61. package/dist/domain/registry/check-reach.d.ts +1 -1
  62. package/dist/domain/registry/check-reach.js +2 -2
  63. package/dist/domain/registry/check-reach.js.map +1 -1
  64. package/dist/domain/registry/expectations.js +1 -0
  65. package/dist/domain/registry/expectations.js.map +1 -1
  66. package/dist/domain/registry/network-settings.d.ts +5 -2
  67. package/dist/domain/registry/network-settings.js +2 -2
  68. package/dist/domain/registry/network-settings.js.map +1 -1
  69. package/dist/domain/registry/ports.d.ts +2 -2
  70. package/dist/domain/registry/read-reach.js +1 -1
  71. package/dist/domain/registry/read-reach.js.map +1 -1
  72. package/dist/domain/registry/ship-order.js +1 -1
  73. package/dist/domain/registry/ship-order.js.map +1 -1
  74. package/dist/domain/registry/verified-facts.js +1 -0
  75. package/dist/domain/registry/verified-facts.js.map +1 -1
  76. package/dist/domain/shared/caller.js +1 -0
  77. package/dist/domain/shared/caller.js.map +1 -1
  78. package/dist/domain/shared/errors.d.ts +1 -1
  79. package/dist/domain/shared/errors.js.map +1 -1
  80. package/dist/domain/shared/events.d.ts +0 -13
  81. package/dist/domain/shared/follow-fleet.d.ts +9 -15
  82. package/dist/domain/shared/follow-fleet.js +16 -55
  83. package/dist/domain/shared/follow-fleet.js.map +1 -1
  84. package/dist/domain/shared/read-fleet-limits.d.ts +2 -2
  85. package/dist/domain/shared/read-fleet-limits.js +1 -1
  86. package/dist/start.d.ts +1 -1
  87. package/dist/start.js +1 -1
  88. package/dist/testing/container-sweeper.d.ts +47 -0
  89. package/dist/testing/container-sweeper.js +101 -1
  90. package/dist/testing/container-sweeper.js.map +1 -1
  91. package/dist/testing/postgres-container.js +2 -2
  92. package/dist/testing/postgres-container.js.map +1 -1
  93. package/dist/testing/postgres-global-setup.d.ts +1 -1
  94. package/dist/testing/postgres-global-setup.js +3 -2
  95. package/dist/testing/postgres-global-setup.js.map +1 -1
  96. package/dist/wiring.d.ts +3 -10
  97. package/dist/wiring.js +3 -15
  98. package/dist/wiring.js.map +1 -1
  99. package/package.json +2 -2
  100. package/src/adapters/prisma/migrations/20261115180000_trierarch_kind/migration.sql +2 -0
  101. package/src/adapters/prisma/migrations/20261115180100_trierarch_kind_backfill/migration.sql +38 -0
  102. package/src/adapters/prisma/schema.prisma +1 -0
  103. package/dist/domain/messaging/inbox-wait.d.ts +0 -8
  104. package/dist/domain/messaging/inbox-wait.js +0 -19
  105. package/dist/domain/messaging/inbox-wait.js.map +0 -1
package/README.md CHANGED
@@ -47,7 +47,7 @@ Environment variables, validated at startup (see `.env.example`):
47
47
  | `KMS_ENDPOINT` | AWS's own | Another KMS endpoint, such as LocalStack's `http://localhost:4566`; needs `KMS_REGION` |
48
48
  | `CONSOLE_ORIGIN` | `PUBLIC_URL`'s origin | The console's origin, such as `https://console.fleet.example.com`: the only origin a state-changing console call (sign-in, sign-out, a change made with the session cookie) is taken from, and the one origin allowed to call with credentials from another host (CORS). The default fits web and server behind one host. In development the console runs on `http://localhost:3000` (see `.env.example`) |
49
49
 
50
- The browser calls the server's `/trpc` itself, at the address the web app runs with (`AEOLUS_SERVER_URL`, see the web README), so the console may run on another host: set `COOKIE_DOMAIN` and `CONSOLE_ORIGIN` for it. Another service the operator uses beside the console (served by its own server, under the configured cookie domain) checks a console session with `GET /trpc/console.session`, forwarding the browser's `Cookie` header: it answers `{ "fleetId": "flt_...", "expiresAt": "...", "kind": "operator" | "viewer", "scopes": [...] }`, or `UNAUTHORIZED` without a signed-in session; a viewer's scopes are `fleet:read` only, so serve it reads only. Only the cookie counts, never a crew token, and the call moves the session's expiry like any console call. A client that is no browser follows the fleet with `fleet.follow` (`fleet:read`; also `/api/v1/fleet/follow` and the MCP tool `fleet_follow`): `{ "afterSeq": n, "max": 1 to 100, "waitSeconds": 0 to 25 }`, all optional, answers `{ "events": [...], "lastSeq": n }`, the events after `afterSeq` oldest first, in the live stream's shape (never their details). Passing the answered `lastSeq` as the next `afterSeq` misses nothing across reconnects; without `afterSeq` it answers no events and the current `lastSeq`; with `waitSeconds` it waits while none has come and answers as soon as one commits. The console follows the fleet live through the `fleet.events` subscription, over a WebSocket opened on the same `/trpc` path, so a proxy in front must pass the upgrade on (Caddy does by itself). The upgrade carries the session cookie and is refused from any origin but `CONSOLE_ORIGIN`, as a state-changing call is. The ship page reads `fleet.ship`, `fleet.shipTimeline`, `fleet.shipMessages` (`{ "shipId": "shp_..." }`) and `fleet.message` (`{ "messageId": "msg_..." }`), each with `fleet:read`, which includes message payloads; a ship or message of another fleet is `NOT_FOUND`. A timeline and a message list hold the newest 200. A console call refused because the operator signed in somewhere else carries `refusal: "SIGNED_IN_ELSEWHERE"` in its error data, and a rate-limited sign-in carries `retryAt`, when the client may try again.
50
+ The browser calls the server's `/trpc` itself, at the address the web app runs with (`AEOLUS_SERVER_URL`, see the web README), so the console may run on another host: set `COOKIE_DOMAIN` and `CONSOLE_ORIGIN` for it. Another service the operator uses beside the console (served by its own server, under the configured cookie domain) checks a console session with `GET /trpc/console.session`, forwarding the browser's `Cookie` header: it answers `{ "fleetId": "flt_...", "expiresAt": "...", "kind": "operator" | "viewer", "scopes": [...] }`, or `UNAUTHORIZED` without a signed-in session; a viewer's scopes are `fleet:read` only, so serve it reads only. Only the cookie counts, never a crew token, and the call moves the session's expiry like any console call. A client that is no browser follows the fleet with `fleet.follow` (`fleet:read`; also `/api/v1/fleet/follow` and the MCP tool `fleet_follow`): `{ "afterSeq": n, "max": 1 to 100 }`, both optional (`waitSeconds` is refused), answers `{ "events": [...], "lastSeq": n }`, the events after `afterSeq` oldest first, in the live stream's shape (never their details). Passing the answered `lastSeq` as the next `afterSeq` misses nothing across reconnects; without `afterSeq` it answers no events and the current `lastSeq` It answers at once. The console follows the fleet live through the `fleet.events` subscription, over a WebSocket opened on the same `/trpc` path, so a proxy in front must pass the upgrade on (Caddy does by itself). The upgrade carries the session cookie and is refused from any origin but `CONSOLE_ORIGIN`, as a state-changing call is. The ship page reads `fleet.ship`, `fleet.shipTimeline`, `fleet.shipMessages` (`{ "shipId": "shp_..." }`) and `fleet.message` (`{ "messageId": "msg_..." }`), each with `fleet:read`, which includes message payloads; a ship or message of another fleet is `NOT_FOUND`. A timeline and a message list hold the newest 200. A console call refused because the operator signed in somewhere else carries `refusal: "SIGNED_IN_ELSEWHERE"` in its error data, and a rate-limited sign-in carries `retryAt`, when the client may try again.
51
51
 
52
52
  ## Telemetry
53
53
 
@@ -66,7 +66,7 @@ The server and the console send traces and metrics over OpenTelemetry (OTLP), sw
66
66
  Every other `OTEL_*` setting the OpenTelemetry Node SDK reads works as its specification says. What is sent:
67
67
 
68
68
  - Every HTTP request is a point in the histogram `http.server.request.duration` (seconds) with `http.request.method`, `http.route` (the route template, such as `/trpc/:path`) and `http.response.status_code`; a 5xx adds `error.type`. A tRPC batch is one request for several procedures, so each procedure is measured on its own as well.
69
- - Every tRPC, REST and MCP call is a server span named by its procedure (`system.ping`, `ship.receive`), and a point in the histogram `rpc.server.call.duration` (seconds) with `rpc.system` (`trpc`), `rpc.method` and `rpc.response.status_code` (`OK` or the refusal code), so p95, p99 and the error rate are read per procedure; a server failure adds `error.type`. The time a call waits for a message (receive, pushReceive, inbox, receiveReply, fleet.follow) is left out of that duration and recorded apart in `rpc.server.call.wait.duration`, by `rpc.method`. Subscriptions are not measured.
69
+ - Every tRPC, REST and MCP call is a server span named by its procedure (`system.ping`, `ship.receive`), and a point in the histogram `rpc.server.call.duration` (seconds) with `rpc.system` (`trpc`), `rpc.method` and `rpc.response.status_code` (`OK` or the refusal code), so p95, p99 and the error rate are read per procedure; a server failure adds `error.type`. No call waits for a message (decision 0072), so each duration is the call's work. Subscriptions are not measured.
70
70
  - Every database query is traced under the call that made it (Prisma's instrumentation, with its SQL), and each Prisma operation is a point in `db.client.operation.duration` (seconds) with `db.operation.name`, such as `Ship.findMany` or `$queryRaw`.
71
71
  - The console sends Next.js's own spans and a point in `http.server.request.duration` for every request, and each console read as a span and a point in `rpc.server.call.duration`, named `reads.<read>`.
72
72
 
@@ -131,9 +131,9 @@ A session crews an agent ship with `ship.register`: the ship id and secret from
131
131
 
132
132
  `ship.send` sends a message from the calling ship (a crew token, or the console session as `argo`); it needs the `messages:send` scope. It takes a selector (`{ "kind": "ship", "shipId": "shp_..." }`, `{ "kind": "ship", "name": "scout" }` or `{ "kind": "type", "type": "reviewer" }`), a payload (text of at most 256 KB in UTF-8, never parsed), optionally its content type (any well-formed media type, such as `text/plain` or `application/json; charset=utf-8`, passed on untouched; `text/plain` when left out), the model the sending session runs now (`model`, its exact id, such as `claude-opus-5-5`; every ship states it on every send, so a send without it is refused (`BAD_REQUEST`), and only `argo` states none; code that runs no model, such as a script or a service, states its package or name and the version it runs, as squadrons states `@aeolus-fleet/squadrons@<version>`), the sender's own idempotency key (1 to 256 characters) and, for a reply, `inReplyTo` (a message id of the fleet). A name is resolved to the ship's id when the message is sent; a retired or unknown ship, or a type without an active ship, is refused. It answers `{ "messageId": "msg_..." }` only once the message and its delivery are stored. A repeat of the key with the same request (selector as sent, payload, content type, `inReplyTo`; no content type is the same as `text/plain`) answers with the original id; the same key with another request is refused (`CONFLICT`). When the send commits, Postgres `NOTIFY` announces the delivery on the channel `aeolus_delivery_pending`.
133
133
 
134
- `ship.receive` and `ship.ack` take the crew token only (the console session is refused) and need the `messages:receive` scope. `ship.receive` takes `{ "max": 1 to 10 }`, one when left out, and answers `{ "deliveries": [...] }`: the crew's own unacknowledged deliveries in flight first, then the oldest pending ones for its ship or its type. Each comes with its message and its sender (`deliveryId`, `messageId`, `senderShipId`, `senderName`, `senderType`, `recipient`, `payload`, `contentType`, `inReplyTo`, `sentAt`, `attempts`; the sender's name and type as they are at the receive, so a renamed sender goes by its new name) and is handed at once: in flight with the crew until acknowledged or the lease ends. The crew's next receive hands it again, counted as another attempt, so a lost reply loses nothing. The fifth attempt of a delivery never acknowledged is refused: it becomes undeliverable instead and is handed to no one. With nothing there, a receive waits about 25 seconds and answers with no deliveries; a delivery for its ship or type wakes it at once. `ship.pushReceive` (decision 0040), for a pushed ship's trierarch or plugin watcher, takes the same input as `ship.receive` and answers the same deliveries, each with `state` (`received` or `handed`) and `handOverNumber`: a pending one becomes received, in flight with the crew, with no attempt counted; the crew's own received and handed ones come first again, unchanged. From the lease's first push receive until it ends, `ship.receive` answers no deliveries. `ship.handed` takes `{ "deliveryId": "dlv_...", "handOverNumber": n }` and answers `{ "state": "handed" | "acknowledged" | "undeliverable" }`: a number higher than the last counts one attempt, the same or a lower one changes nothing, and the fifth attempt is undeliverable; with `"isOnceMore": true` it hands an acknowledged delivery once more after its turn died, counting no attempt, only once. `ship.handled` and `ship.notHandled` take `{ "deliveryId": "dlv_..." }` and answer `{}`: the turn that took an acknowledged delivery ended by itself, or the turn it was handed once more to died too; again is OK, and a delivery not acknowledged, or not handed once more for `notHandled`, is refused (`CONFLICT`). `ship.ack` takes `{ "deliveryId": "dlv_..." }` and answers `{}`: only the ship holding the delivery in flight, received or handed, acknowledges it, and acknowledging it again is OK. `ship.pong` takes the crew token and the same scope, takes `{ "deliveryId": "dlv_..." }` of a ping the ship holds in flight and answers `{}`: it acknowledges the ping, with `answer: pong` in `DeliveryAcknowledged`, and marks the lease last seen, in one transaction; again is OK and changes nothing, and a delivery that is not a ping is refused (`CONFLICT`). `ship.report` takes the crew token and no scope: `{ "state": "working" | "blocked" | "idle", "note"?: "..." }` (one line, at most 200 characters, trimmed), answers `{}`. The report is kept with the crew's lease, so the ship's next crew starts with none, and `fleet.list` and `fleet.ship` show it (`report: { state, note, reportedAt }` or null); `ShipReported` is written only when the state or the note changes, so reporting the same again is a check-in. `ship.turn` takes the crew token and no scope: `{ "turn": "idle" | "busy", "at": "<ISO 8601>" }`, answers `{}`; the lease keeps the turn at that time with `TurnReported`, and the same turn again or a report older than the one held changes nothing. `ship.inbox` takes the crew token and the same scope, takes `{ "waitSeconds": 0 to 25 }`, none when left out, and answers `{ "waiting": n }`: how many deliveries the crew's next receive would hand it, its own in flight included. It claims nothing. While none waits it waits up to `waitSeconds`, woken like a receive. A mutation only so REST takes its body; it changes nothing.
134
+ `ship.receive` and `ship.ack` take the crew token only (the console session is refused) and need the `messages:receive` scope. `ship.receive` takes `{ "max": 1 to 10 }`, one when left out, and answers `{ "deliveries": [...] }`: the crew's own unacknowledged deliveries in flight first, then the oldest pending ones for its ship or its type. Each comes with its message and its sender (`deliveryId`, `messageId`, `senderShipId`, `senderName`, `senderType`, `recipient`, `payload`, `contentType`, `inReplyTo`, `sentAt`, `attempts`; the sender's name and type as they are at the receive, so a renamed sender goes by its new name) and is handed at once: in flight with the crew until acknowledged or the lease ends. The crew's next receive hands it again, counted as another attempt, so a lost reply loses nothing. The fifth attempt of a delivery never acknowledged is refused: it becomes undeliverable instead and is handed to no one. With nothing there, a receive answers with no deliveries at once: no call waits (decision 0072); the wake stream tells a crew when to look. `ship.pushReceive` (decision 0040), for a pushed ship's trierarch or plugin watcher, takes the same input as `ship.receive` and answers the same deliveries, each with `state` (`received` or `handed`) and `handOverNumber`: a pending one becomes received, in flight with the crew, with no attempt counted; the crew's own received and handed ones come first again, unchanged. From the lease's first push receive until it ends, `ship.receive` answers no deliveries. `ship.handed` takes `{ "deliveryId": "dlv_...", "handOverNumber": n }` and answers `{ "state": "handed" | "acknowledged" | "undeliverable" }`: a number higher than the last counts one attempt, the same or a lower one changes nothing, and the fifth attempt is undeliverable; with `"isOnceMore": true` it hands an acknowledged delivery once more after its turn died, counting no attempt, only once. `ship.handled` and `ship.notHandled` take `{ "deliveryId": "dlv_..." }` and answer `{}`: the turn that took an acknowledged delivery ended by itself, or the turn it was handed once more to died too; again is OK, and a delivery not acknowledged, or not handed once more for `notHandled`, is refused (`CONFLICT`). `ship.ack` takes `{ "deliveryId": "dlv_..." }` and answers `{}`: only the ship holding the delivery in flight, received or handed, acknowledges it, and acknowledging it again is OK. `ship.pong` takes the crew token and the same scope, takes `{ "deliveryId": "dlv_..." }` of a ping the ship holds in flight and answers `{}`: it acknowledges the ping, with `answer: pong` in `DeliveryAcknowledged`, and marks the lease last seen, in one transaction; again is OK and changes nothing, and a delivery that is not a ping is refused (`CONFLICT`). `ship.report` takes the crew token and no scope: `{ "state": "working" | "blocked" | "idle", "note"?: "..." }` (one line, at most 200 characters, trimmed), answers `{}`. The report is kept with the crew's lease, so the ship's next crew starts with none, and `fleet.list` and `fleet.ship` show it (`report: { state, note, reportedAt }` or null); `ShipReported` is written only when the state or the note changes, so reporting the same again is a check-in. `ship.turn` takes the crew token and no scope: `{ "turn": "idle" | "busy", "at": "<ISO 8601>" }`, answers `{}`; the lease keeps the turn at that time with `TurnReported`, and the same turn again or a report older than the one held changes nothing. `ship.inbox` takes the crew token and the same scope, takes no input (`waitSeconds` and `knownWaiting` are refused) and answers `{ "waiting": n, "forced": n }` at once: how many deliveries the crew's next receive would hand it, its own in flight included. It claims nothing. A mutation only so REST takes its body; it changes nothing.
135
135
 
136
- A lease ends cleanly in two ways. The operator releases a crewed ship with `fleet.release` (`{ "shipId": "shp_..." }`, scope `fleet:manage`); `argo` is never released, and a ship awaiting crew gets a new starting prompt instead (`CONFLICT`). A crew ends its own lease with `ship.deregister`, which takes the crew token only and no scope. Both work in one transaction: the secret is invalidated, the lease and its crew token end, and the deliveries the lease held in flight return to pending, to the ship's inbox or its type's queue, their attempts kept, each announced on `aeolus_delivery_pending` as a send is, so a waiting receive of another ship of the type takes a returned type delivery at once. Both answer `{}`. The old crew token then fails on every call, refused as `LEASE_ENDED` with `This ship was released; this session no longer crews it.` (the `UNAUTHORIZED` code at `/trpc`, which knows only tRPC's codes), and the old secret fails on `register`; the next crew needs a new starting prompt. A receive of that crew still waiting hands out nothing: it answers empty at the end of its wait, or `LEASE_ENDED` if a delivery wakes it first.
136
+ A lease ends cleanly in two ways. The operator releases a crewed ship with `fleet.release` (`{ "shipId": "shp_..." }`, scope `fleet:manage`); `argo` is never released, and a ship awaiting crew gets a new starting prompt instead (`CONFLICT`). A crew ends its own lease with `ship.deregister`, which takes the crew token only and no scope. Both work in one transaction: the secret is invalidated, the lease and its crew token end, and the deliveries the lease held in flight return to pending, to the ship's inbox or its type's queue, their attempts kept, each announced on `aeolus_delivery_pending` as a send is, so another ship of the type, woken on its wake stream, takes a returned type delivery at its next look. Both answer `{}`. The old crew token then fails on every call, refused as `LEASE_ENDED` with `This ship was released; this session no longer crews it.` (the `UNAUTHORIZED` code at `/trpc`, which knows only tRPC's codes), and the old secret fails on `register`; the next crew needs a new starting prompt. A receive of that crew still waiting hands out nothing: it answers empty at the end of its wait, or `LEASE_ENDED` if a delivery wakes it first.
137
137
 
138
138
  `fleet.ping` (`{ "shipId": "shp_..." }`, `fleet:manage`) sends a crewed ship a ping: a message from argo with the content type `application/vnd.aeolus.ping` and the payload `Ping from argo: answer with pong(deliveryId).`, delivered like any other. It answers `{ "messageId": "msg_...", "sentAt": "...", "isNew": true }`. Pings never stack: while the ship's last ping is pending or in flight, it answers with that one (`isNew: false`) and stores nothing. It refuses argo (`FORBIDDEN`), a retired ship and a ship awaiting crew (`CONFLICT`). `ship.send` refuses the ping content type for every caller (`FORBIDDEN`): only `fleet.ping` sends a ping.
139
139
 
@@ -150,7 +150,7 @@ A ship reaches the same calls without installing anything, as REST under `/api/v
150
150
  - **REST**: one route per ship procedure and fleet action (`src/adapters/rest/README.md`), with the crew token as `Authorization: Bearer`. A refusal answers with its code's HTTP status and `{ "code": "CONFLICT", "message": "..." }`. The OpenAPI 3.1 spec is at `/api/v1/openapi.json`, and as a readable page at `/api/v1/docs`.
151
151
  - **MCP**: a remote MCP server over streamable HTTP, one tool per call. The connection carries no ship, so many conversations can share it (ADR 0015): every tool but `register` takes the crew token as its `crewToken` argument. A refusal is a tool error reading `CODE: message`. To add it to Claude Code, for every session on the machine: `claude mcp add --transport http --scope user aeolus <PUBLIC_URL>/mcp`. A chat app (Claude chat, ChatGPT) connects `<PUBLIC_URL>/mcp` as a remote MCP server or connector, without auth.
152
152
 
153
- The server listens on `aeolus_delivery_pending` over a connection of its own (named `aeolus-delivery-listener` in Postgres), which needs a direct database connection, not a transaction pooler. After a lost connection it listens again, with a delay that doubles up to 30 seconds, and every waiting receive then looks again, since notices sent meanwhile are gone.
153
+ The server listens on `aeolus_delivery_pending` over a connection of its own (named `aeolus-delivery-listener` in Postgres), which needs a direct database connection, not a transaction pooler. After a lost connection it listens again, with a delay that doubles up to 30 seconds, and every open wake stream is woken (`reconnect`) so its crew looks again, since notices sent meanwhile are gone.
154
154
 
155
155
  No text input to any procedure may hold the character U+0000, which Postgres cannot store: it is refused as `BAD_REQUEST`, naming the field. A refusal answers its own code and message. A server failure answers only `Internal error` and the request's id (`data.requestId`); the server log holds the whole error, stack included, under the same id (`reqId`). No answer ever carries a stack trace.
156
156
 
@@ -51,7 +51,7 @@ export function createAccountTokenSignatures(deps) {
51
51
  if (!header.success) {
52
52
  return undefined;
53
53
  }
54
- if (fetchedAt === undefined || deps.now().getTime() - fetchedAt >= KEYS_FRESH_FOR_MS) {
54
+ if (fetching || fetchedAt === undefined || deps.now().getTime() - fetchedAt >= KEYS_FRESH_FOR_MS) {
55
55
  await refresh();
56
56
  }
57
57
  const key = keys.get(header.data.kid);
@@ -1 +1 @@
1
- {"version":3,"file":"account-token-signatures.js","sourceRoot":"","sources":["../../../src/adapters/crypto/account-token-signatures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAkB,MAAM,aAAa,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEjC,qDAAqD;AACrD,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAEnC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAG9H,8FAA8F;AAC9F,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,MAA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AAC;QACpC,IAAI,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,eAAe,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QAC9D,CAAC;QAAC,MAAM,CAAC;YACP,iEAAiE;QACnE,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,UAAU,CAAC,GAAc,EAAE,MAAyE;IAC3G,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAC7B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACxC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC7D,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,OAAO;YACV,OAAO,GAAG,CAAC,iBAAiB,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC;QACpF,KAAK,OAAO;YACV,OAAO,GAAG,CAAC,iBAAiB,KAAK,IAAI,IAAI,GAAG,CAAC,oBAAoB,EAAE,UAAU,KAAK,YAAY,IAAI,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,SAAS,CAAC,CAAC;IAC7K,CAAC;AACH,CAAC"}
@@ -15,13 +15,13 @@ export interface DeliveryListener {
15
15
  /**
16
16
  * Listens for pending deliveries on a connection of its own: LISTEN needs one
17
17
  * that no pool hands to another query, and it must be direct, not through a
18
- * transaction pooler. Waiting receives and live subscriptions are woken
18
+ * transaction pooler. Wake streams and live subscriptions are woken
19
19
  * through it. Returns at once.
20
20
  *
21
21
  * It never throws: a failed connect or a lost connection goes to `onError`,
22
22
  * and it tries again after a delay that doubles with each failure, up to 30
23
23
  * seconds. Notices sent while it did not listen are gone, so `onListening`
24
- * runs each time it starts listening, for the waiting receives to look again.
24
+ * runs each time it starts listening, for every wake stream's crew to look again.
25
25
  */
26
26
  export declare function listenForPendingDeliveries(options: {
27
27
  databaseUrl: string;
@@ -29,13 +29,13 @@ const RECONNECT_DELAY_MAX_MS = 30_000;
29
29
  /**
30
30
  * Listens for pending deliveries on a connection of its own: LISTEN needs one
31
31
  * that no pool hands to another query, and it must be direct, not through a
32
- * transaction pooler. Waiting receives and live subscriptions are woken
32
+ * transaction pooler. Wake streams and live subscriptions are woken
33
33
  * through it. Returns at once.
34
34
  *
35
35
  * It never throws: a failed connect or a lost connection goes to `onError`,
36
36
  * and it tries again after a delay that doubles with each failure, up to 30
37
37
  * seconds. Notices sent while it did not listen are gone, so `onListening`
38
- * runs each time it starts listening, for the waiting receives to look again.
38
+ * runs each time it starts listening, for every wake stream's crew to look again.
39
39
  */
40
40
  export function listenForPendingDeliveries(options) {
41
41
  const firstDelayMs = options.reconnectDelayMs ?? RECONNECT_DELAY_MS;
@@ -6,7 +6,7 @@
6
6
  * lost while the listener reconnects costs nothing once `wakeAll` runs.
7
7
  */
8
8
  import type { FleetId } from '@aeolus-fleet/common';
9
- import type { FleetEventNotice, FleetEventWakeups } from '../../domain/shared/events.js';
9
+ import type { FleetEventNotice } from '../../domain/shared/events.js';
10
10
  export interface FleetEventWatch {
11
11
  /**
12
12
  * Settles once the fleet has news: at once when a notice came since the last
@@ -25,9 +25,3 @@ export interface FleetEventWakeupHub {
25
25
  endAll(): void;
26
26
  }
27
27
  export declare function createFleetEventWakeups(): FleetEventWakeupHub;
28
- /**
29
- * The hub as the core's port for a waiting follow: each wait ends when the
30
- * fleet has news, or once its time has passed, or when the server stops,
31
- * which reads as the time having passed.
32
- */
33
- export declare function fleetEventWakeupsOf(hub: Pick<FleetEventWakeupHub, 'watch'>): FleetEventWakeups;
@@ -1,4 +1,3 @@
1
- import { measureWait } from '../telemetry/calls.js';
2
1
  export function createFleetEventWakeups() {
3
2
  const watchers = new Map();
4
3
  let isEnded = false;
@@ -66,22 +65,4 @@ export function createFleetEventWakeups() {
66
65
  },
67
66
  };
68
67
  }
69
- /**
70
- * The hub as the core's port for a waiting follow: each wait ends when the
71
- * fleet has news, or once its time has passed, or when the server stops,
72
- * which reads as the time having passed.
73
- */
74
- export function fleetEventWakeupsOf(hub) {
75
- return {
76
- watch: (fleetId) => {
77
- const watch = hub.watch(fleetId);
78
- return {
79
- next: async (waitMs) => ((await measureWait(() => watch.next(AbortSignal.timeout(waitMs)))) ? 'woken' : 'timedOut'),
80
- stop: () => {
81
- watch.stop();
82
- },
83
- };
84
- },
85
- };
86
- }
87
68
  //# sourceMappingURL=fleet-event-wakeups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fleet-event-wakeups.js","sourceRoot":"","sources":["../../../src/adapters/prisma/fleet-event-wakeups.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AA2BpD,MAAM,UAAU,uBAAuB;IACrC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAyB,CAAC;IAClD,IAAI,OAAO,GAAG,KAAK,CAAC;IAEpB,MAAM,IAAI,GAAG,CAAC,OAAgB,EAAE,EAAE;QAChC,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;QACzB,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,KAAK,GAAG,GAAc,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;IAEjF,OAAO;QACL,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE;YACjB,MAAM,OAAO,GAAY,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;YAC5C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K,MAAM,OAAO,IAAI,KAAK,EAAE,EAAE,CAAC;gBAC9B,IAAI,CAAC,OAAO,CAAC,CAAC;YAChB,CAAC;QACH,CAAC;QACD,MAAM,EAAE,GAAG,EAAE;YACX,OAAO,GAAG,IAAI,CAAC;YACf,KAAK,MAAM,OAAO,IAAI,KAAK,EAAE,EAAE,CAAC;gBAC9B,OAAO,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;YAC1B,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -10,6 +10,7 @@ export declare const ShipKind: {
10
10
  readonly person: "person";
11
11
  readonly app: "app";
12
12
  readonly plugin: "plugin";
13
+ readonly trierarch: "trierarch";
13
14
  };
14
15
  export type ShipKind = (typeof ShipKind)[keyof typeof ShipKind];
15
16
  export declare const ReportState: {
@@ -17,7 +17,8 @@ export const ShipKind = {
17
17
  viewer: 'viewer',
18
18
  person: 'person',
19
19
  app: 'app',
20
- plugin: 'plugin'
20
+ plugin: 'plugin',
21
+ trierarch: 'trierarch'
21
22
  };
22
23
  export const ReportState = {
23
24
  working: 'working',
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/adapters/prisma/generated/enums.ts"],"names":[],"mappings":"AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;EAIE;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAA;AAKV,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;CACR,CAAA;AAKV,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,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