✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (64.942674ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (71.953209ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (203.290767ms)
✔ agents: working wins over waiting, and Input needed still shows (65.459638ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (75.582739ms)
✔ agents: state reads only its own business, even for a run name both use (156.014119ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (48.593623ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (79.373155ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (135.774463ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (74.726367ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (73.779518ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (62.521196ms)
✔ task action subjects and linked decision trail are complete and ordered (179.601995ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (56.865913ms)
✔ business isolation includes inherited object names and cross-business message references (132.19166ms)
✔ authority never transfers between action, run, target, unresolved or replaced role holder (128.894951ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (74.045086ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (134.673397ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (69.802317ms)
✔ both arbiters require human resolution when their cross-role route is themselves (56.109394ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (31.735746ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (8.201816ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (55.807472ms)
✔ credentials refuses a role session and any argument (86.337873ms)
✔ credentials reads the status on each request, and a broker without one lists none (55.712072ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (219.439466ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (13.596096ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (5.123367ms)
✔ expiry refuses use and env references never become client data (5.214417ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (6.251961ms)
✔ opaque tokens shorter than 16 characters refuse before use (1.339843ms)
✔ roles lists open decisions routed to a role, and never the human inbox (78.44529ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (133.594316ms)
✔ recent gives the closing event as closed when the decision was seen first (137.091601ms)
✔ recent stops at RECENT rows (711.605981ms)
✔ every row is what trail already gives the same session for that id (142.781488ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (68.231361ms)
✔ decisions is a read: one business, strict arguments, nothing written (62.139246ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (32.983309ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (22.291356ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (42.242576ms)
✔ endLaunch leaves a claim another run took alone (53.28674ms)
✔ refuse records action.refused against the caller with the code only (47.01793ms)
✔ launches off refuses role.launch with launch-revoked until launches on (66.39249ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (341.208654ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (5.198049ms)
✔ process reader gets own kernel identity without exposing environment values (4.886041ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (1.407931ms)
✔ real pid 1 remains inspectable when its environment is protected (0.556857ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (80.340155ms)
✔ missing and foreign-business citations refuse and roll back message and grant (86.741827ms)
✔ cross-role sends still need a matching resolved decision and consume it once (151.521535ms)
✔ messages pages all human messages newest first without writes; read state is history (1330.181447ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (24.936426ms)
✔ views messages passes only its paging arguments through (0.516014ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (187.291744ms)
✔ startup token refusal returns safe code without value or partial listening broker (169.833231ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (275.56532ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (460.061534ms)
✔ trusted host registers later launches; socket clients never have a registration verb (140.931179ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (78.206828ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (100.145989ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (119.973213ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (92.513896ms)
✔ a message with no reply gives an empty list (79.22147ms)
✔ replies come oldest first and stop at REPLIES (485.042708ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (142.998351ms)
✔ strict arguments; a role session gets human-required (133.824495ms)
✔ views passes replies through as one call with the id (1.826854ms)
✔ v3b prototype refusals, views and append-only mutations (337.802205ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (103.841741ms)
✔ another run cannot consume an approval; a failed check leaves it usable (87.244358ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (81.869844ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (153.461202ms)
✔ class drift gated to cross-role refuses before consumption (219.447683ms)
✔ class drift cross-role to gated refuses before consumption (160.296229ms)
✔ class drift gated to within-role refuses before consumption (158.920949ms)
✔ class drift cross-role to within-role refuses before consumption (124.2076ms)
✔ class drift within-role to gated refuses before consumption (62.269547ms)
✔ class drift within-role to cross-role refuses before consumption (47.3342ms)
✔ message.send consumes approval and prevents a later send or authorize (40.400182ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (35.692986ms)
✔ creates private WAL store and excludes a second writer until explicit close (43.722407ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (52.644403ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (53.292821ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (205.331729ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (41.933346ms)
✔ async transactions refuse before invoking their function (29.225975ms)
✔ the session default fits under the reply cap and pages to the end with next (614.155643ms)
✔ the short form: no description, assignees by role, every listed key (364.544276ms)
✔ each filter, alone and together, and total counts every match (325.362565ms)
✔ task_ref reads one task in full, as the whole board has it (126.011164ms)
✔ no arguments is the read the Console and mosaic make, unchanged (97.613773ms)
✔ an unknown argument or a bad value refuses invalid-request (581.377025ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (164.527076ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (185.515673ms)
✔ an empty business and one with snapshots but no task.created read cleanly (179.077008ms)
✔ recordTask keeps sync reads and a role write apart (62.090587ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (44.794769ms)
✔ a bad entry refuses the whole record (71.334437ms)
✔ taskView reads the projection for one business (41.255907ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (86.684361ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (459.248959ms)
✔ without an adapter the server refuses every task verb (161.06695ms)
✔ the runtime refuses an invalid adapter and closes a valid one (96.882991ms)
✔ the process loads the S3 adapter from plain-data trackers (219.417106ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (156.265339ms)
✔ two wire claims serialize; a lost reply never automatically retries (176.239235ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (56.652122ms)
✔ client preserves UTF-8 when a response divides a multibyte character (21.500769ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (99.079136ms)
ℹ tests 111
ℹ suites 0
ℹ pass 111
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2509.606475
