Skip to content

Add loader-ready ValidationBinding schema corpus - #643

Merged
evomimic merged 1 commit into
mainfrom
628-val0-descriptor-aware-validation-tdldocs-seed-precursor
Aug 17, 2026
Merged

Add loader-ready ValidationBinding schema corpus #643
evomimic merged 1 commit into
mainfrom
628-val0-descriptor-aware-validation-tdldocs-seed-precursor

Conversation

@evomimic

Copy link
Copy Markdown
Owner

Summary

Implements #628: deliver the loader-ready MAP Validation Schema as canonical TDL and generated JSON.

Validation applicability is now validation-owned:

ValidationBinding -[AppliesTo]-> TypeDescriptor
ValidationBinding -[UsesRule]-> ValidationRule

This preserves Core ownership of Core descriptors while making rule applicability explicit and traversable.

Changes

  • Adds schema-src/map-validation-schema.tdl as the canonical Validation Schema source.
  • Adds generated map-validation-schema.json under generated/json-imports.
  • Replaces descriptor-owned Validations attachments with ValidationBinding, AppliesTo, UsesRule, and inverse relationships.
  • Seeds 51 bindings and distinct rules for all 43 stable DS-* semantic authorities, including DS-CONSTRAINT-001.
  • Ensures validation rule and binding descriptor roots expose Core ComponentOf through InstanceRelationships, allowing the package to load after Core.
  • Adds Sweettest coverage that loads generated Core, begins a new transaction, then loads the generated Validation Schema.
  • Adds clearer loader-response diagnostics for package-import failures.

Validation

  • npm run map-schema:check -- schema-src
  • npm test
  • Sweettest validation package import: 155 holons staged and committed, zero errors.
  • Holon Data Validator & Uploader path previously confirmed clean package loading with zero errors and Complete status.
  • Pre-push formatting checks passed.

Notes

This PR delivers the Validation Schema corpus and loader-ready package boundary. It does not implement descriptor-aware runtime validation, ValidationRule wrapper dispatch, or Validate execution; those remain later Validation-track work.

@evomimic evomimic linked an issue Aug 17, 2026 that may be closed by this pull request
8 tasks
@evomimic

Copy link
Copy Markdown
Owner Author

Approved.

PR #643 fulfills #628’s loader-ready Validation Schema scope: canonical TDL and generated JSON, validation-owned ValidationBinding / AppliesTo / UsesRule associations, complete stable DS-* seeding including DS-CONSTRAINT-001, and Sweettest coverage loading Validation after committed Core in a new transaction.

Verified CI is green (ci_pass, fmt, test) on 68bd36d2. Manual verification reported passing for build:happ, build:host, npm test, and npm start; map-schema:check -- schema-src also reports no diagnostics.

The PR appropriately stops at schema/package loading and does not claim to implement runtime descriptor-aware validation, wrapper dispatch, or Validate execution.

@evomimic
evomimic merged commit cb9b674 into main Aug 17, 2026
3 checks passed
@evomimic
evomimic deleted the 628-val0-descriptor-aware-validation-tdldocs-seed-precursor branch August 17, 2026 18:38
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.

VAL0 Descriptor-Aware Validation TDL/docs seed precursor

1 participant