feat(tess): add configurable Pi interaction service (#728)
This commit was merged in pull request #728.
This commit is contained in:
@@ -165,6 +165,19 @@ describe('composeContract — overlay composer', () => {
|
||||
expect(composeContract('codex', fixture.home)).not.toContain('# pi runtime contract');
|
||||
});
|
||||
|
||||
it('injects the configured operator-interaction tool policy into the runtime contract', () => {
|
||||
const previous = process.env['MOSAIC_AGENT_TOOL_POLICY'];
|
||||
try {
|
||||
process.env['MOSAIC_AGENT_TOOL_POLICY'] = 'operator-interaction';
|
||||
const out = composeContract('pi', fixture.home);
|
||||
expect(out).toContain('# Fleet Tool Policy (operator-interaction)');
|
||||
expect(out).toContain('Denied by default: coding/general orchestration claims');
|
||||
} finally {
|
||||
if (previous === undefined) delete process.env['MOSAIC_AGENT_TOOL_POLICY'];
|
||||
else process.env['MOSAIC_AGENT_TOOL_POLICY'] = previous;
|
||||
}
|
||||
});
|
||||
|
||||
// ── Persona contract injection (A3b) ──────────────────────────────────────
|
||||
// composeContract reads MOSAIC_AGENT_CLASS and injects the resolved persona
|
||||
// (override-aware). Save/restore the env so these tests don't leak state.
|
||||
|
||||
Reference in New Issue
Block a user