code wiki / (root) / nx_clause_gate.nx

nx_clause_gate.nx

buildroot/runtime/nx_clause_gate.nx

8013 B94 linesdepth 8pulls 14 transitivereach 0 importersview sourcekind gate/prooftopic clause
docsdependenciesstructsconstsfunctions

about

nx_clause_gate.nx -- INDEPENDENT GATE: contract-text retrieval, redline drift, playbook risk. This gate runs on REAL CLAUSE TEXT, not on supplied flags. The teeth: u2605DELETION and INSERTION are measured SEPARATELY. The headline case below is a draft that RETAINS 100% of the standard clause -- it would score "identical" on any single similarity number -- while having an uncapped-liability carve-out bolted onto the end. Retention 1000, novelty 555, risk MEDIUM. That is precisely the edit that passes human review. u2605RETRIEVAL IS BY CONTENT, NOT BY HEADING: a paragraph that reads like an indemnity matches the indemnity standard even though it is offered as a liability clause. u2605AN UNMATCHED CLAUSE IS BLOCK, never "closest guess". u2605WORD BOUNDARIES ARE LOAD-BEARING: "liability" must not satisfy a search for "ability". license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_clause_lib.nx nx_gate_verdict.nx nx_clause_gate.nx

imports: nx_clause_lib.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap gv_head gv_puts sys_write gv_check gv_puts ↻ cl_word_count cl_word_at cl_is_word cl_lower cl_has_word cl_word_at ↻ mt_streq cl_retained_permille cl_word_at ↻ cl_has_word ↻ cl_deviation_permille cl_retained_permille ↻ cl_novel_permille cl_word_at ↻ cl_has_word ↻ cl_best_match cl_retained_permille ↻ cl_unmatched_risk_pure cl_best_score cl_best_match ↻ cl_retained_permille ↻ cl_risk_pure cl_auto_approve_pure cl_risk_label mt_catcopy gv_verdict gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_journal

structs

none

consts

none

functions

16func main(argc: i64, argv: *i64) -> i64