Row 138 round 2, Rocko's candidate e3f9a400 (43 paths) on26a0b0fab. Dewey approved (comment 28754) after round 1 changes (comment 28752): D1-D5 mutants killed, the 17 touched test files run singly passed 124/124. Rocko's own run: 753 tests and 59/59 mutants killed. The bus gains the project adapter through runtime.mjs, the way it already injects the organization, so broker.mjs takes no new imports and refuses with project-not-configured when no adapter is set. The project socket timeout is 120s. Roles gain record.write. The schema moves from 3e to 3f; the live migration follows MIGRATION.md and needs Mos's window. Sage's landing gate ran onc842686d5plus the candidate: 25 steps, all rc 0 (15 packages, 10 script suites), network sage-r138_default removed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
19 lines
916 B
JavaScript
19 lines
916 B
JavaScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { ACTIONS, GATED_ONLY } from '../src/vocabulary.mjs';
|
|
import { loadRole } from '../src/index.mjs';
|
|
import { REPO_ROLES } from './helpers.mjs';
|
|
const ROLES = ['assistant', 'chief-executive-officer', 'chief-financial-officer',
|
|
'chief-information-officer', 'chief-information-security-officer', 'chief-marketing-officer',
|
|
'chief-of-staff', 'coder', 'cto', 'pm', 'reviewer'];
|
|
test('record.write is within-role for the eleven approved v2 agents, never gated-only', () => {
|
|
assert.ok(ACTIONS.includes('record.write'));
|
|
assert.ok(!GATED_ONLY.includes('record.write'));
|
|
for (const name of ROLES) {
|
|
const role = loadRole(REPO_ROLES, name);
|
|
assert.equal(role.roleVersion, 2);
|
|
assert.ok(role.authority.withinRole.includes('record.write'), name);
|
|
assert.ok(!role.authority.crossRole.includes('record.write'), name);
|
|
}
|
|
});
|