nx_adoptgate_content_gate_t310.nx source
↩ module page · 17 lines · 1416 B
1import "nx_adoptgate.nx"
2import "nx_contentdiff_cli_gate_t295.nx"
3func main()->i64{
4 let ctr:*i64=gv_ctr()
5 let live:*u8="../nx_gltf_render_prepare_candidate_t230.elf"
6 let next:*u8="../nx_gltf_render_prepare_candidate_t230.sov.elf.new"
7 gv_check("actual adoption content uses qualified native result",ag_content_paths(live,next,"material-actual")==0,ctr)
8 gv_check("actual artifact self comparison admitted",ag_content_paths(live,live,"self")==0,ctr)
9 gv_check("real tail loss refuses adoption",ag_content_paths("knowledge/gates/contentdiff-tail-live-t295.elf","knowledge/gates/contentdiff-tail-new-t295.elf","tail-loss")==1,ctr)
10 gv_check("unknown encoding refuses adoption",ag_content_paths(live,"knowledge/gates/contentdiff-unknown-t295.elf","unknown")==1,ctr)
11 gv_check("unreadable never becomes initial promotion",ag_content_paths("knowledge/gates/absent-adoption-t310",next,"missing")==1,ctr)
12 let spoof:*u8="comparison_kind=elf-structured-v1 structured_state=0\nruns_scanned=10 lost_from_live=0 source_removed=0\nNX-CONTENTDIFF verdict=GREEN\n"
13 let path:*u8="knowledge/gates/adoption-green-text-t310.txt"
14 if ccg_fixture(path,spoof,vw_slen(spoof))!=1{return 2}
15 gv_check("green text cannot substitute for binary evidence",ag_content_paths(path,next,"spoof")==1,ctr)
16 return gv_verdict("ADOPT-CONTENT-TYPED",ctr,"Actual native content stage only; behavior capture and serving adoption remain unqualified")
17}