✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (30.332625ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (27.8683ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (54.09785ms)
✔ agents: working wins over waiting, and Input needed still shows (23.095038ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (28.711263ms)
✔ agents: state reads only its own business, even for a run name both use (28.344627ms)
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (30.602949ms)
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (38.772351ms)
✔ agents: stranded is oldest first and capped at 50 for a role (179.157713ms)
✔ agents: stranded is per role and per business (45.836875ms)
✔ agents: a message routed to a held role and not yet received is not stranded (19.891356ms)
✔ REQ-DEC an approval outlives its run and a broker restart; a new run of the instance consumes it once (48.720615ms)
✔ REQ-DEC another instance of the same definition cannot consume an approval, and its refusal consumes nothing (25.962373ms)
✔ REQ-DEC REQ-THREAD-1 a thread approval is consumed only by a run holding the same thread (39.085316ms)
✔ REQ-DEC a later run of the same instance supersedes an open decision; another instance cannot (29.254496ms)
✔ REQ-DEC REQ-THREAD-1 a thread decision is superseded only from the same thread (35.539834ms)
✔ REQ-DEC REQ-THREAD-1 a thread instance decision raised before row 121 is not consumed or superseded by any thread run (51.686235ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (30.851927ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (34.73335ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (40.189065ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (25.616884ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (26.749928ms)
✔ a recommendation that is not exactly one option key refuses invalid-recommendation after the options (40.739139ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (24.219744ms)
✔ task action subjects and linked decision trail are complete and ordered (45.551786ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (23.406658ms)
✔ business isolation includes inherited object names and cross-business message references (36.140738ms)
✔ authority never transfers between action, target, unresolved or replaced role holder; a later run of the instance keeps it (69.353993ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (26.17707ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (31.381783ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (20.352101ms)
✔ both arbiters require human resolution when their cross-role route is themselves (33.62991ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (32.147938ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (2.36727ms)
✔ 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.132257ms)
✔ REQ-ROLE-2: a role without role.end still needs a resolved decision to revoke (48.142328ms)
✔ REQ-ROLE-2: storage accepts a revoke with a reason or a decision and aborts one with neither (31.439677ms)
✔ REQ-ROLE-2: the chief of staff may still cite a decision, and a decision alone is the old path (34.252262ms)
✔ REQ-ROLE-2: a role without role.end still ends a run through a resolved decision, which is recorded and has no reason (37.256961ms)
✔ REQ-ROLE-2: a reason is required, bounded, and never sent with a decision (59.68386ms)
✔ REQ-COS-1: the chief of staff cannot end its own run; its end of the assistant gets past the protection (48.396846ms)
✔ REQ-LIMIT-1, REQ-COS-1: organization.set from the chief of staff reaches the shared writer, named as the actor (46.087792ms)
✔ REQ-LIMIT-1, REQ-COS-1: a refused organization.set logs action.refused and no action.allowed, like a refused limits.set (54.321298ms)
✔ REQ-LIMIT-1: organization.set is refused for every caller whose role file lacks organization.change (38.819082ms)
✔ REQ-LIMIT-1: the chief of staff is logged as allowed, and organization.set takes only the human's keys (50.508123ms)
✔ 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 (97.770373ms)
✔ 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 (112.28273ms)
✔ comment cursors isolate businesses, move only forward and remain append-only (22.356418ms)
✔ only trusted sync writes validated cursors; events and cursor share rollback (16.861138ms)
✔ explicit 3b copy migration preserves evidence and opens as 3g; normal startup never migrates (91.105818ms)
✔ migration refuses active writers and drifted legacy schemas, with no partial upgrade (142.959767ms)
✔ named migration registry chains 3b through 3g to a fixture-only future version in order (151.884847ms)
✔ migration refuses mismatched source metadata without changing schema or evidence (69.164972ms)
✔ offline command migrates only the supplied fixture root and reports usage errors (207.402085ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (23.629848ms)
✔ credentials refuses a role session and any argument (21.767335ms)
✔ credentials reads the status on each request, and a broker without one lists none (32.245406ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (135.127474ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (3.951563ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (2.617547ms)
✔ expiry refuses use and env references never become client data (0.674071ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (1.607109ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.366686ms)
✔ each C-suite role file carries the same two lists: human, chief-of-staff, pm, cto (1.858499ms)
✔ chief-executive-officer: messages to and from the user, chief of staff, pm and cto pass (67.998075ms)
✔ chief-executive-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (62.171721ms)
✔ chief-executive-officer: another C-suite role isn't on the lists either (53.199083ms)
✔ chief-financial-officer: messages to and from the user, chief of staff, pm and cto pass (77.662265ms)
✔ chief-financial-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (85.492605ms)
✔ chief-financial-officer: another C-suite role isn't on the lists either (69.573413ms)
✔ chief-information-officer: messages to and from the user, chief of staff, pm and cto pass (59.720347ms)
✔ chief-information-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (65.683567ms)
✔ chief-information-officer: another C-suite role isn't on the lists either (59.328663ms)
✔ chief-information-security-officer: messages to and from the user, chief of staff, pm and cto pass (68.527876ms)
✔ chief-information-security-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (66.086116ms)
✔ chief-information-security-officer: another C-suite role isn't on the lists either (57.192781ms)
✔ chief-marketing-officer: messages to and from the user, chief of staff, pm and cto pass (72.212525ms)
✔ chief-marketing-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (68.705493ms)
✔ chief-marketing-officer: another C-suite role isn't on the lists either (59.293545ms)
✔ a human resolve sends the raising role one message from the human, and its request is the answer (47.222471ms)
✔ a cross-role decision resolved by its arbiter comes from that role and run, with no request (31.146044ms)
✔ a human withdraw sends one message with the note (34.181745ms)
✔ a human seen before the close leaves the request on the close's answer, not the seen (40.065938ms)
✔ the raising run's withdraw, a supersede, a within-role raise and seen send nothing (42.580012ms)
✔ refused closes send nothing: invalid-choice, decision-closed, not-resolver (48.410523ms)
✔ a raising role nobody holds at the close gets the message on the next claim (46.344008ms)
✔ a human DECISION send keeps its own instruction as the request, not a close's answer (46.500052ms)
✔ a cross-role raise whose arbiter the raiser does not hear from is refused and stores nothing (44.634541ms)
✔ a gated raise by a role that does not hear from the human is refused and stores nothing (38.144992ms)
✔ a route the raiser hears from is allowed, checked from the route to the raiser (46.27598ms)
✔ a refused supersede withdraws nothing (41.089527ms)
✔ the assistant's within-role and gated raises still work (41.406865ms)
✔ roles lists open decisions routed to a role, and never the human inbox (38.686544ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (46.414027ms)
✔ recent gives the closing event as closed when the decision was seen first (41.969404ms)
✔ recent stops at RECENT rows (166.564694ms)
✔ every row is what trail already gives the same session for that id (77.561215ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (59.204845ms)
✔ decisions is a read: one business, strict arguments, nothing written (56.055597ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (24.32807ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (19.388125ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (24.408425ms)
✔ endLaunch leaves a claim another run took alone (25.688084ms)
✔ refuse records action.refused against the caller with the code only (18.200631ms)
✔ launches off refuses role.launch with launch-revoked until launches on (26.641483ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (185.973313ms)
✔ REQ-WAIT-1: the broker hard waits are exactly the list, and match the business vocabulary (1.881517ms)
✔ REQ-WAIT-2: a business granting a hard wait at either class is refused; the actions that left are grantable (21.815973ms)
✔ REQ-DEC-2: every hard wait goes to the human, cited or not, and the arbiter cannot resolve it (612.910951ms)
✔ REQ-DEC-2: a gated raise citing the current spec goes to the arbiter for its domain; uncited, to the human (292.954129ms)
✔ REQ-DEC-2: an arbiter-approved cited gated decision authorizes the raiser, and the human cannot resolve it (80.715486ms)
✔ REQ-DEC-2: a cited merge raised by merge-gate goes to the technical arbiter; a merge raised without the grant routes by citation (123.745679ms)
✔ REQ-DEC-2: a stale or unconfirmed citation refuses without a decision; an arbiter raising its own goes to the human (179.178629ms)
✔ Q169: the chief of staff's end of the assistant is not refused role-end-refused; its own run and another ender's are (50.032858ms)
✔ Q169: another role's cited revoke of the assistant, resolved by an arbiter, is refused (90.968013ms)
✔ Q169: a revoke of the assistant citing a decision the human resolved is not refused by the protection (62.683085ms)
✔ Q169: a cited revoke of a role not in END_PROTECTED still goes to the arbiter, and executes (49.810877ms)
✔ Q169: a role granted role.revoke at either class still sends a revoke of the assistant to the human (75.922428ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (1.764842ms)
✔ process reader gets own kernel identity without exposing environment values (0.468504ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (0.710746ms)
✔ real pid 1 remains inspectable when its environment is protected (0.313414ms)
✔ REQ-DEC-2: a merge-gate raise its arbiter resolved lands through the host op: checkLand answers the facts and a ticket, records nothing, and recordLand spends the decision once (53.255574ms)
✔ checkLand refuses on the decision and the review (51.051065ms)
✔ REQ-LAND-1: a gated merge decision refuses not-authorized, cited and approved by the arbiter or uncited and approved by the human (165.485145ms)
✔ REQ-LAND-1: a within-role merge grant refuses not-authorized at the land (55.836629ms)
✔ a cross-role merge that routes to the human, because merge-gate is its own arbiter, lands on the human's CLI answer (39.289795ms)
✔ a merge option with no first line refuses no-subject, as land-work does (33.982914ms)
✔ checkLand refuses with land-work's codes past the authority check, and a decision raised for refactor never lands (99.00063ms)
✔ a ticket outlives the run that asked, and recordLand checks the task again (44.865349ms)
✔ landRefused files the code on the task, tells the role only with notify, and ends the ticket (51.612869ms)
✔ landHeld is true only for an approved, unspent cross-role merge decision this role raised for a task in this thread (48.442266ms)
✔ no run may write the action.allowed for git.merge.protected itself (30.25646ms)
✔ a message to a stopped role sends launch.by one notice, and the result says so (36.028316ms)
✔ a message to a role outside launch.instances says so in its result and in the notice (24.15727ms)
✔ a message to a running role sends no notice and its result is unchanged (19.612957ms)
✔ a re-route at a claim, a release and claim, and a broker restart send no second notice (33.274104ms)
✔ a run launched but not yet claimed counts as no holder (24.918831ms)
✔ no notice for a message to launch.by, from it, from a tester, to the human, or in a thread to a thread instance (50.431534ms)
✔ a business with no launch block tells nobody and says there is no launcher (19.305949ms)
✔ the notice sender stays internal: no role is named _bus and no caller can send as it or to it (76.365383ms)
✔ limits binds actor from human proof and rejects role, reader, tester and forged actor (33.447247ms)
✔ runtime wires verified human settings to the actual shared file writer and actor receipt (100.573717ms)
✔ uncertain organization receipts leave bus startup and reads alone but refuse writes until reconciled (68.83954ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (47.065393ms)
✔ missing and foreign-business citations refuse and roll back message and grant (43.431641ms)
✔ cross-role sends still need a matching resolved decision and consume it once (35.367762ms)
✔ messages pages all human messages newest first without writes; read state is history (518.060294ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (46.669764ms)
✔ views messages passes only its paging arguments through (0.467579ms)
✔ messages isolates businesses even with a valid foreign cursor (30.270987ms)
✔ the assistant sends to the user and to the chief of staff only (72.961118ms)
✔ an assistant send to any other role, or to the tester, is refused and logged (54.506449ms)
✔ only the user and the chief of staff may send to the assistant; the tester is refused by default (46.679904ms)
✔ REQ-ASSIST-2 REQ-THREAD-1 thread.send to an instance that does not hear from the user is refused and stores nothing (45.361852ms)
✔ a sender-side list alone refuses a send to a role that has no list (47.743896ms)
✔ a target-side list alone refuses a send from a role that has no list (52.719366ms)
✔ the sender list is checked before the target list (45.185127ms)
✔ roles without the field behave exactly as before (62.04208ms)
✔ a business with no role definitions at all is unlimited (51.778763ms)
✔ a malformed messaging field refuses at boot (24.043355ms)
✔ the assistant's review.request to a reviewer is refused and logged, even with an approved decision (54.291896ms)
✔ a review.verdict to the assistant from a role outside its receiveFrom is refused and logged (61.159765ms)
✔ review requests and verdicts between roles without the field are unchanged (47.815397ms)
✔ 3f copy migrates to 3g preserving every old column/row, with an empty instance_names and null to_name (125.341855ms)
✔ REQ-MSG-2: the chief of staff names an instance under its within-role grant, and the write is logged (29.451888ms)
✔ REQ-MSG-2: the human names an instance through the CLI (26.669924ms)
✔ REQ-MSG-2: a role without the grant, or holding it cross-role, is refused not-authorized (33.40327ms)
✔ REQ-MSG-2: a name is unique in the business and is never an instance key or a role name (54.611452ms)
✔ REQ-MSG-2: a send by name reaches the instance and records both; a send by instance key is unchanged (50.400909ms)
✔ REQ-MSG-2: an instance key beats a name that equals it, as when a later instance takes the key (30.400516ms)
✔ REQ-MSG-2: a role name beats a name that equals it, as when a later definition takes the word (sage-0590) (34.277304ms)
✔ plugins and plugins.set refuse every non-human session and a forged actor, and pass only the patch with the verified actor (31.991773ms)
✔ 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 (109.365051ms)
✔ vikunja:19/309 through the broker, a patch switches the kinds it names and keeps the rest; null removes one kind and is trailed (51.24917ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (142.570083ms)
✔ startup token refusal returns safe code without value or partial listening broker (112.235076ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (136.489868ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (234.224611ms)
✔ trusted host registers later launches; socket clients never have a registration verb (159.443897ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (108.09245ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (121.838181ms)
✔ D1: committed write with a failed receipt refuses outcome-unknown without action.allowed (30.504811ms)
✔ D2: spec.read refuses without content if its role is released during the read (23.188289ms)
✔ D3: spec.read secret check refuses flagged content without content (22.578229ms)
✔ D3: spec.read secret check refuses flagged subject without content (24.160097ms)
✔ a human lists, opens and saves; the save is one commit by the business human (172.962909ms)
✔ an agent and a reader refuse every file verb and nothing is written (65.849816ms)
✔ a stale base refuses stale-base and writes nothing (124.664946ms)
✔ paths outside the spec and docs refuse, as do unknown projects, missing files and odd arguments (99.474207ms)
✔ without a project adapter the file verbs refuse project-not-configured (52.128384ms)
✔ on the socket a save may carry 1 MiB of text; every other request keeps the 64 KiB limit (250.548724ms)
✔ a request that names the save verb first and another verb last is refused at 64 KiB (60.536239ms)
✔ two saves racing for one repository make one commit (112.03516ms)
✔ Broker keeps the existing sandbox client import closure: no new imports or lazy project import (2.242709ms)
✔ without a trusted project adapter all three async paths refuse project-not-configured (54.992933ms)
✔ real startBroker injects the project adapter for socket reads and bound-author record writes (111.751179ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (54.0271ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (32.407697ms)
✔ a message with no reply gives an empty list (25.191123ms)
✔ replies come oldest first and stop at REPLIES (139.357829ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (49.503249ms)
✔ strict arguments; a role session gets human-required (56.248409ms)
✔ views passes replies through as one call with the id (0.315694ms)
✔ requirements returns the committed list to a holding role session, and no one else (38.050321ms)
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (24.153966ms)
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (27.798165ms)
✔ a push is recorded as the action.allowed for git.push.working on the task, and only the host records one (43.494498ms)
✔ review.request names the latest pushed commit and sends the reviewer a REVIEW-REQUEST (37.824245ms)
✔ review.request says which run holds the reviewer role, or null, and a null request waits for a claim (43.471401ms)
✔ review.request refuses a commit that isn't the latest push, a non-reviewer and a role without the action (64.56867ms)
✔ reviewFetch answers only the addressed reviewer, for the request it cites (45.127333ms)
✔ review.verdict answers one request once, to the role that asked (45.102411ms)
✔ task.close on a pushed task needs an approve verdict for the latest push (57.342708ms)
✔ a refusal the host decided is filed on the task it names, and only a task ref counts (39.401884ms)
✔ v3b prototype refusals, views and append-only mutations (147.986828ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (47.69204ms)
✔ another run of the same instance consumes an approval once; a failed check leaves it usable (34.79206ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (29.49308ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (57.057182ms)
✔ class drift gated to cross-role refuses before consumption (38.017148ms)
✔ class drift cross-role to gated refuses before consumption (41.447192ms)
✔ class drift gated to within-role refuses before consumption (36.942559ms)
✔ class drift cross-role to within-role refuses before consumption (40.316974ms)
✔ class drift within-role to gated refuses before consumption (35.892771ms)
✔ class drift within-role to cross-role refuses before consumption (35.478151ms)
✔ message.send consumes approval and prevents a later send or authorize (42.242966ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (46.160399ms)
✔ 3e copy migrates through 3f to 3g preserving every old column/row and adding null spec citations (157.05036ms)
✔ a human spec save sends one notice to each pm and cto, naming the commit, and each commit sends its own (215.266561ms)
✔ no notice for a docs save, an agent record commit, a git commit outside the Console, or a refused save (262.3419ms)
✔ a notice to a role no run holds waits for a claim, and launches nobody and tells nobody (109.024578ms)
✔ a business without a pm or a cto saves the spec and sends nothing (89.842781ms)
✔ a notice that cannot be stored answers outcome-unknown, and the commit stands (93.633892ms)
✔ a BLOCK reaches the chief of staff, the chief relays it to the assistant in the user's thread, and the commit stands (90.499363ms)
✔ with no thread a BLOCK still reaches the chief of staff, and the relay to the assistant is refused (76.747212ms)
✔ the relay lands in the user's most recently opened thread of the notice's project (80.474982ms)
✔ a BLOCK is refused from anyone but a pm or cto, to anyone but the chief of staff, and outside a reply to its own notice (75.137269ms)
✔ the bus receives nothing: a reply to a notice addressed to _bus is refused (65.317492ms)
✔ real socket awaits spec reads, record writes and cited raises; other requests still return normally (156.976617ms)
✔ real socket preserves asynchronous refusal codes and disconnects its transient proof (49.36668ms)
✔ two real socket writes to one repository yield one commit and one project-busy refusal (83.026003ms)
✔ client disconnect during await tolerates late reply (76.85929ms)
✔ client disconnect during await tolerates late refusal (53.276155ms)
✔ N-a: slow admitted record.write returns its committed result after the idle deadline (221.443135ms)
✔ current citation is recorded; docs commits do not stale it and a new spec never reopens settlement (174.335021ms)
✔ stale, unconfirmed, missing and partial spec citations refuse without inserting a decision (184.261534ms)
✔ uncited raises retain their synchronous path and spec read is available to any held role in its business (79.299568ms)
✔ record writes bind the session author, require authority and refuse spec and impersonation paths (77.694981ms)
✔ REQ-COS-1: the pm asks the chief of staff for roles and counts; the chief receives a STAFF-REQUEST and answers it (48.34573ms)
✔ REQ-COS-1: only the pm can send a staff request; every other session is refused and the chief of staff hears nothing (45.853567ms)
✔ REQ-COS-1: a pm without message.send is refused like any other gated action (23.972775ms)
✔ REQ-COS-1: the request goes to the business launcher, and only when that is a chief of staff (70.862243ms)
✔ 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 (69.541543ms)
✔ 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.877614ms)
✔ REQ-COS-1: a refused staff request leaves no staff.request action.allowed event (37.909587ms)
✔ REQ-ASSIST-2: the role definitions' messaging lists hold for a staff request, sender and recipient (85.440699ms)
✔ a staff request names a task, 1 to 10 distinct roles and counts of 1 to 20; nothing else is accepted (62.06638ms)
✔ REQ-COS-1: a staff request grants nothing: the pm still can't launch and the chief of staff launches as before (29.948651ms)
✔ a business that never switched launches reads allowed with no time and no event (25.511637ms)
✔ launches revoked and then restored read allowed, with the restore time and event id (24.440049ms)
✔ a task closed on the tracker leaves the open list, and total counts the open ones (24.57555ms)
✔ a tombstone is not open (21.053341ms)
✔ the open list stops at the cap and says so; total still counts every open task (28.818251ms)
✔ a role and a reader session read state; arguments, and an unbound cap, refuse (24.267515ms)
✔ a human session reads the same state, with the same cap (32.145939ms)
✔ reading state writes nothing: every table keeps its row count (25.166305ms)
✔ creates private WAL store and excludes a second writer until explicit close (23.229977ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (25.416026ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (26.731138ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (96.929999ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (19.970782ms)
✔ async transactions refuse before invoking their function (15.234605ms)
✔ the session default fits under the reply cap and pages to the end with next (229.749737ms)
✔ the short form: no description, assignees by role, every listed key (135.827563ms)
✔ each filter, alone and together, and total counts every match (216.403287ms)
✔ task_ref reads one task in full, as the whole board has it (112.81874ms)
✔ no arguments is the read the Console and mosaic make, unchanged (81.998476ms)
✔ an unknown argument or a bad value refuses invalid-request (316.556597ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (62.331396ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (75.752648ms)
✔ an empty business and one with snapshots but no task.created read cleanly (22.34076ms)
✔ recordTask keeps sync reads and a role write apart (36.691992ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (18.590653ms)
✔ a bad entry refuses the whole record (22.882208ms)
✔ taskView reads the projection for one business (21.390844ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (45.041477ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (286.897856ms)
✔ without an adapter the server refuses every task verb (23.161518ms)
✔ the runtime refuses an invalid adapter and closes a valid one (28.299543ms)
✔ the process loads the S3 adapter from plain-data trackers (188.459904ms)
✔ the tester binds only when the business sets bus.tester to exactly true (137.292154ms)
✔ a business may not name a role tester, so the tester address is never a role (33.108171ms)
✔ every verb outside the tester list refuses tester-refused and is recorded against the tester (72.181245ms)
✔ a tester message is from tester, starts [mos test], and writes no human.input or authority (32.37686ms)
✔ a role answers a tester only in reply to a tester message, and the answer never reaches the human (39.122916ms)
✔ the tester reads the human views a reader reads (39.398945ms)
✔ tester proof binds its own CLI, start time and nonce, refuses a managed run and allows an agent (2.077654ms)
✔ neither CLI's nonce proves the other: each proof is bound to its own CLI and nonce variable (0.761722ms)
✔ testerNonce reads only the tester's variable and gives null on any read error (0.362249ms)
✔ an envelope carries exactly one of cap, human and tester; no tester authenticator refuses (29.345893ms)
✔ tester-cli.mjs binds through the runtime when the switch is on, and refuses off or under a run marker (698.164294ms)
✔ REQ-THREAD-1 REQ-ORG-2: the 3d→3e migration adds the thread tables and leaves messages from before threads as written (148.720299ms)
✔ REQ-THREAD-1: a 3d bus with a changed schema is refused and keeps its version and tables (83.649311ms)
✔ REQ-THREAD-1: the offline command prints the kept-message counts before the ready line (141.711892ms)
✔ REQ-ROLE-2 REQ-THREAD-1: one holder per thread, through the broker and the trigger (60.715634ms)
✔ REQ-ROLE-2 REQ-THREAD-1: the 3e triggers refuse writes that skip the broker (89.900233ms)
✔ REQ-MSG-1: a message to or from the assistant names its thread, or is refused (46.310767ms)
✔ REQ-MSG-1: the chief of staff's reply comes back to the thread that sent the work (620.258468ms)
✔ REQ-MSG-1: a reply can't carry one thread instance's thread to another thread instance (17.822502ms)
✔ REQ-THREAD-1 REQ-USER-2: one thread's messages never reach another thread's holder (24.511656ms)
✔ REQ-LAUNCH-1: a message to a thread with no holder waits, and the next holder gets it (24.489274ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: threadIdle releases only a thread with nothing waiting, and only for its holder (28.296204ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: a message delivered to a run that ended unread doesn't hold up the next holder (23.043051ms)
✔ REQ-ROLE-2 REQ-THREAD-1: an approved role.revoke never reaches a thread run, and the thread stays held (20.571595ms)
✔ REQ-USER-2: the human verbs refuse another owner's thread (20.811575ms)
✔ REQ-THREAD-1: thread.create refuses when the business has no thread instance or more than one (17.299257ms)
✔ REQ-ORG-2: projects and threads are named once, and the repo names a business project (22.466813ms)
✔ REQ-THREAD-2: thread.messages returns the thread's history in pages and writes nothing (69.215364ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (37.56243ms)
✔ two wire claims serialize; a lost reply never automatically retries (29.155934ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (17.53718ms)
✔ client preserves UTF-8 when a response divides a multibyte character (11.584436ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (23.596602ms)
✔ web.search: a granted role gets labelled results, and the call is trailed with role, run, verb and query (29.94925ms)
✔ web.fetch: a granted role gets the page as labelled text, and the call is trailed with the url (26.423749ms)
✔ a role without the grant is refused, the refusal is logged with the verb, and nothing is fetched (29.440775ms)
✔ a broker with no web service refuses a granted role (19.192107ms)
✔ bad requests are refused: unknown verb, extra or missing argument, not a string, a human or reader session (23.95085ms)
✔ a session that is not the role holder is refused (13.038375ms)
✔ web.mjs's fences hold on the broker side: refusals are normal results with the fixed reason (53.106814ms)
✔ web.search with no search source configured is a refused result, not an error (15.937613ms)
✔ a search source that fails with its own refusal, or that throws, is handled (20.438723ms)
✔ a slow search source ends in a refusal at the deadline (64.622468ms)
✔ a secret in the arguments is refused before anything is trailed or fetched (12.670468ms)
✔ over the socket: the server routes web verbs to the service; other roles are refused; no service is web-not-configured (32.444061ms)
✔ busBusiness: the web grant comes from "web" in the resolved tool limit (0.315527ms)
✔ webServices: the business's search-source plug-in and web.searxng var make web.search work; without either it is refused as not configured (32.111688ms)
✔ an ungranted call is refused at once: no admission, no wait, nothing touched (16.597081ms)
✔ over the socket an ungranted caller is dropped by the server timeout and a granted one gets the longer wait (320.557575ms)
✔ a search that never answers is aborted at the deadline, the module sees the signal, and the call is trailed as refused (timeout) (72.590508ms)
✔ a fetch that stalls is cut off at the deadline: the request is destroyed, not left running (92.910839ms)
✔ 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.080494ms)
ℹ tests 343
ℹ suites 0
ℹ pass 343
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2412.86955
