code wiki / (root) / nx_docket_lib.nx

nx_docket_lib.nx

buildroot/runtime/nx_docket_lib.nx

2981 B81 linesdepth 7pulls 12 transitivereach 5 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_docket_lib.nx -- Nishi Office DOCKETING / deadline engine (F507, Utah URCP). Never-miss = the biggest malpractice tail-risk. DATA-DRIVEN rules (rule-11): each rule {days, mode, desc} lives in the seg-store, NOT hardcoded -- add a rule = a data change. URCP Rule 6: a calendar deadline landing on a weekend ROLLS FORWARD to the next business day. Business-day mode counts only business days. Dates = integer day-index (day 0 = Monday; day%7: 0..4 = Mon..Fri, 5/6 = Sat/Sun). YYYYMMDD conversion + court-holiday table = flagged next rungs. DRY: reuses nx_matter_lib helpers. LIB (no main). license_tier: ORIGINAL

dependencies 1 imports · 3 importers

nx_matter_lib.nx nx_docket_lib.nx nx_docket.nx nx_docket_gate.nx nx_matter_intake_lib.nx

imports: nx_matter_lib.nx

imported by: nx_docket.nxnx_docket_gate.nxnx_matter_intake_lib.nx

structs

none

consts

10const K_MAGIC_1024: i64 = 1024

functions

12func dk_atoi(s: *u8) -> i64
called by 1: dk_rule_days
22func dk_is_weekend(day: i64) -> i64
called by 2: maindk_compute
29func dk_rule_put(prefix: *u8, id: *u8, days: i64, mode: i64, desc: *u8) -> i64
50func dk_rule_days(prefix: *u8, id: *u8, mode_out: *i64) -> i64
65func dk_compute(prefix: *u8, id: *u8, trigger: i64) -> i64