✔ the role file loads and resolves through loadBusiness (9.644194ms)
✔ the shipped file is exactly the approved list (1.477641ms)
✔ the assistant's authority is message.send and record.write within role (3.652975ms)
✔ the assistant talks to the user and the chief of staff only, and no other shipped role is limited (1.003204ms)
✔ a business grant through limits does not widen the role (2.478372ms)
✔ a launch block whose by is the assistant is refused (3.086056ms)
✔ the instance takes no credential references and no tracker (5.058876ms)
✔ an arbiter whose role definition declares messaging lists is refused, for each kind (9.619153ms)
✔ an arbiter without messaging lists is accepted beside the limited assistant (5.987344ms)
✔ the contract passes work to the chief of staff and directs no one (0.937928ms)
✔ REQ-HARN-2: the assistant holds the web grant, and no other role file does (2.415964ms)
✔ config directory and file path follow MOSAIC_CONFIG (2.086245ms)
✔ the fixture business validates and comes back frozen (7.224296ms)
✔ two instances may share a definition (2.9906ms)
✔ top-level refusals (6.384573ms)
✔ arbiters and projects (10.222232ms)
✔ role instances (4.946098ms)
✔ Vikunja bots (10.870634ms)
✔ a role without Vikunja takes no tracker block (3.961577ms)
✔ credential references match the definition's services (3.262174ms)
✔ launch (10.414741ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1 launch.threadIdleSeconds: absent is the default, a positive integer is used, anything else refuses (6.214347ms)
✔ loadBusiness: file checks (1.888494ms)
✔ loadBusiness: not a regular file (44.244221ms)
✔ loading writes nothing (0.97499ms)
✔ names that are Object.prototype properties don't count as declared (2.656894ms)
✔ the shipped example refuses as written and validates once filled in (0.760674ms)
✔ the role file loads and resolves through loadBusiness (9.585268ms)
✔ the shipped file is exactly the approved list (0.341112ms)
✔ the resolved record matches the approved list, so a widened file fails (3.273445ms)
✔ the chief of staff holds role.launch, message.send, role.end, organization.change and record.write; every other action is gated (2.208487ms)
✔ the pm does not hold role.launch (2.575806ms)
✔ a business grant of a gated action through limits does not widen the role (4.110741ms)
✔ a limit that drops role.launch leaves the chief of staff with no launch block (1.716871ms)
✔ a launch block whose by is the pm instance is refused (4.031821ms)
✔ the contract names no duty to talk to the human and the pm contract no launch (2.018934ms)
✔ the instance takes no credential references and no tracker (5.333989ms)
✔ usage errors exit 4 (296.085726ms)
✔ validate: a good business exits 0 and prints instance digests (62.220262ms)
✔ validate: project files (322.642706ms)
✔ validate: missing files and a broken system config (244.833809ms)
✔ validate: credential reference problems exit 2 and name each one (74.93438ms)
✔ validate: a token file inside the repository is refused (70.166888ms)
✔ validate: role definitions come from MOSAIC_ROLES_DIR (216.322516ms)
✔ resolve: prints one instance's record (289.705827ms)
✔ resolve: refusals (407.941849ms)
✔ parse: exactly one of file or env, plus the service's date (3.666286ms)
✔ check: a good file has no problems (1.101173ms)
✔ check never opens the file: a write-only token passes (0.470671ms)
✔ check: file problems (1.72777ms)
✔ check: token files can't live in the repository or dataRoot, even through a linked directory (1.267379ms)
✔ check: dates and environment references (0.56724ms)
✔ each definition loads, with a contract file, and is exactly the approved list (5.58559ms)
✔ an organization file that declares them passes, and each resolves to least privilege (7.883806ms)
✔ the chief of staff launches each one; no other role does (4.334066ms)
✔ a C-suite role can't be made the launcher: launch.by must hold role.launch (3.049847ms)
✔ limits can narrow a C-suite role but never widen it (2.427135ms)
✔ any unknown key, tool, action or version in a role file is refused (0.814279ms)
✔ REQ-LIMIT-1 schema: every scope unset or zero, adjustable above four, bad values and unknown models refuse (21.49779ms)
✔ REQ-LIMIT-1 counts each exact scope at/over limit, unlimited and old tuple after model reassignment (1.351268ms)
✔ REQ-ROLE-3 writer: atomic validated revision, immutable previous bytes and authenticated actor/old/new receipt (35.755912ms)
✔ REQ-ROLE-3 writer: pre-rename fault leaves old file, post-rename recovery records commit, conflicting recovery refuses (21.090635ms)
✔ REQ-LIMIT-1 / decision145 migration prints only, preserves values, rejects ambiguity, and is idempotent (3.215213ms)
✔ REQ-LIMIT-1 shared settings validates the complete proposed selection and logs exact actor (20.956469ms)
✔ REQ-LIMIT-1 provider is table data: another provider routes separately and aliases share exact counts (1.834378ms)
✔ REQ-ROLE-3 refuses live writer locks, symlink targets and uncertain recovery without changing bytes (11.764824ms)
✔ REQ-PLUG-1 schema: plugins is optional, names known kinds and checked module names (20.309283ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the setter writes plugins through the organization writer and logs old and new names (39.265195ms)
✔ vikunja:19/309 a patch changes only the kinds it names; null removes one kind, explicitly and in the trail (27.484698ms)
✔ 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.506098ms)
✔ REQ-PLUG-1 REQ-ROLE-3 the writer checks the bytes it writes: a Date in plugins is refused there too (4.555323ms)
✔ REQ-PLUG-1 REQ-ROLE-3 a refused setter write throws a code, changes nothing and logs nothing (1.330666ms)
✔ vikunja:19/305 with an exists check, the setter refuses a module no tree file answers to, before anything is written (8.751455ms)
✔ optional project repo is preserved and must be a normalized absolute path (14.45446ms)
✔ loaded business project repo cannot be nested in any declared code checkout (4.144586ms)
✔ path and load (3.023854ms)
✔ refusals (1.692122ms)
✔ record.write is within-role for the eleven approved v2 agents, never gated-only (4.489633ms)
✔ systemVars flattens the validated config (4.905764ms)
✔ precedence: system, business, project, project role, agent (7.595769ms)
✔ limits narrow the definition and never widen it (3.249914ms)
✔ role.launch stays within-role only for the instance the launch block names (9.836806ms)
✔ limits.authority without role.launch leaves the launcher with no launch block (3.080495ms)
✔ limits.authority narrows cross-role actions too (1.866911ms)
✔ classify (1.47643ms)
✔ the record carries what the broker and launcher need (1.279174ms)
✔ digest: key order doesn't matter, any value change does (6.305039ms)
✔ refusals (2.845986ms)
✔ the four shipped version 2 roles load (3.916325ms)
✔ shipped role scopes match addendum B section 2 and the SR runbook (1.2659ms)
✔ shipped authority follows the note's table (0.907068ms)
✔ every role file in roles/ loads through the validator, and a v2 contract exists (1.333268ms)
✔ version 1 files keep loading with no authority (1.160053ms)
✔ the conductor policy isn't a role (0.219136ms)
✔ a missing role file is exit 4, a symbolic link too (0.539474ms)
✔ version 2 refusals (2.046353ms)
✔ authority: closed vocabulary, no gated-only action, no overlap (2.676631ms)
✔ messaging: optional, role definitions and human, never the tester (2.343952ms)
✔ credentials: Gitea scopes (1.136836ms)
✔ credentials: Vikunja scopes are a group-to-verbs map from the grantable list (1.249426ms)
✔ credentials: services (0.657575ms)
✔ contract: a non-empty regular Markdown file beside the role file (0.960722ms)
✔ every key names known layers and a merge rule (1.33129ms)
✔ unknown keys and wrong layers refuse (1.044966ms)
✔ types (3.043081ms)
✔ merge: defaults, then the most specific layer wins (0.420217ms)
✔ merge: limits only narrow, and provenance lists each source (0.513945ms)
✔ merge doesn't change its inputs (0.217771ms)
✔ web.searxng takes https anywhere and http on loopback, so Jason's 127.0.0.1:8888 passes (0.302986ms)
ℹ tests 109
ℹ suites 0
ℹ pass 109
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2067.505328
