✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (32.731172ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (29.357471ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (52.020254ms)
✔ agents: working wins over waiting, and Input needed still shows (22.183956ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (29.161289ms)
✔ agents: state reads only its own business, even for a run name both use (27.096589ms)
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (36.860149ms)
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (30.019442ms)
✔ agents: stranded is oldest first and capped at 50 for a role (148.131887ms)
✔ agents: stranded is per role and per business (48.419769ms)
✔ agents: a message routed to a held role and not yet received is not stranded (20.936659ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (32.302743ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (34.026329ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (39.649223ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (23.720915ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (25.328207ms)
✔ a recommendation that is not exactly one option key refuses invalid-recommendation after the options (40.289619ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (24.051686ms)
✔ task action subjects and linked decision trail are complete and ordered (38.380138ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (16.515481ms)
✔ business isolation includes inherited object names and cross-business message references (33.678196ms)
✔ authority never transfers between action, run, target, unresolved or replaced role holder (39.441047ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (22.034702ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (35.59837ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (20.483146ms)
✔ both arbiters require human resolution when their cross-role route is themselves (35.955245ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (35.947375ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.446531ms)
✔ REQ-COS-1, REQ-ROLE-2: the chief of staff ends a run with a reason and no decision, and the reason is logged (40.859404ms)
✔ REQ-ROLE-2: a role without role.end still needs a resolved decision to revoke (41.64904ms)
✔ REQ-ROLE-2: storage accepts a revoke with a reason or a decision and aborts one with neither (32.119653ms)
✔ REQ-ROLE-2: the chief of staff may still cite a decision, and a decision alone is the old path (31.91275ms)
✔ REQ-ROLE-2: a role without role.end still ends a run through a resolved decision, which is recorded and has no reason (38.880274ms)
✔ REQ-ROLE-2: a reason is required, bounded, and never sent with a decision (40.754441ms)
✔ REQ-COS-1: the chief of staff cannot end its own run or the assistant's through role.end (39.932829ms)
✔ REQ-LIMIT-1, REQ-COS-1: organization.set from the chief of staff reaches the shared writer, named as the actor (35.38552ms)
✔ REQ-LIMIT-1, REQ-COS-1: a refused organization.set logs action.refused and no action.allowed, like a refused limits.set (41.834805ms)
✔ REQ-LIMIT-1: organization.set is refused for every caller whose role file lacks organization.change (45.499095ms)
✔ REQ-LIMIT-1: the chief of staff is logged as allowed, and organization.set takes only the human's keys (50.766866ms)
✔ 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 (92.160408ms)
✔ 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 (105.703093ms)
✔ comment cursors isolate businesses, move only forward and remain append-only (24.728418ms)
✔ only trusted sync writes validated cursors; events and cursor share rollback (17.923892ms)
✔ explicit 3b copy migration preserves evidence and opens as 3e; normal startup never migrates (85.183313ms)
✔ migration refuses active writers and drifted legacy schemas, with no partial upgrade (139.462048ms)
✔ named migration registry chains 3b through 3e to a fixture-only future version in order (94.068936ms)
✔ migration refuses mismatched source metadata without changing schema or evidence (67.251679ms)
✔ offline command migrates only the supplied fixture root and reports usage errors (195.751918ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (25.168893ms)
✔ credentials refuses a role session and any argument (22.609518ms)
✔ credentials reads the status on each request, and a broker without one lists none (29.73848ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (131.354679ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (4.497284ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (3.244208ms)
✔ expiry refuses use and env references never become client data (1.106608ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (2.052609ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.474453ms)
✔ each C-suite role file carries the same two lists: human, chief-of-staff, pm, cto (2.380665ms)
✔ chief-executive-officer: messages to and from the user, chief of staff, pm and cto pass (66.305694ms)
✔ chief-executive-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (62.830048ms)
✔ chief-executive-officer: another C-suite role isn't on the lists either (51.969728ms)
✔ chief-financial-officer: messages to and from the user, chief of staff, pm and cto pass (63.552929ms)
✔ chief-financial-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (70.642145ms)
✔ chief-financial-officer: another C-suite role isn't on the lists either (51.690072ms)
✔ chief-information-officer: messages to and from the user, chief of staff, pm and cto pass (64.403297ms)
✔ chief-information-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (63.679573ms)
✔ chief-information-officer: another C-suite role isn't on the lists either (66.36658ms)
✔ chief-information-security-officer: messages to and from the user, chief of staff, pm and cto pass (68.656487ms)
✔ chief-information-security-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (70.18283ms)
✔ chief-information-security-officer: another C-suite role isn't on the lists either (45.585395ms)
✔ chief-marketing-officer: messages to and from the user, chief of staff, pm and cto pass (58.105945ms)
✔ chief-marketing-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (49.112562ms)
✔ chief-marketing-officer: another C-suite role isn't on the lists either (43.491552ms)
✔ a human resolve sends the raising role one message from the human, and its request is the answer (47.911957ms)
✔ a cross-role decision resolved by its arbiter comes from that role and run, with no request (34.481057ms)
✔ a human withdraw sends one message with the note (31.542395ms)
✔ a human seen before the close leaves the request on the close's answer, not the seen (39.010453ms)
✔ the raising run's withdraw, a supersede, a within-role raise and seen send nothing (39.519802ms)
✔ refused closes send nothing: invalid-choice, decision-closed, not-resolver (41.046276ms)
✔ a raising role nobody holds at the close gets the message on the next claim (39.168356ms)
✔ a human DECISION send keeps its own instruction as the request, not a close's answer (36.631114ms)
✔ a cross-role raise whose arbiter the raiser does not hear from is refused and stores nothing (44.122465ms)
✔ a gated raise by a role that does not hear from the human is refused and stores nothing (42.979977ms)
✔ a route the raiser hears from is allowed, checked from the route to the raiser (46.501144ms)
✔ a refused supersede withdraws nothing (40.46985ms)
✔ the assistant's within-role and gated raises still work (43.692617ms)
✔ roles lists open decisions routed to a role, and never the human inbox (39.757199ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (39.952323ms)
✔ recent gives the closing event as closed when the decision was seen first (37.147634ms)
✔ recent stops at RECENT rows (135.236945ms)
✔ every row is what trail already gives the same session for that id (58.205079ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (61.982457ms)
✔ decisions is a read: one business, strict arguments, nothing written (60.606484ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (25.597164ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (18.720191ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (21.638536ms)
✔ endLaunch leaves a claim another run took alone (24.677269ms)
✔ refuse records action.refused against the caller with the code only (18.135527ms)
✔ launches off refuses role.launch with launch-revoked until launches on (26.844857ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (153.875625ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (2.568769ms)
✔ process reader gets own kernel identity without exposing environment values (0.720258ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (1.123457ms)
✔ real pid 1 remains inspectable when its environment is protected (0.400591ms)
✔ limits binds actor from human proof and rejects role, reader, tester and forged actor (30.786617ms)
✔ runtime wires verified human settings to the actual shared file writer and actor receipt (79.476079ms)
✔ uncertain organization receipts leave bus startup and reads alone but refuse writes until reconciled (56.12554ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (39.142608ms)
✔ missing and foreign-business citations refuse and roll back message and grant (23.456484ms)
✔ cross-role sends still need a matching resolved decision and consume it once (33.521348ms)
✔ messages pages all human messages newest first without writes; read state is history (505.618547ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (39.106331ms)
✔ views messages passes only its paging arguments through (0.419828ms)
✔ messages isolates businesses even with a valid foreign cursor (26.565981ms)
✔ the assistant sends to the user and to the chief of staff only (46.911789ms)
✔ an assistant send to any other role, or to the tester, is refused and logged (50.45148ms)
✔ only the user and the chief of staff may send to the assistant; the tester is refused by default (51.020812ms)
✔ REQ-ASSIST-2 REQ-THREAD-1 thread.send to an instance that does not hear from the user is refused and stores nothing (41.786934ms)
✔ a sender-side list alone refuses a send to a role that has no list (47.464885ms)
✔ a target-side list alone refuses a send from a role that has no list (47.512637ms)
✔ the sender list is checked before the target list (43.080241ms)
✔ roles without the field behave exactly as before (61.521341ms)
✔ a business with no role definitions at all is unlimited (49.611518ms)
✔ a malformed messaging field refuses at boot (21.500579ms)
✔ the assistant's review.request to a reviewer is refused and logged, even with an approved decision (51.380166ms)
✔ a review.verdict to the assistant from a role outside its receiveFrom is refused and logged (54.680164ms)
✔ review requests and verdicts between roles without the field are unchanged (48.045638ms)
✔ plugins and plugins.set refuse every non-human session and a forged actor, and pass only the patch with the verified actor (28.790109ms)
✔ runtime: the switch changes the organization file, the receipt carries the actor, and a bad shape, an unknown module and a stale revision are refused with nothing written (104.946343ms)
✔ vikunja:19/309 through the broker, a patch switches the kinds it names and keeps the rest; null removes one kind and is trailed (54.90435ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (137.907278ms)
✔ startup token refusal returns safe code without value or partial listening broker (96.444649ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (136.732495ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (213.768721ms)
✔ trusted host registers later launches; socket clients never have a registration verb (97.911105ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (72.654258ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (88.205768ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (51.199905ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (28.162572ms)
✔ a message with no reply gives an empty list (23.335882ms)
✔ replies come oldest first and stop at REPLIES (120.654091ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (45.598199ms)
✔ strict arguments; a role session gets human-required (59.603013ms)
✔ views passes replies through as one call with the id (0.369626ms)
✔ requirements returns the committed list to a holding role session, and no one else (40.187376ms)
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (23.497816ms)
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (26.225498ms)
✔ a push is recorded as the action.allowed for git.push.working on the task, and only the host records one (38.924119ms)
✔ review.request names the latest pushed commit and sends the reviewer a REVIEW-REQUEST (32.366401ms)
✔ review.request says which run holds the reviewer role, or null, and a null request waits for a claim (42.973537ms)
✔ review.request refuses a commit that isn't the latest push, a non-reviewer and a role without the action (55.634884ms)
✔ reviewFetch answers only the addressed reviewer, for the request it cites (40.296657ms)
✔ review.verdict answers one request once, to the role that asked (51.502488ms)
✔ task.close on a pushed task needs an approve verdict for the latest push (60.183251ms)
✔ a refusal the host decided is filed on the task it names, and only a task ref counts (35.727611ms)
✔ v3b prototype refusals, views and append-only mutations (139.580206ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (44.99116ms)
✔ another run cannot consume an approval; a failed check leaves it usable (31.893927ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (23.754746ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (48.992707ms)
✔ class drift gated to cross-role refuses before consumption (37.487143ms)
✔ class drift cross-role to gated refuses before consumption (40.606059ms)
✔ class drift gated to within-role refuses before consumption (34.590538ms)
✔ class drift cross-role to within-role refuses before consumption (39.133168ms)
✔ class drift within-role to gated refuses before consumption (31.942064ms)
✔ class drift within-role to cross-role refuses before consumption (27.736451ms)
✔ message.send consumes approval and prevents a later send or authorize (29.318301ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (35.498754ms)
✔ REQ-COS-1: the pm asks the chief of staff for roles and counts; the chief receives a STAFF-REQUEST and answers it (40.756549ms)
✔ REQ-COS-1: only the pm can send a staff request; every other session is refused and the chief of staff hears nothing (47.962299ms)
✔ REQ-COS-1: a pm without message.send is refused like any other gated action (28.080503ms)
✔ REQ-COS-1: the request goes to the business launcher, and only when that is a chief of staff (65.493471ms)
✔ REQ-ASSIST-2: the role definitions' messaging lists hold for a staff request, sender and recipient (92.598828ms)
✔ a staff request names a task, 1 to 10 distinct roles and counts of 1 to 20; nothing else is accepted (66.576712ms)
✔ REQ-COS-1: a staff request grants nothing: the pm still can't launch and the chief of staff launches as before (31.199529ms)
✔ a business that never switched launches reads allowed with no time and no event (25.778464ms)
✔ launches revoked and then restored read allowed, with the restore time and event id (23.052445ms)
✔ a task closed on the tracker leaves the open list, and total counts the open ones (33.670359ms)
✔ a tombstone is not open (20.9439ms)
✔ the open list stops at the cap and says so; total still counts every open task (27.962907ms)
✔ a role and a reader session read state; arguments, and an unbound cap, refuse (23.52439ms)
✔ a human session reads the same state, with the same cap (29.536739ms)
✔ reading state writes nothing: every table keeps its row count (28.108251ms)
✔ creates private WAL store and excludes a second writer until explicit close (25.307814ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (26.52152ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (24.329578ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (76.026842ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (20.512632ms)
✔ async transactions refuse before invoking their function (14.63996ms)
✔ the session default fits under the reply cap and pages to the end with next (214.688979ms)
✔ the short form: no description, assignees by role, every listed key (101.944377ms)
✔ each filter, alone and together, and total counts every match (171.569451ms)
✔ task_ref reads one task in full, as the whole board has it (99.555169ms)
✔ no arguments is the read the Console and mosaic make, unchanged (86.248012ms)
✔ an unknown argument or a bad value refuses invalid-request (335.127076ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (58.469893ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (73.90228ms)
✔ an empty business and one with snapshots but no task.created read cleanly (15.539093ms)
✔ recordTask keeps sync reads and a role write apart (33.120347ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (21.576237ms)
✔ a bad entry refuses the whole record (18.203088ms)
✔ taskView reads the projection for one business (19.237469ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (31.705203ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (277.880638ms)
✔ without an adapter the server refuses every task verb (24.288692ms)
✔ the runtime refuses an invalid adapter and closes a valid one (30.813699ms)
✔ the process loads the S3 adapter from plain-data trackers (173.321938ms)
✔ the tester binds only when the business sets bus.tester to exactly true (105.604743ms)
✔ a business may not name a role tester, so the tester address is never a role (31.686854ms)
✔ every verb outside the tester list refuses tester-refused and is recorded against the tester (60.924541ms)
✔ a tester message is from tester, starts [mos test], and writes no human.input or authority (26.362102ms)
✔ a role answers a tester only in reply to a tester message, and the answer never reaches the human (28.938774ms)
✔ the tester reads the human views a reader reads (29.170757ms)
✔ tester proof binds its own CLI, start time and nonce, refuses a managed run and allows an agent (1.230909ms)
✔ neither CLI's nonce proves the other: each proof is bound to its own CLI and nonce variable (0.418918ms)
✔ testerNonce reads only the tester's variable and gives null on any read error (0.215339ms)
✔ an envelope carries exactly one of cap, human and tester; no tester authenticator refuses (20.504577ms)
✔ tester-cli.mjs binds through the runtime when the switch is on, and refuses off or under a run marker (684.594633ms)
✔ REQ-THREAD-1 REQ-ORG-2: the 3d→3e migration adds the thread tables and leaves messages from before threads as written (109.814072ms)
✔ REQ-THREAD-1: a 3d bus with a changed schema is refused and keeps its version and tables (73.725848ms)
✔ REQ-THREAD-1: the offline command prints the kept-message counts before the ready line (107.3976ms)
✔ REQ-ROLE-2 REQ-THREAD-1: one holder per thread, through the broker and the trigger (50.18479ms)
✔ REQ-ROLE-2 REQ-THREAD-1: the 3e triggers refuse writes that skip the broker (85.786009ms)
✔ REQ-MSG-1: a message to or from the assistant names its thread, or is refused (40.047492ms)
✔ REQ-MSG-1: the chief of staff's reply comes back to the thread that sent the work (587.366911ms)
✔ REQ-MSG-1: a reply can't carry one thread instance's thread to another thread instance (17.210726ms)
✔ REQ-THREAD-1 REQ-USER-2: one thread's messages never reach another thread's holder (27.583232ms)
✔ REQ-LAUNCH-1: a message to a thread with no holder waits, and the next holder gets it (24.703296ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: threadIdle releases only a thread with nothing waiting, and only for its holder (26.378425ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: a message delivered to a run that ended unread doesn't hold up the next holder (23.906877ms)
✔ REQ-ROLE-2 REQ-THREAD-1: an approved role.revoke never reaches a thread run, and the thread stays held (22.25013ms)
✔ REQ-USER-2: the human verbs refuse another owner's thread (22.468842ms)
✔ REQ-THREAD-1: thread.create refuses when the business has no thread instance or more than one (18.313308ms)
✔ REQ-ORG-2: projects and threads are named once, and the repo names a business project (20.978098ms)
✔ REQ-THREAD-2: thread.messages returns the thread's history in pages and writes nothing (70.103916ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (35.581659ms)
✔ two wire claims serialize; a lost reply never automatically retries (29.271095ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (14.974933ms)
✔ client preserves UTF-8 when a response divides a multibyte character (12.089199ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (15.890818ms)
✔ web.search: a granted role gets labelled results, and the call is trailed with role, run, verb and query (26.339882ms)
✔ web.fetch: a granted role gets the page as labelled text, and the call is trailed with the url (25.36715ms)
✔ a role without the grant is refused, the refusal is logged with the verb, and nothing is fetched (21.052024ms)
✔ a broker with no web service refuses a granted role (17.225001ms)
✔ bad requests are refused: unknown verb, extra or missing argument, not a string, a human or reader session (23.643908ms)
✔ a session that is not the role holder is refused (12.054858ms)
✔ web.mjs's fences hold on the broker side: refusals are normal results with the fixed reason (46.403328ms)
✔ web.search with no search source configured is a refused result, not an error (14.529541ms)
✔ a search source that fails with its own refusal, or that throws, is handled (17.284149ms)
✔ a slow search source ends in a refusal at the deadline (66.468143ms)
✔ a secret in the arguments is refused before anything is trailed or fetched (13.650144ms)
✔ over the socket: the server routes web verbs to the service; other roles are refused; no service is web-not-configured (31.480157ms)
✔ busBusiness: the web grant comes from "web" in the resolved tool limit (0.262733ms)
✔ webServices: the business's search-source plug-in and web.searxng var make web.search work; without either it is refused as not configured (29.803765ms)
✔ an ungranted call is refused at once: no admission, no wait, nothing touched (17.834392ms)
✔ over the socket an ungranted caller is dropped by the server timeout and a granted one gets the longer wait (319.957465ms)
✔ a search that never answers is aborted at the deadline, the module sees the signal, and the call is trailed as refused (timeout) (72.153168ms)
✔ a fetch that stalls is cut off at the deadline: the request is destroyed, not left running (93.854507ms)
✔ one query limit: over SEARCH_MAX_QUERY_CHARS or empty is refused with the same reason before any backend, and the tool schema carries the same number (14.55544ms)
ℹ tests 259
ℹ suites 0
ℹ pass 259
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1877.713046
