Repository navigation
test(core): architecture gate — classification and free text can never enter core (phase 6) - #825
Merged
Merged
Conversation
…r enter core (phase 6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.