✔ the role file loads and resolves through loadBusiness (8.685082ms)
✔ the shipped file is exactly the approved list (1.052864ms)
✔ the assistant's authority is message.send and record.write within role (3.90905ms)
✔ the assistant talks to the user and the chief of staff only, and no other shipped role is limited (1.086597ms)
✔ a business grant through limits does not widen the role (2.3436ms)
✔ a launch block whose by is the assistant is refused (2.239156ms)
✔ the instance takes no credential references and no tracker (4.189774ms)
✔ an arbiter whose role definition declares messaging lists is refused, for each kind (6.137932ms)
✔ an arbiter without messaging lists is accepted beside the limited assistant (3.30237ms)
✔ the contract passes work to the chief of staff and directs no one (0.905041ms)
✔ REQ-HARN-2: the assistant holds the web grant, and no other role file does (1.928507ms)
✔ config directory and file path follow MOSAIC_CONFIG (2.027227ms)
✔ the fixture business validates and comes back frozen (6.972024ms)
✔ two instances may share a definition (2.085833ms)
✔ top-level refusals (5.965828ms)
✔ arbiters and projects (14.538458ms)
✔ role instances (4.908096ms)
✔ Vikunja bots (9.95732ms)
✔ a role without Vikunja takes no tracker block (2.656382ms)
✔ credential references match the definition's services (2.94194ms)
✔ launch (8.712645ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1 launch.threadIdleSeconds: absent is the default, a positive integer is used, anything else refuses (4.539941ms)
✔ loadBusiness: file checks (2.237691ms)
✔ loadBusiness: not a regular file (40.209668ms)
✔ loading writes nothing (0.965581ms)
✔ names that are Object.prototype properties don't count as declared (2.732649ms)
✔ the shipped example refuses as written and validates once filled in (0.787969ms)
✔ the role file loads and resolves through loadBusiness (9.047791ms)
✔ the shipped file is exactly the approved list (0.341418ms)
✔ the resolved record matches the approved list, so a widened file fails (2.444786ms)
✔ the chief of staff holds role.launch, message.send, role.end, organization.change, record.write and instance.name; every other action is gated (2.224278ms)
✔ the pm does not hold role.launch (3.76432ms)
✔ a business grant of a gated action through limits does not widen the role (3.004227ms)
✔ a limit that drops role.launch leaves the chief of staff with no launch block (1.666638ms)
✔ a launch block whose by is the pm instance is refused (2.226237ms)
✔ the contract names no duty to talk to the human and the pm contract no launch (0.455694ms)
✔ the instance takes no credential references and no tracker (4.431388ms)
✔ usage errors exit 4 (287.831389ms)
✔ validate: a good business exits 0 and prints instance digests (61.116549ms)
✔ validate: project files (552.490325ms)
✔ validate: missing files and a broken system config (245.282036ms)
✔ validate: credential reference problems exit 2 and name each one (65.226626ms)
✔ validate: a token file inside the repository is refused (70.466949ms)
✔ validate: role definitions come from MOSAIC_ROLES_DIR (200.041091ms)
✔ resolve: prints one instance's record (252.807882ms)
✔ resolve: refusals (358.865828ms)
✔ parse: exactly one of file or env, plus the service's date (3.323229ms)
✔ check: a good file has no problems (1.293018ms)
✔ check never opens the file: a write-only token passes (0.469827ms)
✔ check: file problems (1.232629ms)
✔ check: token files can't live in the repository or dataRoot, even through a linked directory (1.214436ms)
✔ check: dates and environment references (0.602873ms)
✔ each definition loads, with a contract file, and is exactly the approved list (4.270843ms)
✔ an organization file that declares them passes, and each resolves to least privilege (7.921076ms)
✔ the chief of staff launches each one; no other role does (5.373137ms)
✔ a C-suite role can't be made the launcher: launch.by must hold role.launch (2.282329ms)
✔ limits can narrow a C-suite role but never widen it (1.932054ms)
✔ any unknown key, tool, action or version in a role file is refused (0.985801ms)
✔ REQ-WAIT-1: GATED_ONLY is exactly the hard waits; the new actions are in the vocabulary (1.78083ms)
✔ REQ-WAIT-3: every action is routed or a hard wait, never both, and the routed list names only actions (0.276122ms)
✔ REQ-WAIT-3: instance.name is routed under REQ-MSG-2 (1.5), not a hard wait (row 141, sage-0589) (0.155354ms)
✔ REQ-WAIT-2: a role listing a hard wait at either class is refused; the actions that left can be granted (5.23023ms)
✔ REQ-LIMIT-1 schema: every scope unset or zero, adjustable above four, bad values and unknown models refuse (21.35159ms)
✔ REQ-LIMIT-1 counts each exact scope at/over limit, unlimited and old tuple after model reassignment (1.165826ms)
✔ REQ-ROLE-3 writer: atomic validated revision, immutable previous bytes and authenticated actor/old/new receipt (31.956339ms)
✔ REQ-ROLE-3 writer: pre-rename fault leaves old file, post-rename recovery records commit, conflicting recovery refuses (17.740508ms)
✔ REQ-LIMIT-1 / decision145 migration prints only, preserves values, rejects ambiguity, and is idempotent (3.058948ms)
✔ REQ-LIMIT-1 shared settings validates the complete proposed selection and logs exact actor (19.426096ms)
✔ REQ-LIMIT-1 provider is table data: another provider routes separately and aliases share exact counts (1.889515ms)
✔ REQ-ROLE-3 refuses live writer locks, symlink targets and uncertain recovery without changing bytes (11.398636ms)
✔ REQ-PLUG-1 schema: plugins is optional, names known kinds and checked module names (18.91594ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the setter writes plugins through the organization writer and logs old and new names (37.220175ms)
✔ vikunja:19/309 a patch changes only the kinds it names; null removes one kind, explicitly and in the trail (27.108141ms)
✔ vikunja:19/309 an unknown kind (set or removed), a bad module, an empty patch and null on the wrong shape are refused, nothing written (1.439341ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the writer checks the bytes it writes: a Date in plugins is refused there too (4.506151ms)
✔ REQ-PLUG-1 REQ-ROLE-3 a refused setter write throws a code, changes nothing and logs nothing (1.451837ms)
✔ vikunja:19/305 with an exists check, the setter refuses a module no tree file answers to, before anything is written (8.113883ms)
✔ optional project repo is preserved and must be a normalized absolute path (14.372426ms)
✔ loaded business project repo cannot be nested in any declared code checkout (4.051404ms)
✔ path and load (2.914326ms)
✔ refusals (1.550223ms)
✔ record.write is within-role for the eleven approved v2 agents, never gated-only (4.72116ms)
✔ systemVars flattens the validated config (2.907194ms)
✔ precedence: system, business, project, project role, agent (8.199365ms)
✔ limits narrow the definition and never widen it (3.588779ms)
✔ role.launch stays within-role only for the instance the launch block names (7.421711ms)
✔ limits.authority without role.launch leaves the launcher with no launch block (3.033853ms)
✔ limits.authority narrows cross-role actions too (1.175242ms)
✔ classify (1.05163ms)
✔ the record carries what the broker and launcher need (1.040685ms)
✔ digest: key order doesn't matter, any value change does (5.548707ms)
✔ refusals (2.044863ms)
✔ the four shipped version 2 roles load (3.927617ms)
✔ shipped role scopes match addendum B section 2 and the SR runbook (1.011901ms)
✔ shipped authority follows the note's table (2.160845ms)
✔ every role file in roles/ loads through the validator, and a v2 contract exists (0.787884ms)
✔ version 1 files keep loading with no authority (0.964935ms)
✔ the conductor policy isn't a role (0.171037ms)
✔ a missing role file is exit 4, a symbolic link too (0.595394ms)
✔ version 2 refusals (1.723621ms)
✔ authority: closed vocabulary, no gated-only action, no overlap (2.222613ms)
✔ messaging: optional, role definitions and human, never the tester (1.924127ms)
✔ credentials: Gitea scopes (0.689374ms)
✔ credentials: Vikunja scopes are a group-to-verbs map from the grantable list (0.852043ms)
✔ credentials: services (0.510998ms)
✔ contract: a non-empty regular Markdown file beside the role file (0.714357ms)
✔ the pm and the cto check a saved spec against settled decisions and work in flight, and answer with a BLOCK or an accept (3.023004ms)
✔ the chief of staff relays a BLOCK or an accept to the assistant as a reply to the message that carried it (0.704677ms)
✔ the assistant summarizes a spec review in its own words and doesn't repeat the chief of staff's text (0.779553ms)
✔ every key names known layers and a merge rule (0.700708ms)
✔ unknown keys and wrong layers refuse (0.569965ms)
✔ types (1.578013ms)
✔ merge: defaults, then the most specific layer wins (0.23985ms)
✔ merge: limits only narrow, and provenance lists each source (0.280205ms)
✔ merge doesn't change its inputs (0.118329ms)
✔ web.searxng takes https anywhere and http on loopback, so Jason's 127.0.0.1:8888 passes (0.149378ms)
ℹ tests 116
ℹ suites 0
ℹ pass 116
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2171.136226
