✔ the role file loads and resolves through loadBusiness (8.043033ms)
✔ the shipped file is exactly the approved list (1.001872ms)
✔ the assistant's authority is message.send within role and nothing else (2.711033ms)
✔ the assistant talks to the user and the chief of staff only, and no other shipped role is limited (0.874024ms)
✔ a business grant through limits does not widen the role (2.227726ms)
✔ a launch block whose by is the assistant is refused (2.190429ms)
✔ the instance takes no credential references and no tracker (3.536533ms)
✔ an arbiter whose role definition declares messaging lists is refused, for each kind (5.795493ms)
✔ an arbiter without messaging lists is accepted beside the limited assistant (3.005151ms)
✔ the contract passes work to the chief of staff and directs no one (0.864618ms)
✔ REQ-HARN-2: the assistant holds the web grant, and no other role file does (1.878269ms)
✔ config directory and file path follow MOSAIC_CONFIG (1.886217ms)
✔ the fixture business validates and comes back frozen (6.016227ms)
✔ two instances may share a definition (1.901073ms)
✔ top-level refusals (6.198403ms)
✔ arbiters and projects (10.804016ms)
✔ role instances (6.292671ms)
✔ Vikunja bots (6.969703ms)
✔ a role without Vikunja takes no tracker block (2.406215ms)
✔ credential references match the definition's services (3.003536ms)
✔ launch (8.48723ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1 launch.threadIdleSeconds: absent is the default, a positive integer is used, anything else refuses (3.807789ms)
✔ loadBusiness: file checks (1.677635ms)
✔ loadBusiness: not a regular file (36.843811ms)
✔ loading writes nothing (0.941931ms)
✔ names that are Object.prototype properties don't count as declared (2.916033ms)
✔ the shipped example refuses as written and validates once filled in (0.716786ms)
✔ the role file loads and resolves through loadBusiness (8.759383ms)
✔ the shipped file is exactly the approved list (0.305038ms)
✔ the resolved record matches the approved list, so a widened file fails (2.376743ms)
✔ the chief of staff holds role.launch, message.send, role.end and organization.change; every other action is gated (2.057077ms)
✔ the pm does not hold role.launch (2.159769ms)
✔ a business grant of a gated action through limits does not widen the role (2.575076ms)
✔ a limit that drops role.launch leaves the chief of staff with no launch block (1.583424ms)
✔ a launch block whose by is the pm instance is refused (3.804331ms)
✔ the contract names no duty to talk to the human and the pm contract no launch (0.640732ms)
✔ the instance takes no credential references and no tracker (3.018994ms)
✔ usage errors exit 4 (279.833645ms)
✔ validate: a good business exits 0 and prints instance digests (69.328193ms)
✔ validate: project files (313.978811ms)
✔ validate: missing files and a broken system config (231.550561ms)
✔ validate: credential reference problems exit 2 and name each one (65.599967ms)
✔ validate: a token file inside the repository is refused (61.115391ms)
✔ validate: role definitions come from MOSAIC_ROLES_DIR (179.913893ms)
✔ resolve: prints one instance's record (240.671593ms)
✔ resolve: refusals (355.022447ms)
✔ parse: exactly one of file or env, plus the service's date (3.462329ms)
✔ check: a good file has no problems (1.189923ms)
✔ check never opens the file: a write-only token passes (0.470262ms)
✔ check: file problems (1.200147ms)
✔ check: token files can't live in the repository or dataRoot, even through a linked directory (1.300335ms)
✔ check: dates and environment references (0.551186ms)
✔ each definition loads, with a contract file, and is exactly the approved list (3.599758ms)
✔ an organization file that declares them passes, and each resolves to least privilege (6.202594ms)
✔ the chief of staff launches each one; no other role does (4.023768ms)
✔ a C-suite role can't be made the launcher: launch.by must hold role.launch (2.649727ms)
✔ limits can narrow a C-suite role but never widen it (1.833374ms)
✔ any unknown key, tool, action or version in a role file is refused (0.641654ms)
✔ REQ-LIMIT-1 schema: every scope unset or zero, adjustable above four, bad values and unknown models refuse (20.97248ms)
✔ REQ-LIMIT-1 counts each exact scope at/over limit, unlimited and old tuple after model reassignment (1.067598ms)
✔ REQ-ROLE-3 writer: atomic validated revision, immutable previous bytes and authenticated actor/old/new receipt (31.38596ms)
✔ REQ-ROLE-3 writer: pre-rename fault leaves old file, post-rename recovery records commit, conflicting recovery refuses (18.89812ms)
✔ REQ-LIMIT-1 / decision145 migration prints only, preserves values, rejects ambiguity, and is idempotent (3.02753ms)
✔ REQ-LIMIT-1 shared settings validates the complete proposed selection and logs exact actor (22.376812ms)
✔ REQ-LIMIT-1 provider is table data: another provider routes separately and aliases share exact counts (1.789565ms)
✔ REQ-ROLE-3 refuses live writer locks, symlink targets and uncertain recovery without changing bytes (11.530564ms)
✔ REQ-PLUG-1 schema: plugins is optional, names known kinds and checked module names (16.312868ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the setter writes plugins through the organization writer and logs old and new names (37.163307ms)
✔ vikunja:19/309 a patch changes only the kinds it names; null removes one kind, explicitly and in the trail (25.922742ms)
✔ vikunja:19/309 an unknown kind (set or removed), a bad module, an empty patch and null on the wrong shape are refused, nothing written (1.413894ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the writer checks the bytes it writes: a Date in plugins is refused there too (4.283113ms)
✔ REQ-PLUG-1 REQ-ROLE-3 a refused setter write throws a code, changes nothing and logs nothing (1.397483ms)
✔ vikunja:19/305 with an exists check, the setter refuses a module no tree file answers to, before anything is written (8.066568ms)
✔ path and load (2.763126ms)
✔ refusals (1.6338ms)
✔ systemVars flattens the validated config (2.676769ms)
✔ precedence: system, business, project, project role, agent (8.532912ms)
✔ limits narrow the definition and never widen it (3.261446ms)
✔ role.launch stays within-role only for the instance the launch block names (8.772752ms)
✔ limits.authority without role.launch leaves the launcher with no launch block (2.117875ms)
✔ limits.authority narrows cross-role actions too (1.280403ms)
✔ classify (1.177068ms)
✔ the record carries what the broker and launcher need (1.09752ms)
✔ digest: key order doesn't matter, any value change does (6.060439ms)
✔ refusals (2.201495ms)
✔ the four shipped version 2 roles load (4.253594ms)
✔ shipped role scopes match addendum B section 2 and the SR runbook (1.619681ms)
✔ shipped authority follows the note's table (1.43404ms)
✔ every role file in roles/ loads through the validator, and a v2 contract exists (1.38113ms)
✔ version 1 files keep loading with no authority (1.278704ms)
✔ the conductor policy isn't a role (0.440026ms)
✔ a missing role file is exit 4, a symbolic link too (0.548148ms)
✔ version 2 refusals (2.015814ms)
✔ authority: closed vocabulary, no gated-only action, no overlap (2.86459ms)
✔ messaging: optional, role definitions and human, never the tester (5.27033ms)
✔ credentials: Gitea scopes (1.126047ms)
✔ credentials: Vikunja scopes are a group-to-verbs map from the grantable list (1.553494ms)
✔ credentials: services (0.708635ms)
✔ contract: a non-empty regular Markdown file beside the role file (1.034819ms)
✔ every key names known layers and a merge rule (1.162112ms)
✔ unknown keys and wrong layers refuse (1.000644ms)
✔ types (3.031898ms)
✔ merge: defaults, then the most specific layer wins (0.578868ms)
✔ merge: limits only narrow, and provenance lists each source (0.459579ms)
✔ merge doesn't change its inputs (0.179423ms)
✔ web.searxng takes https anywhere and http on loopback, so Jason's 127.0.0.1:8888 passes (0.669739ms)
ℹ tests 106
ℹ suites 0
ℹ pass 106
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1878.302293
