code wiki / _hdl_build / nx_deploy_provenance.nx

nx_deploy_provenance.nx

buildroot/runtime/_hdl_build/nx_deploy_provenance.nx

1794 B34 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic deploy
docsdependenciesstructsconstsfunctions

about

nx_deploy_provenance.nx -- the team addresses the ROOT CAUSE of the deploy uncertainty (operator: "build the team to address the risk and uncertainty"). The live sites.elf's source is LOST because no deploy ever recorded WHERE it was built from. Fix: every deploy STAMPS provenance -- source location + source content-hash + build id -- so the source is always re-findable and a rebuild is always verifiable. An artifact with no provenance is UNTRACEABLE (exactly what bit us); the team refuses to TRUST an untraceable binary for a risky re-deploy, and re-stamps on the next clean build to restore traceability going forward. license_tier: ORIGINAL Pairs with nx_deploy_verify + the Genealogist.

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_deploy_provenance.nx nx_deploy_provenance_test.nx

imports: nx_syscalls.nx

imported by: nx_deploy_provenance_test.nx

structs

none

consts

none

functions

12func prov_complete(has_source_loc: i64, has_source_hash: i64, has_build_id: i64) -> i64
called by 1: main
20func prov_traceable(provenance_complete: i64) -> i64 { return provenance_complete }
called by 1: main
23func prov_trust_for_redeploy(traceable: i64, hash_verifies: i64) -> i64
called by 1: main
30func prov_restored(was_traceable: i64, next_build_stamped: i64) -> i64
called by 1: main