Repository navigation
docs(planning): reconcile ROADMAP and MILESTONES with M0-M5 engineering milestones - #56
Sagnikabhol wants to merge 2 commits into
Conversation
itxtarun2727
left a comment
There was a problem hiding this comment.
🔍 Architectural Review — PR #56
Review Status: ❌ Request Changes
Reviewer: @itxtarun2727
Referenced Issue: Resolves #45
1. Executive Summary & What This PR Does Well
First, thank you for tackling this issue so quickly, @Sagnikabhol!
- CI Quality: All 10 GitHub Actions checks are passing cleanly (zero formatting errors, clean linting, and zero security firewall triggers).
- High-Level Alignment: You correctly identified that our high-level milestone narrative needed to be structured around the
M0–M5taxonomy. - Root Roadmap Cleanup: Updating
ROADMAP.mdto reflectM0–M5in the Mermaid chart and narrative is a welcome update.
However, after a deep dive into our live GitHub milestones, open issues, and the requirements of Issue #45, there are three critical discrepancies that must be resolved before this PR can be approved and merged.
2. Critical Discrepancies & Issues Found
⚠️ Issue 1: Off-by-One Milestone Shift Against Live GitHub Milestones
In your changes, all frontend work (design tokens, UI primitives, marketing page, preview simulator, and route shells) was grouped under M0.
This caused an off-by-one shift across every subsequent milestone in the repository:
- You labeled Backend Foundation as
M1(In GitHub, it isM2). - You labeled WhatsApp Automation as
M2(In GitHub, it isM3). - You labeled Email Automation as
M3(In GitHub, it isM4). - You labeled Client Hardening as
M4(In GitHub, it isM5).
Why this breaks things:
Our automated PR and issue labeler (.github/workflows/labeler.yml) and all 31 open issues rely on the canonical GitHub milestone definitions:
M0= Repository and engineering foundation (Baseline monorepo, CI/CD, governance)M1= Frontend foundation and internal console (Phases 6–10 / v2.0: Marketing page, preview simulator, route shells)M2= Backend foundation and financial core (Phase 1: BullMQ, Zod configs, P0 billing core)M3= WhatsApp automation MVP (Phase 2: Meta Cloud API)M4= Email automation MVP (Phase 3: Amazon SES / Resend)M5= Operational hardening and internal pilot (Phases 4 & 5: Deployment packs, financial close)
Example: Issue #19 (packages/configuration) is officially assigned to GitHub Milestone M2. Under your PR's text, it would be documented as M1, creating confusion between GitHub and .planning.
⚠️ Issue 2: Omission of the Primary Deliverable (The Mapping Table)
Issue #45 explicitly defined the core deliverable as:
"Add one mapping section to .planning/ROADMAP.md (or MILESTONES.md): a table mapping each M0-M5 GitHub milestone to the ROADMAP phases and issue numbers it contains, in both directions."
The PR modified document headings and narrative text, but the cross-reference mapping table was omitted. Without this table, an engineer cannot quickly look up which GitHub milestone maps to which .planning phase and issue number.
⚠️ Issue 3: Loss of Granular Phase Detail in ROADMAP.md
Issue #45 explicitly stated:
"The .planning files (ROADMAP.md with Phases 0-10, MILESTONES.md, STATE.md) already contain the underlying detail and must remain the source of truth. A second competing roadmap must not come into existence."
In .planning/ROADMAP.md, 207 lines of granular phase definitions (Phase 0 through Phase 10) were replaced with "Tracks" (Track M0.A, Track M0.B, etc.).
- Our historical phase execution files in
.planning/phases/(such as06-...,07-..., and08-...) are indexed by phase numbers (Phase 6,Phase 7,Phase 8). - We need to retain the underlying
Phase 0throughPhase 10detailed definitions rather than deleting them.
⚠️ Issue 4: PR Verification & Description Checklist
Issue #45 specified that:
- The commit message should be:
docs: reconcile roadmap with M0-M5 milestones - The PR description must include a screenshot of the rendered mapping table and a list of verified issue numbers.
3. Actionable Fix: How to Resolve & Get Approved
To get this PR approved, please make the following updates:
Step 1: Restore Phase Detail in .planning/ROADMAP.md
Keep the existing Phase 0 through Phase 10 sections intact so our historical phase records remain 100% traceable.
Step 2: Add the Canonical Mapping Table into .planning/MILESTONES.md
Add a dedicated section titled ## GitHub Milestone Mapping (M0–M5) containing this exact cross-reference table:
| GitHub Milestone | Milestone Title | Corresponding ROADMAP Phases | Active & Key Issue #s | Milestone Focus & Core Deliverables |
|---|---|---|---|---|
M0 |
Repository and engineering foundation | Phase 0 | #1, #2, #3, #13 | Monorepo baseline (pnpm), ADRs 001–005, CI/CD pipelines, security firewalls, governance docs. |
M1 |
Frontend foundation and internal console | Phases 6, 7, 8, 9, 10 (Milestone v2.0) | #14, #15, #16, #17, #18, #35, #45, #56 | Design tokens, accessible Radix UI, marketing landing page, preview simulator, route shells ((auth), (app)). |
M2 |
Backend foundation and financial core | Phase 1 | #19, #20, #21, #22, #23, #24 | packages/configuration, packages/queue, packages/retry, packages/billing-core (P0 ledger), packages/observability. |
M3 |
WhatsApp automation MVP | Phase 2 | #25, #26, #27, #28, #36 | Meta Cloud API v21.0, HMAC webhook verification, template validation, STOP opt-out, rate-card attribution. |
M4 |
Email automation MVP | Phase 3 | #29, #30, #31, #32, #37 | Amazon SES & Resend adapters, template engine, bounce/complaint webhooks, unit spend ledgering. |
M5 |
Operational hardening and internal pilot | Phases 4 & 5 | #33, #34, #38, #39, #40, #41, #42, #43, #44 | Docker client deployment packs, health/readiness probes, DLQ replay CLI, monthly financial close reconciliation. |
Step 3: Align Milestone Headings in .planning/MILESTONES.md & ROADMAP.md
Ensure headers reflect the true GitHub taxonomy:
M0: Repository and Engineering FoundationM1: Frontend Foundation and Internal ConsoleM2: Backend Foundation and Financial CoreM3: WhatsApp Automation MVPM4: Email Automation MVPM5: Operational Hardening and Internal Pilot
Step 4: Update .planning/STATE.md
Update the active milestone pointer to:
- **Current Milestone**: M1 — Frontend Foundation and Internal Console (Phases 8–10)Step 5: Update PR Description
Attach a screenshot of the rendered mapping table preview in the PR description and note the verified issue numbers.
Once these updates are pushed, ping me and I will promptly approve and merge. Great effort so far—let's get this across the finish line!
|
@itxtarun2727 All requested updates from your architectural review have been completed:
Ready for your re-review and approval! |
itxtarun2727
left a comment
There was a problem hiding this comment.
✅ Architectural Review: Approved!
Outstanding work addressing the review feedback, @Sagnikabhol! 🎯
Verification Summary:
- Canonical Taxonomy: The
M0–M5engineering milestone taxonomy now mirrors live GitHub milestones and.github/workflows/labeler.ymlwith zero drift. - Traceability Preserved: All granular
Phase 0throughPhase 10execution plans, requirements mappings, and exit criteria are fully retained in.planning/ROADMAP.md. - Bidirectional Table: The mapping table in
.planning/MILESTONES.mdestablishes clear bidirectional navigation between GitHub issues and internal planning docs. - Quality Gates: All CI checks are green, and our security regex firewall passed with zero triggers.
This is ready for merge. Thank you for the quick and thorough turnaround! 🚀
|
This pull request has been automatically marked as stale because it has had no activity in the last 14 days. Please rebase, update, or comment on the next steps for this PR — otherwise it will be closed in 7 days. |
Summary of Changes (Addressing Review Feedback from @itxtarun2727)
.planning/ROADMAP.md.## GitHub Milestone Mapping (M0-M5)in.planning/MILESTONES.mdcontaining the bidirectional mapping between GitHub milestones, roadmap phases, and active issue numbers..planning/STATE.mdto track current milestone asM1 - Frontend Foundation and Internal Console (Phases 8-10).Canonical GitHub Milestone Mapping Table
pnpm), ADRs 001-005, CI/CD pipelines, security firewalls, governance docs.(auth),(app)).packages/configuration,packages/queue,packages/retry,packages/billing-core(P0 ledger),packages/observability.Type of Change
docs: Documentation, ADRs, or planning filesTraceability & Requirements Mapping
Mandatory Security & Policy Checklist (All Must Be Checked)
STOP) are honored.@pathixo/billing-core.Testing Performed