✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (32.523901ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (36.510105ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (53.972306ms)
✔ agents: working wins over waiting, and Input needed still shows (23.879363ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (30.697756ms)
✔ agents: state reads only its own business, even for a run name both use (29.213598ms)
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (34.91392ms)
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (30.346517ms)
✔ agents: stranded is oldest first and capped at 50 for a role (152.890487ms)
✔ agents: stranded is per role and per business (58.755933ms)
✔ agents: a message routed to a held role and not yet received is not stranded (20.890707ms)
✔ REQ-DEC an approval outlives its run and a broker restart; a new run of the instance consumes it once (54.554605ms)
✔ REQ-DEC another instance of the same definition cannot consume an approval, and its refusal consumes nothing (28.422861ms)
✔ REQ-DEC REQ-THREAD-1 a thread approval is consumed only by a run holding the same thread (35.360099ms)
✔ REQ-DEC a later run of the same instance supersedes an open decision; another instance cannot (34.505024ms)
✔ REQ-DEC REQ-THREAD-1 a thread decision is superseded only from the same thread (38.624938ms)
✔ REQ-DEC REQ-THREAD-1 a thread instance decision raised before row 121 is not consumed or superseded by any thread run (54.046636ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (37.254882ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (38.307586ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (40.284043ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (24.53291ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (27.828479ms)
✔ a recommendation that is not exactly one option key refuses invalid-recommendation after the options (43.007715ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (25.505697ms)
✔ task action subjects and linked decision trail are complete and ordered (42.270349ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (18.295227ms)
✔ business isolation includes inherited object names and cross-business message references (29.916348ms)
✔ authority never transfers between action, target, unresolved or replaced role holder; a later run of the instance keeps it (48.357219ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (27.389534ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (38.688998ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (24.199842ms)
✔ both arbiters require human resolution when their cross-role route is themselves (39.059254ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (35.764925ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.505105ms)
✔ REQ-COS-1, REQ-ROLE-2: the chief of staff ends a run with a reason and no decision, and the reason is logged (39.587781ms)
✔ REQ-ROLE-2: a role without role.end still needs a resolved decision to revoke (46.24612ms)
✔ REQ-ROLE-2: storage accepts a revoke with a reason or a decision and aborts one with neither (35.673495ms)
✔ REQ-ROLE-2: the chief of staff may still cite a decision, and a decision alone is the old path (29.137208ms)
✔ REQ-ROLE-2: a role without role.end still ends a run through a resolved decision, which is recorded and has no reason (38.751183ms)
✔ REQ-ROLE-2: a reason is required, bounded, and never sent with a decision (43.840421ms)
✔ REQ-COS-1: the chief of staff cannot end its own run or the assistant's through role.end (43.764147ms)
✔ REQ-LIMIT-1, REQ-COS-1: organization.set from the chief of staff reaches the shared writer, named as the actor (32.546407ms)
✔ REQ-LIMIT-1, REQ-COS-1: a refused organization.set logs action.refused and no action.allowed, like a refused limits.set (48.771687ms)
✔ REQ-LIMIT-1: organization.set is refused for every caller whose role file lacks organization.change (50.109204ms)
✔ REQ-LIMIT-1: the chief of staff is logged as allowed, and organization.set takes only the human's keys (56.18596ms)
✔ 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 (110.093557ms)
✔ 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 (117.835088ms)
✔ comment cursors isolate businesses, move only forward and remain append-only (24.08081ms)
✔ only trusted sync writes validated cursors; events and cursor share rollback (21.127101ms)
✔ explicit 3b copy migration preserves evidence and opens as 3f; normal startup never migrates (99.478981ms)
✔ migration refuses active writers and drifted legacy schemas, with no partial upgrade (158.842313ms)
✔ named migration registry chains 3b through 3f to a fixture-only future version in order (104.995293ms)
✔ migration refuses mismatched source metadata without changing schema or evidence (74.295852ms)
✔ offline command migrates only the supplied fixture root and reports usage errors (234.144745ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (26.862062ms)
✔ credentials refuses a role session and any argument (29.182407ms)
✔ credentials reads the status on each request, and a broker without one lists none (31.479498ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (150.398879ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (4.927849ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (2.81362ms)
✔ expiry refuses use and env references never become client data (0.931547ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (1.944622ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.466155ms)
✔ each C-suite role file carries the same two lists: human, chief-of-staff, pm, cto (2.143734ms)
✔ chief-executive-officer: messages to and from the user, chief of staff, pm and cto pass (75.912641ms)
✔ chief-executive-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (67.703562ms)
✔ chief-executive-officer: another C-suite role isn't on the lists either (55.785516ms)
✔ chief-financial-officer: messages to and from the user, chief of staff, pm and cto pass (72.308987ms)
✔ chief-financial-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (64.616037ms)
✔ chief-financial-officer: another C-suite role isn't on the lists either (59.628049ms)
✔ chief-information-officer: messages to and from the user, chief of staff, pm and cto pass (70.962766ms)
✔ chief-information-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (70.949571ms)
✔ chief-information-officer: another C-suite role isn't on the lists either (61.366555ms)
✔ chief-information-security-officer: messages to and from the user, chief of staff, pm and cto pass (78.238039ms)
✔ chief-information-security-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (68.813283ms)
✔ chief-information-security-officer: another C-suite role isn't on the lists either (61.157551ms)
✔ chief-marketing-officer: messages to and from the user, chief of staff, pm and cto pass (74.84049ms)
✔ chief-marketing-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (67.388974ms)
✔ chief-marketing-officer: another C-suite role isn't on the lists either (61.224851ms)
✔ a human resolve sends the raising role one message from the human, and its request is the answer (54.097208ms)
✔ a cross-role decision resolved by its arbiter comes from that role and run, with no request (34.91662ms)
✔ a human withdraw sends one message with the note (35.029052ms)
✔ a human seen before the close leaves the request on the close's answer, not the seen (43.465173ms)
✔ the raising run's withdraw, a supersede, a within-role raise and seen send nothing (42.713415ms)
✔ refused closes send nothing: invalid-choice, decision-closed, not-resolver (45.329396ms)
✔ a raising role nobody holds at the close gets the message on the next claim (39.095635ms)
✔ a human DECISION send keeps its own instruction as the request, not a close's answer (34.220719ms)
✔ a cross-role raise whose arbiter the raiser does not hear from is refused and stores nothing (50.831633ms)
✔ a gated raise by a role that does not hear from the human is refused and stores nothing (42.685404ms)
✔ a route the raiser hears from is allowed, checked from the route to the raiser (50.435854ms)
✔ a refused supersede withdraws nothing (38.998985ms)
✔ the assistant's within-role and gated raises still work (45.344551ms)
✔ roles lists open decisions routed to a role, and never the human inbox (42.928353ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (44.501438ms)
✔ recent gives the closing event as closed when the decision was seen first (46.455629ms)
✔ recent stops at RECENT rows (143.551829ms)
✔ every row is what trail already gives the same session for that id (65.73799ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (70.981219ms)
✔ decisions is a read: one business, strict arguments, nothing written (62.403877ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (30.808622ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (19.47832ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (23.686626ms)
✔ endLaunch leaves a claim another run took alone (27.185557ms)
✔ refuse records action.refused against the caller with the code only (21.422371ms)
✔ launches off refuses role.launch with launch-revoked until launches on (27.857423ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (164.865802ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (2.544957ms)
✔ process reader gets own kernel identity without exposing environment values (0.74973ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (1.028238ms)
✔ real pid 1 remains inspectable when its environment is protected (0.400548ms)
✔ a message to a stopped role sends launch.by one notice, and the result says so (37.658246ms)
✔ a message to a role outside launch.instances says so in its result and in the notice (24.882156ms)
✔ a message to a running role sends no notice and its result is unchanged (21.96474ms)
✔ a re-route at a claim, a release and claim, and a broker restart send no second notice (36.234762ms)
✔ a run launched but not yet claimed counts as no holder (20.255767ms)
✔ no notice for a message to launch.by, from it, from a tester, to the human, or in a thread to a thread instance (41.725976ms)
✔ a business with no launch block tells nobody and says there is no launcher (14.929553ms)
✔ the notice sender stays internal: no role is named _bus and no caller can send as it or to it (50.902236ms)
✔ limits binds actor from human proof and rejects role, reader, tester and forged actor (33.962382ms)
✔ runtime wires verified human settings to the actual shared file writer and actor receipt (92.42807ms)
✔ uncertain organization receipts leave bus startup and reads alone but refuse writes until reconciled (60.230194ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (40.096934ms)
✔ missing and foreign-business citations refuse and roll back message and grant (29.51785ms)
✔ cross-role sends still need a matching resolved decision and consume it once (37.834435ms)
✔ messages pages all human messages newest first without writes; read state is history (523.492393ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (45.438749ms)
✔ views messages passes only its paging arguments through (0.394873ms)
✔ messages isolates businesses even with a valid foreign cursor (29.00135ms)
✔ the assistant sends to the user and to the chief of staff only (54.451875ms)
✔ an assistant send to any other role, or to the tester, is refused and logged (58.286201ms)
✔ only the user and the chief of staff may send to the assistant; the tester is refused by default (56.677603ms)
✔ REQ-ASSIST-2 REQ-THREAD-1 thread.send to an instance that does not hear from the user is refused and stores nothing (44.926318ms)
✔ a sender-side list alone refuses a send to a role that has no list (54.94056ms)
✔ a target-side list alone refuses a send from a role that has no list (61.881858ms)
✔ the sender list is checked before the target list (45.618315ms)
✔ roles without the field behave exactly as before (69.019302ms)
✔ a business with no role definitions at all is unlimited (53.794273ms)
✔ a malformed messaging field refuses at boot (21.424375ms)
✔ the assistant's review.request to a reviewer is refused and logged, even with an approved decision (56.151899ms)
✔ a review.verdict to the assistant from a role outside its receiveFrom is refused and logged (60.915122ms)
✔ review requests and verdicts between roles without the field are unchanged (47.211161ms)
✔ plugins and plugins.set refuse every non-human session and a forged actor, and pass only the patch with the verified actor (32.893314ms)
✔ 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 (127.585919ms)
✔ vikunja:19/309 through the broker, a patch switches the kinds it names and keeps the rest; null removes one kind and is trailed (59.043579ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (156.692483ms)
✔ startup token refusal returns safe code without value or partial listening broker (115.725908ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (159.404324ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (256.847155ms)
✔ trusted host registers later launches; socket clients never have a registration verb (143.749838ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (87.950706ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (109.248298ms)
✔ D1: committed write with a failed receipt refuses outcome-unknown without action.allowed (30.419503ms)
✔ D2: spec.read refuses without content if its role is released during the read (21.614151ms)
✔ D3: spec.read secret check refuses flagged content without content (26.693619ms)
✔ D3: spec.read secret check refuses flagged subject without content (24.853166ms)
✔ a human lists, opens and saves; the save is one commit by the business human (190.536155ms)
✔ an agent and a reader refuse every file verb and nothing is written (85.444072ms)
✔ a stale base refuses stale-base and writes nothing (132.562389ms)
✔ paths outside the spec and docs refuse, as do unknown projects, missing files and odd arguments (110.026691ms)
✔ without a project adapter the file verbs refuse project-not-configured (55.457804ms)
✔ on the socket a save may carry 1 MiB of text; every other request keeps the 64 KiB limit (243.298489ms)
✔ a request that names the save verb first and another verb last is refused at 64 KiB (56.564088ms)
✔ two saves racing for one repository make one commit (116.406711ms)
✔ Broker keeps the existing sandbox client import closure: no new imports or lazy project import (2.277195ms)
✔ without a trusted project adapter all three async paths refuse project-not-configured (63.416792ms)
✔ real startBroker injects the project adapter for socket reads and bound-author record writes (130.374009ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (58.461879ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (33.864401ms)
✔ a message with no reply gives an empty list (27.358115ms)
✔ replies come oldest first and stop at REPLIES (146.992262ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (51.756327ms)
✔ strict arguments; a role session gets human-required (58.592192ms)
✔ views passes replies through as one call with the id (0.385185ms)
✔ requirements returns the committed list to a holding role session, and no one else (39.010736ms)
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (26.606142ms)
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (26.337508ms)
✔ a push is recorded as the action.allowed for git.push.working on the task, and only the host records one (51.131521ms)
✔ review.request names the latest pushed commit and sends the reviewer a REVIEW-REQUEST (47.405624ms)
✔ review.request says which run holds the reviewer role, or null, and a null request waits for a claim (45.816503ms)
✔ review.request refuses a commit that isn't the latest push, a non-reviewer and a role without the action (57.385428ms)
✔ reviewFetch answers only the addressed reviewer, for the request it cites (39.522248ms)
✔ review.verdict answers one request once, to the role that asked (52.343315ms)
✔ task.close on a pushed task needs an approve verdict for the latest push (65.091067ms)
✔ a refusal the host decided is filed on the task it names, and only a task ref counts (40.875804ms)
✔ v3b prototype refusals, views and append-only mutations (169.095838ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (54.908188ms)
✔ another run of the same instance consumes an approval once; a failed check leaves it usable (36.543163ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (25.811506ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (56.951737ms)
✔ class drift gated to cross-role refuses before consumption (42.476342ms)
✔ class drift cross-role to gated refuses before consumption (41.086311ms)
✔ class drift gated to within-role refuses before consumption (38.102809ms)
✔ class drift cross-role to within-role refuses before consumption (39.280516ms)
✔ class drift within-role to gated refuses before consumption (35.80643ms)
✔ class drift within-role to cross-role refuses before consumption (40.111173ms)
✔ message.send consumes approval and prevents a later send or authorize (40.364406ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (40.0597ms)
✔ 3e copy migrates to 3f preserving every old column/row and adding null spec citations (162.258473ms)
✔ real socket awaits spec reads, record writes and cited raises; other requests still return normally (167.087849ms)
✔ real socket preserves asynchronous refusal codes and disconnects its transient proof (59.895542ms)
✔ two real socket writes to one repository yield one commit and one project-busy refusal (94.25497ms)
✔ client disconnect during await tolerates late reply (81.249219ms)
✔ client disconnect during await tolerates late refusal (49.616459ms)
✔ N-a: slow admitted record.write returns its committed result after the idle deadline (217.476056ms)
✔ current citation is recorded; docs commits do not stale it and a new spec never reopens settlement (179.055712ms)
✔ stale, unconfirmed, missing and partial spec citations refuse without inserting a decision (189.033323ms)
✔ uncited raises retain their synchronous path and spec read is available to any held role in its business (86.275503ms)
✔ record writes bind the session author, require authority and refuse spec and impersonation paths (72.659079ms)
✔ REQ-COS-1: the pm asks the chief of staff for roles and counts; the chief receives a STAFF-REQUEST and answers it (48.539629ms)
✔ REQ-COS-1: only the pm can send a staff request; every other session is refused and the chief of staff hears nothing (55.026407ms)
✔ REQ-COS-1: a pm without message.send is refused like any other gated action (25.860025ms)
✔ REQ-COS-1: the request goes to the business launcher, and only when that is a chief of staff (70.084246ms)
✔ REQ-COS-1: the sender is judged by definition: an instance `lead` of the pm definition can ask, an instance `pm` of the coder definition can't (59.466348ms)
✔ REQ-COS-1: the launcher is judged by definition: an instance `boss` of the chief-of-staff definition receives, a `chief` of the coder definition gives no-chief-of-staff (61.365469ms)
✔ REQ-COS-1: a refused staff request leaves no staff.request action.allowed event (33.762036ms)
✔ REQ-ASSIST-2: the role definitions' messaging lists hold for a staff request, sender and recipient (80.491352ms)
✔ a staff request names a task, 1 to 10 distinct roles and counts of 1 to 20; nothing else is accepted (55.668357ms)
✔ REQ-COS-1: a staff request grants nothing: the pm still can't launch and the chief of staff launches as before (28.76597ms)
✔ a business that never switched launches reads allowed with no time and no event (30.33974ms)
✔ launches revoked and then restored read allowed, with the restore time and event id (28.654192ms)
✔ a task closed on the tracker leaves the open list, and total counts the open ones (28.154208ms)
✔ a tombstone is not open (25.736735ms)
✔ the open list stops at the cap and says so; total still counts every open task (27.554921ms)
✔ a role and a reader session read state; arguments, and an unbound cap, refuse (27.403712ms)
✔ a human session reads the same state, with the same cap (32.016998ms)
✔ reading state writes nothing: every table keeps its row count (23.909415ms)
✔ creates private WAL store and excludes a second writer until explicit close (25.335531ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (29.434744ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (26.724505ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (90.297455ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (19.928543ms)
✔ async transactions refuse before invoking their function (15.954485ms)
✔ the session default fits under the reply cap and pages to the end with next (228.300469ms)
✔ the short form: no description, assignees by role, every listed key (123.279721ms)
✔ each filter, alone and together, and total counts every match (203.725303ms)
✔ task_ref reads one task in full, as the whole board has it (111.828802ms)
✔ no arguments is the read the Console and mosaic make, unchanged (82.409628ms)
✔ an unknown argument or a bad value refuses invalid-request (364.63318ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (63.078874ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (80.869789ms)
✔ an empty business and one with snapshots but no task.created read cleanly (22.319027ms)
✔ recordTask keeps sync reads and a role write apart (37.529964ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (18.428291ms)
✔ a bad entry refuses the whole record (16.953756ms)
✔ taskView reads the projection for one business (22.146786ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (42.482183ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (288.328387ms)
✔ without an adapter the server refuses every task verb (28.040363ms)
✔ the runtime refuses an invalid adapter and closes a valid one (27.683935ms)
✔ the process loads the S3 adapter from plain-data trackers (190.755377ms)
✔ the tester binds only when the business sets bus.tester to exactly true (130.115834ms)
✔ a business may not name a role tester, so the tester address is never a role (33.884802ms)
✔ every verb outside the tester list refuses tester-refused and is recorded against the tester (71.790635ms)
✔ a tester message is from tester, starts [mos test], and writes no human.input or authority (26.979602ms)
✔ a role answers a tester only in reply to a tester message, and the answer never reaches the human (32.792381ms)
✔ the tester reads the human views a reader reads (34.287692ms)
✔ tester proof binds its own CLI, start time and nonce, refuses a managed run and allows an agent (1.405046ms)
✔ neither CLI's nonce proves the other: each proof is bound to its own CLI and nonce variable (0.497637ms)
✔ testerNonce reads only the tester's variable and gives null on any read error (0.289931ms)
✔ an envelope carries exactly one of cap, human and tester; no tester authenticator refuses (29.317094ms)
✔ tester-cli.mjs binds through the runtime when the switch is on, and refuses off or under a run marker (731.536315ms)
✔ REQ-THREAD-1 REQ-ORG-2: the 3d→3e migration adds the thread tables and leaves messages from before threads as written (134.385718ms)
✔ REQ-THREAD-1: a 3d bus with a changed schema is refused and keeps its version and tables (77.499022ms)
✔ REQ-THREAD-1: the offline command prints the kept-message counts before the ready line (127.739183ms)
✔ REQ-ROLE-2 REQ-THREAD-1: one holder per thread, through the broker and the trigger (52.768942ms)
✔ REQ-ROLE-2 REQ-THREAD-1: the 3e triggers refuse writes that skip the broker (87.25775ms)
✔ REQ-MSG-1: a message to or from the assistant names its thread, or is refused (44.743981ms)
✔ REQ-MSG-1: the chief of staff's reply comes back to the thread that sent the work (651.398162ms)
✔ REQ-MSG-1: a reply can't carry one thread instance's thread to another thread instance (18.73787ms)
✔ REQ-THREAD-1 REQ-USER-2: one thread's messages never reach another thread's holder (23.408172ms)
✔ REQ-LAUNCH-1: a message to a thread with no holder waits, and the next holder gets it (24.232959ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: threadIdle releases only a thread with nothing waiting, and only for its holder (28.421437ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: a message delivered to a run that ended unread doesn't hold up the next holder (21.741605ms)
✔ REQ-ROLE-2 REQ-THREAD-1: an approved role.revoke never reaches a thread run, and the thread stays held (20.239718ms)
✔ REQ-USER-2: the human verbs refuse another owner's thread (23.021437ms)
✔ REQ-THREAD-1: thread.create refuses when the business has no thread instance or more than one (17.446458ms)
✔ REQ-ORG-2: projects and threads are named once, and the repo names a business project (20.222526ms)
✔ REQ-THREAD-2: thread.messages returns the thread's history in pages and writes nothing (76.657139ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (42.519235ms)
✔ two wire claims serialize; a lost reply never automatically retries (27.692745ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (16.294755ms)
✔ client preserves UTF-8 when a response divides a multibyte character (12.343787ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (20.723775ms)
✔ web.search: a granted role gets labelled results, and the call is trailed with role, run, verb and query (28.512262ms)
✔ web.fetch: a granted role gets the page as labelled text, and the call is trailed with the url (25.763312ms)
✔ a role without the grant is refused, the refusal is logged with the verb, and nothing is fetched (25.986228ms)
✔ a broker with no web service refuses a granted role (18.185699ms)
✔ bad requests are refused: unknown verb, extra or missing argument, not a string, a human or reader session (25.501198ms)
✔ a session that is not the role holder is refused (14.155847ms)
✔ web.mjs's fences hold on the broker side: refusals are normal results with the fixed reason (48.126814ms)
✔ web.search with no search source configured is a refused result, not an error (15.770206ms)
✔ a search source that fails with its own refusal, or that throws, is handled (18.501152ms)
✔ a slow search source ends in a refusal at the deadline (68.231374ms)
✔ a secret in the arguments is refused before anything is trailed or fetched (11.367228ms)
✔ over the socket: the server routes web verbs to the service; other roles are refused; no service is web-not-configured (28.220615ms)
✔ busBusiness: the web grant comes from "web" in the resolved tool limit (0.285049ms)
✔ webServices: the business's search-source plug-in and web.searxng var make web.search work; without either it is refused as not configured (35.078106ms)
✔ an ungranted call is refused at once: no admission, no wait, nothing touched (20.58679ms)
✔ over the socket an ungranted caller is dropped by the server timeout and a granted one gets the longer wait (318.998362ms)
✔ a search that never answers is aborted at the deadline, the module sees the signal, and the call is trailed as refused (timeout) (72.880768ms)
✔ a fetch that stalls is cut off at the deadline: the request is destroyed, not left running (92.494931ms)
✔ 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.825815ms)
ℹ tests 302
ℹ suites 0
ℹ pass 302
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2291.996504
