✔ the role file loads and resolves through loadBusiness (8.561873ms)
✔ the shipped file is exactly the approved list (1.306182ms)
✔ the assistant's authority is message.send within role and nothing else (3.689303ms)
✔ the assistant talks to the user and the chief of staff only, and no other shipped role is limited (1.103253ms)
✔ a business grant through limits does not widen the role (4.09007ms)
✔ a launch block whose by is the assistant is refused (5.954562ms)
✔ the instance takes no credential references and no tracker (4.746321ms)
✔ the contract passes work to the chief of staff and directs no one (0.816155ms)
✔ config directory and file path follow MOSAIC_CONFIG (2.302997ms)
✔ the fixture business validates and comes back frozen (6.992597ms)
✔ two instances may share a definition (2.753507ms)
✔ top-level refusals (6.98224ms)
✔ arbiters and projects (12.53187ms)
✔ role instances (4.415255ms)
✔ Vikunja bots (10.535515ms)
✔ a role without Vikunja takes no tracker block (5.174273ms)
✔ credential references match the definition's services (3.920098ms)
✔ launch (10.627572ms)
✔ loadBusiness: file checks (2.41745ms)
✔ loadBusiness: not a regular file (46.672344ms)
✔ loading writes nothing (1.271379ms)
✔ names that are Object.prototype properties don't count as declared (3.432286ms)
✔ the shipped example refuses as written and validates once filled in (1.055734ms)
✔ the role file loads and resolves through loadBusiness (9.659896ms)
✔ the shipped file is exactly the approved list (0.558953ms)
✔ the resolved record matches the approved list, so a widened file fails (3.616578ms)
✔ the chief of staff holds role.launch, message.send, role.end and organization.change; every other action is gated (2.338486ms)
✔ the pm does not hold role.launch (3.735546ms)
✔ a business grant of a gated action through limits does not widen the role (3.060774ms)
✔ a limit that drops role.launch leaves the chief of staff with no launch block (2.412819ms)
✔ a launch block whose by is the pm instance is refused (1.934564ms)
✔ the contract names no duty to talk to the human and the pm contract no launch (0.457905ms)
✔ the instance takes no credential references and no tracker (4.130674ms)
✔ usage errors exit 4 (332.323502ms)
✔ validate: a good business exits 0 and prints instance digests (65.629708ms)
✔ validate: project files (347.370137ms)
✔ validate: missing files and a broken system config (262.072883ms)
✔ validate: credential reference problems exit 2 and name each one (74.392562ms)
✔ validate: a token file inside the repository is refused (73.30194ms)
✔ validate: role definitions come from MOSAIC_ROLES_DIR (223.756145ms)
✔ resolve: prints one instance's record (295.387961ms)
✔ resolve: refusals (401.32677ms)
✔ parse: exactly one of file or env, plus the service's date (5.203886ms)
✔ check: a good file has no problems (1.238334ms)
✔ check never opens the file: a write-only token passes (0.464445ms)
✔ check: file problems (1.303127ms)
✔ check: token files can't live in the repository or dataRoot, even through a linked directory (1.175034ms)
✔ check: dates and environment references (0.633458ms)
✔ REQ-LIMIT-1 schema: every scope unset or zero, adjustable above four, bad values and unknown models refuse (22.194976ms)
✔ REQ-LIMIT-1 counts each exact scope at/over limit, unlimited and old tuple after model reassignment (1.160287ms)
✔ REQ-ROLE-3 writer: atomic validated revision, immutable previous bytes and authenticated actor/old/new receipt (29.302232ms)
✔ REQ-ROLE-3 writer: pre-rename fault leaves old file, post-rename recovery records commit, conflicting recovery refuses (15.892012ms)
✔ REQ-LIMIT-1 / decision145 migration prints only, preserves values, rejects ambiguity, and is idempotent (4.534665ms)
✔ REQ-LIMIT-1 shared settings validates the complete proposed selection and logs exact actor (19.76335ms)
✔ REQ-LIMIT-1 provider is table data: another provider routes separately and aliases share exact counts (1.967774ms)
✔ REQ-ROLE-3 refuses live writer locks, symlink targets and uncertain recovery without changing bytes (10.538642ms)
✔ path and load (3.971512ms)
✔ refusals (1.772584ms)
✔ systemVars flattens the validated config (3.951868ms)
✔ precedence: system, business, project, project role, agent (8.302109ms)
✔ limits narrow the definition and never widen it (3.37866ms)
✔ role.launch stays within-role only for the instance the launch block names (8.469044ms)
✔ limits.authority without role.launch leaves the launcher with no launch block (2.896144ms)
✔ limits.authority narrows cross-role actions too (1.488279ms)
✔ classify (1.300713ms)
✔ the record carries what the broker and launcher need (1.523966ms)
✔ digest: key order doesn't matter, any value change does (7.684425ms)
✔ refusals (2.372658ms)
✔ the four shipped version 2 roles load (5.482421ms)
✔ shipped role scopes match addendum B section 2 and the SR runbook (2.146612ms)
✔ shipped authority follows the note's table (1.023964ms)
✔ every role file in roles/ loads through the validator, and a v2 contract exists (1.212693ms)
✔ version 1 files keep loading with no authority (1.267437ms)
✔ the conductor policy isn't a role (0.248898ms)
✔ a missing role file is exit 4, a symbolic link too (0.536987ms)
✔ version 2 refusals (1.633254ms)
✔ authority: closed vocabulary, no gated-only action, no overlap (3.811763ms)
✔ messaging: optional, role definitions and human, never the tester (2.762898ms)
✔ credentials: Gitea scopes (1.712099ms)
✔ credentials: Vikunja scopes are a group-to-verbs map from the grantable list (3.59082ms)
✔ credentials: services (0.839819ms)
✔ contract: a non-empty regular Markdown file beside the role file (1.112948ms)
✔ every key names known layers and a merge rule (1.873041ms)
✔ unknown keys and wrong layers refuse (1.272693ms)
✔ types (3.090585ms)
✔ merge: defaults, then the most specific layer wins (0.511374ms)
✔ merge: limits only narrow, and provenance lists each source (0.504299ms)
✔ merge doesn't change its inputs (0.196935ms)
ℹ tests 88
ℹ suites 0
ℹ pass 88
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2173.776709
