Unclaimed files left in the canonical checkout. Inventory: canonical-cleanup-inventory.md (commit-as-evidence groups). detect-secrets scan clean on 2026-11-02: hits are sha256 pins, git object ids, test sentinels already in tracked tests and unit-file lines.
170 lines
10 KiB
Plaintext
170 lines
10 KiB
Plaintext
== packages/business rc=1
|
||
✔ the role file loads and resolves through loadBusiness (5.583301ms)
|
||
✔ the shipped file is exactly the approved list (0.688285ms)
|
||
✔ the assistant's authority is message.send and record.write within role (1.717813ms)
|
||
✔ the assistant talks to the user and the chief of staff only, and no other shipped role is limited (0.541087ms)
|
||
✔ a business grant through limits does not widen the role (1.379757ms)
|
||
✔ a launch block whose by is the assistant is refused (1.439949ms)
|
||
✔ the instance takes no credential references and no tracker (2.165869ms)
|
||
✔ an arbiter whose role definition declares messaging lists is refused, for each kind (3.180689ms)
|
||
✔ an arbiter without messaging lists is accepted beside the limited assistant (1.803139ms)
|
||
✔ the contract passes work to the chief of staff and directs no one (0.561832ms)
|
||
✔ REQ-HARN-2: the assistant holds the web grant, and no other role file does (1.15051ms)
|
||
✔ record.write is within-role for the eleven approved v2 agents, never gated-only (2.449245ms)
|
||
✔ the four shipped version 2 roles load (2.687521ms)
|
||
✔ shipped role scopes match addendum B section 2 and the SR runbook (0.845386ms)
|
||
✔ shipped authority follows the note's table (1.828436ms)
|
||
✔ every role file in roles/ loads through the validator, and a v2 contract exists (0.828797ms)
|
||
✔ version 1 files keep loading with no authority (0.825322ms)
|
||
✔ the conductor policy isn't a role (0.170971ms)
|
||
✔ a missing role file is exit 4, a symbolic link too (0.35067ms)
|
||
✔ version 2 refusals (1.56434ms)
|
||
✔ authority: closed vocabulary, no gated-only action, no overlap (1.619414ms)
|
||
✔ messaging: optional, role definitions and human, never the tester (1.449188ms)
|
||
✔ credentials: Gitea scopes (0.669178ms)
|
||
✔ credentials: Vikunja scopes are a group-to-verbs map from the grantable list (0.798957ms)
|
||
✔ credentials: services (0.445972ms)
|
||
✔ contract: a non-empty regular Markdown file beside the role file (0.596189ms)
|
||
✖ both definitions load, with a contract file, and are exactly the approved lists (2.912591ms)
|
||
✔ security-reviewer has no write or shell tool and classifies only the verdict as its own (4.482076ms)
|
||
✔ merge-gate's only grant is git.merge.protected cross-role, and it has no write tool (1.685134ms)
|
||
✖ neither role can be an arbiter: its messaging lists refuse the business file (row 133) (1.347398ms)
|
||
✔ every role contract carries the proactive line in its Authority section (0.670451ms)
|
||
✔ pm and chief-of-staff say where a raise goes under REQ-DEC-2 (0.524632ms)
|
||
ℹ tests 32
|
||
ℹ suites 0
|
||
ℹ pass 30
|
||
ℹ fail 2
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 85.570497
|
||
|
||
✖ failing tests:
|
||
|
||
test at tests/workflow-roles.test.mjs:50:1
|
||
✖ both definitions load, with a contract file, and are exactly the approved lists (2.912591ms)
|
||
AssertionError [ERR_ASSERTION]: security-reviewer
|
||
+ actual - expected
|
||
... Skipped lines
|
||
|
||
{
|
||
authority: {
|
||
crossRole: [],
|
||
withinRole: [
|
||
'review.verdict'
|
||
...
|
||
credentials: [],
|
||
- messaging: {
|
||
- receiveFrom: [
|
||
- 'human',
|
||
- 'chief-of-staff',
|
||
- 'pm',
|
||
- 'cto',
|
||
- 'coder'
|
||
- ],
|
||
- sendTo: [
|
||
- 'human',
|
||
- 'chief-of-staff',
|
||
- 'pm',
|
||
- 'cto',
|
||
- 'coder'
|
||
- ]
|
||
- },
|
||
name: 'security-reviewer',
|
||
network: 'api-only',
|
||
roleVersion: 2,
|
||
tools: [
|
||
'read',
|
||
|
||
at TestContext.<anonymous> (file:///home/jwoltje/dewey-scratch/r149/packages/business/tests/workflow-roles.test.mjs:58:12)
|
||
at Test.runInAsyncScope (node:async_hooks:226:14)
|
||
at Test.run (node:internal/test_runner/test:1402:25)
|
||
at Test.start (node:internal/test_runner/test:1262:17)
|
||
at startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17) {
|
||
generatedMessage: false,
|
||
code: 'ERR_ASSERTION',
|
||
actual: { roleVersion: 2, name: 'security-reviewer', contract: 'security-reviewer.md', tools: [ 'read', 'grep', 'find', 'ls' ], network: 'api-only', authority: { withinRole: [Array], crossRole: [] }, credentials: [] },
|
||
expected: { roleVersion: 2, name: 'security-reviewer', contract: 'security-reviewer.md', tools: [ 'read', 'grep', 'find', 'ls' ], network: 'api-only', authority: { withinRole: [Array], crossRole: [] }, credentials: [], messaging: { sendTo: [Array], receiveFrom: [Array] } },
|
||
operator: 'deepStrictEqual',
|
||
diff: 'simple'
|
||
}
|
||
|
||
test at tests/workflow-roles.test.mjs:81:1
|
||
✖ neither role can be an arbiter: its messaging lists refuse the business file (row 133) (1.347398ms)
|
||
AssertionError [ERR_ASSERTION]: Missing expected exception: technical security-reviewer
|
||
at TestContext.<anonymous> (file:///home/jwoltje/dewey-scratch/r149/packages/business/tests/workflow-roles.test.mjs:84:14)
|
||
at Test.runInAsyncScope (node:async_hooks:226:14)
|
||
at Test.run (node:internal/test_runner/test:1402:25)
|
||
at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
|
||
at Test.postRun (node:internal/test_runner/test:1542:19)
|
||
at Test.run (node:internal/test_runner/test:1467:12)
|
||
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
|
||
generatedMessage: false,
|
||
code: 'ERR_ASSERTION',
|
||
actual: undefined,
|
||
operator: 'throws',
|
||
diff: 'simple'
|
||
}
|
||
== packages/bus rc=0
|
||
✔ each C-suite role file carries the same two lists: human, chief-of-staff, pm, cto (1.364373ms)
|
||
✔ chief-executive-officer: messages to and from the user, chief of staff, pm and cto pass (398.846885ms)
|
||
✔ chief-executive-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (367.487632ms)
|
||
✔ chief-executive-officer: another C-suite role isn't on the lists either (205.864718ms)
|
||
✔ chief-financial-officer: messages to and from the user, chief of staff, pm and cto pass (232.152791ms)
|
||
✔ chief-financial-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (211.034935ms)
|
||
✔ chief-financial-officer: another C-suite role isn't on the lists either (184.430065ms)
|
||
✔ chief-information-officer: messages to and from the user, chief of staff, pm and cto pass (226.811585ms)
|
||
✔ chief-information-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (209.683608ms)
|
||
✔ chief-information-officer: another C-suite role isn't on the lists either (173.30612ms)
|
||
✔ chief-information-security-officer: messages to and from the user, chief of staff, pm and cto pass (194.210265ms)
|
||
✔ chief-information-security-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (191.956121ms)
|
||
✔ chief-information-security-officer: another C-suite role isn't on the lists either (174.931023ms)
|
||
✔ chief-marketing-officer: messages to and from the user, chief of staff, pm and cto pass (213.950828ms)
|
||
✔ chief-marketing-officer: a message to or from the coder, reviewer or assistant is refused and logged, and nothing is stored (203.295289ms)
|
||
✔ chief-marketing-officer: another C-suite role isn't on the lists either (180.383437ms)
|
||
✔ merge-gate's technical raise is cross-role, goes to the cto, and only merge-gate can use the approval (215.781812ms)
|
||
✔ merge-gate has no message.send, and without a domain its raise goes to the delivery arbiter (206.99597ms)
|
||
✔ the cto must be able to message merge-gate, or the technical raise is refused (row 133) (190.469508ms)
|
||
✔ security-reviewer answers a review with its verdict alone; it holds no message.send (215.829499ms)
|
||
ℹ tests 20
|
||
ℹ suites 0
|
||
ℹ pass 20
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 3435.824533
|
||
== packages/harness rc=0
|
||
✔ raise_decision offers domain as technical or delivery only, optional, and says where a raise goes (9.478951ms)
|
||
✔ raise_decision forwards domain to decision.raise, and a call without it sends none (156.588595ms)
|
||
✔ every role sees read_spec, record writer follows its grant, citation schemas stay strict (11.141386ms)
|
||
✔ typed socket forwards read content/history and agent record writes, and cannot write a spec (198.064488ms)
|
||
✔ the PM gets its task verbs and the reads, and no launch (6.590768ms)
|
||
✔ the chief of staff gets launch, send_message, end_run and change_organization, and no task verbs (2.217571ms)
|
||
✔ request_staff is the pm's alone: staff.request over message.send, roles and counts bounded (7.879063ms)
|
||
✔ end_run sends role and reason, no decision; change_organization sends revision and the organization keys (1.383256ms)
|
||
✔ the organization keys change_organization takes are the broker's ORGANIZATION_KEYS (0.086915ms)
|
||
✔ a role without role.end or organization.change gets neither tool, and each tool follows its own grant (6.012833ms)
|
||
✔ the assistant gets send_message, the reads and the web tools (it holds the web grant), no launch (0.964013ms)
|
||
✔ list_requirements reads the requirement ids, for a task.create holder with a tracker (2.085153ms)
|
||
✔ a coder gets no launch, no resolve_decision, and no task tools without a tracker (0.979437ms)
|
||
✔ a coder with a tracker gets its own task tools and no task_reassign (0.972218ms)
|
||
✔ launch only when the business's launch block names the instance as launcher (1.783568ms)
|
||
✔ an action outside the instance's authority has no tool (1.032679ms)
|
||
✔ the review loop: push_working and request_review for the coder, fetch_review and review_verdict for the reviewer, none for the PM (3.775128ms)
|
||
✔ land_work is there only with land, after push_working, with the task and the decision (2.200273ms)
|
||
✔ callTool: one JSON line out, the result back, a refusal rejects (8.264861ms)
|
||
✔ list_tasks takes the broker's filters and pages; get_task takes a task_ref (2.008302ms)
|
||
✔ callTool sends list_tasks done false unless the session names done; other tools as given (2.293476ms)
|
||
✔ replyText: compact JSON up to the cap, an error naming the size and the cap over it (0.544874ms)
|
||
✔ web_search's query maxLength is the web layer's SEARCH_MAX_QUERY_CHARS (2.533493ms)
|
||
ℹ tests 23
|
||
ℹ suites 0
|
||
ℹ pass 23
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 293.567398
|