Skip to content
Merged
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
6 changes: 4 additions & 2 deletions tests/customSolverModules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,17 @@ describe('configured solver strategy rules without inference or Lean calls', ()
}
});

it('keeps exact role output protocols when every optional strategy slot is replaced', () => {
it('keeps Lead plan submission and acceptance rules when every optional strategy slot is replaced', () => {
vi.spyOn(console, 'log').mockImplementation(() => {});
const configuration = plan((['M1', 'M3', 'M4', 'M5'] as const).map(slot => custom(slot, { mode: 'replace' })));
const modules = configurableSolverModules(configuration, 'cooperative', 4);
const context = modules.M4.build(problem, state({ cooperation: { tasks: [] } }),
access({ assignment: { kind: 'lead', seedCommit: 'fixed-source-commit' } }));
for (const slot of ['M1', 'M3', 'M4', 'M5']) expect(context.instructions).toContain(`CUSTOM_${slot}_INSTRUCTIONS`);
expect(context.instructions).toContain('You are the Lead.');
expect(context.instructions).toContain('Use this plan schema for the delivery-log event, or for a math-plan JSON fence in RESEARCH.md when returning without publication: {"tasks":');
expect(context.instructions).toContain('plan-apply --publish');
expect(context.instructions).toContain('.scratch/plan.json');
expect(context.instructions).toContain('{"tasks":[{"id":"helper","kind":"lemma"');
expect(context.instructions).toContain('Include every original target once.');
expect(context.instructions).toContain('Exact mathematical interfaces and original assumptions are mandatory');
expect(context.instructions).toContain('Unproved dependencies and reviews remain advisory.');
Expand Down
Loading