✔ the role file loads and resolves through loadBusiness (7.586181ms)
✔ the shipped file is exactly the approved list (1.022329ms)
✔ the assistant's authority is message.send within role and nothing else (2.914995ms)
✔ the assistant talks to the user and the chief of staff only, and no other shipped role is limited (1.032619ms)
✔ a business grant through limits does not widen the role (2.177774ms)
✔ a launch block whose by is the assistant is refused (2.740487ms)
✔ the instance takes no credential references and no tracker (4.720853ms)
✔ the contract passes work to the chief of staff and directs no one (0.773443ms)
✔ config directory and file path follow MOSAIC_CONFIG (2.033784ms)
✔ the fixture business validates and comes back frozen (6.901944ms)
✔ two instances may share a definition (2.432135ms)
✔ top-level refusals (7.654051ms)
✔ arbiters and projects (18.41074ms)
✔ role instances (5.090809ms)
✔ Vikunja bots (9.826458ms)
✔ a role without Vikunja takes no tracker block (2.366172ms)
✔ credential references match the definition's services (2.572724ms)
✔ launch (8.576527ms)
✔ loadBusiness: file checks (2.535379ms)
✔ loadBusiness: not a regular file (38.624819ms)
✔ loading writes nothing (1.065735ms)
✔ names that are Object.prototype properties don't count as declared (2.834578ms)
✔ the shipped example refuses as written and validates once filled in (0.971575ms)
✔ the role file loads and resolves through loadBusiness (10.062462ms)
✔ the shipped file is exactly the approved list (0.586963ms)
✔ the resolved record matches the approved list, so a widened file fails (3.254258ms)
✔ the chief of staff holds role.launch, message.send, role.end and organization.change; every other action is gated (2.376333ms)
✔ the pm does not hold role.launch (2.621539ms)
✔ a business grant of a gated action through limits does not widen the role (4.151907ms)
✔ a limit that drops role.launch leaves the chief of staff with no launch block (1.803574ms)
✔ a launch block whose by is the pm instance is refused (4.090635ms)
✔ the contract names no duty to talk to the human and the pm contract no launch (0.835806ms)
✔ the instance takes no credential references and no tracker (6.045833ms)
✔ usage errors exit 4 (303.194773ms)
✔ validate: a good business exits 0 and prints instance digests (64.223477ms)
✔ validate: project files (342.805515ms)
✔ validate: missing files and a broken system config (232.032411ms)
✔ validate: credential reference problems exit 2 and name each one (80.906746ms)
✔ validate: a token file inside the repository is refused (63.295955ms)
✔ validate: role definitions come from MOSAIC_ROLES_DIR (187.144858ms)
✔ resolve: prints one instance's record (253.363497ms)
✔ resolve: refusals (372.32738ms)
✔ parse: exactly one of file or env, plus the service's date (3.693913ms)
✔ check: a good file has no problems (1.118862ms)
✔ check never opens the file: a write-only token passes (0.564311ms)
✔ check: file problems (1.392903ms)
✔ check: token files can't live in the repository or dataRoot, even through a linked directory (1.579512ms)
✔ check: dates and environment references (0.57465ms)
✔ REQ-LIMIT-1 schema: every scope unset or zero, adjustable above four, bad values and unknown models refuse (19.326088ms)
✔ REQ-LIMIT-1 counts each exact scope at/over limit, unlimited and old tuple after model reassignment (1.187445ms)
✔ REQ-ROLE-3 writer: atomic validated revision, immutable previous bytes and authenticated actor/old/new receipt (36.980258ms)
✔ REQ-ROLE-3 writer: pre-rename fault leaves old file, post-rename recovery records commit, conflicting recovery refuses (19.302357ms)
✔ REQ-LIMIT-1 / decision145 migration prints only, preserves values, rejects ambiguity, and is idempotent (3.166119ms)
✔ REQ-LIMIT-1 shared settings validates the complete proposed selection and logs exact actor (17.293598ms)
✔ REQ-LIMIT-1 provider is table data: another provider routes separately and aliases share exact counts (1.966951ms)
✔ REQ-ROLE-3 refuses live writer locks, symlink targets and uncertain recovery without changing bytes (9.051308ms)
✔ REQ-PLUG-1 schema: plugins is optional, names known kinds and checked module names (20.014382ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the setter writes plugins through the organization writer and logs old and new names (38.330928ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the writer checks the bytes it writes: a Date in plugins is refused there too (5.164212ms)
✔ REQ-PLUG-1 REQ-ROLE-3 a refused setter write throws a code, changes nothing and logs nothing (1.649419ms)
✔ path and load (2.859918ms)
✔ refusals (1.606302ms)
✔ systemVars flattens the validated config (3.227267ms)
✔ precedence: system, business, project, project role, agent (10.515201ms)
✔ limits narrow the definition and never widen it (4.122133ms)
✔ role.launch stays within-role only for the instance the launch block names (13.471865ms)
✔ limits.authority without role.launch leaves the launcher with no launch block (2.756396ms)
✔ limits.authority narrows cross-role actions too (1.308205ms)
✔ classify (1.459872ms)
✔ the record carries what the broker and launcher need (1.261604ms)
✔ digest: key order doesn't matter, any value change does (6.221608ms)
✔ refusals (2.162865ms)
✔ the four shipped version 2 roles load (5.069106ms)
✔ shipped role scopes match addendum B section 2 and the SR runbook (1.826168ms)
✔ shipped authority follows the note's table (1.415432ms)
✔ every role file in roles/ loads through the validator, and a v2 contract exists (1.044942ms)
✔ version 1 files keep loading with no authority (1.467212ms)
✔ the conductor policy isn't a role (0.285905ms)
✔ a missing role file is exit 4, a symbolic link too (0.534451ms)
✔ version 2 refusals (2.174865ms)
✔ authority: closed vocabulary, no gated-only action, no overlap (4.479532ms)
✔ messaging: optional, role definitions and human, never the tester (4.607355ms)
✔ credentials: Gitea scopes (3.653348ms)
✔ credentials: Vikunja scopes are a group-to-verbs map from the grantable list (2.160749ms)
✔ credentials: services (0.848254ms)
✔ contract: a non-empty regular Markdown file beside the role file (1.071177ms)
✔ every key names known layers and a merge rule (1.439082ms)
✔ unknown keys and wrong layers refuse (1.103969ms)
✔ types (3.375643ms)
✔ merge: defaults, then the most specific layer wins (0.661578ms)
✔ merge: limits only narrow, and provenance lists each source (0.619154ms)
✔ merge doesn't change its inputs (0.191243ms)
ℹ tests 92
ℹ suites 0
ℹ pass 92
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1999.351121
