🗺️ Context Scaffolding Roadmap¶
Last updated: 2025-10-09 (Europe/Paris)
This note captures the CLI improvements landed today and the follow-up work scheduled for the Accounts and Creators contexts.
✅ What’s Ready¶
context:makenow drives both single-artifact and bundle scaffolding through one entry point.- Composer scripts provide Sail-aware shortcuts:
composer run context:make -- {Name} --context=Catalog --model --migrationcomposer run context:delete -- {Name} --context=Catalog- MkDocs includes dark mode and a manual GitHub Pages workflow (ready for activation when the repo goes public).
📋 Next Steps (Starting Tomorrow)¶
- Accounts Context
- Scaffold domain layers: Models, Repositories, Contracts, Actions, DTOs.
- Generate HTTP stack: Controllers, Requests, Resources, Policies.
-
Wire context service providers and events to support auth/role flows.
-
Creators Context
- Mirror the Accounts stack (Models ⇢ HTTP ⇢ Policies).
-
Add domain events for cross-context communication (e.g., artist membership updates).
-
Shared Tasks
- Ensure repository bindings are registered in
config/repository.php. - Add feature tests covering the generated flows (auth + creators onboarding).
- Update documentation diagrams once the new entities are in place.
Quick Commands¶
# Bundle scaffold using Composer (preferred wrapper)
composer run context:make -- Artist --context=Creators --model --migration --controller --requests --policy --resource --repository
# Tear down if you need to re-run adjustments
composer run context:delete -- Artist --context=Creators
Keep this page up to date as milestones are completed. It acts as the rolling checklist while the team builds out both contexts.