fix(invariants): finish current-master ownership migration

This commit is contained in:
Tianyi Cui
2026-07-20 20:04:40 +08:00
parent f78b17a352
commit b8ad62eb35
10 changed files with 16 additions and 17 deletions

View File

@@ -110,16 +110,6 @@ describe('config validation', () => {
await expect(setup({ maxInlineBytes: 1.5 })).rejects.toThrow(/non-negative integer/)
})
it('rejects a configured policy that omits its post-execute listener', async () => {
const ctx = new Context()
await ctx.plugin(SystemPrompt)
await ctx.plugin(ToolRegistry)
await expect(ctx.plugin({
name: 'spill-policy',
inject: ['tools'],
apply(_child: Context, _config: { maxInlineBytes?: number }) {},
}, { maxInlineBytes: 10 })).rejects.toThrow(/listener must exist exactly when maxInlineBytes is configured/)
})
})
describe('oversized plain-text replacement', () => {