✔ the role file loads and resolves through loadBusiness (7.789735ms)
✔ the shipped file is exactly the approved list (1.010614ms)
✔ the assistant's authority is message.send within role and nothing else (2.606629ms)
✔ the assistant talks to the user and the chief of staff only, and no other shipped role is limited (0.896788ms)
✔ a business grant through limits does not widen the role (2.404013ms)
✔ a launch block whose by is the assistant is refused (1.923749ms)
✔ the instance takes no credential references and no tracker (3.637378ms)
✔ the contract passes work to the chief of staff and directs no one (0.810589ms)
✔ config directory and file path follow MOSAIC_CONFIG (1.376543ms)
✔ the fixture business validates and comes back frozen (5.528553ms)
✔ two instances may share a definition (2.404309ms)
✔ top-level refusals (5.466705ms)
✔ arbiters and projects (8.475247ms)
✔ role instances (5.015159ms)
✔ Vikunja bots (8.321229ms)
✔ a role without Vikunja takes no tracker block (2.674738ms)
✔ credential references match the definition's services (3.834921ms)
✔ launch (10.898213ms)
✔ loadBusiness: file checks (1.986603ms)
✔ loadBusiness: not a regular file (44.663331ms)
✔ loading writes nothing (1.612377ms)
✔ names that are Object.prototype properties don't count as declared (3.32128ms)
✔ the shipped example refuses as written and validates once filled in (1.161375ms)
✔ the role file loads and resolves through loadBusiness (8.937896ms)
✔ the shipped file is exactly the approved list (0.332306ms)
✔ the resolved record matches the approved list, so a widened file fails (2.352654ms)
✔ the chief of staff holds role.launch, message.send, role.end and organization.change; every other action is gated (2.003787ms)
✔ the pm does not hold role.launch (2.040342ms)
✔ a business grant of a gated action through limits does not widen the role (2.730758ms)
✔ a limit that drops role.launch leaves the chief of staff with no launch block (1.569037ms)
✔ a launch block whose by is the pm instance is refused (2.223948ms)
✔ the contract names no duty to talk to the human and the pm contract no launch (0.450326ms)
✔ the instance takes no credential references and no tracker (3.312749ms)
✔ usage errors exit 4 (298.937403ms)
✔ validate: a good business exits 0 and prints instance digests (64.907263ms)
✔ validate: project files (302.97894ms)
✔ validate: missing files and a broken system config (237.546921ms)
✔ validate: credential reference problems exit 2 and name each one (63.854228ms)
✔ validate: a token file inside the repository is refused (59.738486ms)
✔ validate: role definitions come from MOSAIC_ROLES_DIR (177.174476ms)
✔ resolve: prints one instance's record (254.341173ms)
✔ resolve: refusals (362.006449ms)
✔ parse: exactly one of file or env, plus the service's date (3.271512ms)
✔ check: a good file has no problems (1.046037ms)
✔ check never opens the file: a write-only token passes (0.438583ms)
✔ check: file problems (1.143927ms)
✔ check: token files can't live in the repository or dataRoot, even through a linked directory (1.499187ms)
✔ check: dates and environment references (0.532974ms)
✔ REQ-LIMIT-1 schema: every scope unset or zero, adjustable above four, bad values and unknown models refuse (20.190428ms)
✔ REQ-LIMIT-1 counts each exact scope at/over limit, unlimited and old tuple after model reassignment (1.055917ms)
✔ REQ-ROLE-3 writer: atomic validated revision, immutable previous bytes and authenticated actor/old/new receipt (26.367974ms)
✔ REQ-ROLE-3 writer: pre-rename fault leaves old file, post-rename recovery records commit, conflicting recovery refuses (14.372404ms)
✔ REQ-LIMIT-1 / decision145 migration prints only, preserves values, rejects ambiguity, and is idempotent (2.908539ms)
✔ REQ-LIMIT-1 shared settings validates the complete proposed selection and logs exact actor (21.862083ms)
✔ REQ-LIMIT-1 provider is table data: another provider routes separately and aliases share exact counts (2.027261ms)
✔ REQ-ROLE-3 refuses live writer locks, symlink targets and uncertain recovery without changing bytes (11.355316ms)
✔ REQ-PLUG-1 schema: plugins is optional, names known kinds and checked module names (14.819485ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the setter writes plugins through the organization writer and logs old and new names (37.217264ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the writer checks the bytes it writes: a Date in plugins is refused there too (4.737518ms)
✔ REQ-PLUG-1 REQ-ROLE-3 a refused setter write throws a code, changes nothing and logs nothing (1.67011ms)
✔ path and load (2.958193ms)
✔ refusals (1.654248ms)
✔ systemVars flattens the validated config (2.514785ms)
✔ precedence: system, business, project, project role, agent (5.281174ms)
✔ limits narrow the definition and never widen it (2.80785ms)
✔ role.launch stays within-role only for the instance the launch block names (8.878825ms)
✔ limits.authority without role.launch leaves the launcher with no launch block (4.262562ms)
✔ limits.authority narrows cross-role actions too (1.500213ms)
✔ classify (1.546821ms)
✔ the record carries what the broker and launcher need (1.477034ms)
✔ digest: key order doesn't matter, any value change does (7.0311ms)
✔ refusals (2.180314ms)
✔ the four shipped version 2 roles load (5.020656ms)
✔ shipped role scopes match addendum B section 2 and the SR runbook (1.515809ms)
✔ shipped authority follows the note's table (1.462214ms)
✔ every role file in roles/ loads through the validator, and a v2 contract exists (1.075023ms)
✔ version 1 files keep loading with no authority (1.236948ms)
✔ the conductor policy isn't a role (0.276326ms)
✔ a missing role file is exit 4, a symbolic link too (0.67357ms)
✔ version 2 refusals (1.729544ms)
✔ authority: closed vocabulary, no gated-only action, no overlap (3.304955ms)
✔ messaging: optional, role definitions and human, never the tester (2.272802ms)
✔ credentials: Gitea scopes (1.359058ms)
✔ credentials: Vikunja scopes are a group-to-verbs map from the grantable list (1.008686ms)
✔ credentials: services (0.612416ms)
✔ contract: a non-empty regular Markdown file beside the role file (0.81672ms)
✔ every key names known layers and a merge rule (1.275784ms)
✔ unknown keys and wrong layers refuse (0.948922ms)
✔ types (2.897403ms)
✔ merge: defaults, then the most specific layer wins (0.434177ms)
✔ merge: limits only narrow, and provenance lists each source (0.517546ms)
✔ merge doesn't change its inputs (0.629634ms)
ℹ tests 92
ℹ suites 0
ℹ pass 92
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1901.561197
