@memnexus-ai/mx-agent-cli 0.1.294-next.0 → 0.1.294
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/config-sync.test.js +1 -54
- package/dist/__tests__/config-sync.test.js.map +1 -1
- package/dist/agent-config/hooks/auto-capture-precompact.sh +256 -74
- package/dist/agent-config/hooks/auto-capture-session-end.sh +254 -106
- package/dist/agent-config/hooks/auto-checkpoint.sh +5 -75
- package/dist/agent-config/hooks/observability-sync.sh +9 -46
- package/dist/commands/config-sync.d.ts +0 -37
- package/dist/commands/config-sync.d.ts.map +1 -1
- package/dist/commands/config-sync.js +18 -36
- package/dist/commands/config-sync.js.map +1 -1
- package/dist/commands/dashboard.d.ts.map +1 -1
- package/dist/commands/dashboard.js +2 -10
- package/dist/commands/dashboard.js.map +1 -1
- package/dist/commands/monitor.d.ts.map +1 -1
- package/dist/commands/monitor.js +2 -8
- package/dist/commands/monitor.js.map +1 -1
- package/dist/commands/start.d.ts +0 -4
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +0 -6
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/update.d.ts +1 -13
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +1 -50
- package/dist/commands/update.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -67
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-session.d.ts +0 -12
- package/dist/lib/agent-session.d.ts.map +1 -1
- package/dist/lib/agent-session.js +41 -183
- package/dist/lib/agent-session.js.map +1 -1
- package/dist/lib/claude.d.ts +0 -12
- package/dist/lib/claude.d.ts.map +1 -1
- package/dist/lib/claude.js +2 -29
- package/dist/lib/claude.js.map +1 -1
- package/dist/lib/terminal-ui.d.ts.map +1 -1
- package/dist/lib/terminal-ui.js +1 -12
- package/dist/lib/terminal-ui.js.map +1 -1
- package/package.json +2 -3
- package/dist/__tests__/decision-check.test.d.ts +0 -2
- package/dist/__tests__/decision-check.test.d.ts.map +0 -1
- package/dist/__tests__/decision-check.test.js +0 -105
- package/dist/__tests__/decision-check.test.js.map +0 -1
- package/dist/__tests__/harness-extract.test.d.ts +0 -19
- package/dist/__tests__/harness-extract.test.d.ts.map +0 -1
- package/dist/__tests__/harness-extract.test.js +0 -566
- package/dist/__tests__/harness-extract.test.js.map +0 -1
- package/dist/__tests__/harness-wiring.test.d.ts +0 -16
- package/dist/__tests__/harness-wiring.test.d.ts.map +0 -1
- package/dist/__tests__/harness-wiring.test.js +0 -469
- package/dist/__tests__/harness-wiring.test.js.map +0 -1
- package/dist/__tests__/report-format.test.d.ts +0 -2
- package/dist/__tests__/report-format.test.d.ts.map +0 -1
- package/dist/__tests__/report-format.test.js +0 -219
- package/dist/__tests__/report-format.test.js.map +0 -1
- package/dist/__tests__/standards-injection.test.d.ts +0 -2
- package/dist/__tests__/standards-injection.test.d.ts.map +0 -1
- package/dist/__tests__/standards-injection.test.js +0 -157
- package/dist/__tests__/standards-injection.test.js.map +0 -1
- package/dist/commands/decision.d.ts +0 -20
- package/dist/commands/decision.d.ts.map +0 -1
- package/dist/commands/decision.js +0 -54
- package/dist/commands/decision.js.map +0 -1
- package/dist/commands/report.d.ts +0 -33
- package/dist/commands/report.d.ts.map +0 -1
- package/dist/commands/report.js +0 -73
- package/dist/commands/report.js.map +0 -1
- package/dist/lib/decision-check.d.ts +0 -48
- package/dist/lib/decision-check.d.ts.map +0 -1
- package/dist/lib/decision-check.js +0 -149
- package/dist/lib/decision-check.js.map +0 -1
- package/dist/lib/harness/console/announce.d.ts +0 -45
- package/dist/lib/harness/console/announce.d.ts.map +0 -1
- package/dist/lib/harness/console/announce.js +0 -48
- package/dist/lib/harness/console/announce.js.map +0 -1
- package/dist/lib/harness/console/announce.test.d.ts +0 -2
- package/dist/lib/harness/console/announce.test.d.ts.map +0 -1
- package/dist/lib/harness/console/announce.test.js +0 -104
- package/dist/lib/harness/console/announce.test.js.map +0 -1
- package/dist/lib/harness/console/by-session.d.ts +0 -50
- package/dist/lib/harness/console/by-session.d.ts.map +0 -1
- package/dist/lib/harness/console/by-session.js +0 -83
- package/dist/lib/harness/console/by-session.js.map +0 -1
- package/dist/lib/harness/console/by-session.test.d.ts +0 -2
- package/dist/lib/harness/console/by-session.test.d.ts.map +0 -1
- package/dist/lib/harness/console/by-session.test.js +0 -86
- package/dist/lib/harness/console/by-session.test.js.map +0 -1
- package/dist/lib/harness/console/console.d.ts +0 -67
- package/dist/lib/harness/console/console.d.ts.map +0 -1
- package/dist/lib/harness/console/console.js +0 -373
- package/dist/lib/harness/console/console.js.map +0 -1
- package/dist/lib/harness/console/console.test.d.ts +0 -2
- package/dist/lib/harness/console/console.test.d.ts.map +0 -1
- package/dist/lib/harness/console/console.test.js +0 -269
- package/dist/lib/harness/console/console.test.js.map +0 -1
- package/dist/lib/harness/console/decision-request.d.ts +0 -32
- package/dist/lib/harness/console/decision-request.d.ts.map +0 -1
- package/dist/lib/harness/console/decision-request.js +0 -112
- package/dist/lib/harness/console/decision-request.js.map +0 -1
- package/dist/lib/harness/console/decision-request.test.d.ts +0 -2
- package/dist/lib/harness/console/decision-request.test.d.ts.map +0 -1
- package/dist/lib/harness/console/decision-request.test.js +0 -75
- package/dist/lib/harness/console/decision-request.test.js.map +0 -1
- package/dist/lib/harness/console/fixtures.d.ts +0 -16
- package/dist/lib/harness/console/fixtures.d.ts.map +0 -1
- package/dist/lib/harness/console/fixtures.js +0 -49
- package/dist/lib/harness/console/fixtures.js.map +0 -1
- package/dist/lib/harness/console/index.d.ts +0 -15
- package/dist/lib/harness/console/index.d.ts.map +0 -1
- package/dist/lib/harness/console/index.js +0 -14
- package/dist/lib/harness/console/index.js.map +0 -1
- package/dist/lib/harness/console/rank.d.ts +0 -73
- package/dist/lib/harness/console/rank.d.ts.map +0 -1
- package/dist/lib/harness/console/rank.js +0 -113
- package/dist/lib/harness/console/rank.js.map +0 -1
- package/dist/lib/harness/console/rank.test.d.ts +0 -2
- package/dist/lib/harness/console/rank.test.d.ts.map +0 -1
- package/dist/lib/harness/console/rank.test.js +0 -124
- package/dist/lib/harness/console/rank.test.js.map +0 -1
- package/dist/lib/harness/console/render.d.ts +0 -22
- package/dist/lib/harness/console/render.d.ts.map +0 -1
- package/dist/lib/harness/console/render.js +0 -65
- package/dist/lib/harness/console/render.js.map +0 -1
- package/dist/lib/harness/console/render.test.d.ts +0 -2
- package/dist/lib/harness/console/render.test.d.ts.map +0 -1
- package/dist/lib/harness/console/render.test.js +0 -96
- package/dist/lib/harness/console/render.test.js.map +0 -1
- package/dist/lib/harness/console/replay-cli.test.d.ts +0 -2
- package/dist/lib/harness/console/replay-cli.test.d.ts.map +0 -1
- package/dist/lib/harness/console/replay-cli.test.js +0 -96
- package/dist/lib/harness/console/replay-cli.test.js.map +0 -1
- package/dist/lib/harness/console/replay.d.ts +0 -36
- package/dist/lib/harness/console/replay.d.ts.map +0 -1
- package/dist/lib/harness/console/replay.js +0 -59
- package/dist/lib/harness/console/replay.js.map +0 -1
- package/dist/lib/harness/console/replay.test.d.ts +0 -2
- package/dist/lib/harness/console/replay.test.d.ts.map +0 -1
- package/dist/lib/harness/console/replay.test.js +0 -81
- package/dist/lib/harness/console/replay.test.js.map +0 -1
- package/dist/lib/harness/console/turn-reader.d.ts +0 -50
- package/dist/lib/harness/console/turn-reader.d.ts.map +0 -1
- package/dist/lib/harness/console/turn-reader.js +0 -184
- package/dist/lib/harness/console/turn-reader.js.map +0 -1
- package/dist/lib/harness/console/turn-reader.test.d.ts +0 -2
- package/dist/lib/harness/console/turn-reader.test.d.ts.map +0 -1
- package/dist/lib/harness/console/turn-reader.test.js +0 -108
- package/dist/lib/harness/console/turn-reader.test.js.map +0 -1
- package/dist/lib/harness/console/types.d.ts +0 -109
- package/dist/lib/harness/console/types.d.ts.map +0 -1
- package/dist/lib/harness/console/types.js +0 -2
- package/dist/lib/harness/console/types.js.map +0 -1
- package/dist/lib/harness/contract.d.ts +0 -229
- package/dist/lib/harness/contract.d.ts.map +0 -1
- package/dist/lib/harness/contract.js +0 -22
- package/dist/lib/harness/contract.js.map +0 -1
- package/dist/lib/harness/credential.d.ts +0 -23
- package/dist/lib/harness/credential.d.ts.map +0 -1
- package/dist/lib/harness/credential.js +0 -81
- package/dist/lib/harness/credential.js.map +0 -1
- package/dist/lib/harness/credential.test.d.ts +0 -2
- package/dist/lib/harness/credential.test.d.ts.map +0 -1
- package/dist/lib/harness/credential.test.js +0 -74
- package/dist/lib/harness/credential.test.js.map +0 -1
- package/dist/lib/harness/evaluate.d.ts +0 -390
- package/dist/lib/harness/evaluate.d.ts.map +0 -1
- package/dist/lib/harness/evaluate.js +0 -988
- package/dist/lib/harness/evaluate.js.map +0 -1
- package/dist/lib/harness/evaluate.test.d.ts +0 -2
- package/dist/lib/harness/evaluate.test.d.ts.map +0 -1
- package/dist/lib/harness/evaluate.test.js +0 -621
- package/dist/lib/harness/evaluate.test.js.map +0 -1
- package/dist/lib/harness/extract.d.ts +0 -152
- package/dist/lib/harness/extract.d.ts.map +0 -1
- package/dist/lib/harness/extract.js +0 -1601
- package/dist/lib/harness/extract.js.map +0 -1
- package/dist/lib/harness/gate.d.ts +0 -48
- package/dist/lib/harness/gate.d.ts.map +0 -1
- package/dist/lib/harness/gate.js +0 -60
- package/dist/lib/harness/gate.js.map +0 -1
- package/dist/lib/harness/gate.test.d.ts +0 -2
- package/dist/lib/harness/gate.test.d.ts.map +0 -1
- package/dist/lib/harness/gate.test.js +0 -111
- package/dist/lib/harness/gate.test.js.map +0 -1
- package/dist/lib/harness/self-check.d.ts +0 -59
- package/dist/lib/harness/self-check.d.ts.map +0 -1
- package/dist/lib/harness/self-check.js +0 -56
- package/dist/lib/harness/self-check.js.map +0 -1
- package/dist/lib/harness/self-check.test.d.ts +0 -2
- package/dist/lib/harness/self-check.test.d.ts.map +0 -1
- package/dist/lib/harness/self-check.test.js +0 -43
- package/dist/lib/harness/self-check.test.js.map +0 -1
- package/dist/lib/harness/transcript.d.ts +0 -65
- package/dist/lib/harness/transcript.d.ts.map +0 -1
- package/dist/lib/harness/transcript.js +0 -144
- package/dist/lib/harness/transcript.js.map +0 -1
- package/dist/lib/harness/transcript.test.d.ts +0 -2
- package/dist/lib/harness/transcript.test.d.ts.map +0 -1
- package/dist/lib/harness/transcript.test.js +0 -118
- package/dist/lib/harness/transcript.test.js.map +0 -1
- package/dist/lib/harness-wiring.d.ts +0 -145
- package/dist/lib/harness-wiring.d.ts.map +0 -1
- package/dist/lib/harness-wiring.js +0 -280
- package/dist/lib/harness-wiring.js.map +0 -1
- package/dist/lib/report-format.d.ts +0 -132
- package/dist/lib/report-format.d.ts.map +0 -1
- package/dist/lib/report-format.js +0 -317
- package/dist/lib/report-format.js.map +0 -1
- package/dist/lib/standards.d.ts +0 -90
- package/dist/lib/standards.d.ts.map +0 -1
- package/dist/lib/standards.js +0 -194
- package/dist/lib/standards.js.map +0 -1
- package/dist/standards/decision-request.md +0 -90
- package/dist/standards/fail-loud-standard.md +0 -495
- package/dist/standards/report-format.md +0 -120
- package/dist/standards/writing-standard.md +0 -240
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tests for harness-wiring.ts, the connection between a live session and the
|
|
3
|
-
* harness, plus source-level checks that agent-session.ts keeps that connection.
|
|
4
|
-
*
|
|
5
|
-
* Grouped by the claim each case pins:
|
|
6
|
-
*
|
|
7
|
-
* 1. startup the two gates that must refuse before a session starts
|
|
8
|
-
* 2. ruleset which rules this surface compiles, and what it says about
|
|
9
|
-
* the ones it does not
|
|
10
|
-
* 3. principal team, role, subagentId, sessionId on every decision
|
|
11
|
-
* 4. gate refuse, allow, escalate, observe, and fail closed
|
|
12
|
-
* 5. probe the callback proved rather than assumed
|
|
13
|
-
* 6. session file the wiring is present and the old guard is gone
|
|
14
|
-
*/
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=harness-wiring.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"harness-wiring.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/harness-wiring.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
|
|
@@ -1,469 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tests for harness-wiring.ts, the connection between a live session and the
|
|
3
|
-
* harness, plus source-level checks that agent-session.ts keeps that connection.
|
|
4
|
-
*
|
|
5
|
-
* Grouped by the claim each case pins:
|
|
6
|
-
*
|
|
7
|
-
* 1. startup the two gates that must refuse before a session starts
|
|
8
|
-
* 2. ruleset which rules this surface compiles, and what it says about
|
|
9
|
-
* the ones it does not
|
|
10
|
-
* 3. principal team, role, subagentId, sessionId on every decision
|
|
11
|
-
* 4. gate refuse, allow, escalate, observe, and fail closed
|
|
12
|
-
* 5. probe the callback proved rather than assumed
|
|
13
|
-
* 6. session file the wiring is present and the old guard is gone
|
|
14
|
-
*/
|
|
15
|
-
import { describe, it, expect } from 'vitest';
|
|
16
|
-
import { readFileSync } from 'fs';
|
|
17
|
-
import { join } from 'path';
|
|
18
|
-
import { prepareHarness, createSessionGate, principalFor, rulesForSurface, governingRulePaths, policyContext, terminalSink, fanOut, SESSION_SURFACE, } from '../lib/harness-wiring.js';
|
|
19
|
-
import { STARTER_RULES, compileRuleset } from '../lib/harness/evaluate.js';
|
|
20
|
-
const REPO = '/workspace';
|
|
21
|
-
const WT = '/workspace/.worktrees/team-a';
|
|
22
|
-
/** A credential file path that does not exist, so the check reads only `env`. */
|
|
23
|
-
const NO_CRED_FILE = '/nonexistent/.credentials.json';
|
|
24
|
-
function startup(over = {}) {
|
|
25
|
-
return prepareHarness({
|
|
26
|
-
repoRoot: REPO,
|
|
27
|
-
worktreeRoot: WT,
|
|
28
|
-
env: { CLAUDE_CODE_OAUTH_TOKEN: 'x' },
|
|
29
|
-
canUseToolSupplied: true,
|
|
30
|
-
credentialsFile: NO_CRED_FILE,
|
|
31
|
-
...over,
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function evaluator() {
|
|
35
|
-
return compileRuleset(rulesForSurface(), policyContext(REPO, WT));
|
|
36
|
-
}
|
|
37
|
-
function gate(over = {}) {
|
|
38
|
-
return createSessionGate({
|
|
39
|
-
evaluator: evaluator(),
|
|
40
|
-
team: 'team-a',
|
|
41
|
-
role: 'team-a-leader',
|
|
42
|
-
sessionId: () => 'sess-1',
|
|
43
|
-
worktreeRoot: WT,
|
|
44
|
-
mode: 'enforce',
|
|
45
|
-
now: () => '1970-01-01T00:00:00.000Z',
|
|
46
|
-
...over,
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
const bash = (command) => ({ command });
|
|
50
|
-
// ── 1. Startup ───────────────────────────────────────────────────────────────
|
|
51
|
-
describe('startup gates', () => {
|
|
52
|
-
it('starts on a subscription credential', () => {
|
|
53
|
-
const out = startup();
|
|
54
|
-
expect(out.ok).toBe(true);
|
|
55
|
-
expect(out.credential.kind).toBe('subscription');
|
|
56
|
-
expect(out.evaluator).toBeDefined();
|
|
57
|
-
});
|
|
58
|
-
it('refuses a session that would bill as metered', () => {
|
|
59
|
-
// POC-2: billing follows the environment credential rather than the code,
|
|
60
|
-
// so a container starting with an API key moves to metered with no error.
|
|
61
|
-
const out = startup({ env: { ANTHROPIC_API_KEY: 'sk-x' } });
|
|
62
|
-
expect(out.ok).toBe(false);
|
|
63
|
-
expect(out.credential.kind).toBe('api-key');
|
|
64
|
-
expect(out.lines.join(' ')).toMatch(/metered/);
|
|
65
|
-
expect(out.evaluator).toBeUndefined();
|
|
66
|
-
});
|
|
67
|
-
it('starts on a metered credential when the operator says so', () => {
|
|
68
|
-
const out = startup({ env: { ANTHROPIC_API_KEY: 'sk-x' }, allowMetered: true });
|
|
69
|
-
expect(out.ok).toBe(true);
|
|
70
|
-
expect(out.lines.join(' ')).toMatch(/--allow-metered/);
|
|
71
|
-
});
|
|
72
|
-
it('refuses when the permission mode would shadow the callback', () => {
|
|
73
|
-
// POC-1c: permissionMode 'bypassPermissions' gave 0 callback invocations
|
|
74
|
-
// across 3 runs while every health signal stayed green.
|
|
75
|
-
const out = startup({ permissionMode: 'bypassPermissions' });
|
|
76
|
-
expect(out.ok).toBe(false);
|
|
77
|
-
expect(out.lines.join(' ')).toMatch(/auto-approves every tool call/);
|
|
78
|
-
});
|
|
79
|
-
it('starts on a permission mode that does not shadow the callback', () => {
|
|
80
|
-
expect(startup({ permissionMode: 'acceptEdits' }).ok).toBe(true);
|
|
81
|
-
expect(startup({ permissionMode: undefined }).ok).toBe(true);
|
|
82
|
-
});
|
|
83
|
-
it('refuses when no callback is supplied at all', () => {
|
|
84
|
-
const out = startup({ canUseToolSupplied: false });
|
|
85
|
-
expect(out.ok).toBe(false);
|
|
86
|
-
expect(out.lines.join(' ')).toMatch(/no permission callback was supplied/);
|
|
87
|
-
});
|
|
88
|
-
it('reports every reason at once rather than one per session', () => {
|
|
89
|
-
const out = startup({
|
|
90
|
-
env: { ANTHROPIC_API_KEY: 'sk-x' },
|
|
91
|
-
permissionMode: 'bypassPermissions',
|
|
92
|
-
});
|
|
93
|
-
expect(out.ok).toBe(false);
|
|
94
|
-
expect(out.lines.join(' ')).toMatch(/metered/);
|
|
95
|
-
expect(out.lines.join(' ')).toMatch(/auto-approves/);
|
|
96
|
-
});
|
|
97
|
-
it('refuses to start when the ruleset does not compile', () => {
|
|
98
|
-
// A governing-rule list that covers none of the paths the rules' own
|
|
99
|
-
// examples name. A ruleset that does not compile means no rule runs, and
|
|
100
|
-
// starting on no rules is the inert-guard shape.
|
|
101
|
-
const broken = prepareHarness({
|
|
102
|
-
repoRoot: REPO,
|
|
103
|
-
worktreeRoot: WT,
|
|
104
|
-
env: { CLAUDE_CODE_OAUTH_TOKEN: 'x' },
|
|
105
|
-
canUseToolSupplied: true,
|
|
106
|
-
credentialsFile: NO_CRED_FILE,
|
|
107
|
-
rules: STARTER_RULES,
|
|
108
|
-
testGuardedPaths: [],
|
|
109
|
-
});
|
|
110
|
-
// The default path compiles; this asserts the failure branch is wired by
|
|
111
|
-
// driving it through a context the rules reject.
|
|
112
|
-
expect(broken.ok).toBe(true);
|
|
113
|
-
const refusedOutcome = (() => {
|
|
114
|
-
try {
|
|
115
|
-
compileRuleset(STARTER_RULES, {
|
|
116
|
-
worktreeRoot: WT, repoRoot: REPO, governingRulePaths: [], testGuardedPaths: [],
|
|
117
|
-
});
|
|
118
|
-
return 'compiled';
|
|
119
|
-
}
|
|
120
|
-
catch {
|
|
121
|
-
return 'refused';
|
|
122
|
-
}
|
|
123
|
-
})();
|
|
124
|
-
expect(refusedOutcome).toBe('refused');
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
// ── 2. Ruleset selection ─────────────────────────────────────────────────────
|
|
128
|
-
describe('ruleset selection', () => {
|
|
129
|
-
it('compiles only the rules this surface can enforce', () => {
|
|
130
|
-
const out = startup();
|
|
131
|
-
expect([...out.evaluator.ruleIds].sort()).toEqual([
|
|
132
|
-
'no-destructive-git',
|
|
133
|
-
'rules-are-not-self-editable',
|
|
134
|
-
'teams-stay-in-own-worktree',
|
|
135
|
-
]);
|
|
136
|
-
});
|
|
137
|
-
it('names the rule it does not enforce here rather than dropping it', () => {
|
|
138
|
-
const out = startup();
|
|
139
|
-
const held = STARTER_RULES.filter((r) => !r.surfaces.includes(SESSION_SURFACE)).map((r) => r.id);
|
|
140
|
-
expect(held).toContain('tests-first-under-scoped-paths');
|
|
141
|
-
for (const id of held)
|
|
142
|
-
expect(out.lines.join(' ')).toContain(id);
|
|
143
|
-
});
|
|
144
|
-
it('says at startup which clause can be disabled from outside the ruleset', () => {
|
|
145
|
-
// `workingDir` is optional on Attributes, so a rule naming it goes quiet
|
|
146
|
-
// against an extractor that does not set it while the rest of the rule
|
|
147
|
-
// still runs. That cannot be a compile refusal, because nothing at compile
|
|
148
|
-
// time knows what an extractor will report, so it is a line the operator
|
|
149
|
-
// reads instead.
|
|
150
|
-
const out = startup();
|
|
151
|
-
const notes = out.lines.filter((l) => l.includes('note on'));
|
|
152
|
-
expect(notes.join(' ')).toMatch(/teams-stay-in-own-worktree/);
|
|
153
|
-
expect(notes.join(' ')).toMatch(/match\.workingDir reads `Attributes\.workingDir`, which is optional/);
|
|
154
|
-
expect(notes.join(' ')).toMatch(/enforcing less than it says/);
|
|
155
|
-
});
|
|
156
|
-
it('covers the paths the rules own examples name', () => {
|
|
157
|
-
const paths = governingRulePaths(REPO, WT);
|
|
158
|
-
expect(paths).toContain(`${REPO}/.claude/settings.json`);
|
|
159
|
-
expect(paths).toContain(`${REPO}/.claude/hooks/**`);
|
|
160
|
-
expect(paths).toContain(`${WT}/.claude/settings.json`);
|
|
161
|
-
});
|
|
162
|
-
it('does not repeat the list when the session runs at the repository root', () => {
|
|
163
|
-
expect(governingRulePaths(REPO, REPO)).toEqual(governingRulePaths(REPO, REPO).filter((v, i, a) => a.indexOf(v) === i));
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
// ── 3. Principal ─────────────────────────────────────────────────────────────
|
|
167
|
-
describe('principal', () => {
|
|
168
|
-
const base = { team: 'team-a', role: 'team-a-leader', sessionId: 'sess-1' };
|
|
169
|
-
it('names the team, the role and the session', () => {
|
|
170
|
-
expect(principalFor(base)).toEqual({
|
|
171
|
-
team: 'team-a', role: 'team-a-leader', subagentId: null, sessionId: 'sess-1',
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
it('names the subagent when a delegated agent is acting', () => {
|
|
175
|
-
// 94% of repository writes come from subagents, so a decision that cannot
|
|
176
|
-
// name the subagent governs the smaller share.
|
|
177
|
-
const p = principalFor(base, { agentID: 'agent-7f3' });
|
|
178
|
-
expect(p.subagentId).toBe('agent-7f3');
|
|
179
|
-
});
|
|
180
|
-
it('does not claim the session role for a subagent', () => {
|
|
181
|
-
// The runtime discloses the id and not the type, so a rule bound to a role
|
|
182
|
-
// must not match a principal whose role nobody stated.
|
|
183
|
-
expect(principalFor(base, { agentID: 'agent-7f3' }).role).toBe('subagent');
|
|
184
|
-
});
|
|
185
|
-
it('reaches the decision record', async () => {
|
|
186
|
-
const events = [];
|
|
187
|
-
const g = gate({ sink: { emit: (e) => events.push(e) } });
|
|
188
|
-
await g.decide('Bash', bash('rm -rf /workspace/other/x'), { agentID: 'agent-7f3', toolUseID: 'tu-1' });
|
|
189
|
-
const decision = events.find((e) => e.type === 'decision');
|
|
190
|
-
expect(decision).toBeDefined();
|
|
191
|
-
if (decision?.type !== 'decision')
|
|
192
|
-
throw new Error('expected a decision event');
|
|
193
|
-
expect(decision.principal.subagentId).toBe('agent-7f3');
|
|
194
|
-
expect(decision.principal.team).toBe('team-a');
|
|
195
|
-
expect(decision.principal.sessionId).toBe('sess-1');
|
|
196
|
-
});
|
|
197
|
-
it('reads the session id per call, because the runtime assigns it late', async () => {
|
|
198
|
-
const events = [];
|
|
199
|
-
let id = '';
|
|
200
|
-
const g = gate({ sessionId: () => id, sink: { emit: (e) => events.push(e) } });
|
|
201
|
-
await g.decide('Bash', bash('ls'));
|
|
202
|
-
id = 'sess-late';
|
|
203
|
-
await g.decide('Bash', bash('ls'));
|
|
204
|
-
const ids = events.filter((e) => e.type === 'decision').map((e) => (e.type === 'decision' ? e.principal.sessionId : ''));
|
|
205
|
-
expect(ids).toEqual(['', 'sess-late']);
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
// ── 4. The gate ──────────────────────────────────────────────────────────────
|
|
209
|
-
describe('the gate', () => {
|
|
210
|
-
it('refuses a write outside the worktree, which the old guard allowed', async () => {
|
|
211
|
-
// docs/guard-coverage.md: rm, cp, mkdir, a redirect and sed -i against a
|
|
212
|
-
// path outside the worktree were 146 commands at 0% refused.
|
|
213
|
-
for (const command of [
|
|
214
|
-
'rm -f /workspace/shared/note.md',
|
|
215
|
-
'cp local.txt /workspace/shared/note.md',
|
|
216
|
-
'mkdir -p /workspace/shared/newdir',
|
|
217
|
-
'echo hi > /workspace/shared/note.md',
|
|
218
|
-
'sed -i s/a/b/ /workspace/shared/note.md',
|
|
219
|
-
'cd /workspace/shared && rm note.md',
|
|
220
|
-
]) {
|
|
221
|
-
const result = await gate().decide('Bash', bash(command));
|
|
222
|
-
expect(result.behavior, command).toBe('deny');
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
it('refuses the destructive git verbs the old guard allowed', async () => {
|
|
226
|
-
for (const command of [
|
|
227
|
-
'git reset --hard HEAD~1',
|
|
228
|
-
'git branch -D tmp/x',
|
|
229
|
-
'git checkout -- src/a.ts',
|
|
230
|
-
'git push --force origin feat/x',
|
|
231
|
-
'git merge',
|
|
232
|
-
'git clean -fdx',
|
|
233
|
-
'git stash drop',
|
|
234
|
-
]) {
|
|
235
|
-
const result = await gate().decide('Bash', bash(command));
|
|
236
|
-
expect(result.behavior, command).toBe('deny');
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
it('refuses navigation out of the worktree, which no write condition can see', async () => {
|
|
240
|
-
// 200 of the 319 commands that leave the worktree fold to `chdir` with no
|
|
241
|
-
// write target (docs/gate-coverage.md section 3C).
|
|
242
|
-
for (const command of [
|
|
243
|
-
'cd /workspace/shared && ls',
|
|
244
|
-
'cd /workspace/.claude/worktrees/agent-x && cat notes.md',
|
|
245
|
-
'git -C /workspace/.claude/worktrees/agent-x status',
|
|
246
|
-
'cd /workspace && npm test',
|
|
247
|
-
]) {
|
|
248
|
-
const result = await gate().decide('Bash', bash(command));
|
|
249
|
-
expect(result.behavior, command).toBe('deny');
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
it('allows work in the scratch tree the fleet gives each session', async () => {
|
|
253
|
-
// Every guard this replaces exempts scratch. Refusing it was 10 of the 600
|
|
254
|
-
// ordinary commands the first version of the rules refused.
|
|
255
|
-
for (const command of [
|
|
256
|
-
'mkdir -p /tmp/claude-1000/session/scratchpad/pr-bodies',
|
|
257
|
-
'cat > /tmp/claude-1000/session/scratchpad/note.md',
|
|
258
|
-
'cd /tmp/claude-1000/session/scratchpad && ls',
|
|
259
|
-
'S=/tmp/claude-1000/session/scratchpad; cp local.txt "$S/copy.txt"',
|
|
260
|
-
]) {
|
|
261
|
-
const result = await gate().decide('Bash', bash(command));
|
|
262
|
-
expect(result.behavior, command).toBe('allow');
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
it('allows a read outside the worktree from inside it', async () => {
|
|
266
|
-
// The clause tests where the call worked, not what it read. A `reads`
|
|
267
|
-
// condition would refuse this, and the control set contains it.
|
|
268
|
-
const result = await gate().decide('Bash', bash('cat /home/vscode/.claude/settings.json'));
|
|
269
|
-
expect(result.behavior).toBe('allow');
|
|
270
|
-
});
|
|
271
|
-
it('does not escalate because a neighbouring command is unmodelled', async () => {
|
|
272
|
-
// The write is resolved and in scope. The uncertainty is about `mx`.
|
|
273
|
-
// This shape was 62 of the 74 ordinary commands the first wiring refused.
|
|
274
|
-
for (const command of [
|
|
275
|
-
'mx memories get --name x --format json > /tmp/claude-1000/session/scratchpad/x.json',
|
|
276
|
-
'cd "$CLAUDE_WORKTREE_PATH" && rm -f codex-review.txt && dev-tools/scripts/codex-review.sh',
|
|
277
|
-
'npm test',
|
|
278
|
-
'gh pr view 4365 --json body',
|
|
279
|
-
]) {
|
|
280
|
-
const result = await gate().decide('Bash', bash(command));
|
|
281
|
-
expect(result.behavior, command).toBe('allow');
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
it('still escalates when the write target itself is unresolved', async () => {
|
|
285
|
-
const asked = [];
|
|
286
|
-
const g = gate({ askOperator: async (_d, a) => { asked.push(a.operation); return false; } });
|
|
287
|
-
for (const command of [
|
|
288
|
-
'F=$(mktemp) && cat > "$F"',
|
|
289
|
-
'echo hi > "$UNSET_TARGET/x"',
|
|
290
|
-
'cp local.txt "$out"',
|
|
291
|
-
]) {
|
|
292
|
-
const result = await g.decide('Bash', bash(command));
|
|
293
|
-
expect(result.behavior, command).toBe('deny');
|
|
294
|
-
}
|
|
295
|
-
expect(asked).toHaveLength(3);
|
|
296
|
-
});
|
|
297
|
-
it('allows ordinary work inside the worktree', async () => {
|
|
298
|
-
for (const command of [
|
|
299
|
-
'ls -la',
|
|
300
|
-
'git status',
|
|
301
|
-
'rm -f build/output.txt',
|
|
302
|
-
'cat README.md',
|
|
303
|
-
'git commit -m x',
|
|
304
|
-
]) {
|
|
305
|
-
const result = await gate().decide('Bash', bash(command));
|
|
306
|
-
expect(result.behavior, command).toBe('allow');
|
|
307
|
-
}
|
|
308
|
-
});
|
|
309
|
-
it('names the rule in the message the agent sees', async () => {
|
|
310
|
-
const result = await gate().decide('Bash', bash('git reset --hard'));
|
|
311
|
-
if (result.behavior !== 'deny')
|
|
312
|
-
throw new Error('expected deny');
|
|
313
|
-
expect(result.message).toMatch(/no-destructive-git/);
|
|
314
|
-
});
|
|
315
|
-
it('decides tool calls that are not Bash', async () => {
|
|
316
|
-
const outside = await gate().decide('Write', { file_path: '/workspace/shared/x.md', content: 'x' });
|
|
317
|
-
expect(outside.behavior).toBe('deny');
|
|
318
|
-
const inside = await gate().decide('Write', { file_path: `${WT}/src/x.ts`, content: 'x' });
|
|
319
|
-
expect(inside.behavior).toBe('allow');
|
|
320
|
-
});
|
|
321
|
-
it('leaves the tools the session handles itself alone', async () => {
|
|
322
|
-
// AskUserQuestion and the MessageBus tools reach the gate, no rule names
|
|
323
|
-
// them, and the session's own handlers run afterwards unchanged.
|
|
324
|
-
for (const tool of ['AskUserQuestion', 'send_message', 'check_inbox', 'list_agents']) {
|
|
325
|
-
const result = await gate().decide(tool, { anything: true });
|
|
326
|
-
expect(result.behavior, tool).toBe('allow');
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
it('runs the call in observe mode and still records the decision', async () => {
|
|
330
|
-
const events = [];
|
|
331
|
-
const g = gate({ mode: 'observe', sink: { emit: (e) => events.push(e) } });
|
|
332
|
-
const result = await g.decide('Bash', bash('git reset --hard'));
|
|
333
|
-
expect(result.behavior).toBe('allow');
|
|
334
|
-
expect(g.stats().observed).toBe(1);
|
|
335
|
-
expect(g.stats().denied).toBe(0);
|
|
336
|
-
const decision = events.find((e) => e.type === 'decision');
|
|
337
|
-
if (decision?.type !== 'decision')
|
|
338
|
-
throw new Error('expected a decision event');
|
|
339
|
-
expect(decision.decision.effect).toBe('deny');
|
|
340
|
-
});
|
|
341
|
-
it('asks a person when a rule escalates, and allows on yes', async () => {
|
|
342
|
-
const asked = [];
|
|
343
|
-
const g = gate({
|
|
344
|
-
askOperator: async (_d, a) => { asked.push(a); return true; },
|
|
345
|
-
});
|
|
346
|
-
// An unresolved write target. teams-stay-in-own-worktree escalates on it.
|
|
347
|
-
const result = await g.decide('Bash', bash('echo hi > "$UNSET_TARGET/x"'));
|
|
348
|
-
expect(result.behavior).toBe('allow');
|
|
349
|
-
expect(asked).toHaveLength(1);
|
|
350
|
-
expect(g.stats().asked).toBe(1);
|
|
351
|
-
});
|
|
352
|
-
it('keeps the refusal when the person says no', async () => {
|
|
353
|
-
const g = gate({ askOperator: async () => false });
|
|
354
|
-
const result = await g.decide('Bash', bash('echo hi > "$UNSET_TARGET/x"'));
|
|
355
|
-
expect(result.behavior).toBe('deny');
|
|
356
|
-
});
|
|
357
|
-
it('keeps the refusal when nobody can be asked', async () => {
|
|
358
|
-
const result = await gate().decide('Bash', bash('echo hi > "$UNSET_TARGET/x"'));
|
|
359
|
-
expect(result.behavior).toBe('deny');
|
|
360
|
-
});
|
|
361
|
-
it('does not ask about a plain deny', async () => {
|
|
362
|
-
let calls = 0;
|
|
363
|
-
const g = gate({ askOperator: async () => { calls += 1; return true; } });
|
|
364
|
-
const result = await g.decide('Bash', bash('git reset --hard'));
|
|
365
|
-
expect(result.behavior).toBe('deny');
|
|
366
|
-
expect(calls).toBe(0);
|
|
367
|
-
});
|
|
368
|
-
it('counts what it did', async () => {
|
|
369
|
-
const g = gate();
|
|
370
|
-
await g.decide('Bash', bash('ls'));
|
|
371
|
-
await g.decide('Bash', bash('git reset --hard'));
|
|
372
|
-
expect(g.stats()).toEqual({ calls: 2, denied: 1, asked: 0, observed: 0 });
|
|
373
|
-
});
|
|
374
|
-
it('passes the tool use id through as the call id', async () => {
|
|
375
|
-
const events = [];
|
|
376
|
-
const g = gate({ sink: { emit: (e) => events.push(e) } });
|
|
377
|
-
await g.decide('Bash', bash('git reset --hard'), { toolUseID: 'tu-9' });
|
|
378
|
-
expect(events.some((e) => e.type === 'decision')).toBe(true);
|
|
379
|
-
});
|
|
380
|
-
});
|
|
381
|
-
// ── 5. The probe ─────────────────────────────────────────────────────────────
|
|
382
|
-
describe('the callback probe', () => {
|
|
383
|
-
it('separates not-probed from did-not-fire', async () => {
|
|
384
|
-
const g = gate();
|
|
385
|
-
expect(g.probe.state()).toBe('not-probed');
|
|
386
|
-
g.probe.markProbed();
|
|
387
|
-
expect(g.probe.state()).toBe('did-not-fire');
|
|
388
|
-
await g.decide('Bash', bash('ls'));
|
|
389
|
-
expect(g.probe.state()).toBe('fired');
|
|
390
|
-
expect(await g.probe.callbackFires()).toBe(true);
|
|
391
|
-
});
|
|
392
|
-
it('observes on a refusal as well as on an allow', async () => {
|
|
393
|
-
const g = gate();
|
|
394
|
-
g.probe.markProbed();
|
|
395
|
-
await g.decide('Bash', bash('git reset --hard'));
|
|
396
|
-
expect(g.probe.state()).toBe('fired');
|
|
397
|
-
});
|
|
398
|
-
});
|
|
399
|
-
// ── 6. Sinks ─────────────────────────────────────────────────────────────────
|
|
400
|
-
describe('sinks', () => {
|
|
401
|
-
it('prints refusals and stays quiet on allows', async () => {
|
|
402
|
-
const lines = [];
|
|
403
|
-
const g = gate({ sink: terminalSink('enforce', (s) => lines.push(s)) });
|
|
404
|
-
await g.decide('Bash', bash('ls'));
|
|
405
|
-
expect(lines).toHaveLength(0);
|
|
406
|
-
await g.decide('Bash', bash('git reset --hard'));
|
|
407
|
-
expect(lines.join(' ')).toMatch(/harness refused/);
|
|
408
|
-
expect(lines.join(' ')).toMatch(/no-destructive-git/);
|
|
409
|
-
});
|
|
410
|
-
it('says the call ran when observe mode let it', async () => {
|
|
411
|
-
const lines = [];
|
|
412
|
-
const g = gate({ mode: 'observe', sink: terminalSink('observe', (s) => lines.push(s)) });
|
|
413
|
-
await g.decide('Bash', bash('git reset --hard'));
|
|
414
|
-
expect(lines.join(' ')).toMatch(/observe mode: the call ran/);
|
|
415
|
-
});
|
|
416
|
-
it('does not let a reporting failure become a permission decision', async () => {
|
|
417
|
-
const seen = [];
|
|
418
|
-
const sink = fanOut({ emit: () => { throw new Error('console defect'); } }, { emit: (e) => seen.push(e.type) });
|
|
419
|
-
const g = gate({ sink });
|
|
420
|
-
const result = await g.decide('Bash', bash('git reset --hard'));
|
|
421
|
-
expect(result.behavior).toBe('deny');
|
|
422
|
-
expect(seen).toContain('decision');
|
|
423
|
-
});
|
|
424
|
-
});
|
|
425
|
-
// ── 7. The session file ──────────────────────────────────────────────────────
|
|
426
|
-
describe('agent-session.ts keeps the connection', () => {
|
|
427
|
-
const source = readFileSync(join(__dirname, '..', 'lib', 'agent-session.ts'), 'utf-8');
|
|
428
|
-
it('no longer holds the 28.6% guard', () => {
|
|
429
|
-
// A source-level check because launchAgentSession drives an interactive SDK
|
|
430
|
-
// loop with raw-mode stdin. This guards against the function coming back.
|
|
431
|
-
expect(source).not.toMatch(/function checkWorktreeGuard/);
|
|
432
|
-
expect(source).not.toMatch(/const block = checkWorktreeGuard\(/);
|
|
433
|
-
});
|
|
434
|
-
it('runs the startup gates before the session starts', () => {
|
|
435
|
-
expect(source).toMatch(/prepareHarness\(/);
|
|
436
|
-
const gateAt = source.indexOf('prepareHarness(');
|
|
437
|
-
const queryAt = source.indexOf('const session = query(');
|
|
438
|
-
expect(gateAt).toBeGreaterThan(-1);
|
|
439
|
-
expect(queryAt).toBeGreaterThan(gateAt);
|
|
440
|
-
});
|
|
441
|
-
it('routes every tool call through the gate before its own handlers', () => {
|
|
442
|
-
const decideAt = source.indexOf('sessionGate.decide(');
|
|
443
|
-
const askAt = source.indexOf("if (toolName === 'AskUserQuestion')");
|
|
444
|
-
const busAt = source.indexOf("if (toolName === 'send_message')");
|
|
445
|
-
expect(decideAt).toBeGreaterThan(-1);
|
|
446
|
-
expect(askAt).toBeGreaterThan(decideAt);
|
|
447
|
-
expect(busAt).toBeGreaterThan(decideAt);
|
|
448
|
-
});
|
|
449
|
-
it('still answers AskUserQuestion and the MessageBus tools itself', () => {
|
|
450
|
-
expect(source).toMatch(/renderQuestion\(questions\)/);
|
|
451
|
-
expect(source).toMatch(/messageBus\.notify\(/);
|
|
452
|
-
expect(source).toMatch(/messageBus\.drainInbox\(\)/);
|
|
453
|
-
expect(source).toMatch(/messageBus\.getOnlineAgents\(\)/);
|
|
454
|
-
});
|
|
455
|
-
it('passes the subagent id and the tool use id from the runtime', () => {
|
|
456
|
-
expect(source).toMatch(/agentID/);
|
|
457
|
-
expect(source).toMatch(/toolUseID/);
|
|
458
|
-
});
|
|
459
|
-
it('marks the probe once a turn has been issued', () => {
|
|
460
|
-
expect(source).toMatch(/probe\.markProbed\(\)/);
|
|
461
|
-
const yieldAt = source.indexOf('inputController.yield(makeUserMessage(currentPrompt))');
|
|
462
|
-
const markAt = source.indexOf('probe.markProbed()');
|
|
463
|
-
expect(markAt).toBeGreaterThan(yieldAt);
|
|
464
|
-
});
|
|
465
|
-
it('passes no permissionMode to the runtime, which would shadow the callback', () => {
|
|
466
|
-
expect(source).not.toMatch(/permissionMode:/);
|
|
467
|
-
});
|
|
468
|
-
});
|
|
469
|
-
//# sourceMappingURL=harness-wiring.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"harness-wiring.test.js","sourceRoot":"","sources":["../../src/__tests__/harness-wiring.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,kBA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