✔ the role file loads and resolves through loadBusiness (4.839701ms)
✔ the shipped file is exactly the approved list (0.74432ms)
✔ the assistant's authority is message.send within role and nothing else (1.763387ms)
✔ the assistant talks to the user and the chief of staff only, and no other shipped role is limited (0.540276ms)
✔ a business grant through limits does not widen the role (1.543799ms)
✔ a launch block whose by is the assistant is refused (1.914491ms)
✔ the instance takes no credential references and no tracker (3.033926ms)
✔ the contract passes work to the chief of staff and directs no one (0.673197ms)
✔ config directory and file path follow MOSAIC_CONFIG (1.245609ms)
✔ the fixture business validates and comes back frozen (3.680605ms)
✔ two instances may share a definition (1.438602ms)
✔ top-level refusals (3.494236ms)
✔ arbiters and projects (5.63428ms)
✔ role instances (3.383333ms)
✔ Vikunja bots (8.985505ms)
✔ a role without Vikunja takes no tracker block (3.189678ms)
✔ credential references match the definition's services (3.636892ms)
✔ launch (10.970991ms)
✔ loadBusiness: file checks (2.348033ms)
✔ loadBusiness: not a regular file (37.879114ms)
✔ loading writes nothing (1.000118ms)
✔ names that are Object.prototype properties don't count as declared (2.615018ms)
✔ the shipped example refuses as written and validates once filled in (0.898654ms)
✔ the role file loads and resolves through loadBusiness (7.539071ms)
✔ the shipped file is exactly the approved list (0.261377ms)
✔ the resolved record matches the approved list, so a widened file fails (2.04923ms)
✔ the chief of staff holds role.launch and message.send; every other action is gated (1.798278ms)
✔ the pm does not hold role.launch (1.910659ms)
✔ a business grant of a gated action through limits does not widen the role (1.862538ms)
✔ a limit that drops role.launch leaves the chief of staff with no launch block (1.469008ms)
✔ a launch block whose by is the pm instance is refused (1.913034ms)
✔ the contract names no duty to talk to the human and the pm contract no launch (0.448979ms)
✔ the instance takes no credential references and no tracker (2.173603ms)
✔ usage errors exit 4 (287.971918ms)
✔ validate: a good business exits 0 and prints instance digests (61.170224ms)
✔ validate: project files (305.841365ms)
✔ validate: missing files and a broken system config (240.151983ms)
✔ validate: credential reference problems exit 2 and name each one (61.496325ms)
✔ validate: a token file inside the repository is refused (63.040676ms)
✔ validate: role definitions come from MOSAIC_ROLES_DIR (182.28775ms)
✔ resolve: prints one instance's record (254.564879ms)
✔ resolve: refusals (358.099738ms)
✔ parse: exactly one of file or env, plus the service's date (2.30941ms)
✔ check: a good file has no problems (0.752086ms)
✔ check never opens the file: a write-only token passes (0.379958ms)
✔ check: file problems (0.771694ms)
✔ check: token files can't live in the repository or dataRoot, even through a linked directory (0.785471ms)
✔ check: dates and environment references (0.38758ms)
✔ REQ-LIMIT-1 schema: every scope unset or zero, adjustable above four, bad values and unknown models refuse (12.600881ms)
✔ REQ-LIMIT-1 counts each exact scope at/over limit, unlimited and old tuple after model reassignment (0.826537ms)
✔ REQ-ROLE-3 writer: atomic validated revision, immutable previous bytes and authenticated actor/old/new receipt (22.288997ms)
✔ REQ-ROLE-3 writer: pre-rename fault leaves old file, post-rename recovery records commit, conflicting recovery refuses (12.419052ms)
✔ REQ-LIMIT-1 / decision145 migration prints only, preserves values, rejects ambiguity, and is idempotent (3.182069ms)
✔ REQ-LIMIT-1 shared settings validates the complete proposed selection and logs exact actor (15.773865ms)
✔ REQ-LIMIT-1 provider is table data: another provider routes separately and aliases share exact counts (1.724633ms)
✔ REQ-ROLE-3 refuses live writer locks, symlink targets and uncertain recovery without changing bytes (9.095975ms)
✔ path and load (2.644116ms)
✔ refusals (1.255024ms)
✔ systemVars flattens the validated config (2.478387ms)
✔ precedence: system, business, project, project role, agent (6.6717ms)
✔ limits narrow the definition and never widen it (3.007382ms)
✔ role.launch stays within-role only for the instance the launch block names (6.349452ms)
✔ limits.authority without role.launch leaves the launcher with no launch block (2.000877ms)
✔ limits.authority narrows cross-role actions too (1.659176ms)
✔ classify (1.148347ms)
✔ the record carries what the broker and launcher need (1.112337ms)
✔ digest: key order doesn't matter, any value change does (7.458042ms)
✔ refusals (2.471322ms)
✔ the four shipped version 2 roles load (3.940803ms)
✔ shipped role scopes match addendum B section 2 and the SR runbook (1.257907ms)
✔ shipped authority follows the note's table (0.684195ms)
✔ every role file in roles/ loads through the validator, and a v2 contract exists (0.613977ms)
✔ version 1 files keep loading with no authority (0.926209ms)
✔ the conductor policy isn't a role (0.171975ms)
✔ a missing role file is exit 4, a symbolic link too (0.336464ms)
✔ version 2 refusals (1.120876ms)
✔ authority: closed vocabulary, no gated-only action, no overlap (3.411446ms)
✔ messaging: optional, role definitions and human, never the tester (1.425993ms)
✔ credentials: Gitea scopes (1.51578ms)
✔ credentials: Vikunja scopes are a group-to-verbs map from the grantable list (1.137129ms)
✔ credentials: services (0.512374ms)
✔ contract: a non-empty regular Markdown file beside the role file (0.680411ms)
✔ every key names known layers and a merge rule (0.744926ms)
✔ unknown keys and wrong layers refuse (0.634188ms)
✔ types (1.634514ms)
✔ merge: defaults, then the most specific layer wins (0.239938ms)
✔ merge: limits only narrow, and provenance lists each source (0.307461ms)
✔ merge doesn't change its inputs (0.121813ms)
ℹ tests 88
ℹ suites 0
ℹ pass 88
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1875.31794
