k-skill/scripts
Jeffrey (Dongkyu) Kim 47cdc09b4a Prevent delivery doc schema drift from reintroducing extra public fields
Tighten the delivery-tracking docs regression so it parses the published
CJ and 우체국 normalized JSON examples and compares them against exact
allowlisted key sets for both the top-level object and each recent-events
entry. This closes the prior presence-only gap without expanding the
follow-up beyond the docs verification surface.

Constraint: Follow-up scope is limited to scripts/skill-docs.test.js and the existing PR #11 branch
Rejected: Add more denylist regexes only | still leaves room for renamed PII-bearing keys to slip into published examples
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep any future published delivery example changes aligned with these exact top-level and recent_events allowlists before widening the public contract
Tested: node --test scripts/skill-docs.test.js
Tested: npm run ci
Tested: python3 normalized CJ official endpoint verification for 1234567890
Tested: python3 우체국 follow-up verification for 1234567890123
Not-tested: No mutated negative fixture was added beyond the published examples already checked by the regression suite
2026-03-27 01:55:51 +09:00
..
check-setup.sh Prepare k-skill for packaged releases and broader skill discovery 2026-03-25 23:57:53 +09:00
skill-docs.test.js Prevent delivery doc schema drift from reintroducing extra public fields 2026-03-27 01:55:51 +09:00
validate-skills.sh Prepare k-skill for packaged releases and broader skill discovery 2026-03-25 23:57:53 +09:00