Skip to content

refactor(core): extract work-plan and permission-trace validators (phase 3c) - #10

Merged
Dukeabaddon merged 2 commits into
mainfrom
feat/production-phase-3c-work-plan
Aug 12, 2026
Merged

refactor(core): extract work-plan and permission-trace validators (phase 3c)#10
Dukeabaddon merged 2 commits into
mainfrom
feat/production-phase-3c-work-plan

Conversation

@Dukeabaddon

Copy link
Copy Markdown
Owner

Summary

  • Extract WorkPlan submission validation and scoped work-order checks into controller/work-plan-validator.ts
  • Extract PermissionAuthorizationError, tracePermissionDecision, and work-result permission trace events into controller/permission-trace.ts
  • Add unit tests for both modules; RunController facade unchanged

Test plan

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

…ase 3c)

Move WorkPlan submission validation, scoped work-order checks, and
permission trace helpers out of controller.ts into dedicated modules
without changing the RunController public API.
@Dukeabaddon Dukeabaddon mentioned this pull request Aug 12, 2026
3 tasks
@Dukeabaddon
Dukeabaddon merged commit 7e98291 into main Aug 12, 2026
3 checks passed
@Dukeabaddon
Dukeabaddon deleted the feat/production-phase-3c-work-plan branch August 12, 2026 07:00
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