✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (20.370583ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (18.039877ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (35.105664ms)
✔ agents: working wins over waiting, and Input needed still shows (13.781864ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (18.401783ms)
✔ agents: state reads only its own business, even for a run name both use (17.021081ms)
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (21.21349ms)
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (19.143481ms)
✔ agents: stranded is oldest first and capped at 50 for a role (126.034198ms)
✔ agents: stranded is per role and per business (39.509404ms)
✔ agents: a message routed to a held role and not yet received is not stranded (17.804464ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (18.618609ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (23.201575ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (24.2233ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (14.21405ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (17.237715ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (14.480904ms)
✔ task action subjects and linked decision trail are complete and ordered (30.186032ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (12.221964ms)
✔ business isolation includes inherited object names and cross-business message references (40.379142ms)
✔ authority never transfers between action, run, target, unresolved or replaced role holder (44.974968ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (14.097323ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (19.876949ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (14.427694ms)
✔ both arbiters require human resolution when their cross-role route is themselves (25.812278ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (39.342143ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (3.971128ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (28.28587ms)
✔ credentials refuses a role session and any argument (16.724128ms)
✔ credentials reads the status on each request, and a broker without one lists none (21.132889ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (160.313504ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (9.722046ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (5.821065ms)
✔ expiry refuses use and env references never become client data (2.059868ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (4.388458ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.957898ms)
✔ roles lists open decisions routed to a role, and never the human inbox (30.377924ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (32.31264ms)
✔ recent gives the closing event as closed when the decision was seen first (21.741234ms)
✔ recent stops at RECENT rows (79.053643ms)
✔ every row is what trail already gives the same session for that id (34.259363ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (32.558939ms)
✔ decisions is a read: one business, strict arguments, nothing written (32.020742ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (15.34434ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (10.019791ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (10.857563ms)
✔ endLaunch leaves a claim another run took alone (14.140654ms)
✔ refuse records action.refused against the caller with the code only (11.754649ms)
✔ launches off refuses role.launch with launch-revoked until launches on (16.011252ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (84.532333ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (1.668873ms)
✔ process reader gets own kernel identity without exposing environment values (0.475429ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (0.710507ms)
✔ real pid 1 remains inspectable when its environment is protected (0.265201ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (23.612326ms)
✔ missing and foreign-business citations refuse and roll back message and grant (20.416072ms)
✔ cross-role sends still need a matching resolved decision and consume it once (28.025844ms)
✔ messages pages all human messages newest first without writes; read state is history (303.584678ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (25.133119ms)
✔ views messages passes only its paging arguments through (0.252719ms)
✔ messages isolates businesses even with a valid foreign cursor (17.866998ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (71.504584ms)
✔ startup token refusal returns safe code without value or partial listening broker (45.153126ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (65.053764ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (99.197183ms)
✔ trusted host registers later launches; socket clients never have a registration verb (68.132511ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (40.313279ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (64.503275ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (32.033851ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (14.318352ms)
✔ a message with no reply gives an empty list (12.65542ms)
✔ replies come oldest first and stop at REPLIES (59.086641ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (26.714448ms)
✔ strict arguments; a role session gets human-required (25.69423ms)
✔ views passes replies through as one call with the id (0.433497ms)
✔ requirements returns the committed list to a holding role session, and no one else (21.663453ms)
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (10.564468ms)
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (11.460218ms)
✔ a push is recorded as the action.allowed for git.push.working on the task, and only the host records one (25.232414ms)
✔ review.request names the latest pushed commit and sends the reviewer a REVIEW-REQUEST (18.278457ms)
✔ review.request refuses a commit that isn't the latest push, a non-reviewer and a role without the action (32.711837ms)
✔ reviewFetch answers only the addressed reviewer, for the request it cites (28.278668ms)
✔ review.verdict answers one request once, to the role that asked (35.878834ms)
✔ task.close on a pushed task needs an approve verdict for the latest push (53.208295ms)
✔ a refusal the host decided is filed on the task it names, and only a task ref counts (26.631771ms)
✔ v3b prototype refusals, views and append-only mutations (85.620884ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (41.231158ms)
✔ another run cannot consume an approval; a failed check leaves it usable (20.601097ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (25.591387ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (52.746574ms)
✔ class drift gated to cross-role refuses before consumption (40.637435ms)
✔ class drift cross-role to gated refuses before consumption (42.070933ms)
✔ class drift gated to within-role refuses before consumption (42.587465ms)
✔ class drift cross-role to within-role refuses before consumption (26.724598ms)
✔ class drift within-role to gated refuses before consumption (33.371468ms)
✔ class drift within-role to cross-role refuses before consumption (20.346947ms)
✔ message.send consumes approval and prevents a later send or authorize (20.351825ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (24.450171ms)
✔ creates private WAL store and excludes a second writer until explicit close (20.553867ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (26.374834ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (24.442297ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (94.610335ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (12.520872ms)
✔ async transactions refuse before invoking their function (10.292059ms)
✔ the session default fits under the reply cap and pages to the end with next (145.440447ms)
✔ the short form: no description, assignees by role, every listed key (86.237165ms)
✔ each filter, alone and together, and total counts every match (192.642287ms)
✔ task_ref reads one task in full, as the whole board has it (116.858873ms)
✔ no arguments is the read the Console and mosaic make, unchanged (100.315411ms)
✔ an unknown argument or a bad value refuses invalid-request (469.409901ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (33.597096ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (35.577573ms)
✔ an empty business and one with snapshots but no task.created read cleanly (8.181126ms)
✔ recordTask keeps sync reads and a role write apart (18.108929ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (7.741476ms)
✔ a bad entry refuses the whole record (8.751597ms)
✔ taskView reads the projection for one business (13.680521ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (18.994368ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (271.501021ms)
✔ without an adapter the server refuses every task verb (28.233361ms)
✔ the runtime refuses an invalid adapter and closes a valid one (23.338214ms)
✔ the process loads the S3 adapter from plain-data trackers (148.014038ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (25.300384ms)
✔ two wire claims serialize; a lost reply never automatically retries (19.87855ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (12.278527ms)
✔ client preserves UTF-8 when a response divides a multibyte character (13.635477ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (15.811256ms)
ℹ tests 127
ℹ suites 0
ℹ pass 127
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 3472.640936
