feat(knowledge): atomically publish proof obligation graph with semantic generation

This commit is contained in:
cflmy committed 2026-11-18 12:35:43 +08:00
1 parent 5c728b6581
commit 25833895db
1 file changed
+5 -2
+5 -2
View File
@@ -1509,6 +1509,7 @@ const SEMANTIC_NAMES: &[&str] = &[
"anchors.json",
"claims.json",
"proof-index.json",
"proof-obligations.json",
"bound_calls.json",
"dynamic_calls.json",
"artifacts",
@@ -1642,8 +1643,10 @@ fn write_generation_tree(stage: &Path, compilation: &Compilation, prove_root: &P
"role":"theorem_declarations_not_proof_results",
"claims":project["claims"]
}))?;
write_json(&stage.join("proof-index.json"),
&crate::knowledge::proof::index_links(prove_root, &compilation.semantics))?;
let proofs=crate::knowledge::proof::index_links(prove_root, &compilation.semantics);
write_json(&stage.join("proof-index.json"), &proofs)?;
write_json(&stage.join("proof-obligations.json"),
&crate::knowledge::modular::analyze(&compilation.semantics, &proofs))?;
write_json(&stage.join("anchors.json"), &json!({
"schema_version":SCHEMA_VERSION,
"role":"stable_public_knowledge_addresses",