✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (178.033884ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (233.207191ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (387.317602ms)
✔ agents: working wins over waiting, and Input needed still shows (178.654016ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (207.821646ms)
✔ agents: state reads only its own business, even for a run name both use (182.770003ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (195.454205ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (304.165ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (318.016954ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (181.742854ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (192.111446ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (181.201923ms)
✔ task action subjects and linked decision trail are complete and ordered (195.490133ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (123.738083ms)
✔ business isolation includes inherited object names and cross-business message references (184.523022ms)
✔ authority never transfers between action, run, target, unresolved or replaced role holder (275.703375ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (137.181007ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (190.519206ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (150.645264ms)
✔ both arbiters require human resolution when their cross-role route is themselves (220.004785ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (163.704165ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (3.29428ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (140.163044ms)
✔ credentials refuses a role session and any argument (177.669039ms)
✔ credentials reads the status on each request, and a broker without one lists none (266.094726ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (238.164468ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (8.344559ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (12.973339ms)
✔ expiry refuses use and env references never become client data (1.976928ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (4.319973ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.546407ms)
✔ roles lists open decisions routed to a role, and never the human inbox (261.394339ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (327.558955ms)
✔ recent gives the closing event as closed when the decision was seen first (322.108894ms)
✔ recent stops at RECENT rows (824.791654ms)
✔ every row is what trail already gives the same session for that id (267.315656ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (360.164527ms)
✔ decisions is a read: one business, strict arguments, nothing written (365.850124ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (170.202466ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (150.426385ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (180.972542ms)
✔ endLaunch leaves a claim another run took alone (201.960423ms)
✔ refuse records action.refused against the caller with the code only (157.372671ms)
✔ launches off refuses role.launch with launch-revoked until launches on (196.09815ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (363.367221ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (7.06371ms)
✔ process reader gets own kernel identity without exposing environment values (13.478775ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (2.328044ms)
✔ real pid 1 remains inspectable when its environment is protected (0.560935ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (216.819654ms)
✔ missing and foreign-business citations refuse and roll back message and grant (226.209527ms)
✔ cross-role sends still need a matching resolved decision and consume it once (305.682459ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (298.264831ms)
✔ startup token refusal returns safe code without value or partial listening broker (64.448588ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (232.201506ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (219.634617ms)
✔ trusted host registers later launches; socket clients never have a registration verb (197.007994ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (116.92386ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (225.262037ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (270.662576ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (230.566505ms)
✔ a message with no reply gives an empty list (180.697958ms)
✔ replies come oldest first and stop at REPLIES (794.797152ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (310.714398ms)
✔ strict arguments; a role session gets human-required (367.289033ms)
✔ views passes replies through as one call with the id (0.379927ms)
✔ v3b prototype refusals, views and append-only mutations (1161.994383ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (324.954657ms)
✔ another run cannot consume an approval; a failed check leaves it usable (274.079733ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (189.30715ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (357.138181ms)
✔ class drift gated to cross-role refuses before consumption (232.592421ms)
✔ class drift cross-role to gated refuses before consumption (264.460512ms)
✔ class drift gated to within-role refuses before consumption (211.617875ms)
✔ class drift cross-role to within-role refuses before consumption (247.684167ms)
✔ class drift within-role to gated refuses before consumption (185.257108ms)
✔ class drift within-role to cross-role refuses before consumption (191.263374ms)
✔ message.send consumes approval and prevents a later send or authorize (215.556943ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (245.431488ms)
✔ creates private WAL store and excludes a second writer until explicit close (153.962537ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (204.539774ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (222.104114ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (195.953277ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (105.850786ms)
✔ async transactions refuse before invoking their function (120.030966ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (360.083688ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (421.812264ms)
✔ an empty business and one with snapshots but no task.created read cleanly (126.349185ms)
✔ recordTask keeps sync reads and a role write apart (201.634263ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (133.662015ms)
✔ a bad entry refuses the whole record (117.155294ms)
✔ taskView reads the projection for one business (151.638492ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (270.106117ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (448.346298ms)
✔ without an adapter the server refuses every task verb (237.541078ms)
✔ the runtime refuses an invalid adapter and closes a valid one (234.795623ms)
✔ the process loads the S3 adapter from plain-data trackers (301.324984ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (184.619884ms)
✔ two wire claims serialize; a lost reply never automatically retries (211.81329ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (143.084829ms)
✔ client preserves UTF-8 when a response divides a multibyte character (12.126074ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (164.111774ms)
ℹ tests 102
ℹ suites 0
ℹ pass 102
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 3140.146258
