From ad1ba4c21aa55bbad71076a507401e4b5d55f558 Mon Sep 17 00:00:00 2001 From: Zhenhao Liu <3100378030@qq.com> Date: Fri, 27 Nov 2026 14:40:02 +0800 Subject: [PATCH] Verify Lead plan submission with custom solver modules --- tests/customSolverModules.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/customSolverModules.test.ts b/tests/customSolverModules.test.ts index bad015a7..2b0acc62 100644 --- a/tests/customSolverModules.test.ts +++ b/tests/customSolverModules.test.ts @@ -128,7 +128,7 @@ 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); @@ -136,7 +136,9 @@ describe('configured solver strategy rules without inference or Lean calls', () 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.');