Skip to content

test(core): architecture gate — classification and free text can never enter core (phase 6) - #825

Merged
iamtoruk merged 1 commit into
feat/core-extractionfrom
phase6/classifier-gate
Jul 26, 2026
Merged

iamtoruk merged 1 commit into
feat/core-extractionfrom
phase6/classifier-gate

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

Phase 6 of #809, executing D2-A. Audit result: the classification/corrections boundary was already fully host-side after Phase 3 — every consumer mapped (classifier, workflow-insights corrections, self-corrections, optimize/dashboard categories), zero leakage, nothing relocated. The deliverable is permanence: a 9-test architecture gate — (1) source scan asserting no core file can contain category names, correction phrases, classifier identifiers, or userMessage outside the 4 allowlisted rich-decode carriers; (2) schema scan enumerating all 44 string-typed fields across the three committed schema versions, asserting every one is const/enum/pattern/date-time/maxLength-bounded or an allowlisted machine identifier — a future unconstrained string property fails CI. Allowlists documented and justified (incl. the 'git' CommandFamily false positive). D2 ruling noted in workflow-insights header. Root 2254 unchanged; core 144; tsc clean.

@iamtoruk
iamtoruk merged commit 07f9998 into feat/core-extraction Jul 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant