Skip to main content

MRP/CRP Wave 6 rendering templates build log

Tier: Public Status: Shipped (2026-05-26) Started: 2026-05-26 Scope: RFC-0007 document templates and module-owned render-job routes for canonical mrp and crp.

[!NOTE] Wave 6 registers eight module-owned templates and convenience HTTP routes that submit async persist-to-media rendering jobs through the platform pipeline. It does not add MRP/CRP writes, persisted projection rows, new AI export tools, or email delivery.


Source Documents


Canonical / Vertical Guardrails

  • Templates call @umbraculum/rendering only; no module-private PDF/XLSX/CSV libraries.
  • Payload builders reuse Wave 5 read services and brewery/automation projections.
  • Preserve sourceModule / sourceRefId on all projected entities in template data.
  • Do not parse projection IDs to infer ownership or materialize MRP/CRP rows.

Template Registry (8)

RefKindModule
mrp:work-order-pdf@v1pdfmrp
mrp:route-card-pdf@v1pdfmrp
mrp:material-requirements-xlsx@v1xlsxmrp
mrp:production-order-csv@v1csvmrp
crp:capacity-load-xlsx@v1xlsxcrp
crp:schedule-pdf@v1pdfcrp
crp:resource-calendar-csv@v1csvcrp
crp:conflict-report-pdf@v1pdfcrp

Phase Log

PhaseStatusFiles / artifactsVerification
Phase 0 — build logShippedThis file
Phase A — contractsShippedpackages/canonical/mrp/contracts, packages/canonical/crp/contracts documentTemplates.ts + distnpm run test -w @umbraculum/mrp-contracts / crp-contracts in container
Phase B — payload buildersShippedworkOrderDocumentService.ts, capacityExportService.tsCovered by render integration tests
Phase C — templates + registrationShippedmrp/documentTemplates.ts, crp/documentTemplates.ts, htmlToPdf.tsmrpCrpModuleRegistration.test.ts (8 refs)
Phase D — HTTP routesShippedworkOrdersRoutes.ts, capacityRenderRoutes.tsmrpCrpRendering.test.ts
Phase E — render_document proofShippedrenderDocumentTool.test.tsVitest (MRP + CRP template refs)
Phase F — testsShippedmrpCrpRendering.test.ts, registration + AI tests12 tests green in api container (Gotenberg + Redis)
Phase G — docsShippedsurface docs, MODULES, ROADMAP, AI-CONSULTANT, module pages, package READMEscheck-readmes
Phase H — verificationShippedtypecheck, vitest, eslint (targeted), check-readmesSee notes below

Verification Notes

  • Packages: ./scripts/build-packages-in-docker.sh; contract package tests in container.
  • API: docker compose exec -T api npm run typecheck.
  • Tests: docker compose exec -T api npx vitest run src/tests/mrpCrpRendering.test.ts src/tests/mrpCrpModuleRegistration.test.ts src/tests/ai/renderDocumentTool.test.ts (requires gotenberg + redis).
  • Docs: python3 scripts/docs/check-readmes.py.
  • Not claimed: MRP/CRP alpha-complete, propose/write tools, email delivery.
  • Follow-on: mrp-crp-alpha-demo-closure-build-log.md — web export buttons, walkthrough runbook, full render-job test matrix, Playwright export smoke.