✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (30.086151ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (29.841969ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (48.818546ms)
✔ agents: working wins over waiting, and Input needed still shows (21.980754ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (28.619579ms)
✔ agents: state reads only its own business, even for a run name both use (29.261575ms)
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (30.171389ms)
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (30.644622ms)
✔ agents: stranded is oldest first and capped at 50 for a role (130.498535ms)
✔ agents: stranded is per role and per business (46.505288ms)
✔ agents: a message routed to a held role and not yet received is not stranded (22.792403ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (30.892533ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (37.048799ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (34.9186ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (23.65404ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (22.470809ms)
✔ a recommendation that is not exactly one option key refuses invalid-recommendation after the options (42.684396ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (25.248018ms)
✔ task action subjects and linked decision trail are complete and ordered (33.2353ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (16.392624ms)
✔ business isolation includes inherited object names and cross-business message references (30.48537ms)
✔ authority never transfers between action, run, target, unresolved or replaced role holder (35.638337ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (19.819824ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (33.196436ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (18.840645ms)
✔ both arbiters require human resolution when their cross-role route is themselves (38.31574ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (32.809441ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.328659ms)
✔ REQ-COS-1, REQ-ROLE-2: the chief of staff ends a run with a reason and no decision, and the reason is logged (38.217588ms)
✔ REQ-ROLE-2: a role without role.end still needs a resolved decision to revoke (42.712562ms)
✔ REQ-ROLE-2: storage accepts a revoke with a reason or a decision and aborts one with neither (29.476107ms)
✔ REQ-ROLE-2: the chief of staff may still cite a decision, and a decision alone is the old path (27.294067ms)
✔ REQ-ROLE-2: a role without role.end still ends a run through a resolved decision, which is recorded and has no reason (41.158293ms)
✔ REQ-ROLE-2: a reason is required, bounded, and never sent with a decision (37.127744ms)
✔ REQ-COS-1: the chief of staff cannot end its own run or the assistant's through role.end (33.047411ms)
✔ REQ-LIMIT-1, REQ-COS-1: organization.set from the chief of staff reaches the shared writer, named as the actor (32.794317ms)
✔ REQ-LIMIT-1, REQ-COS-1: a refused organization.set logs action.refused and no action.allowed, like a refused limits.set (38.851681ms)
✔ REQ-LIMIT-1: organization.set is refused for every caller whose role file lacks organization.change (37.751782ms)
✔ REQ-LIMIT-1: the chief of staff is logged as allowed, and organization.set takes only the human's keys (48.845991ms)
✔ REQ-ROLE-3, REQ-LIMIT-1: a chief-of-staff change is validated, written and logged like a human's; an invalid one is refused (96.781584ms)
✔ REQ-ROLE-2, REQ-COS-1: the 3c→3d migration lets the chief of staff end a held role with a reason; neither is still refused (87.291229ms)
✔ comment cursors isolate businesses, move only forward and remain append-only (22.817356ms)
✔ only trusted sync writes validated cursors; events and cursor share rollback (16.202798ms)
✔ explicit 3b copy migration preserves evidence and opens as 3e; normal startup never migrates (75.195859ms)
✔ migration refuses active writers and drifted legacy schemas, with no partial upgrade (135.373853ms)
✔ named migration registry chains 3b through 3e to a fixture-only future version in order (85.42894ms)
✔ migration refuses mismatched source metadata without changing schema or evidence (62.003956ms)
✔ offline command migrates only the supplied fixture root and reports usage errors (197.02806ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (22.50359ms)
✔ credentials refuses a role session and any argument (22.934534ms)
✔ credentials reads the status on each request, and a broker without one lists none (29.903826ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (101.87199ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (4.012601ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (3.015944ms)
✔ expiry refuses use and env references never become client data (0.846228ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (1.799085ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.395589ms)
✔ a human resolve sends the raising role one message from the human, and its request is the answer (50.30293ms)
✔ a cross-role decision resolved by its arbiter comes from that role and run, with no request (29.445601ms)
✔ a human withdraw sends one message with the note (35.626281ms)
✔ a human seen before the close leaves the request on the close's answer, not the seen (39.52047ms)
✔ the raising run's withdraw, a supersede, a within-role raise and seen send nothing (42.657832ms)
✔ refused closes send nothing: invalid-choice, decision-closed, not-resolver (38.529363ms)
✔ a raising role nobody holds at the close gets the message on the next claim (37.633627ms)
✔ a human DECISION send keeps its own instruction as the request, not a close's answer (31.952873ms)
✔ a cross-role raise whose arbiter the raiser does not hear from is refused and stores nothing (42.911644ms)
✔ a gated raise by a role that does not hear from the human is refused and stores nothing (40.249067ms)
✔ a route the raiser hears from is allowed, checked from the route to the raiser (44.515488ms)
✔ a refused supersede withdraws nothing (38.777691ms)
✔ the assistant's within-role and gated raises still work (41.244905ms)
✔ roles lists open decisions routed to a role, and never the human inbox (38.275566ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (41.645271ms)
✔ recent gives the closing event as closed when the decision was seen first (40.242266ms)
✔ recent stops at RECENT rows (132.625479ms)
✔ every row is what trail already gives the same session for that id (53.296529ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (58.179814ms)
✔ decisions is a read: one business, strict arguments, nothing written (54.844541ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (23.333944ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (17.909857ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (21.779362ms)
✔ endLaunch leaves a claim another run took alone (22.771082ms)
✔ refuse records action.refused against the caller with the code only (16.770681ms)
✔ launches off refuses role.launch with launch-revoked until launches on (25.048362ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (115.671363ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (2.236046ms)
✔ process reader gets own kernel identity without exposing environment values (0.773227ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (0.983196ms)
✔ real pid 1 remains inspectable when its environment is protected (0.340869ms)
✔ limits binds actor from human proof and rejects role, reader, tester and forged actor (32.461634ms)
✔ runtime wires verified human settings to the actual shared file writer and actor receipt (58.159196ms)
✔ uncertain organization receipts leave bus startup and reads alone but refuse writes until reconciled (56.600727ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (36.552712ms)
✔ missing and foreign-business citations refuse and roll back message and grant (26.099759ms)
✔ cross-role sends still need a matching resolved decision and consume it once (33.898515ms)
✔ messages pages all human messages newest first without writes; read state is history (472.405714ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (34.516289ms)
✔ views messages passes only its paging arguments through (0.315873ms)
✔ messages isolates businesses even with a valid foreign cursor (24.217584ms)
✔ the assistant sends to the user and to the chief of staff only (48.828918ms)
✔ an assistant send to any other role, or to the tester, is refused and logged (51.669613ms)
✔ only the user and the chief of staff may send to the assistant; the tester is refused by default (48.00653ms)
✔ REQ-ASSIST-2 REQ-THREAD-1 thread.send to an instance that does not hear from the user is refused and stores nothing (39.595298ms)
✔ a sender-side list alone refuses a send to a role that has no list (45.218485ms)
✔ a target-side list alone refuses a send from a role that has no list (47.039466ms)
✔ the sender list is checked before the target list (38.716645ms)
✔ roles without the field behave exactly as before (62.871524ms)
✔ a business with no role definitions at all is unlimited (44.381765ms)
✔ a malformed messaging field refuses at boot (20.312469ms)
✔ the assistant's review.request to a reviewer is refused and logged, even with an approved decision (48.295797ms)
✔ a review.verdict to the assistant from a role outside its receiveFrom is refused and logged (49.08501ms)
✔ review requests and verdicts between roles without the field are unchanged (33.689304ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (99.436564ms)
✔ startup token refusal returns safe code without value or partial listening broker (68.947158ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (93.140071ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (152.736354ms)
✔ trusted host registers later launches; socket clients never have a registration verb (99.217964ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (58.246339ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (68.749048ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (47.048777ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (29.309345ms)
✔ a message with no reply gives an empty list (24.405649ms)
✔ replies come oldest first and stop at REPLIES (108.803235ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (41.73001ms)
✔ strict arguments; a role session gets human-required (48.198613ms)
✔ views passes replies through as one call with the id (0.375202ms)
✔ requirements returns the committed list to a holding role session, and no one else (34.067309ms)
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (21.395819ms)
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (24.858272ms)
✔ a push is recorded as the action.allowed for git.push.working on the task, and only the host records one (37.585071ms)
✔ review.request names the latest pushed commit and sends the reviewer a REVIEW-REQUEST (33.417755ms)
✔ review.request says which run holds the reviewer role, or null, and a null request waits for a claim (37.889026ms)
✔ review.request refuses a commit that isn't the latest push, a non-reviewer and a role without the action (50.159979ms)
✔ reviewFetch answers only the addressed reviewer, for the request it cites (33.74863ms)
✔ review.verdict answers one request once, to the role that asked (51.596715ms)
✔ task.close on a pushed task needs an approve verdict for the latest push (56.534148ms)
✔ a refusal the host decided is filed on the task it names, and only a task ref counts (31.240407ms)
✔ v3b prototype refusals, views and append-only mutations (126.357744ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (40.907093ms)
✔ another run cannot consume an approval; a failed check leaves it usable (29.449316ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (23.0177ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (47.942894ms)
✔ class drift gated to cross-role refuses before consumption (33.983488ms)
✔ class drift cross-role to gated refuses before consumption (37.980696ms)
✔ class drift gated to within-role refuses before consumption (36.515801ms)
✔ class drift cross-role to within-role refuses before consumption (34.377646ms)
✔ class drift within-role to gated refuses before consumption (28.277927ms)
✔ class drift within-role to cross-role refuses before consumption (23.944677ms)
✔ message.send consumes approval and prevents a later send or authorize (26.217872ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (29.355731ms)
✔ a business that never switched launches reads allowed with no time and no event (24.447844ms)
✔ launches revoked and then restored read allowed, with the restore time and event id (23.181133ms)
✔ a task closed on the tracker leaves the open list, and total counts the open ones (22.521648ms)
✔ a tombstone is not open (20.046087ms)
✔ the open list stops at the cap and says so; total still counts every open task (26.624368ms)
✔ a role and a reader session read state; arguments, and an unbound cap, refuse (23.921902ms)
✔ a human session reads the same state, with the same cap (26.247291ms)
✔ reading state writes nothing: every table keeps its row count (24.114797ms)
✔ creates private WAL store and excludes a second writer until explicit close (19.745286ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (23.686085ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (24.365629ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (85.414964ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (16.97269ms)
✔ async transactions refuse before invoking their function (12.523613ms)
✔ the session default fits under the reply cap and pages to the end with next (200.435497ms)
✔ the short form: no description, assignees by role, every listed key (93.010588ms)
✔ each filter, alone and together, and total counts every match (164.360907ms)
✔ task_ref reads one task in full, as the whole board has it (89.253095ms)
✔ no arguments is the read the Console and mosaic make, unchanged (74.194184ms)
✔ an unknown argument or a bad value refuses invalid-request (313.081912ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (63.719479ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (62.809157ms)
✔ an empty business and one with snapshots but no task.created read cleanly (16.555671ms)
✔ recordTask keeps sync reads and a role write apart (34.04358ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (16.275245ms)
✔ a bad entry refuses the whole record (13.59456ms)
✔ taskView reads the projection for one business (19.271537ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (30.049487ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (277.248392ms)
✔ without an adapter the server refuses every task verb (17.877613ms)
✔ the runtime refuses an invalid adapter and closes a valid one (21.53831ms)
✔ the process loads the S3 adapter from plain-data trackers (116.327886ms)
✔ the tester binds only when the business sets bus.tester to exactly true (105.155002ms)
✔ a business may not name a role tester, so the tester address is never a role (28.103352ms)
✔ every verb outside the tester list refuses tester-refused and is recorded against the tester (54.529141ms)
✔ a tester message is from tester, starts [mos test], and writes no human.input or authority (24.108083ms)
✔ a role answers a tester only in reply to a tester message, and the answer never reaches the human (27.216042ms)
✔ the tester reads the human views a reader reads (24.987966ms)
✔ tester proof binds its own CLI, start time and nonce, refuses a managed run and allows an agent (1.369905ms)
✔ neither CLI's nonce proves the other: each proof is bound to its own CLI and nonce variable (0.39588ms)
✔ testerNonce reads only the tester's variable and gives null on any read error (0.221503ms)
✔ an envelope carries exactly one of cap, human and tester; no tester authenticator refuses (18.798099ms)
✔ tester-cli.mjs binds through the runtime when the switch is on, and refuses off or under a run marker (655.895935ms)
✔ REQ-THREAD-1 REQ-ORG-2: the 3d→3e migration adds the thread tables and leaves messages from before threads as written (107.73796ms)
✔ REQ-THREAD-1: a 3d bus with a changed schema is refused and keeps its version and tables (65.338173ms)
✔ REQ-THREAD-1: the offline command prints the kept-message counts before the ready line (104.623804ms)
✔ REQ-ROLE-2 REQ-THREAD-1: one holder per thread, through the broker and the trigger (48.264923ms)
✔ REQ-ROLE-2 REQ-THREAD-1: the 3e triggers refuse writes that skip the broker (76.574417ms)
✔ REQ-MSG-1: a message to or from the assistant names its thread, or is refused (34.614097ms)
✔ REQ-MSG-1: the chief of staff's reply comes back to the thread that sent the work (521.541368ms)
✔ REQ-MSG-1: a reply can't carry one thread instance's thread to another thread instance (16.76653ms)
✔ REQ-THREAD-1 REQ-USER-2: one thread's messages never reach another thread's holder (21.286057ms)
✔ REQ-LAUNCH-1: a message to a thread with no holder waits, and the next holder gets it (23.901975ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: threadIdle releases only a thread with nothing waiting, and only for its holder (27.11315ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: a message delivered to a run that ended unread doesn't hold up the next holder (23.335598ms)
✔ REQ-ROLE-2 REQ-THREAD-1: an approved role.revoke never reaches a thread run, and the thread stays held (19.852163ms)
✔ REQ-USER-2: the human verbs refuse another owner's thread (22.349179ms)
✔ REQ-THREAD-1: thread.create refuses when the business has no thread instance or more than one (15.970591ms)
✔ REQ-ORG-2: projects and threads are named once, and the repo names a business project (19.283703ms)
✔ REQ-THREAD-2: thread.messages returns the thread's history in pages and writes nothing (70.32513ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (32.126839ms)
✔ two wire claims serialize; a lost reply never automatically retries (27.026549ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (12.700315ms)
✔ client preserves UTF-8 when a response divides a multibyte character (11.656101ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (16.104367ms)
ℹ tests 214
ℹ suites 0
ℹ pass 214
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1593.657114
