nx_drm_audit.nx
buildroot/runtime/nx_drm_audit.nx
about
nx_drm_audit.nx -- cartridge/printer DRM auditor: classify the DRM mechanism(s) in play and pair each with
the HONEST bypass, NEVER-BRICK by construction (#26). Grounded in the sovereign researcher's cited cases:
- "fake empty" (vendor disables a cartridge while consumable remains) -- HP $5M settlement.
- firmware that blocks 3rd-party consumables -- HP ($1.5M), Epson (2019 class action), Canon, Brother
(HOP planned-obsolescence suit). [Brother/HP/Canon/Epson all named.]
- smart chips enforcing genuine/region/expiry -- chip-resetters exist; Brother chipped since 2017.
THE NEVER-BRICK PROPERTY (#26, brand-critical, proven MECHANICALLY here, not asserted as a promise): EVERY
bypass this auditor recommends is read-only / reversible / externally-guided and writes NO printer firmware/
NVRAM. A hypothetical firmware-write action is included so the gate can PROVE the recommender never emits it.
PURE arithmetic classifier, no syscalls -> safe by construction. license_tier: ORIGINAL
genealogy_id: project-printer-management-ipp-sclass-2026-06-20
dependencies 0 imports · 1 importers
imports: none
imported by: nx_drm_audit_test.nx
structs
| none |
consts
| 16 | const NX_DRMV_UNKNOWN: i64 = 0 |
| 17 | const NX_DRMV_HP: i64 = 1 |
| 18 | const NX_DRMV_EPSON: i64 = 2 |
| 19 | const NX_DRMV_CANON: i64 = 3 |
| 20 | const NX_DRMV_BROTHER: i64 = 4 |
| 23 | const NX_DRM_NONE: i64 = 0 |
| 24 | const NX_DRM_FAKE_EMPTY: i64 = 1 // reports empty while consumable remains (HP $5M class) |
| 25 | const NX_DRM_FIRMWARE_BLOCK: i64 = 2 // firmware disables 3rd-party consumables (HP/Epson/Canon/Brother) |
| 26 | const NX_DRM_CHIP: i64 = 4 // smart chip enforces genuine/region/expiry |
| 29 | const NX_BYP_NONE: i64 = 0 |
| 30 | const NX_BYP_CONTINUE_MODE: i64 = 1 // the printer's OWN reversible Continue setting + trust our real coverage |
| 31 | const NX_BYP_REFUSE_FIRMWARE: i64 = 2 // do NOT apply the vendor firmware update; our IPP path ignores driver-DRM |
| 32 | const NX_BYP_CHIP_RESET: i64 = 3 // external chip-reset tool on the CARTRIDGE's chip (guided, physical) |
| 33 | const NX_BYP_FIRMWARE_DOWNGRADE: i64 = 9 // DANGEROUS: writes printer firmware -- we NEVER recommend this (#26) |
functions
| 37 | func nx_drm_vendor_blocks(vendor: i64) -> i64 called by 1: nx_drm_classify |
| 48 | func nx_drm_classify(vendor: i64, cartridge_chipped: i64, reported_empty: i64, real_remaining_bp: i64) -> i64 |
| 58 | func nx_drm_flag_count(flags: i64) -> i64 called by 1: main |
| 67 | func nx_drm_bypass_for(flag: i64) -> i64 called by 1: main |
| 77 | func nx_drm_bypass_writes_firmware(action: i64) -> i64 called by 1: main |