code wiki / (root) / nx_redact_gate.nx

nx_redact_gate.nx

buildroot/runtime/nx_redact_gate.nx

5119 B100 linesdepth 7pulls 13 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_redact_gate.nx -- REDACTION COMPLETENESS GATE. Proves precise SSN detection (and the boundary precision that avoids false positives on a wrong grouping, a trailing extra digit, or an SSN-shaped run embedded after digits), privilege-marker scanning, the empty- needle hole being closed, and the FAIL-CLOSED production decision (producible only if reviewed AND clean; a reviewed-but-dirty doc and an unreviewed-clean doc are both blocked). license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_redact_lib.nx nx_matter_lib.nx nx_redact_gate.nx

imports: nx_redact_lib.nxnx_matter_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main rg_puts redact_len rg_ck rg_puts ↻ rg_putn redact_find_ssn redact_is_ssn_at redact_is_digit redact_count_ssn redact_is_ssn_at ↻ redact_clean_for_productio redact_find_ssn ↻ redact_contains redact_contains ↻ redact_production_ok redact_clean_for_productio ↻ rg_putn ↻

structs

none

consts

none

functions

10func rg_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: rg_ckmain
11func rg_putn(v: i64) -> i64
called by 2: rg_ckmain
25func rg_ck(cnt: *i64, name: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: rg_putsrg_putn
37func main(argc: i64, argv: *i64) -> i64