npm notice run test
npm notice run node --test tests/*.test.mjs
✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (132.444358ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (251.778235ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (327.184703ms)
✔ agents: working wins over waiting, and Input needed still shows (162.952854ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (210.149324ms)
✔ agents: state reads only its own business, even for a run name both use (189.652892ms)
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (228.172558ms)
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (222.25126ms)
✔ agents: stranded is oldest first and capped at 50 for a role (915.358403ms)
✔ agents: stranded is per role and per business (372.511361ms)
✔ agents: a message routed to a held role and not yet received is not stranded (169.10111ms)
✔ REQ-DEC an approval outlives its run and a broker restart; a new run of the instance consumes it once (312.926179ms)
✔ REQ-DEC another instance of the same definition cannot consume an approval, and its refusal consumes nothing (189.756813ms)
✔ REQ-DEC REQ-THREAD-1 a thread approval is consumed only by a run holding the same thread (255.632819ms)
✔ REQ-DEC a later run of the same instance supersedes an open decision; another instance cannot (235.325013ms)
✔ REQ-DEC REQ-THREAD-1 a thread decision is superseded only from the same thread (250.785512ms)
✔ REQ-DEC REQ-THREAD-1 a thread instance decision raised before row 121 is not consumed or superseded by any thread run (373.174376ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (156.486711ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (304.173323ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (268.055771ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (168.885558ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (185.101067ms)
✔ a recommendation that is not exactly one option key refuses invalid-recommendation after the options (277.859397ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (194.357257ms)
✔ task action subjects and linked decision trail are complete and ordered (193.980139ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (116.697591ms)
✔ business isolation includes inherited object names and cross-business message references (205.669054ms)
✔ authority never transfers between action, target, unresolved or replaced role holder; a later run of the instance keeps it (304.384379ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (169.065543ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (254.790291ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (164.206991ms)
✔ both arbiters require human resolution when their cross-role route is themselves (271.823159ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (192.41945ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.44808ms)
✔ REQ-COS-1, REQ-ROLE-2: the chief of staff ends a run with a reason and no decision, and the reason is logged (302.555277ms)
✔ REQ-ROLE-2: a role without role.end still needs a resolved decision to revoke (308.956132ms)
✔ REQ-ROLE-2: storage accepts a revoke with a reason or a decision and aborts one with neither (226.485741ms)
✔ REQ-ROLE-2: the chief of staff may still cite a decision, and a decision alone is the old path (225.400716ms)
✔ REQ-ROLE-2: a role without role.end still ends a run through a resolved decision, which is recorded and has no reason (275.28396ms)
✔ REQ-ROLE-2: a reason is required, bounded, and never sent with a decision (301.026253ms)
✔ REQ-COS-1: the chief of staff cannot end its own run or the assistant's through role.end (277.927679ms)
✔ REQ-LIMIT-1, REQ-COS-1: organization.set from the chief of staff reaches the shared writer, named as the actor (240.120267ms)
✔ REQ-LIMIT-1, REQ-COS-1: a refused organization.set logs action.refused and no action.allowed, like a refused limits.set (340.36891ms)
✔ REQ-LIMIT-1: organization.set is refused for every caller whose role file lacks organization.change (319.599442ms)
✔ REQ-LIMIT-1: the chief of staff is logged as allowed, and organization.set takes only the human's keys (440.190821ms)
✔ 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 (590.701281ms)
✔ 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 (1051.365633ms)
✔ comment cursors isolate businesses, move only forward and remain append-only (117.220096ms)
✔ only trusted sync writes validated cursors; events and cursor share rollback (164.941143ms)
✔ explicit 3b copy migration preserves evidence and opens as 3f; normal startup never migrates (881.526511ms)
✔ migration refuses active writers and drifted legacy schemas, with no partial upgrade (1565.599494ms)
✔ named migration registry chains 3b through 3f to a fixture-only future version in order (887.128711ms)
✔ migration refuses mismatched source metadata without changing schema or evidence (892.220869ms)
✔ offline command migrates only the supplied fixture root and reports usage errors (1019.022503ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (91.387807ms)
✔ credentials refuses a role session and any argument (220.096214ms)
✔ credentials reads the status on each request, and a broker without one lists none (228.962277ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (222.718862ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (4.215846ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (4.08442ms)
✔ expiry refuses use and env references never become client data (0.945777ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (1.916464ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.498051ms)
✔ each C-suite role file carries the same two lists: human, chief-of-staff, pm, cto (2.426824ms)
✔ chief-executive-officer: messages to and from the user, chief of staff, pm and cto pass (524.228565ms)
✔ chief-executive-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (442.032919ms)
✔ chief-executive-officer: another C-suite role isn't on the lists either (410.055909ms)
✔ chief-financial-officer: messages to and from the user, chief of staff, pm and cto pass (485.032579ms)
✔ chief-financial-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (467.015189ms)
✔ chief-financial-officer: another C-suite role isn't on the lists either (424.518686ms)
✔ chief-information-officer: messages to and from the user, chief of staff, pm and cto pass (534.503974ms)
✔ chief-information-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (502.037723ms)
✔ chief-information-officer: another C-suite role isn't on the lists either (467.515948ms)
✔ chief-information-security-officer: messages to and from the user, chief of staff, pm and cto pass (555.42298ms)
✔ chief-information-security-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (563.306408ms)
✔ chief-information-security-officer: another C-suite role isn't on the lists either (433.539743ms)
✔ chief-marketing-officer: messages to and from the user, chief of staff, pm and cto pass (524.336693ms)
✔ chief-marketing-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (471.774305ms)
✔ chief-marketing-officer: another C-suite role isn't on the lists either (391.15258ms)
✔ a human resolve sends the raising role one message from the human, and its request is the answer (270.540744ms)
✔ a cross-role decision resolved by its arbiter comes from that role and run, with no request (248.262723ms)
✔ a human withdraw sends one message with the note (230.799514ms)
✔ a human seen before the close leaves the request on the close's answer, not the seen (278.600515ms)
✔ the raising run's withdraw, a supersede, a within-role raise and seen send nothing (290.399157ms)
✔ refused closes send nothing: invalid-choice, decision-closed, not-resolver (309.236804ms)
✔ a raising role nobody holds at the close gets the message on the next claim (263.483761ms)
✔ a human DECISION send keeps its own instruction as the request, not a close's answer (254.576158ms)
✔ a cross-role raise whose arbiter the raiser does not hear from is refused and stores nothing (343.523396ms)
✔ a gated raise by a role that does not hear from the human is refused and stores nothing (287.621043ms)
✔ a route the raiser hears from is allowed, checked from the route to the raiser (328.914015ms)
✔ a refused supersede withdraws nothing (293.07112ms)
✔ the assistant's within-role and gated raises still work (313.072953ms)
✔ roles lists open decisions routed to a role, and never the human inbox (273.963247ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (274.329694ms)
✔ recent gives the closing event as closed when the decision was seen first (296.81738ms)
✔ recent stops at RECENT rows (818.221113ms)
✔ every row is what trail already gives the same session for that id (278.853445ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (410.919997ms)
✔ decisions is a read: one business, strict arguments, nothing written (421.606308ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (155.816868ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (175.93514ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (137.262817ms)
✔ endLaunch leaves a claim another run took alone (189.799453ms)
✔ refuse records action.refused against the caller with the code only (128.679347ms)
✔ launches off refuses role.launch with launch-revoked until launches on (198.024687ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (317.717768ms)
✔ REQ-WAIT-1: the broker hard waits are exactly the list, and match the business vocabulary (1.193414ms)
✔ REQ-WAIT-2: a business granting a hard wait at either class is refused; the actions that left are grantable (118.650717ms)
✔ REQ-DEC-2: every hard wait goes to the human, cited or not, and the arbiter cannot resolve it (757.531091ms)
✔ REQ-DEC-2: a gated raise citing the current spec goes to the arbiter for its domain; uncited, to the human (455.744135ms)
✔ REQ-DEC-2: an arbiter-approved cited gated decision authorizes the raiser, and the human cannot resolve it (256.057082ms)
✔ REQ-DEC-2: a cited merge raised by merge-gate goes to the technical arbiter; a merge raised without the grant routes by citation (293.300112ms)
✔ REQ-DEC-2: a stale or unconfirmed citation refuses without a decision; an arbiter raising its own goes to the human (277.763823ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (1.664322ms)
✔ process reader gets own kernel identity without exposing environment values (0.502588ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (0.666884ms)
✔ real pid 1 remains inspectable when its environment is protected (0.247019ms)
✔ a message to a stopped role sends launch.by one notice, and the result says so (254.789971ms)
✔ a message to a role outside launch.instances says so in its result and in the notice (156.797965ms)
✔ a message to a running role sends no notice and its result is unchanged (138.60398ms)
✔ a re-route at a claim, a release and claim, and a broker restart send no second notice (244.913375ms)
✔ a run launched but not yet claimed counts as no holder (129.69449ms)
✔ no notice for a message to launch.by, from it, from a tester, to the human, or in a thread to a thread instance (278.82952ms)
✔ a business with no launch block tells nobody and says there is no launcher (128.29816ms)
✔ the notice sender stays internal: no role is named _bus and no caller can send as it or to it (355.378964ms)
✔ limits binds actor from human proof and rejects role, reader, tester and forged actor (266.766916ms)
✔ runtime wires verified human settings to the actual shared file writer and actor receipt (283.149418ms)
✔ uncertain organization receipts leave bus startup and reads alone but refuse writes until reconciled (416.878587ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (209.291617ms)
✔ missing and foreign-business citations refuse and roll back message and grant (190.399369ms)
✔ cross-role sends still need a matching resolved decision and consume it once (234.42727ms)
✔ messages pages all human messages newest first without writes; read state is history (2691.816662ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (308.295576ms)
✔ views messages passes only its paging arguments through (0.292313ms)
✔ messages isolates businesses even with a valid foreign cursor (195.992079ms)
✔ the assistant sends to the user and to the chief of staff only (323.599854ms)
✔ an assistant send to any other role, or to the tester, is refused and logged (382.58668ms)
✔ only the user and the chief of staff may send to the assistant; the tester is refused by default (374.827058ms)
✔ REQ-ASSIST-2 REQ-THREAD-1 thread.send to an instance that does not hear from the user is refused and stores nothing (323.839981ms)
✔ a sender-side list alone refuses a send to a role that has no list (350.34954ms)
✔ a target-side list alone refuses a send from a role that has no list (381.831703ms)
✔ the sender list is checked before the target list (343.100644ms)
✔ roles without the field behave exactly as before (474.188568ms)
✔ a business with no role definitions at all is unlimited (393.459059ms)
✔ a malformed messaging field refuses at boot (123.201186ms)
✔ the assistant's review.request to a reviewer is refused and logged, even with an approved decision (430.548337ms)
✔ a review.verdict to the assistant from a role outside its receiveFrom is refused and logged (473.885132ms)
✔ review requests and verdicts between roles without the field are unchanged (364.659948ms)
✔ plugins and plugins.set refuse every non-human session and a forged actor, and pass only the patch with the verified actor (208.239109ms)
✔ 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 (494.73471ms)
✔ vikunja:19/309 through the broker, a patch switches the kinds it names and keeps the rest; null removes one kind and is trailed (427.187684ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (214.609311ms)
✔ startup token refusal returns safe code without value or partial listening broker (66.404545ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (215.774472ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (218.997876ms)
✔ trusted host registers later launches; socket clients never have a registration verb (218.399394ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (68.741675ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (213.603133ms)
✔ D1: committed write with a failed receipt refuses outcome-unknown without action.allowed (147.452853ms)
✔ D2: spec.read refuses without content if its role is released during the read (156.027146ms)
✔ D3: spec.read secret check refuses flagged content without content (155.168204ms)
✔ D3: spec.read secret check refuses flagged subject without content (138.425225ms)
✔ Broker keeps the existing sandbox client import closure: no new imports or lazy project import (1.491622ms)
✔ without a trusted project adapter all three async paths refuse project-not-configured (200.140815ms)
✔ real startBroker injects the project adapter for socket reads and bound-author record writes (204.502562ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (232.131673ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (209.801547ms)
✔ a message with no reply gives an empty list (175.23397ms)
✔ replies come oldest first and stop at REPLIES (829.428465ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (339.752405ms)
✔ strict arguments; a role session gets human-required (409.457652ms)
✔ views passes replies through as one call with the id (0.285344ms)
✔ requirements returns the committed list to a holding role session, and no one else (227.094908ms)
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (167.457966ms)
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (178.30535ms)
✔ a push is recorded as the action.allowed for git.push.working on the task, and only the host records one (261.768944ms)
✔ review.request names the latest pushed commit and sends the reviewer a REVIEW-REQUEST (257.408309ms)
✔ review.request says which run holds the reviewer role, or null, and a null request waits for a claim (318.623174ms)
✔ review.request refuses a commit that isn't the latest push, a non-reviewer and a role without the action (427.875111ms)
✔ reviewFetch answers only the addressed reviewer, for the request it cites (289.415565ms)
✔ review.verdict answers one request once, to the role that asked (345.917978ms)
✔ task.close on a pushed task needs an approve verdict for the latest push (442.542328ms)
✔ a refusal the host decided is filed on the task it names, and only a task ref counts (315.38029ms)
✔ v3b prototype refusals, views and append-only mutations (1641.629598ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (281.726628ms)
✔ another run of the same instance consumes an approval once; a failed check leaves it usable (228.244157ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (163.975861ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (367.73548ms)
✔ class drift gated to cross-role refuses before consumption (256.504957ms)
✔ class drift cross-role to gated refuses before consumption (288.004369ms)
✔ class drift gated to within-role refuses before consumption (268.604802ms)
✔ class drift cross-role to within-role refuses before consumption (294.752141ms)
✔ class drift within-role to gated refuses before consumption (277.115728ms)
✔ class drift within-role to cross-role refuses before consumption (256.07251ms)
✔ message.send consumes approval and prevents a later send or authorize (297.640322ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (318.595982ms)
✔ 3e copy migrates to 3f preserving every old column/row and adding null spec citations (1525.429796ms)
✔ real socket awaits spec reads, record writes and cited raises; other requests still return normally (283.051325ms)
✔ real socket preserves asynchronous refusal codes and disconnects its transient proof (205.184437ms)
✔ two real socket writes to one repository yield one commit and one project-busy refusal (253.2246ms)
✔ client disconnect during await tolerates late reply (194.703225ms)
✔ client disconnect during await tolerates late refusal (190.276122ms)
✔ N-a: slow admitted record.write returns its committed result after the idle deadline (387.638362ms)
✔ current citation is recorded; docs commits do not stale it and a new spec never reopens settlement (335.4821ms)
✔ stale, unconfirmed, missing and partial spec citations refuse without inserting a decision (330.128717ms)
✔ uncited raises retain their synchronous path and spec read is available to any held role in its business (252.224831ms)
✔ record writes bind the session author, require authority and refuse spec and impersonation paths (282.274955ms)
✔ REQ-COS-1: the pm asks the chief of staff for roles and counts; the chief receives a STAFF-REQUEST and answers it (290.647482ms)
✔ REQ-COS-1: only the pm can send a staff request; every other session is refused and the chief of staff hears nothing (351.050202ms)
✔ REQ-COS-1: a pm without message.send is refused like any other gated action (190.154252ms)
✔ REQ-COS-1: the request goes to the business launcher, and only when that is a chief of staff (515.479454ms)
✔ 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 (470.578971ms)
✔ 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 (488.107664ms)
✔ REQ-COS-1: a refused staff request leaves no staff.request action.allowed event (261.013992ms)
✔ REQ-ASSIST-2: the role definitions' messaging lists hold for a staff request, sender and recipient (684.833932ms)
✔ a staff request names a task, 1 to 10 distinct roles and counts of 1 to 20; nothing else is accepted (496.567951ms)
✔ REQ-COS-1: a staff request grants nothing: the pm still can't launch and the chief of staff launches as before (246.491572ms)
✔ a business that never switched launches reads allowed with no time and no event (152.444398ms)
✔ launches revoked and then restored read allowed, with the restore time and event id (168.130066ms)
✔ a task closed on the tracker leaves the open list, and total counts the open ones (160.675772ms)
✔ a tombstone is not open (150.745524ms)
✔ the open list stops at the cap and says so; total still counts every open task (162.222779ms)
✔ a role and a reader session read state; arguments, and an unbound cap, refuse (179.749397ms)
✔ a human session reads the same state, with the same cap (165.513219ms)
✔ reading state writes nothing: every table keeps its row count (178.875741ms)
✔ creates private WAL store and excludes a second writer until explicit close (136.379748ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (190.808614ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (212.878514ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (225.953861ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (118.43227ms)
✔ async transactions refuse before invoking their function (107.188748ms)
✔ the session default fits under the reply cap and pages to the end with next (335.307783ms)
✔ the short form: no description, assignees by role, every listed key (268.869391ms)
✔ each filter, alone and together, and total counts every match (384.678102ms)
✔ task_ref reads one task in full, as the whole board has it (341.549556ms)
✔ no arguments is the read the Console and mosaic make, unchanged (258.578075ms)
✔ an unknown argument or a bad value refuses invalid-request (991.90034ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (376.506201ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (397.969766ms)
✔ an empty business and one with snapshots but no task.created read cleanly (156.381188ms)
✔ recordTask keeps sync reads and a role write apart (220.501957ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (127.196849ms)
✔ a bad entry refuses the whole record (130.624138ms)
✔ taskView reads the projection for one business (157.798748ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (287.680531ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (483.522474ms)
✔ without an adapter the server refuses every task verb (259.926421ms)
✔ the runtime refuses an invalid adapter and closes a valid one (233.814771ms)
✔ the process loads the S3 adapter from plain-data trackers (358.514355ms)
✔ the tester binds only when the business sets bus.tester to exactly true (975.488031ms)
✔ a business may not name a role tester, so the tester address is never a role (278.408944ms)
✔ every verb outside the tester list refuses tester-refused and is recorded against the tester (646.937169ms)
✔ a tester message is from tester, starts [mos test], and writes no human.input or authority (270.382996ms)
✔ a role answers a tester only in reply to a tester message, and the answer never reaches the human (286.981784ms)
✔ the tester reads the human views a reader reads (187.667135ms)
✔ tester proof binds its own CLI, start time and nonce, refuses a managed run and allows an agent (1.333787ms)
✔ neither CLI's nonce proves the other: each proof is bound to its own CLI and nonce variable (0.411423ms)
✔ testerNonce reads only the tester's variable and gives null on any read error (0.219817ms)
✔ an envelope carries exactly one of cap, human and tester; no tester authenticator refuses (121.332394ms)
✔ tester-cli.mjs binds through the runtime when the switch is on, and refuses off or under a run marker (866.964268ms)
✔ REQ-THREAD-1 REQ-ORG-2: the 3d→3e migration adds the thread tables and leaves messages from before threads as written (1190.744718ms)
✔ REQ-THREAD-1: a 3d bus with a changed schema is refused and keeps its version and tables (924.415257ms)
✔ REQ-THREAD-1: the offline command prints the kept-message counts before the ready line (891.492288ms)
✔ REQ-ROLE-2 REQ-THREAD-1: one holder per thread, through the broker and the trigger (384.880549ms)
✔ REQ-ROLE-2 REQ-THREAD-1: the 3e triggers refuse writes that skip the broker (1355.92584ms)
✔ REQ-MSG-1: a message to or from the assistant names its thread, or is refused (390.439688ms)
✔ REQ-MSG-1: the chief of staff's reply comes back to the thread that sent the work (3693.918526ms)
✔ REQ-MSG-1: a reply can't carry one thread instance's thread to another thread instance (104.673423ms)
✔ REQ-THREAD-1 REQ-USER-2: one thread's messages never reach another thread's holder (157.703219ms)
✔ REQ-LAUNCH-1: a message to a thread with no holder waits, and the next holder gets it (165.981225ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: threadIdle releases only a thread with nothing waiting, and only for its holder (188.174849ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: a message delivered to a run that ended unread doesn't hold up the next holder (166.686489ms)
✔ REQ-ROLE-2 REQ-THREAD-1: an approved role.revoke never reaches a thread run, and the thread stays held (145.713532ms)
✔ REQ-USER-2: the human verbs refuse another owner's thread (164.016544ms)
✔ REQ-THREAD-1: thread.create refuses when the business has no thread instance or more than one (126.02312ms)
✔ REQ-ORG-2: projects and threads are named once, and the repo names a business project (170.18676ms)
✔ REQ-THREAD-2: thread.messages returns the thread's history in pages and writes nothing (473.226674ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (188.601212ms)
✔ two wire claims serialize; a lost reply never automatically retries (213.30273ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (172.435068ms)
✔ client preserves UTF-8 when a response divides a multibyte character (11.581325ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (152.744703ms)
✔ web.search: a granted role gets labelled results, and the call is trailed with role, run, verb and query (174.951498ms)
✔ web.fetch: a granted role gets the page as labelled text, and the call is trailed with the url (191.269738ms)
✔ a role without the grant is refused, the refusal is logged with the verb, and nothing is fetched (258.710377ms)
✔ a broker with no web service refuses a granted role (161.470809ms)
✔ bad requests are refused: unknown verb, extra or missing argument, not a string, a human or reader session (242.344415ms)
✔ a session that is not the role holder is refused (141.901347ms)
✔ web.mjs's fences hold on the broker side: refusals are normal results with the fixed reason (446.722495ms)
✔ web.search with no search source configured is a refused result, not an error (174.153696ms)
✔ a search source that fails with its own refusal, or that throws, is handled (187.23312ms)
✔ a slow search source ends in a refusal at the deadline (203.854878ms)
✔ a secret in the arguments is refused before anything is trailed or fetched (132.437514ms)
✔ over the socket: the server routes web verbs to the service; other roles are refused; no service is web-not-configured (248.316867ms)
✔ busBusiness: the web grant comes from "web" in the resolved tool limit (0.273515ms)
✔ webServices: the business's search-source plug-in and web.searxng var make web.search work; without either it is refused as not configured (218.105939ms)
✔ an ungranted call is refused at once: no admission, no wait, nothing touched (161.533027ms)
✔ over the socket an ungranted caller is dropped by the server timeout and a granted one gets the longer wait (468.133055ms)
✔ a search that never answers is aborted at the deadline, the module sees the signal, and the call is trailed as refused (timeout) (180.113384ms)
✔ a fetch that stalls is cut off at the deadline: the request is destroyed, not left running (199.225226ms)
✔ 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 (161.696343ms)
ℹ tests 301
ℹ suites 0
ℹ pass 301
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 12001.64549
