Skip to content

refactor(core): extract cross-artifact validator (phase 3b) - #9

Merged
Dukeabaddon merged 4 commits into
mainfrom
feat/production-phase-3b-cross-artifact
Aug 12, 2026
Merged

refactor(core): extract cross-artifact validator (phase 3b)#9
Dukeabaddon merged 4 commits into
mainfrom
feat/production-phase-3b-cross-artifact

Conversation

@Dukeabaddon

Copy link
Copy Markdown
Owner

Summary

  • Extract cross-artifact reference helpers from controller.ts into controller/cross-artifact-validator.ts.
  • Covers collectArtifactReferences, expectedProducer, expectedReferenceType, system-reference validation, and roleByPhase.
  • Add characterization tests in cross-artifact-validator.test.ts. RunController public API unchanged.

Stack

Depends on #7 (phase 3a evidence validator). Merge #7 first; this PR diff shrinks to phase 3b only after that lands.

Test plan

  • npm test -- packages/core test/full-flow-conformance.test.ts
  • npm run format:check
  • controller.ts reduced to 4100 lines

Move direct-evidence path checks and capability-to-kind mapping into
controller/evidence-validator.ts so controller.ts stays a facade.
Move reference collection, producer mapping, and system-reference
validation helpers into controller/cross-artifact-validator.ts.
@Dukeabaddon Dukeabaddon mentioned this pull request Aug 12, 2026
3 tasks
@Dukeabaddon
Dukeabaddon merged commit 89afcff into main Aug 12, 2026
3 checks passed
@Dukeabaddon
Dukeabaddon deleted the feat/production-phase-3b-cross-artifact branch August 12, 2026 06:53
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