code wiki / _hdl_build / nx_docportal_aiblog_lib.nx

nx_docportal_aiblog_lib.nx

buildroot/runtime/_hdl_build/nx_docportal_aiblog_lib.nx

3655 B65 linesdepth 4pulls 5 transitivereach 1 importersview sourcekind librarytopic docportal
docsdependenciesstructsconstsfunctions

about

nx_docportal_aiblog_lib.nx -- the POLICY-GATED AI-blog writer (operator: "whether an ai writer can publish blog posts with the content"). Composes a blog draft for a domain from ONLY the uploads whose owner flagged DP_USE_AI_BLOG -- enforced by construction (a doc without the flag never enters the AI-blog corpus) AND re-checked LIVE per doc (dp_may) so a consent withdrawal excludes it at once. HONEST SCOPE: the composer is a SOVEREIGN EXTRACTIVE seat (deterministic title + intro + a lead excerpt per permitted doc + footer) -- the governed "writing seat" of the Nishi Writer, not a neural LLM. The GOVERNANCE (whose content, only with consent) is the point; swapping in a stronger generation seat does not change the gate. Composes nx_docportal_lib. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_docportal_lib.nx nx_docportal_aiblog_lib.nx nx_docportal_policy_gate.nx

imports: nx_docportal_lib.nx

imported by: nx_docportal_policy_gate.nx

structs

none

consts

none

functions

10func ab_cat(out: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { out[o] = s[i]; o = o + 1; i = i + 1 } return o }
13func ab_excerpt(out: *u8, o: i64, text: *u8, n: i64, maxlen: i64) -> i64
called by 1: ab_compose_blog calls 1: ab_cat
23func ab_compose_blog(domain: *u8, title: *u8, out: *u8, cap: i64, countout: *i64) -> i64