✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (26.090888ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (22.528587ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (37.639986ms)
✔ agents: working wins over waiting, and Input needed still shows (19.883428ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (21.991396ms)
✔ agents: state reads only its own business, even for a run name both use (22.429712ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (26.650039ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (25.93013ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (31.889065ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (18.07109ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (22.514252ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (19.562026ms)
✔ task action subjects and linked decision trail are complete and ordered (39.688659ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (15.930682ms)
✔ business isolation includes inherited object names and cross-business message references (26.781193ms)
✔ authority never transfers between action, run, target, unresolved or replaced role holder (45.440105ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (36.289891ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (37.771826ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (17.710335ms)
✔ both arbiters require human resolution when their cross-role route is themselves (35.954033ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (73.828086ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.184453ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (22.495613ms)
✔ credentials refuses a role session and any argument (33.7771ms)
✔ credentials reads the status on each request, and a broker without one lists none (44.12352ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (158.952059ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (6.415381ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (3.055094ms)
✔ expiry refuses use and env references never become client data (0.930095ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (2.155901ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.632704ms)
✔ roles lists open decisions routed to a role, and never the human inbox (39.780549ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (31.819094ms)
✔ recent gives the closing event as closed when the decision was seen first (32.320774ms)
✔ recent stops at RECENT rows (247.882872ms)
✔ every row is what trail already gives the same session for that id (51.353512ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (53.588271ms)
✔ decisions is a read: one business, strict arguments, nothing written (38.769847ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (25.780308ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (14.793358ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (13.977495ms)
✔ endLaunch leaves a claim another run took alone (18.345097ms)
✔ refuse records action.refused against the caller with the code only (14.477373ms)
✔ launches off refuses role.launch with launch-revoked until launches on (19.079055ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (259.074973ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (2.840464ms)
✔ process reader gets own kernel identity without exposing environment values (0.558575ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (0.894555ms)
✔ real pid 1 remains inspectable when its environment is protected (0.4325ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (30.144652ms)
✔ missing and foreign-business citations refuse and roll back message and grant (18.124966ms)
✔ cross-role sends still need a matching resolved decision and consume it once (33.539748ms)
✔ messages pages all human messages newest first without writes; read state is history (779.944072ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (23.640413ms)
✔ views messages passes only its paging arguments through (0.633268ms)
✔ messages isolates businesses even with a valid foreign cursor (19.426503ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (208.841079ms)
✔ startup token refusal returns safe code without value or partial listening broker (184.290465ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (249.459206ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (141.844758ms)
✔ trusted host registers later launches; socket clients never have a registration verb (110.392011ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (84.787167ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (158.481422ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (40.075683ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (19.628961ms)
✔ a message with no reply gives an empty list (25.577568ms)
✔ replies come oldest first and stop at REPLIES (104.212422ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (45.417186ms)
✔ strict arguments; a role session gets human-required (63.007852ms)
✔ views passes replies through as one call with the id (0.606738ms)
✔ requirements returns the committed list to a holding role session, and no one else (58.871026ms)
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (29.796838ms)
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (26.988751ms)
✔ v3b prototype refusals, views and append-only mutations (84.090437ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (41.033458ms)
✔ another run cannot consume an approval; a failed check leaves it usable (25.782518ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (19.25285ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (56.703851ms)
✔ class drift gated to cross-role refuses before consumption (37.984542ms)
✔ class drift cross-role to gated refuses before consumption (42.691724ms)
✔ class drift gated to within-role refuses before consumption (63.811961ms)
✔ class drift cross-role to within-role refuses before consumption (36.552096ms)
✔ class drift within-role to gated refuses before consumption (29.02778ms)
✔ class drift within-role to cross-role refuses before consumption (26.1382ms)
✔ message.send consumes approval and prevents a later send or authorize (25.964617ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (26.010074ms)
✔ creates private WAL store and excludes a second writer until explicit close (27.480802ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (18.102974ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (25.833443ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (136.981522ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (14.39069ms)
✔ async transactions refuse before invoking their function (10.180151ms)
✔ the session default fits under the reply cap and pages to the end with next (260.794938ms)
✔ the short form: no description, assignees by role, every listed key (187.072147ms)
✔ each filter, alone and together, and total counts every match (267.722044ms)
✔ task_ref reads one task in full, as the whole board has it (131.308363ms)
✔ no arguments is the read the Console and mosaic make, unchanged (106.314869ms)
✔ an unknown argument or a bad value refuses invalid-request (603.325946ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (53.721572ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (53.853903ms)
✔ an empty business and one with snapshots but no task.created read cleanly (13.447993ms)
✔ recordTask keeps sync reads and a role write apart (39.676133ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (21.049141ms)
✔ a bad entry refuses the whole record (17.307895ms)
✔ taskView reads the projection for one business (17.62278ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (52.504125ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (300.518819ms)
✔ without an adapter the server refuses every task verb (23.492587ms)
✔ the runtime refuses an invalid adapter and closes a valid one (32.821009ms)
✔ the process loads the S3 adapter from plain-data trackers (259.440745ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (29.643642ms)
✔ two wire claims serialize; a lost reply never automatically retries (23.045701ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (11.615747ms)
✔ client preserves UTF-8 when a response divides a multibyte character (14.020498ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (13.434478ms)
ℹ tests 115
ℹ suites 0
ℹ pass 115
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 5067.355555
