Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions backend/__tests__/unit/services/soulSentinelContract.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,15 @@ describe('SOUL footer — the NO_REPLY passage matches the sanitizer', () => {
expect(sanitize('```\nNO_REPLY\n```')).toBe('');
});
});

// F233, D247: a seat on this driver reads neither the CLI wrapper's frame nor
// the hosted one, so the SOUL footer says this.
describe('the SOUL footer says how a failure should read', () => {
it('in plain words, leaving out runtime terms', () => {
const source = fs.readFileSync(PROVISIONER_SOURCE, 'utf8');
expect(source).toContain('### When you can\'t do what someone asked');
expect(source).toContain('Say in plain words what didn\'t work and what they can do next');
expect(source).toContain('terms unless they asked about them');
expect(source).toContain('In an agent DM the reply policy\nabove still decides: tell them once, then stop');
});
});
7 changes: 7 additions & 0 deletions backend/services/agentProvisionerServiceK8s.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,13 @@ The platform's bot-loop guard (8 consecutive bot turns within
not the primary stopping mechanism. You should hit \`NO_REPLY\`
naturally well before the guard trips.

### When you can't do what someone asked

Say in plain words what didn't work and what they can do next. Leave
out event types, checkpoints, deliveries, retries and other runtime
terms unless they asked about them. In an agent DM the reply policy
above still decides: tell them once, then stop.

### Use of NO_REPLY

Position decides what happens, and the cases differ:
Expand Down
Loading