@@ -213,7 +213,10 @@ async function run() {
213213 { agentName : "worker" , systemPrompt : "worker base" } ,
214214 createCtx ( promptCwd ) ,
215215 ) ;
216- assert . equal ( subagentPromptResult . systemPrompt , "worker base" ) ;
216+ assert . match ( subagentPromptResult . systemPrompt , / w o r k e r b a s e / ) ;
217+ assert . match ( subagentPromptResult . systemPrompt , / G e n t l e A g e n t R u l e s / ) ;
218+ assert . match ( subagentPromptResult . systemPrompt , / S t a y s t r i c t l y w i t h i n y o u r a s s i g n e d s c o p e / ) ;
219+ assert . doesNotMatch ( subagentPromptResult . systemPrompt , / e l G e n t l e m a n I d e n t i t y / ) ;
217220 assert . equal (
218221 existsSync ( join ( promptCwd , ".pi" , "agents" , "sdd-apply.md" ) ) ,
219222 false ,
@@ -504,11 +507,13 @@ async function run() {
504507 { agentName : "worker" , systemPrompt : "worker base" } ,
505508 ctx ,
506509 ) ;
507- assert . equal (
510+ assert . match (
508511 workerPromptResult . systemPrompt ,
509- " worker base" ,
510- "non-SDD subagents must not receive parent harness or SDD preflight prompts" ,
512+ / w o r k e r b a s e / ,
513+ "non-SDD subagents must receive slim rules but not parent harness or SDD preflight prompts" ,
511514 ) ;
515+ assert . match ( workerPromptResult . systemPrompt , / G e n t l e A g e n t R u l e s / ) ;
516+ assert . doesNotMatch ( workerPromptResult . systemPrompt , / e l G e n t l e m a n I d e n t i t y / ) ;
512517 } finally {
513518 await rm ( lazySddCwd , { recursive : true , force : true } ) ;
514519 await rm ( globalModelsPath , { force : true } ) ;
0 commit comments