@@ -257,7 +257,7 @@ def provision_qualification_root(root: Path) -> None:
257257 """Provision a hermetic qualification root the completion writer accepts.
258258
259259 The writer reads firmware/versions.lock, the committed OI-1 policy, and
260- the retained a8be631d baseline under the qualification root
260+ the exact retained baseline bound by that policy under the qualification root
261261 (release_bundle._load_qualification_policy), and proves the candidate's
262262 source-era ancestry with git against that same root. Copy the REAL files
263263 so the fixture exercises the production parse and threshold verification,
@@ -276,13 +276,10 @@ def provision_qualification_root(root: Path) -> None:
276276 (gates_dir / "oi1-gates.json" ).write_bytes (
277277 (repo / "firmware" / "qualification" / "oi1-gates.json" ).read_bytes ()
278278 )
279- baseline_rel = Path ("docs" ) / "validation" / "firmware" / "oi1"
280- baseline_dir = root / baseline_rel
281- baseline_dir .mkdir (parents = True )
282- baseline_name = "a8be631df46590166307aa41afaea30b39e29230.json"
283- (baseline_dir / baseline_name ).write_bytes (
284- (repo / baseline_rel / baseline_name ).read_bytes ()
285- )
279+ policy , _ = RELEASE ._load_qualification_policy (repo )
280+ baseline_rel = Path (policy ["baseline_evidence" ]["path" ])
281+ (root / baseline_rel ).parent .mkdir (parents = True )
282+ (root / baseline_rel ).write_bytes ((repo / baseline_rel ).read_bytes ())
286283 (root / ".git" ).write_text (
287284 "gitdir: %s\n " % _repo_git ("rev-parse" , "--absolute-git-dir" ),
288285 encoding = "utf-8" ,
0 commit comments