Stranded delivery list on the bus agents view. Built by Sage's Haiku
subagent (decision 129), rebased onto 57a2ddc5. Phase B, three runs:
the first failed the new test (node:sqlite null-prototype rows, fixed
by mapping to plain objects), the second stopped at cli on a missing
node_modules link, the third passed: 14 node suites, nine scripts,
15/15 mutants killed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
129 lines
11 KiB
Plaintext
129 lines
11 KiB
Plaintext
✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (34.073634ms)
|
||
✔ agents: working counts what the holder received and has not read; routed alone is not working (39.465959ms)
|
||
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (51.354449ms)
|
||
✔ agents: working wins over waiting, and Input needed still shows (32.238543ms)
|
||
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (34.505514ms)
|
||
✔ agents: state reads only its own business, even for a run name both use (31.087613ms)
|
||
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (27.867258ms)
|
||
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (23.738696ms)
|
||
✔ agents: stranded is oldest first and capped at 50 for a role (89.958166ms)
|
||
✔ agents: stranded is per role and per business (31.358283ms)
|
||
✔ agents: a message routed to a held role and not yet received is not stranded (10.699473ms)
|
||
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (43.717544ms)
|
||
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (44.842492ms)
|
||
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (39.485038ms)
|
||
✔ launch events require a human CLI capability; generic emit cannot forge authority events (27.518645ms)
|
||
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (35.804066ms)
|
||
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (30.112643ms)
|
||
✔ task action subjects and linked decision trail are complete and ordered (35.827416ms)
|
||
✔ launch binding is durable and reconnecting requires the identical trusted record (14.750731ms)
|
||
✔ business isolation includes inherited object names and cross-business message references (23.69314ms)
|
||
✔ authority never transfers between action, run, target, unresolved or replaced role holder (27.740481ms)
|
||
✔ task projection uses schema current view, skipping earlier and equal-start polls (14.924398ms)
|
||
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (21.957727ms)
|
||
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (13.48611ms)
|
||
✔ both arbiters require human resolution when their cross-role route is themselves (23.097114ms)
|
||
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (17.927831ms)
|
||
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.170563ms)
|
||
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (30.751658ms)
|
||
✔ credentials refuses a role session and any argument (31.339731ms)
|
||
✔ credentials reads the status on each request, and a broker without one lists none (34.999906ms)
|
||
✔ the broker process answers credentials without a token, path or variable in its output, log or store (111.440454ms)
|
||
✔ only validated broker references load; returned data and exceptions cannot expose a known token (6.004324ms)
|
||
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (4.182551ms)
|
||
✔ expiry refuses use and env references never become client data (2.818922ms)
|
||
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (2.933681ms)
|
||
✔ opaque tokens shorter than 16 characters refuse before use (0.779283ms)
|
||
✔ roles lists open decisions routed to a role, and never the human inbox (56.99301ms)
|
||
✔ recent lists closed decisions of every route, newest close first, with how each closed (49.087025ms)
|
||
✔ recent gives the closing event as closed when the decision was seen first (53.004206ms)
|
||
✔ recent stops at RECENT rows (129.897969ms)
|
||
✔ every row is what trail already gives the same session for that id (39.986653ms)
|
||
✔ a role session can't list decisions, so it can't read another role's open decisions (38.405307ms)
|
||
✔ decisions is a read: one business, strict arguments, nothing written (38.540733ms)
|
||
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (35.937528ms)
|
||
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (20.090794ms)
|
||
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (21.445186ms)
|
||
✔ endLaunch leaves a claim another run took alone (23.612146ms)
|
||
✔ refuse records action.refused against the caller with the code only (17.91409ms)
|
||
✔ launches off refuses role.launch with launch-revoked until launches on (36.082339ms)
|
||
✔ broker process: launch ops authorize role.launch, record refusals and end runs (119.334471ms)
|
||
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (4.086167ms)
|
||
✔ process reader gets own kernel identity without exposing environment values (0.849918ms)
|
||
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (1.024526ms)
|
||
✔ real pid 1 remains inspectable when its environment is protected (0.394133ms)
|
||
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (41.210145ms)
|
||
✔ missing and foreign-business citations refuse and roll back message and grant (29.378314ms)
|
||
✔ cross-role sends still need a matching resolved decision and consume it once (37.133284ms)
|
||
✔ messages pages all human messages newest first without writes; read state is history (407.709662ms)
|
||
✔ messages refuses role callers, invalid paging and cursors outside this human feed (18.307523ms)
|
||
✔ views messages passes only its paging arguments through (0.256451ms)
|
||
✔ messages isolates businesses even with a valid foreign cursor (10.756823ms)
|
||
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (106.022277ms)
|
||
✔ startup token refusal returns safe code without value or partial listening broker (66.86548ms)
|
||
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (82.660338ms)
|
||
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (99.130862ms)
|
||
✔ trusted host registers later launches; socket clients never have a registration verb (57.577544ms)
|
||
✔ runtime excludes declared project roots even when host supplies no repoRoots (33.853718ms)
|
||
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (47.773636ms)
|
||
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (56.518817ms)
|
||
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (27.676894ms)
|
||
✔ a message with no reply gives an empty list (20.53781ms)
|
||
✔ replies come oldest first and stop at REPLIES (117.277147ms)
|
||
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (36.986411ms)
|
||
✔ strict arguments; a role session gets human-required (36.255658ms)
|
||
✔ views passes replies through as one call with the id (0.225321ms)
|
||
✔ requirements returns the committed list to a holding role session, and no one else (44.380541ms)
|
||
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (21.770025ms)
|
||
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (24.740727ms)
|
||
✔ v3b prototype refusals, views and append-only mutations (142.177976ms)
|
||
✔ gated approval authorizes once, survives store reopen, and fresh approval works (56.625347ms)
|
||
✔ another run cannot consume an approval; a failed check leaves it usable (30.609873ms)
|
||
✔ two scheduled callers have exactly one grant and one consumed refusal (25.317923ms)
|
||
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (57.702095ms)
|
||
✔ class drift gated to cross-role refuses before consumption (33.622128ms)
|
||
✔ class drift cross-role to gated refuses before consumption (29.691958ms)
|
||
✔ class drift gated to within-role refuses before consumption (25.686053ms)
|
||
✔ class drift cross-role to within-role refuses before consumption (26.408431ms)
|
||
✔ class drift within-role to gated refuses before consumption (20.525672ms)
|
||
✔ class drift within-role to cross-role refuses before consumption (19.460343ms)
|
||
✔ message.send consumes approval and prevents a later send or authorize (20.627253ms)
|
||
✔ role.revoke consumes approval and prevents a later revoke or authorize (23.925099ms)
|
||
✔ creates private WAL store and excludes a second writer until explicit close (25.362527ms)
|
||
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (21.64732ms)
|
||
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (26.383741ms)
|
||
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (78.004669ms)
|
||
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (14.923493ms)
|
||
✔ async transactions refuse before invoking their function (11.500946ms)
|
||
✔ the session default fits under the reply cap and pages to the end with next (204.10295ms)
|
||
✔ the short form: no description, assignees by role, every listed key (80.89072ms)
|
||
✔ each filter, alone and together, and total counts every match (150.663985ms)
|
||
✔ task_ref reads one task in full, as the whole board has it (86.325904ms)
|
||
✔ no arguments is the read the Console and mosaic make, unchanged (69.683812ms)
|
||
✔ an unknown argument or a bad value refuses invalid-request (283.367667ms)
|
||
✔ tasks rows carry priority and requirement for every session that reads tasks (54.947013ms)
|
||
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (80.716807ms)
|
||
✔ an empty business and one with snapshots but no task.created read cleanly (15.6107ms)
|
||
✔ recordTask keeps sync reads and a role write apart (27.818744ms)
|
||
✔ read_at must be one canonical UTC format, so the projection compares strings safely (13.184118ms)
|
||
✔ a bad entry refuses the whole record (15.203276ms)
|
||
✔ taskView reads the projection for one business (14.860047ms)
|
||
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (24.923573ms)
|
||
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (274.44252ms)
|
||
✔ without an adapter the server refuses every task verb (15.577177ms)
|
||
✔ the runtime refuses an invalid adapter and closes a valid one (16.504518ms)
|
||
✔ the process loads the S3 adapter from plain-data trackers (97.764485ms)
|
||
✔ socket capability stamps launch identity; shared views use wire, no SQL client (35.303868ms)
|
||
✔ two wire claims serialize; a lost reply never automatically retries (26.191552ms)
|
||
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (13.276468ms)
|
||
✔ client preserves UTF-8 when a response divides a multibyte character (12.570749ms)
|
||
✔ committed mutation followed by dropped reply reports unknown and is never retried (15.830939ms)
|
||
ℹ tests 120
|
||
ℹ suites 0
|
||
ℹ pass 120
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 1061.192325
|