✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (24.87859ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (24.670783ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (41.577187ms)
✔ agents: working wins over waiting, and Input needed still shows (20.451272ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (23.158325ms)
✔ agents: state reads only its own business, even for a run name both use (25.388986ms)
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (24.972053ms)
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (23.845908ms)
✔ agents: stranded is oldest first and capped at 50 for a role (100.181975ms)
✔ agents: stranded is per role and per business (35.583012ms)
✔ agents: a message routed to a held role and not yet received is not stranded (12.506986ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (23.207524ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (29.719779ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (32.3237ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (21.461741ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (20.559169ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (24.811511ms)
✔ task action subjects and linked decision trail are complete and ordered (31.525614ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (14.539761ms)
✔ business isolation includes inherited object names and cross-business message references (23.998981ms)
✔ authority never transfers between action, run, target, unresolved or replaced role holder (31.223002ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (17.149543ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (23.943633ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (16.016396ms)
✔ both arbiters require human resolution when their cross-role route is themselves (24.5926ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (20.790153ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.174366ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (21.68466ms)
✔ credentials refuses a role session and any argument (20.327938ms)
✔ credentials reads the status on each request, and a broker without one lists none (25.203014ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (95.104877ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (6.469521ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (3.086838ms)
✔ expiry refuses use and env references never become client data (0.855708ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (1.942485ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.425916ms)
✔ roles lists open decisions routed to a role, and never the human inbox (34.688328ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (36.198188ms)
✔ recent gives the closing event as closed when the decision was seen first (35.953075ms)
✔ recent stops at RECENT rows (120.651314ms)
✔ every row is what trail already gives the same session for that id (41.193337ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (42.335076ms)
✔ decisions is a read: one business, strict arguments, nothing written (39.230559ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (28.422657ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (15.480222ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (17.896635ms)
✔ endLaunch leaves a claim another run took alone (19.839121ms)
✔ refuse records action.refused against the caller with the code only (14.628807ms)
✔ launches off refuses role.launch with launch-revoked until launches on (22.809741ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (107.043225ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (3.544013ms)
✔ process reader gets own kernel identity without exposing environment values (0.833542ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (0.799179ms)
✔ real pid 1 remains inspectable when its environment is protected (0.358121ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (29.93142ms)
✔ missing and foreign-business citations refuse and roll back message and grant (22.463582ms)
✔ cross-role sends still need a matching resolved decision and consume it once (30.634048ms)
✔ messages pages all human messages newest first without writes; read state is history (364.986281ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (19.10306ms)
✔ views messages passes only its paging arguments through (0.264169ms)
✔ messages isolates businesses even with a valid foreign cursor (10.905518ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (86.418878ms)
✔ startup token refusal returns safe code without value or partial listening broker (56.791857ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (83.151197ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (103.116948ms)
✔ trusted host registers later launches; socket clients never have a registration verb (57.720631ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (39.301582ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (56.42644ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (41.324898ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (24.109607ms)
✔ a message with no reply gives an empty list (20.560008ms)
✔ replies come oldest first and stop at REPLIES (95.05661ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (37.336817ms)
✔ strict arguments; a role session gets human-required (38.000431ms)
✔ views passes replies through as one call with the id (0.231898ms)
✔ requirements returns the committed list to a holding role session, and no one else (29.451417ms)
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (20.419491ms)
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (21.985543ms)
✔ a push is recorded as the action.allowed for git.push.working on the task, and only the host records one (34.365671ms)
✔ review.request names the latest pushed commit and sends the reviewer a REVIEW-REQUEST (28.426323ms)
✔ review.request refuses a commit that isn't the latest push, a non-reviewer and a role without the action (42.766765ms)
✔ reviewFetch answers only the addressed reviewer, for the request it cites (32.397172ms)
✔ review.verdict answers one request once, to the role that asked (34.152828ms)
✔ task.close on a pushed task needs an approve verdict for the latest push (46.116712ms)
✔ a refusal the host decided is filed on the task it names, and only a task ref counts (25.696359ms)
✔ v3b prototype refusals, views and append-only mutations (96.087487ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (36.449894ms)
✔ another run cannot consume an approval; a failed check leaves it usable (27.809947ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (23.224904ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (37.50672ms)
✔ class drift gated to cross-role refuses before consumption (26.78205ms)
✔ class drift cross-role to gated refuses before consumption (29.621811ms)
✔ class drift gated to within-role refuses before consumption (24.169684ms)
✔ class drift cross-role to within-role refuses before consumption (26.542098ms)
✔ class drift within-role to gated refuses before consumption (22.675651ms)
✔ class drift within-role to cross-role refuses before consumption (18.947859ms)
✔ message.send consumes approval and prevents a later send or authorize (23.231955ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (18.648962ms)
✔ creates private WAL store and excludes a second writer until explicit close (19.87038ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (19.217112ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (21.23967ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (67.278112ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (13.188101ms)
✔ async transactions refuse before invoking their function (11.389732ms)
✔ the session default fits under the reply cap and pages to the end with next (181.376032ms)
✔ the short form: no description, assignees by role, every listed key (88.019429ms)
✔ each filter, alone and together, and total counts every match (161.562585ms)
✔ task_ref reads one task in full, as the whole board has it (89.255099ms)
✔ no arguments is the read the Console and mosaic make, unchanged (68.092708ms)
✔ an unknown argument or a bad value refuses invalid-request (289.270829ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (43.434078ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (49.495713ms)
✔ an empty business and one with snapshots but no task.created read cleanly (12.944421ms)
✔ recordTask keeps sync reads and a role write apart (25.985664ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (13.049578ms)
✔ a bad entry refuses the whole record (14.495521ms)
✔ taskView reads the projection for one business (15.332453ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (26.687873ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (274.134791ms)
✔ without an adapter the server refuses every task verb (15.789365ms)
✔ the runtime refuses an invalid adapter and closes a valid one (16.359526ms)
✔ the process loads the S3 adapter from plain-data trackers (101.47362ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (29.489066ms)
✔ two wire claims serialize; a lost reply never automatically retries (24.368072ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (14.508648ms)
✔ client preserves UTF-8 when a response divides a multibyte character (12.639196ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (16.673465ms)
ℹ tests 127
ℹ suites 0
ℹ pass 127
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1049.868031
