@@ -27,6 +27,8 @@ test("harness orchestrator runs plan-pack-execute-evaluate-decision with mock ex
2727 assert . equal ( report . decision . action , "finalize" ) ;
2828 assert . equal ( report . decision . blocking , false ) ;
2929 assert . equal ( report . decision . arbitration ?. selectedCandidate . id , "fallback.finalize" ) ;
30+ assert . equal ( report . contextPolicy ?. authority . finalizeAuthority , false ) ;
31+ assert . deepEqual ( report . contextPolicy ?. provenance , [ ] ) ;
3032 assert . equal ( report . iterations [ 0 ] ?. contextRefresh ?. mode , "rebuilt" ) ;
3133 assert . ok ( ( report . iterations [ 0 ] ?. contextRefresh ?. buildCount ?? 0 ) >= 1 ) ;
3234 assert . ok ( ( report . iterations [ 0 ] ?. contextRefresh ?. durationMs ?? - 1 ) >= 0 ) ;
@@ -36,6 +38,10 @@ test("harness orchestrator runs plan-pack-execute-evaluate-decision with mock ex
3638 assert . ok ( existsSync ( path . join ( root , ".agent-context" , "runs" , "fix-login-timeout-bug" , "iterations" , "001" , "iteration.json" ) ) ) ;
3739 assert . ok ( existsSync ( path . join ( root , ".agent-context" , "runs" , "fix-login-timeout-bug" , "iterations" , "001" , "guard.findings.json" ) ) ) ;
3840 assert . ok ( existsSync ( path . join ( root , ".agent-context" , "runs" , "fix-login-timeout-bug" , "iterations" , "001" , "guard.gates.json" ) ) ) ;
41+ const iterationArtifact = JSON . parse (
42+ readFileSync ( path . join ( root , ".agent-context" , "runs" , "fix-login-timeout-bug" , "iterations" , "001" , "iteration.json" ) , "utf8" )
43+ ) as { contextPolicy ?: { authority ?: { evidenceAuthority ?: boolean } } } ;
44+ assert . equal ( iterationArtifact . contextPolicy ?. authority ?. evidenceAuthority , false ) ;
3945 assert . match ( rendered , / # H a r n e s s O r c h e s t r a t o r / ) ;
4046 assert . match ( rendered , / # # E v i d e n c e S u m m a r y / ) ;
4147 assert . match ( rendered , / # # G u a r d G a t e s / ) ;
0 commit comments