✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (34.907037ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (52.033548ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (75.30373ms)
✔ agents: working wins over waiting, and Input needed still shows (25.746683ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (33.312398ms)
✔ agents: state reads only its own business, even for a run name both use (25.301044ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (45.050611ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (58.457303ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (55.07179ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (26.873216ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (26.449797ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (28.252948ms)
✔ task action subjects and linked decision trail are complete and ordered (39.930183ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (13.818692ms)
✔ business isolation includes inherited object names and cross-business message references (29.531593ms)
✔ authority never transfers between action, run, target, unresolved or replaced role holder (32.632005ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (15.91379ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (22.777481ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (14.904422ms)
✔ both arbiters require human resolution when their cross-role route is themselves (25.671111ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (20.429074ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.674355ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (30.093368ms)
✔ credentials refuses a role session and any argument (42.568066ms)
✔ credentials reads the status on each request, and a broker without one lists none (43.398301ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (104.302652ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (16.306869ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (6.263424ms)
✔ expiry refuses use and env references never become client data (1.018628ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (2.530804ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.473095ms)
✔ roles lists open decisions routed to a role, and never the human inbox (58.465797ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (60.580668ms)
✔ recent gives the closing event as closed when the decision was seen first (49.284698ms)
✔ recent stops at RECENT rows (136.812835ms)
✔ every row is what trail already gives the same session for that id (48.356915ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (41.544865ms)
✔ decisions is a read: one business, strict arguments, nothing written (38.000989ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (36.781661ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (25.192655ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (37.547806ms)
✔ endLaunch leaves a claim another run took alone (36.734932ms)
✔ refuse records action.refused against the caller with the code only (22.409799ms)
✔ launches off refuses role.launch with launch-revoked until launches on (32.194685ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (125.786462ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (3.037156ms)
✔ process reader gets own kernel identity without exposing environment values (1.977506ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (1.297454ms)
✔ real pid 1 remains inspectable when its environment is protected (0.51259ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (59.161811ms)
✔ missing and foreign-business citations refuse and roll back message and grant (31.915631ms)
✔ cross-role sends still need a matching resolved decision and consume it once (50.80152ms)
✔ messages pages all human messages newest first without writes; read state is history (450.530281ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (19.028969ms)
✔ views messages passes only its paging arguments through (0.288556ms)
✔ messages isolates businesses even with a valid foreign cursor (12.762179ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (131.659462ms)
✔ startup token refusal returns safe code without value or partial listening broker (76.291605ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (96.365454ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (122.314224ms)
✔ trusted host registers later launches; socket clients never have a registration verb (69.004357ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (46.619099ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (60.414514ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (66.3844ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (39.506037ms)
✔ a message with no reply gives an empty list (25.361765ms)
✔ replies come oldest first and stop at REPLIES (120.601082ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (39.55339ms)
✔ strict arguments; a role session gets human-required (40.893127ms)
✔ views passes replies through as one call with the id (0.402838ms)
✔ v3b prototype refusals, views and append-only mutations (158.552009ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (56.480726ms)
✔ another run cannot consume an approval; a failed check leaves it usable (40.110778ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (32.254984ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (49.995481ms)
✔ class drift gated to cross-role refuses before consumption (33.626584ms)
✔ class drift cross-role to gated refuses before consumption (34.566696ms)
✔ class drift gated to within-role refuses before consumption (26.698238ms)
✔ class drift cross-role to within-role refuses before consumption (28.535447ms)
✔ class drift within-role to gated refuses before consumption (23.106852ms)
✔ class drift within-role to cross-role refuses before consumption (20.581124ms)
✔ message.send consumes approval and prevents a later send or authorize (23.142766ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (25.000986ms)
✔ creates private WAL store and excludes a second writer until explicit close (34.436184ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (26.564612ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (40.063423ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (75.489176ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (19.995572ms)
✔ async transactions refuse before invoking their function (11.22359ms)
✔ the session default fits under the reply cap and pages to the end with next (229.213087ms)
✔ the short form: no description, assignees by role, every listed key (113.886463ms)
✔ each filter, alone and together, and total counts every match (187.564391ms)
✔ task_ref reads one task in full, as the whole board has it (118.282015ms)
✔ no arguments is the read the Console and mosaic make, unchanged (76.738056ms)
✔ an unknown argument or a bad value refuses invalid-request (392.35155ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (58.684663ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (70.06414ms)
✔ an empty business and one with snapshots but no task.created read cleanly (17.015684ms)
✔ recordTask keeps sync reads and a role write apart (38.667851ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (15.811085ms)
✔ a bad entry refuses the whole record (14.669425ms)
✔ taskView reads the projection for one business (20.959619ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (39.320556ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (281.819909ms)
✔ without an adapter the server refuses every task verb (19.632537ms)
✔ the runtime refuses an invalid adapter and closes a valid one (19.291755ms)
✔ the process loads the S3 adapter from plain-data trackers (119.273285ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (35.400879ms)
✔ two wire claims serialize; a lost reply never automatically retries (26.304053ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (15.634787ms)
✔ client preserves UTF-8 when a response divides a multibyte character (12.99153ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (20.076674ms)
ℹ tests 112
ℹ suites 0
ℹ pass 112
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1325.972413
