✔ the role file loads and resolves through loadBusiness (7.013486ms)
✔ the shipped file is exactly the approved list (1.017721ms)
✔ the assistant's authority is message.send within role and nothing else (2.758633ms)
✔ the assistant talks to the user and the chief of staff only, and no other shipped role is limited (0.970235ms)
✔ a business grant through limits does not widen the role (2.137685ms)
✔ a launch block whose by is the assistant is refused (2.228473ms)
✔ the instance takes no credential references and no tracker (4.988525ms)
✔ an arbiter whose role definition declares messaging lists is refused, for each kind (8.182541ms)
✔ an arbiter without messaging lists is accepted beside the limited assistant (3.087549ms)
✔ the contract passes work to the chief of staff and directs no one (0.794808ms)
✔ config directory and file path follow MOSAIC_CONFIG (1.696288ms)
✔ the fixture business validates and comes back frozen (5.395263ms)
✔ two instances may share a definition (1.787054ms)
✔ top-level refusals (5.608825ms)
✔ arbiters and projects (9.533323ms)
✔ role instances (4.488864ms)
✔ Vikunja bots (9.988719ms)
✔ a role without Vikunja takes no tracker block (3.981235ms)
✔ credential references match the definition's services (4.485022ms)
✔ launch (10.255825ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1 launch.threadIdleSeconds: absent is the default, a positive integer is used, anything else refuses (5.153132ms)
✔ loadBusiness: file checks (2.036016ms)
✔ loadBusiness: not a regular file (43.529269ms)
✔ loading writes nothing (1.001334ms)
✔ names that are Object.prototype properties don't count as declared (2.835422ms)
✔ the shipped example refuses as written and validates once filled in (0.73839ms)
✔ the role file loads and resolves through loadBusiness (7.539373ms)
✔ the shipped file is exactly the approved list (0.303623ms)
✔ the resolved record matches the approved list, so a widened file fails (2.363825ms)
✔ the chief of staff holds role.launch, message.send, role.end and organization.change; every other action is gated (2.131992ms)
✔ the pm does not hold role.launch (2.714947ms)
✔ a business grant of a gated action through limits does not widen the role (2.225013ms)
✔ a limit that drops role.launch leaves the chief of staff with no launch block (1.669963ms)
✔ a launch block whose by is the pm instance is refused (2.179706ms)
✔ the contract names no duty to talk to the human and the pm contract no launch (0.481765ms)
✔ the instance takes no credential references and no tracker (3.071405ms)
✔ usage errors exit 4 (303.871635ms)
✔ validate: a good business exits 0 and prints instance digests (62.727954ms)
✔ validate: project files (314.23983ms)
✔ validate: missing files and a broken system config (227.148509ms)
✔ validate: credential reference problems exit 2 and name each one (61.90647ms)
✔ validate: a token file inside the repository is refused (61.190735ms)
✔ validate: role definitions come from MOSAIC_ROLES_DIR (184.076374ms)
✔ resolve: prints one instance's record (244.600911ms)
✔ resolve: refusals (365.360754ms)
✔ parse: exactly one of file or env, plus the service's date (3.282092ms)
✔ check: a good file has no problems (0.990988ms)
✔ check never opens the file: a write-only token passes (0.498271ms)
✔ check: file problems (1.265686ms)
✔ check: token files can't live in the repository or dataRoot, even through a linked directory (1.189836ms)
✔ check: dates and environment references (0.547118ms)
✔ each definition loads, with a contract file, and is exactly the approved list (4.276485ms)
✔ an organization file that declares them passes, and each resolves to least privilege (7.565637ms)
✔ the chief of staff launches each one; no other role does (4.905878ms)
✔ a C-suite role can't be made the launcher: launch.by must hold role.launch (3.074685ms)
✔ limits can narrow a C-suite role but never widen it (2.413411ms)
✔ any unknown key, tool, action or version in a role file is refused (0.749307ms)
✔ REQ-LIMIT-1 schema: every scope unset or zero, adjustable above four, bad values and unknown models refuse (20.583388ms)
✔ REQ-LIMIT-1 counts each exact scope at/over limit, unlimited and old tuple after model reassignment (1.150814ms)
✔ REQ-ROLE-3 writer: atomic validated revision, immutable previous bytes and authenticated actor/old/new receipt (30.398051ms)
✔ REQ-ROLE-3 writer: pre-rename fault leaves old file, post-rename recovery records commit, conflicting recovery refuses (19.523863ms)
✔ REQ-LIMIT-1 / decision145 migration prints only, preserves values, rejects ambiguity, and is idempotent (3.552575ms)
✔ REQ-LIMIT-1 shared settings validates the complete proposed selection and logs exact actor (18.111688ms)
✔ REQ-LIMIT-1 provider is table data: another provider routes separately and aliases share exact counts (1.944348ms)
✔ REQ-ROLE-3 refuses live writer locks, symlink targets and uncertain recovery without changing bytes (9.89491ms)
✔ REQ-PLUG-1 schema: plugins is optional, names known kinds and checked module names (14.226184ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the setter writes plugins through the organization writer and logs old and new names (42.969111ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the writer checks the bytes it writes: a Date in plugins is refused there too (5.825785ms)
✔ REQ-PLUG-1 REQ-ROLE-3 a refused setter write throws a code, changes nothing and logs nothing (2.010915ms)
✔ path and load (2.757416ms)
✔ refusals (1.578312ms)
✔ systemVars flattens the validated config (3.676285ms)
✔ precedence: system, business, project, project role, agent (7.269016ms)
✔ limits narrow the definition and never widen it (3.312531ms)
✔ role.launch stays within-role only for the instance the launch block names (9.436514ms)
✔ limits.authority without role.launch leaves the launcher with no launch block (3.311528ms)
✔ limits.authority narrows cross-role actions too (1.552642ms)
✔ classify (1.329576ms)
✔ the record carries what the broker and launcher need (1.420339ms)
✔ digest: key order doesn't matter, any value change does (5.97617ms)
✔ refusals (2.119726ms)
✔ the four shipped version 2 roles load (4.313771ms)
✔ shipped role scopes match addendum B section 2 and the SR runbook (1.528072ms)
✔ shipped authority follows the note's table (1.494343ms)
✔ every role file in roles/ loads through the validator, and a v2 contract exists (1.528304ms)
✔ version 1 files keep loading with no authority (1.334174ms)
✔ the conductor policy isn't a role (0.256755ms)
✔ a missing role file is exit 4, a symbolic link too (0.610671ms)
✔ version 2 refusals (2.495921ms)
✔ authority: closed vocabulary, no gated-only action, no overlap (3.077829ms)
✔ messaging: optional, role definitions and human, never the tester (2.60194ms)
✔ credentials: Gitea scopes (2.151533ms)
✔ credentials: Vikunja scopes are a group-to-verbs map from the grantable list (2.193417ms)
✔ credentials: services (1.308379ms)
✔ contract: a non-empty regular Markdown file beside the role file (1.052632ms)
✔ every key names known layers and a merge rule (1.344769ms)
✔ unknown keys and wrong layers refuse (1.027882ms)
✔ types (2.829592ms)
✔ merge: defaults, then the most specific layer wins (0.600248ms)
✔ merge: limits only narrow, and provenance lists each source (0.471703ms)
✔ merge doesn't change its inputs (0.398507ms)
ℹ tests 101
ℹ suites 0
ℹ pass 101
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1900.282934
