diff --git a/backend/__tests__/unit/services/soulSentinelContract.test.js b/backend/__tests__/unit/services/soulSentinelContract.test.js index 0d52d48e54..ef650bc437 100644 --- a/backend/__tests__/unit/services/soulSentinelContract.test.js +++ b/backend/__tests__/unit/services/soulSentinelContract.test.js @@ -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'); + }); +}); diff --git a/backend/services/agentProvisionerServiceK8s.ts b/backend/services/agentProvisionerServiceK8s.ts index 2746ff185f..1cc87bd90d 100644 --- a/backend/services/agentProvisionerServiceK8s.ts +++ b/backend/services/agentProvisionerServiceK8s.ts @@ -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: