✔ REQ-LIMIT-4 3h copy migrates to 3i: every row keeps its seq, the sequence carries over, and only the account CHECK changes (133.51216ms)
✔ REQ-LIMIT-4 a 3h→3i step that fails partway leaves the store at 3h with every row, the sequence and the schema intact (151.961034ms)
✔ REQ-LIMIT-4 the 3h engine refuses a 3i store, migrating or not, and leaves it at 3i (171.436826ms)
✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (29.175954ms)
✔ agents: working counts what the holder received and has not read; routed alone is not working (31.810417ms)
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (50.494962ms)
✔ agents: working wins over waiting, and Input needed still shows (22.147329ms)
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (25.679403ms)
✔ agents: state reads only its own business, even for a run name both use (24.477914ms)
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (28.349062ms)
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (28.576927ms)
✔ agents: stranded is oldest first and capped at 50 for a role (157.416965ms)
✔ agents: stranded is per role and per business (56.957318ms)
✔ agents: a message routed to a held role and not yet received is not stranded (25.759011ms)
✔ REQ-DEC an approval outlives its run and a broker restart; a new run of the instance consumes it once (48.298314ms)
✔ REQ-DEC another instance of the same definition cannot consume an approval, and its refusal consumes nothing (24.790995ms)
✔ REQ-DEC REQ-THREAD-1 a thread approval is consumed only by a run holding the same thread (34.139582ms)
✔ REQ-DEC a later run of the same instance supersedes an open decision; another instance cannot (28.568361ms)
✔ REQ-DEC REQ-THREAD-1 a thread decision is superseded only from the same thread (32.667997ms)
✔ REQ-DEC REQ-THREAD-1 a thread instance decision raised before row 121 is not consumed or superseded by any thread run (41.149152ms)
✔ launch identity is stamped, payload identity is refused and stale holder cannot send (31.586736ms)
✔ decision classes route from policy; gated resolution is human-only, choice and target must match (36.202433ms)
✔ claim exclusion, holder release, gated revoke and rerouting to a new holder are atomic (38.720514ms)
✔ launch events require a human CLI capability; generic emit cannot forge authority events (26.941911ms)
✔ within-role decisions close atomically and invalid options or blocking omissions refuse (20.439271ms)
✔ a recommendation that is not exactly one option key refuses invalid-recommendation after the options (34.317408ms)
✔ observer capabilities read human inbox but cannot mutate or forge launch identity (22.289713ms)
✔ task action subjects and linked decision trail are complete and ordered (40.636048ms)
✔ launch binding is durable and reconnecting requires the identical trusted record (20.697123ms)
✔ business isolation includes inherited object names and cross-business message references (37.339073ms)
✔ authority never transfers between action, target, unresolved or replaced role holder; a later run of the instance keeps it (45.00735ms)
✔ task projection uses schema current view, skipping earlier and equal-start polls (25.400467ms)
✔ revocation permanently bars the old run from reclaiming first, including after broker restart (36.423324ms)
✔ empty message references refuse before storage; refusal-evidence failure stays a typed error (23.437173ms)
✔ both arbiters require human resolution when their cross-role route is themselves (43.479433ms)
✔ the shipped coder role raises task.reassign as gated to the human; task.scope.change stays cross-role (36.682775ms)
✔ S1 adapter takes resolved limits and refs, rejects mismatched instance, never mutates input (1.791542ms)
✔ channel conversion preserves the four proof/transport byte baselines and modules cannot import a proof caller (1.473286ms)
✔ channel recovery still requires the same shim path and rejects an absent or forged proof (375.614115ms)
✔ 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.408353ms)
✔ REQ-ROLE-2: a role without role.end still needs a resolved decision to revoke (41.855259ms)
✔ REQ-ROLE-2: storage accepts a revoke with a reason or a decision and aborts one with neither (28.443607ms)
✔ REQ-ROLE-2: the chief of staff may still cite a decision, and a decision alone is the old path (29.308437ms)
✔ REQ-ROLE-2: a role without role.end still ends a run through a resolved decision, which is recorded and has no reason (36.890912ms)
✔ REQ-ROLE-2: a reason is required, bounded, and never sent with a decision (44.602717ms)
✔ REQ-COS-1: the chief of staff cannot end its own run; its end of the assistant stops the assistant's thread run (43.573889ms)
✔ REQ-LIMIT-1, REQ-COS-1: organization.set from the chief of staff reaches the shared writer, named as the actor (36.902746ms)
✔ REQ-LIMIT-1, REQ-COS-1: a refused organization.set logs action.refused and no action.allowed, like a refused limits.set (43.337575ms)
✔ REQ-LIMIT-1: organization.set is refused for every caller whose role file lacks organization.change (50.675905ms)
✔ REQ-LIMIT-1: the chief of staff is logged as allowed, and organization.set takes only the human's keys (63.215814ms)
✔ REQ-COS-1: organization.revision answers the revision alone to the chief of staff and spends nothing (61.708705ms)
✔ REQ-COS-1, REQ-LIMIT-1: organization.revision is refused for every caller whose role file lacks organization.change (58.498865ms)
✔ 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 (101.980525ms)
✔ REQ-COS-1: the chief of staff reads the revision, changes the file with it, and reads again after a stale one is refused (102.330972ms)
✔ Q169: the chief of staff's change of the assistant is validated, written and logged; a stale or protection-stripping one is refused (98.674204ms)
✔ row 65, Q169: the chief's change of the assistant's route runs the routing checks, and a valid one saves as the chief (61.15855ms)
✔ 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 (148.339769ms)
✔ comment cursors isolate businesses, move only forward and remain append-only (23.580936ms)
✔ only trusted sync writes validated cursors; events and cursor share rollback (15.177417ms)
✔ explicit 3b copy migration preserves evidence and opens as 3g; normal startup never migrates (97.100369ms)
✔ migration refuses active writers and drifted legacy schemas, with no partial upgrade (147.600975ms)
✔ named migration registry chains 3b through 3g to a fixture-only future version in order (132.882124ms)
✔ migration refuses mismatched source metadata without changing schema or evidence (79.917804ms)
✔ offline command migrates only the supplied fixture root and reports usage errors (264.596851ms)
✔ credentials gives human and reader sessions service, account, role, date and state, and nothing else (23.463383ms)
✔ credentials refuses a role session and any argument (24.594241ms)
✔ credentials reads the status on each request, and a broker without one lists none (29.573444ms)
✔ the broker process answers credentials without a token, path or variable in its output, log or store (151.003985ms)
✔ only validated broker references load; returned data and exceptions cannot expose a known token (3.877869ms)
✔ bad file modes, symlinks, repository/data paths, malformed tokens and missing dates refuse (2.409788ms)
✔ expiry refuses use and env references never become client data (0.617284ms)
✔ S1 parsed service refs work, service mismatch refuses, Gitea rotation due is a warning state (1.514942ms)
✔ opaque tokens shorter than 16 characters refuse before use (0.318767ms)
✔ each C-suite role file carries the same two lists: human, chief-of-staff, pm, cto (2.279515ms)
✔ chief-executive-officer: messages to and from the user, chief of staff, pm and cto pass (67.645016ms)
✔ chief-executive-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (55.043941ms)
✔ chief-executive-officer: another C-suite role isn't on the lists either (50.8539ms)
✔ chief-financial-officer: messages to and from the user, chief of staff, pm and cto pass (65.976001ms)
✔ chief-financial-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (71.998312ms)
✔ chief-financial-officer: another C-suite role isn't on the lists either (59.438038ms)
✔ chief-information-officer: messages to and from the user, chief of staff, pm and cto pass (71.921216ms)
✔ chief-information-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (76.328021ms)
✔ chief-information-officer: another C-suite role isn't on the lists either (68.569073ms)
✔ chief-information-security-officer: messages to and from the user, chief of staff, pm and cto pass (73.055231ms)
✔ chief-information-security-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (66.788654ms)
✔ chief-information-security-officer: another C-suite role isn't on the lists either (56.554905ms)
✔ chief-marketing-officer: messages to and from the user, chief of staff, pm and cto pass (71.133839ms)
✔ chief-marketing-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (59.615697ms)
✔ chief-marketing-officer: another C-suite role isn't on the lists either (51.499845ms)
limits: {"event":"limit-reached","business":"demo","check":"daily-quota","export":"mayLaunch","subject":{"instance":"coder","provider":"anthropic","model":"opus","account":"jason-max"},"path":["tokens","daily","jason-max"],"limit":0,"count":0,"unknownTurns":0}
usage: {"event":"usage-unknown","business":"demo","run":"run1","instance":"coder","turn":"6de7eed2-608d-47d4-b4b1-f6130220d146","source":"@none","code":"baseline-unknown"}
limits: {"event":"limit-reached","business":"demo","check":"daily-quota","export":"mustStop","subject":{"instance":"coder","provider":"anthropic","model":"opus","account":"jason-max"},"path":["tokens","daily","jason-max"],"limit":0,"count":0,"unknownTurns":1}
usage: {"event":"usage-unknown","business":"demo","run":"run1","instance":"coder","turn":"398bba84-0a91-4c81-a473-4cac14770e62","source":"@none","code":"baseline-unknown"}
✔ REQ-LIMIT-2 runtime: limits counts the daily quota, and mayLaunch refuses only the account at it (112.711607ms)
✔ REQ-LIMIT-4 runtime: a run bound with the account writes it on its usage records and stops at the quota (41.405468ms)
✔ REQ-LIMIT-4 runtime: a run bound without an account records null and the daily quota never stops it (33.629155ms)
✔ REQ-LIMIT-4 bindLaunch keeps the account off session.launched, refuses one that is not an identifier, and takes null as none (17.786954ms)
✔ a human resolve sends the raising role one message from the human, and its request is the answer (50.802222ms)
✔ a cross-role decision resolved by its arbiter comes from that role and run, with no request (30.956887ms)
✔ a human withdraw sends one message with the note (29.83625ms)
✔ a human seen before the close leaves the request on the close's answer, not the seen (35.739741ms)
✔ the raising run's withdraw, a supersede, a within-role raise and seen send nothing (36.897731ms)
✔ refused closes send nothing: invalid-choice, decision-closed, not-resolver (43.913575ms)
✔ a raising role nobody holds at the close gets the message on the next claim (42.676723ms)
✔ a human DECISION send keeps its own instruction as the request, not a close's answer (36.88368ms)
✔ a cross-role raise whose arbiter the raiser does not hear from is refused and stores nothing (45.057821ms)
✔ a gated raise by a role that does not hear from the human is refused and stores nothing (38.274768ms)
✔ a route the raiser hears from is allowed, checked from the route to the raiser (40.540249ms)
✔ a refused supersede withdraws nothing (36.003326ms)
✔ the assistant's within-role and gated raises still work (40.905268ms)
✔ roles lists open decisions routed to a role, and never the human inbox (37.255921ms)
✔ recent lists closed decisions of every route, newest close first, with how each closed (39.980684ms)
✔ recent gives the closing event as closed when the decision was seen first (37.719428ms)
✔ recent stops at RECENT rows (137.94755ms)
✔ every row is what trail already gives the same session for that id (64.962306ms)
✔ a role session can't list decisions, so it can't read another role's open decisions (65.387231ms)
✔ decisions is a read: one business, strict arguments, nothing written (69.849335ms)
✔ endLaunch writes session.ended, releases the run claim and kills its capabilities (27.406588ms)
✔ endLaunch refuses an unknown run, a second end and a rebind of the ended run (16.722276ms)
✔ a restarted broker refuses to rebind an ended run; a refused rebind leaves the run unbound (19.444682ms)
✔ endLaunch leaves a claim another run took alone (20.98932ms)
✔ refuse records action.refused against the caller with the code only (16.309326ms)
✔ launches off refuses role.launch with launch-revoked until launches on (26.720634ms)
✔ broker process: launch ops authorize role.launch, record refusals and end runs (188.823848ms)
✔ REQ-WAIT-1: the broker hard waits are exactly the list, and match the business vocabulary (1.641139ms)
✔ REQ-WAIT-2: a business granting a hard wait at either class is refused; the actions that left are grantable (20.133111ms)
✔ REQ-DEC-2: every hard wait goes to the human, cited or not, and the arbiter cannot resolve it (668.40263ms)
✔ REQ-DEC-2: a gated raise citing the current spec goes to the arbiter for its domain; uncited, to the human (290.993295ms)
✔ REQ-DEC-2: an arbiter-approved cited gated decision authorizes the raiser, and the human cannot resolve it (80.924411ms)
✔ REQ-DEC-2: a cited merge raised by merge-gate goes to the technical arbiter; a merge raised without the grant routes by citation (142.356212ms)
✔ REQ-DEC-2: a stale or unconfirmed citation refuses without a decision; an arbiter raising its own goes to the human (196.699053ms)
✔ Q169: the chief of staff's end of the assistant stops every thread run; its own run and another ender's are refused (97.376214ms)
✔ Q169: a revoke of the assistant the chief of staff raises goes to the human, cited or not, and no arbiter resolves it (185.488037ms)
✔ Q169: another role's cited revoke of the assistant, resolved by an arbiter, is refused (106.882888ms)
✔ Q169: a revoke of the assistant citing a decision the human resolved stops its thread run (72.987644ms)
✔ Q169: a cited revoke of a role not in END_PROTECTED still goes to the arbiter, and executes (64.918201ms)
✔ Q169: a role granted role.revoke at either class still sends a revoke of the assistant to the human (82.918959ms)
✔ human proof binds CLI entry, process start and nonce; agents and incomplete ancestry refuse (3.790825ms)
✔ process reader gets own kernel identity without exposing environment values (0.769943ms)
✔ EACCES ancestor environments skip only markers; commands and registered launches still refuse (1.08479ms)
✔ real pid 1 remains inspectable when its environment is protected (0.426481ms)
✔ row 165: instances and instances.set refuse every non-human session, the chief of staff included, and pass the verified actor (55.114094ms)
✔ row 165 runtime: an add and a change reach the organization file with the human as actor; each refusal keeps the bytes and logs nothing (148.690918ms)
✔ 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 (57.870111ms)
✔ checkLand refuses on the decision and the review (58.502758ms)
✔ REQ-LAND-1: a gated merge decision refuses not-authorized, cited and approved by the arbiter or uncited and approved by the human (176.653792ms)
✔ REQ-LAND-1: a within-role merge grant refuses not-authorized at the land (35.354842ms)
✔ a cross-role merge that routes to the human, because merge-gate is its own arbiter, lands on the human's CLI answer (42.460834ms)
✔ a merge option with no first line refuses no-subject, as land-work does (40.808631ms)
✔ checkLand refuses with land-work's codes past the authority check, and a decision raised for refactor never lands (109.443284ms)
✔ a ticket outlives the run that asked, and recordLand checks the task again (43.024095ms)
✔ landRefused files the code on the task, tells the role only with notify, and ends the ticket (46.367666ms)
✔ landHeld is true only for an approved, unspent cross-role merge decision this role raised for a task in this thread (48.131743ms)
✔ landHolders lists a merge decision exactly while landHeld is true for its non-thread instance, in decision order (94.360204ms)
✔ landHolders leaves out a thread instance's decision, even one raised before its role became one (35.942428ms)
✔ landRelease releases the holding run by land-relaunch once it has asked message.receive and nothing delivered to it is unread, and waiting messages go to the next holder (59.787509ms)
✔ a landing run started after the resolution passes checkLand for its held decision before any message.receive, and lands it (56.769865ms)
✔ the bus process answers landHolders and landRelease from their own lines, not as credentialStatus (163.123388ms)
✔ usage.begin with a decision id needs it held for the run's instance, usage.end needs the begin, and the limit checks see the landing turn (60.531961ms)
✔ no run may write the action.allowed for git.merge.protected itself (34.801598ms)
✔ a message to a stopped role sends launch.by one notice, and the result says so (40.108229ms)
✔ a message to a role outside launch.instances says so in its result and in the notice (29.082608ms)
✔ a message to a running role sends no notice and its result is unchanged (21.029879ms)
✔ a re-route at a claim, a release and claim, and a broker restart send no second notice (43.804587ms)
✔ a run launched but not yet claimed counts as no holder (25.789714ms)
✔ no notice for a message to launch.by, from it, a refused one from a tester, to the human, or in a thread to a thread instance (48.853859ms)
✔ a business with no launch block tells nobody and says there is no launcher (22.781391ms)
✔ the notice sender stays internal: no role is named _bus and no caller can send as it or to it (63.925123ms)
✔ REQ-LIMIT-3 limitLeaves finds every limit object and skips the agent numbers (2.207109ms)
✔ REQ-LIMIT-3 limitLeaves takes token limits at schema depth only, whatever their names (0.351608ms)
✔ REQ-LIMIT-3 with no check switched on a launch is allowed, a turn never stops, and every limit is not enforced (24.934487ms)
✔ REQ-LIMIT-3 a fixture check that refuses refuses the launch and stops the turn, logged with the limit and the count (25.74907ms)
✔ REQ-LIMIT-3 a report that omits a limit shows it not enforced; a counted entry and a reason come through (25.420817ms)
✔ REQ-LIMIT-4 each check gets the business, a copy of the limits, the subject, the records and the time (34.776489ms)
✔ REQ-LIMIT-4 fail closed: a throw refuses, stops and fails the report, naming the check and the code (25.001965ms)
✔ REQ-LIMIT-4 fail closed: a malformed answer, a promise, a rejected promise, a non-boolean or a bad hit is malformed-answer (38.372889ms)
✔ REQ-LIMIT-4 fail closed: a check switched on but not loaded refuses, stops and fails every limit as not-loaded (23.042366ms)
✔ REQ-LIMIT-4 state(), never-loaded case: before any load the report shows not enforced, or not-loaded for a switched-on check (22.780646ms)
✔ REQ-LIMIT-4 state(), first-load-refused case: a check refused on its first load is not-loaded in mayLaunch, mustStop and report (23.813608ms)
✔ REQ-LIMIT-4 fail closed: an unreadable organization file refuses and stops with check null; the report throws (20.04054ms)
✔ REQ-LIMIT-4 fail closed: unreadable records refuse and stop with check null and fail the report (0.987984ms)
✔ REQ-LIMIT-3 the shipped token-limit, through the real loader, counts known records only since the limit was set (30.326888ms)
✔ REQ-LIMIT-3 a token limit for a provider named limit is counted and refuses, beside an agent limit of the same name (17.24255ms)
✔ REQ-LIMIT-3 core reaches limit checks only through the plug-in loader (0.710317ms)
✔ REQ-LIMIT-4 a role run at its limit stops at the end of its turn: RESULT and read land first, the claim is revoked by limit-check (50.638697ms)
✔ REQ-LIMIT-4 the stop also lands on state; a run with no stop ends without a limit (59.07015ms)
✔ REQ-LIMIT-4 fail closed: a mustStop throw or a malformed answer stops the run, naming the bus and the code (142.219825ms)
✔ REQ-LIMIT-4 a thread run at its limit is released with the reason, and its end record names the limit (33.361214ms)
✔ REQ-LIMIT-4 a broker with no limit checks configured never stops a run (21.653664ms)
limits: {"event":"limit-reached","business":"demo","check":"token-limit","export":"mayLaunch","subject":{"instance":"coder","provider":"zai","model":"glm-5.3-flash","account":null},"path":["tokens","instances","coder"],"limit":0,"count":0,"unknownTurns":0}
usage: {"event":"usage-unknown","business":"demo","run":"run1","instance":"coder","turn":"33e7a4f9-95bb-4f0d-a574-9588375003cc","source":"@none","code":"baseline-unknown"}
limits: {"event":"limit-reached","business":"demo","check":"token-limit","export":"mustStop","subject":{"instance":"coder","provider":"zai","model":"glm-5.3-flash","account":null},"path":["tokens","instances","coder"],"limit":0,"count":0,"unknownTurns":1}
usage: {"event":"usage-unknown","business":"demo","run":"run1","instance":"coder","turn":"e809e5e8-3818-4d15-958f-b8f0032f8bfd","source":"@none","code":"baseline-unknown"}
✔ REQ-LIMIT-3 REQ-LIMIT-4 runtime: limits carries the token count, mayLaunch refuses at the limit, a reset moves since (170.798384ms)
✔ REQ-LIMIT-3 runtime: with no limit check switched on, the limit shows not enforced and every launch is allowed (29.15775ms)
✔ REQ-LIMIT-4 runtime: the broker asks the shipped token-limit after a turn, and the run at its limit stops on its next receive (49.889437ms)
✔ REQ-LIMIT-4 runtime: with no usage source a turn is unknown, counts zero and stops nothing under a limit of 1 (40.96921ms)
✔ REQ-LIMIT-3 runtime: switching a limit check on with plugins.set loads it without a launch or a turn (66.485233ms)
✔ limits binds actor from human proof and rejects role, reader, tester and forged actor (39.863236ms)
✔ runtime wires verified human settings to the actual shared file writer and actor receipt (130.085987ms)
✔ uncertain organization receipts leave bus startup and reads alone but refuse writes until reconciled (66.062712ms)
✔ within-role sends cite an open gated launch decision without spending it or naming it in grants (52.494031ms)
✔ missing and foreign-business citations refuse and roll back message and grant (32.37395ms)
✔ cross-role sends still need a matching resolved decision and consume it once (38.461376ms)
✔ messages pages all human messages newest first without writes; read state is history (558.221742ms)
✔ messages refuses role callers, invalid paging and cursors outside this human feed (39.172031ms)
✔ views messages passes only its paging arguments through (0.389059ms)
✔ messages isolates businesses even with a valid foreign cursor (30.118407ms)
✔ the assistant sends to the user and to the chief of staff only (55.446531ms)
✔ an assistant send to any other role, or to the tester, is refused and logged (51.922812ms)
✔ only the user and the chief of staff may send to the assistant; the tester is refused by default (62.748909ms)
✔ REQ-ASSIST-2 REQ-THREAD-1 thread.send to an instance that does not hear from the user is refused and stores nothing (47.641951ms)
✔ a sender-side list alone refuses a send to a role that has no list (46.692721ms)
✔ a target-side list alone refuses a send from a role that has no list (45.745003ms)
✔ the sender list is checked before the target list (43.481896ms)
✔ roles without the field behave exactly as before (97.322384ms)
✔ a business with no role definitions at all is unlimited (40.25633ms)
✔ a malformed messaging field refuses at boot (20.617336ms)
✔ the assistant's review.request to a reviewer is refused and logged, even with an approved decision (54.819838ms)
✔ a review.verdict to the assistant from a role outside its receiveFrom is refused and logged (68.102583ms)
✔ review requests and verdicts between roles without the field are unchanged (58.181384ms)
✔ 3f copy migrates to 3g preserving every old column/row, with an empty instance_names and null to_name (154.839364ms)
✔ REQ-MSG-2: the chief of staff names an instance under its within-role grant, and the write is logged (33.216028ms)
✔ REQ-MSG-2: the human names an instance through the CLI (27.642075ms)
✔ REQ-MSG-2: a role without the grant, or holding it cross-role, is refused not-authorized (35.901716ms)
✔ REQ-MSG-2: a name is unique in the business and is never an instance key or a role name (65.677191ms)
✔ REQ-MSG-2: a send by name reaches the instance and records both; a send by instance key is unchanged (50.543219ms)
✔ REQ-MSG-2: an instance key beats a name that equals it, as when a later instance takes the key (29.288909ms)
✔ REQ-MSG-2: a role name beats a name that equals it, as when a later definition takes the word (sage-0590) (30.677958ms)
✔ plugins and plugins.set refuse every non-human session and a forged actor, and pass only the patch with the verified actor (33.384447ms)
✔ 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 (140.116461ms)
✔ vikunja:19/309 through the broker, a patch switches the kinds it names and keeps the rest; null removes one kind and is trailed (52.946654ms)
✔ broker process binds trusted launches, offers reader capabilities, refuses human mutation, closes cleanly (171.723333ms)
✔ startup token refusal returns safe code without value or partial listening broker (119.496141ms)
✔ loaded fixture token is absent from socket replies and SQLite, including refusal evidence (142.901105ms)
✔ killed broker leaves an explicit stale lock; another process cannot silently reclaim it (285.444036ms)
✔ trusted host registers later launches; socket clients never have a registration verb (176.7449ms)
✔ REQ-LIMIT-4 the broker process answers the launcher's mayLaunch op with the limits' awaited decision (139.22693ms)
✔ runtime excludes declared project roots even when host supplies no repoRoots (124.851408ms)
✔ a refused launch binding leaves the broker and existing capabilities alive; bad protocol stops it (132.033502ms)
✔ D1: committed write with a failed receipt refuses outcome-unknown without action.allowed (32.469102ms)
✔ D2: spec.read refuses without content if its role is released during the read (28.657358ms)
✔ D3: spec.read secret check refuses flagged content without content (21.719587ms)
✔ D3: spec.read secret check refuses flagged subject without content (18.831606ms)
✔ a human lists, opens and saves; the save is one commit by the business human (193.346095ms)
✔ an agent and a reader refuse every file verb and nothing is written (69.617581ms)
✔ a stale base refuses stale-base and writes nothing (132.904116ms)
✔ paths outside the spec and docs refuse, as do unknown projects, missing files and odd arguments (113.61977ms)
✔ without a project adapter the file verbs refuse project-not-configured (52.946205ms)
✔ on the socket a save may carry 1 MiB of text; every other request keeps the 64 KiB limit (294.777133ms)
✔ a request that names the save verb first and another verb last is refused at 64 KiB (65.095004ms)
✔ two saves racing for one repository make one commit (147.21491ms)
✔ Broker keeps the sandbox client import closure: only the listed imports, no lazy project import (2.445801ms)
✔ without a trusted project adapter all three async paths refuse project-not-configured (59.787135ms)
✔ real startBroker injects the project adapter for socket reads and bound-author record writes (114.169015ms)
✔ a reply is listed for human and reader sessions, and its delivery rows are unchanged (50.315432ms)
✔ the reply still reaches the human message.receive (mosaic talk) after the Console showed it (29.926385ms)
✔ a message with no reply gives an empty list (23.843309ms)
✔ replies come oldest first and stop at REPLIES (149.632808ms)
✔ an id that names no message in the business refuses message-not-found, and the refusal is recorded (42.759638ms)
✔ strict arguments; a role session gets human-required (57.177583ms)
✔ views passes replies through as one call with the id (0.418081ms)
✔ requirements returns the committed list to a holding role session, and no one else (37.040389ms)
✔ the PM's prd.approve with no task, when no id fits, reaches the human's Inbox (23.687375ms)
✔ the PM's non-blocking role.revoke with no task reaches the human's Inbox (24.974157ms)
✔ a push is recorded as the action.allowed for git.push.working on the task, and only the host records one (41.905339ms)
✔ review.request names the latest pushed commit and sends the reviewer a REVIEW-REQUEST (33.579379ms)
✔ review.request says which run holds the reviewer role, or null, and a null request waits for a claim (75.829183ms)
✔ review.request refuses a commit that isn't the latest push, a non-reviewer and a role without the action (50.238368ms)
✔ reviewFetch answers only the addressed reviewer, for the request it cites (35.54604ms)
✔ review.verdict answers one request once, to the role that asked (44.668354ms)
✔ task.close on a pushed task needs an approve verdict for the latest push (69.705146ms)
✔ a refusal the host decided is filed on the task it names, and only a task ref counts (48.016974ms)
✔ row 65: routes and routes.set refuse every non-human session, the chief of staff included, and pass the verified actor (82.6099ms)
✔ row 65: a new launch binds only on a switched-on harness with a module name, and a run an earlier broker bound binds again after its harness is switched off (31.077884ms)
✔ row 65 runtime: harnessLevels answers each module in the tree, and null for a name with no module (43.525446ms)
✔ row 65 runtime: routes and routes.set reach the organization file with the human as actor, a new bind reads plugins.harness, and each refusal keeps the bytes and logs nothing (112.26188ms)
✔ v3b prototype refusals, views and append-only mutations (180.406864ms)
✔ gated approval authorizes once, survives store reopen, and fresh approval works (48.003873ms)
✔ another run of the same instance consumes an approval once; a failed check leaves it usable (30.397974ms)
✔ two scheduled callers have exactly one grant and one consumed refusal (24.646815ms)
✔ failed commit rolls consumption back; cross-role consumes and within-role stays reusable (54.426606ms)
✔ class drift gated to cross-role refuses before consumption (46.323182ms)
✔ class drift cross-role to gated refuses before consumption (48.837092ms)
✔ class drift gated to within-role refuses before consumption (47.409655ms)
✔ class drift cross-role to within-role refuses before consumption (41.733468ms)
✔ class drift within-role to gated refuses before consumption (41.823077ms)
✔ class drift within-role to cross-role refuses before consumption (34.805648ms)
✔ message.send consumes approval and prevents a later send or authorize (42.748493ms)
✔ role.revoke consumes approval and prevents a later revoke or authorize (43.243879ms)
✔ 3e copy migrates through 3f to 3g preserving every old column/row and adding null spec citations (151.871216ms)
✔ a human spec save sends one notice to each pm and cto, naming the commit, and each commit sends its own (231.93017ms)
✔ no notice for a docs save, an agent record commit, a git commit outside the Console, or a refused save (294.035399ms)
✔ a notice to a role no run holds waits for a claim, and launches nobody and tells nobody (123.585763ms)
✔ a business without a pm or a cto saves the spec and sends nothing (104.038787ms)
✔ a notice that cannot be stored answers outcome-unknown, and the commit stands (112.293397ms)
✔ a BLOCK reaches the chief of staff, the chief relays it to the assistant in the user's thread, and the commit stands (117.688251ms)
✔ with no thread a BLOCK still reaches the chief of staff, and the relay to the assistant is refused (86.13662ms)
✔ within the notice's project the relay lands in the user's most recently opened thread (78.22637ms)
✔ a more recently opened thread in another project does not take the relay (74.3704ms)
✔ 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 (78.622276ms)
✔ a role cannot forge a spec notice: its text opens neither a BLOCK nor the assistant's thread (72.448626ms)
✔ the bus receives nothing: a reply to a notice addressed to _bus is refused (67.273153ms)
✔ real socket awaits spec reads, record writes and cited raises; other requests still return normally (194.822027ms)
✔ real socket preserves asynchronous refusal codes and disconnects its transient proof (55.116886ms)
✔ two real socket writes to one repository yield one commit and one project-busy refusal (84.457112ms)
✔ client disconnect during await tolerates late reply (88.55896ms)
✔ client disconnect during await tolerates late refusal (56.650306ms)
✔ N-a: slow admitted record.write returns its committed result after the idle deadline (234.535084ms)
✔ current citation is recorded; docs commits do not stale it and a new spec never reopens settlement (201.416033ms)
✔ stale, unconfirmed, missing and partial spec citations refuse without inserting a decision (214.47452ms)
✔ uncited raises retain their synchronous path and spec read is available to any held role in its business (75.305809ms)
✔ record writes bind the session author, require authority and refuse spec and impersonation paths (85.881882ms)
✔ REQ-COS-1: the pm asks the chief of staff for roles and counts; the chief receives a STAFF-REQUEST and answers it (52.07007ms)
✔ REQ-COS-1: only the pm can send a staff request; every other session is refused and the chief of staff hears nothing (47.27664ms)
✔ REQ-COS-1: a pm without message.send is refused like any other gated action (30.079231ms)
✔ REQ-COS-1: the request goes to the business launcher, and only when that is a chief of staff (68.370945ms)
✔ 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.979458ms)
✔ 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 (69.747638ms)
✔ REQ-COS-1: a refused staff request leaves no staff.request action.allowed event (37.981728ms)
✔ REQ-ASSIST-2: the role definitions' messaging lists hold for a staff request, sender and recipient (85.289001ms)
✔ a staff request names a task, 1 to 10 distinct roles and counts of 1 to 20; nothing else is accepted (58.323944ms)
✔ REQ-COS-1: a staff request grants nothing: the pm still can't launch and the chief of staff launches as before (35.414581ms)
✔ a business that never switched launches reads allowed with no time and no event (26.73465ms)
✔ launches revoked and then restored read allowed, with the restore time and event id (26.275926ms)
✔ a task closed on the tracker leaves the open list, and total counts the open ones (29.492509ms)
✔ a tombstone is not open (27.28428ms)
✔ the open list stops at the cap and says so; total still counts every open task (27.6372ms)
✔ a role and a reader session read state; arguments, and an unbound cap, refuse (21.807637ms)
✔ a human session reads the same state, with the same cap (28.489082ms)
✔ reading state writes nothing: every table keeps its row count (29.617787ms)
✔ creates private WAL store and excludes a second writer until explicit close (23.108297ms)
✔ rollback is atomic and schema metadata is checked against trusted DDL, not just itself (27.593493ms)
✔ existing empty database and symlink runtime directory refuse, never initialize over damage (31.900828ms)
✔ crash during a transaction recovers no partial event after explicit fixture-only lock removal (103.730996ms)
✔ writer refuses mixed at/read_at forms atomically, even through trusted SQL helpers (18.795653ms)
✔ async transactions refuse before invoking their function (16.140369ms)
✔ usage_records refuses non-canonical timestamps atomically (21.312104ms)
✔ the session default fits under the reply cap and pages to the end with next (234.235196ms)
✔ the short form: no description, assignees by role, every listed key (144.822579ms)
✔ each filter, alone and together, and total counts every match (267.648647ms)
✔ task_ref reads one task in full, as the whole board has it (133.510901ms)
✔ no arguments is the read the Console and mosaic make, unchanged (85.768261ms)
✔ an unknown argument or a bad value refuses invalid-request (323.358631ms)
✔ tasks rows carry priority and requirement for every session that reads tasks (62.728131ms)
✔ the read model rebuilds from the ledger: a reopened bus and each trail give the same values (74.727626ms)
✔ an empty business and one with snapshots but no task.created read cleanly (20.303196ms)
✔ recordTask keeps sync reads and a role write apart (35.330209ms)
✔ read_at must be one canonical UTC format, so the projection compares strings safely (18.132143ms)
✔ a bad entry refuses the whole record (20.124809ms)
✔ taskView reads the projection for one business (22.810457ms)
✔ requestTask hands only a holder and a task verb to the handler, and records refusals (45.99264ms)
✔ the server sends task verbs to the adapter with its own timeout; other verbs stay synchronous (295.734396ms)
✔ without an adapter the server refuses every task verb (33.599816ms)
✔ the runtime refuses an invalid adapter and closes a valid one (43.713585ms)
✔ the process loads the S3 adapter from plain-data trackers (227.752938ms)
✔ the tester binds only when the business sets bus.tester to exactly true (144.213237ms)
✔ a business may not name a role tester, so the tester address is never a role (41.786494ms)
✔ every verb outside the tester list refuses tester-refused and is recorded against the tester (72.71564ms)
✔ a tester message is from tester, starts [mos test], and writes no human.input or authority (29.588555ms)
✔ a tester message to a role no run holds refuses tester-target-not-running and stores nothing (22.643379ms)
✔ a tester message is refused while the run is only launched, and routes once it claims (27.423151ms)
✔ a human message to a role no run holds still waits and tells launch.by (24.09553ms)
✔ a role answers a tester only in reply to a tester message, and the answer never reaches the human (40.219562ms)
✔ the tester reads the human views a reader reads (46.394358ms)
✔ tester proof binds its own CLI, start time and nonce, refuses a managed run and allows an agent (1.696992ms)
✔ neither CLI's nonce proves the other: each proof is bound to its own CLI and nonce variable (0.469803ms)
✔ testerNonce reads only the tester's variable and gives null on any read error (0.243157ms)
✔ an envelope carries exactly one of cap, human and tester; no tester authenticator refuses (26.899527ms)
✔ tester-cli.mjs binds through the runtime when the switch is on, and refuses off or under a run marker (803.088644ms)
✔ REQ-THREAD-1 REQ-ORG-2: the 3d→3e migration adds the thread tables and leaves messages from before threads as written (139.348522ms)
✔ REQ-THREAD-1: a 3d bus with a changed schema is refused and keeps its version and tables (86.416153ms)
✔ REQ-THREAD-1: the offline command prints the kept-message counts before the ready line (153.612095ms)
✔ REQ-ROLE-2 REQ-THREAD-1: one holder per thread, through the broker and the trigger (54.72467ms)
✔ REQ-ROLE-2 REQ-THREAD-1: the 3e triggers refuse writes that skip the broker (100.622643ms)
✔ REQ-MSG-1: a message to or from the assistant names its thread, or is refused (54.877461ms)
✔ REQ-MSG-1: the chief of staff's reply comes back to the thread that sent the work (654.360111ms)
✔ REQ-MSG-1: a reply can't carry one thread instance's thread to another thread instance (18.139822ms)
✔ REQ-THREAD-1 REQ-USER-2: one thread's messages never reach another thread's holder (25.705985ms)
✔ REQ-LAUNCH-1: a message to a thread with no holder waits, and the next holder gets it (25.830008ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: threadIdle releases only a thread with nothing waiting, and only for its holder (27.578581ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1: a message delivered to a run that ended unread doesn't hold up the next holder (24.734345ms)
✔ REQ-ROLE-2 REQ-THREAD-1 Q169: a role.revoke the human approved ends every thread run of the assistant (21.13207ms)
✔ Q169 REQ-USER-2: assistant.stop ends the human's own assistant thread runs, and only the human's (29.607814ms)
✔ REQ-USER-2: the human verbs refuse another owner's thread (23.04773ms)
✔ REQ-THREAD-1: thread.create refuses when the business has no thread instance or more than one (15.848621ms)
✔ REQ-ORG-2: projects and threads are named once, and the repo names a business project (20.173413ms)
✔ REQ-THREAD-2: thread.messages returns the thread's history in pages and writes nothing (74.085494ms)
✔ socket capability stamps launch identity; shared views use wire, no SQL client (39.804952ms)
✔ two wire claims serialize; a lost reply never automatically retries (29.610227ms)
✔ malformed, oversized and identity-forging envelopes refuse without echoing input (17.16974ms)
✔ client preserves UTF-8 when a response divides a multibyte character (12.715488ms)
✔ committed mutation followed by dropped reply reports unknown and is never retried (20.897398ms)
✔ REQ-LIMIT-4 usage protocol binds run identity, requires a delivered turn and isolates businesses (38.356464ms)
✔ REQ-LIMIT-4 3g copy migrates through 3h to 3i preserving every old column, row and sequence; new usage table is empty (142.49613ms)
✔ REQ-PLUG-1 runtime reaches transcript only through loader, over the real bus socket (55.310469ms)
✔ REQ-LIMIT-4 loader source records new turn kinds, excludes history and retries exactly once (24.67766ms)
✔ REQ-LIMIT-4 cut: unknown is durable and logged next to every total (17.229922ms)
✔ REQ-LIMIT-4 disabled: unknown is durable and logged next to every total (14.325346ms)
✔ REQ-LIMIT-4 missing-begin: unknown is durable and logged next to every total (13.927437ms)
✔ REQ-LIMIT-4 no-new-usage: unknown is durable and logged next to every total (16.259578ms)
✔ REQ-LIMIT-4 rewrite: unknown is durable and logged next to every total (14.695063ms)
✔ REQ-LIMIT-4 unfinished turn remains visibly unknown after accounting restarts (14.810567ms)
✔ usage records are append-only (15.018173ms)
✔ REQ-LIMIT-4 parse failure logs its safe code, never transcript content (12.847094ms)
✔ REQ-LIMIT-4 resumed run baselines history and exact totals do not overflow (18.365816ms)
✔ REQ-PLUG-1 core has no transcript import and disabled sources do not read any transcript (13.681842ms)
✔ REQ-LIMIT-4 a resumed thread bills only new assistant messages to its next run (15.554758ms)
✔ REQ-LIMIT-4 every enabled source is called; failure is unknown and a partial total stays labelled (20.339732ms)
✔ REQ-LIMIT-4 a turn whose reported sum exceeds safe precision is unknown, not rounded (13.719402ms)
✔ row 65 a run bound without a transcript directory records no-transcript (11.802156ms)
✔ web.search: a granted role gets labelled results, and the call is trailed with role, run, verb and query (25.963302ms)
✔ web.fetch: a granted role gets the page as labelled text, and the call is trailed with the url (25.351503ms)
✔ a role without the grant is refused, the refusal is logged with the verb, and nothing is fetched (23.251022ms)
✔ a broker with no web service refuses a granted role (18.246084ms)
✔ bad requests are refused: unknown verb, extra or missing argument, not a string, a human or reader session (24.929724ms)
✔ a session that is not the role holder is refused (14.690335ms)
✔ web.mjs's fences hold on the broker side: refusals are normal results with the fixed reason (47.322337ms)
✔ web.search with no search source configured is a refused result, not an error (14.010863ms)
✔ a search source that fails with its own refusal, or that throws, is handled (18.171555ms)
✔ a slow search source ends in a refusal at the deadline (63.523568ms)
✔ a secret in the arguments is refused before anything is trailed or fetched (10.745268ms)
✔ over the socket: the server routes web verbs to the service; other roles are refused; no service is web-not-configured (27.114157ms)
✔ busBusiness: the web grant comes from "web" in the resolved tool limit (0.254797ms)
✔ webServices: the business's search-source plug-in and web.searxng var make web.search work; without either it is refused as not configured (31.591688ms)
✔ an ungranted call is refused at once: no admission, no wait, nothing touched (15.890042ms)
✔ over the socket an ungranted caller is dropped by the server timeout and a granted one gets the longer wait (318.992477ms)
✔ a search that never answers is aborted at the deadline, the module sees the signal, and the call is trailed as refused (timeout) (72.42617ms)
✔ a fetch that stalls is cut off at the deadline: the request is destroyed, not left running (92.172282ms)
✔ 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 (15.567853ms)
✔ merge-gate's technical raise is cross-role, goes to the cto, and only merge-gate can use the approval (45.790415ms)
✔ merge-gate has no message.send, and without a domain its raise goes to the delivery arbiter (31.448744ms)
✔ the cto must be able to message merge-gate, or the technical raise is refused (row 133) (28.550936ms)
✔ security-reviewer answers a review with its verdict alone; it holds no message.send (38.876005ms)
ℹ tests 426
ℹ suites 0
ℹ pass 426
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2902.20407
