Skip to content

docs(planning): reconcile ROADMAP and MILESTONES with M0-M5 engineering milestones - #56

Open
Sagnikabhol wants to merge 2 commits into
mainfrom
docs/reconcile-m0-m5-milestones
Open

Sagnikabhol wants to merge 2 commits into
mainfrom
docs/reconcile-m0-m5-milestones

Conversation

@Sagnikabhol

@Sagnikabhol Sagnikabhol commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary of Changes (Addressing Review Feedback from @itxtarun2727)

  • Restored Granular Phase Detail: Retained all detailed sections for Phase 0 through Phase 10 in .planning/ROADMAP.md.
  • Added Canonical Mapping Table: Added dedicated section ## GitHub Milestone Mapping (M0-M5) in .planning/MILESTONES.md containing the bidirectional mapping between GitHub milestones, roadmap phases, and active issue numbers.
  • Aligned Milestone Taxonomy: Fixed off-by-one milestone shift to strictly match live GitHub milestones:
    • M0: Repository and engineering foundation (Phase 0)
    • M1: Frontend foundation and internal console (Phases 6-10 / v2.0)
    • M2: Backend foundation and financial core (Phase 1)
    • M3: WhatsApp automation MVP (Phase 2)
    • M4: Email automation MVP (Phase 3)
    • M5: Operational hardening and internal pilot (Phases 4 & 5)
  • Updated State Tracker: Updated .planning/STATE.md to track current milestone as M1 - Frontend Foundation and Internal Console (Phases 8-10).

Canonical GitHub Milestone Mapping 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.

Type of Change

  • docs: Documentation, ADRs, or planning files

Traceability & Requirements Mapping

Mandatory Security & Policy Checklist (All Must Be Checked)

  • Application Isolation: Changes in one app do not break independent compilation/deployment of the other.
  • Zero Credential Leaks: No Meta System User Tokens, phone IDs, Resend keys, or secrets are present in code or fixtures.
  • WhatsApp Business Policy Compliance: Workflows verify explicit opt-in/consent before dispatch; out-of-session dispatches use approved templates only; opt-out keywords (STOP) are honored.
  • Idempotency Guard: All outbound dispatches and webhook ingestions enforce duplicate prevention via unique idempotency keys.
  • Financial Metering Attribution: Outbound billable events emit traceable usage records with dynamic rate cards from @pathixo/billing-core.
  • Quality Checks: Documentation syntax, table formatting, and Mermaid diagrams verified.

Testing Performed

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 9, 2026

@itxtarun2727 itxtarun2727 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 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–M5 taxonomy.
  • Root Roadmap Cleanup: Updating ROADMAP.md to reflect M0–M5 in 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 is M2).
  • You labeled WhatsApp Automation as M2 (In GitHub, it is M3).
  • You labeled Email Automation as M3 (In GitHub, it is M4).
  • You labeled Client Hardening as M4 (In GitHub, it is M5).

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 as 06-..., 07-..., and 08-...) are indexed by phase numbers (Phase 6, Phase 7, Phase 8).
  • We need to retain the underlying Phase 0 through Phase 10 detailed definitions rather than deleting them.

⚠️ Issue 4: PR Verification & Description Checklist

Issue #45 specified that:

  1. The commit message should be: docs: reconcile roadmap with M0-M5 milestones
  2. 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 Foundation
  • M1: Frontend Foundation and Internal Console
  • M2: Backend Foundation and Financial Core
  • M3: WhatsApp Automation MVP
  • M4: Email Automation MVP
  • M5: 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!

@Sagnikabhol

Copy link
Copy Markdown
Collaborator Author

@itxtarun2727 All requested updates from your architectural review have been completed:

  1. Restored Full Phase Details: Retained detailed Phase 0-10 specifications in .planning/ROADMAP.md.
  2. Canonical Mapping Table: Added the bidirectional cross-reference table under ## GitHub Milestone Mapping (M0-M5) in .planning/MILESTONES.md and embedded the full rendered table directly in the PR description above.
  3. Milestone Alignment: Fixed the taxonomy across .planning/MILESTONES.md, .planning/ROADMAP.md, and root ROADMAP.md to match live GitHub milestones (M0 = Phase 0, M1 = Phases 6-10, M2 = Phase 1, M3 = Phase 2, M4 = Phase 3, M5 = Phases 4 & 5).
  4. State Tracker: Updated .planning/STATE.md to reflect M1 - Frontend Foundation and Internal Console (Phases 8-10).
  5. Verified Issue Numbers: Verified and linked all issues feat(security): implement meta credential firewall, whatsapp policy checks, dependabot, and 4x daily vulnerability scanner #1-Documentation task: reconcile .planning ROADMAP and MILESTONES with the M0-M5 engineering milestone grouping #45 in the mapping table.
  6. Commit Message: Committed with docs: reconcile roadmap with M0-M5 milestones (all 12 CI checks passing green).

Ready for your re-review and approval!

@itxtarun2727
itxtarun2727 self-requested a review November 9, 2026 15:48

@itxtarun2727 itxtarun2727 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Architectural Review: Approved!

Outstanding work addressing the review feedback, @Sagnikabhol! 🎯

Verification Summary:

  • Canonical Taxonomy: The M0–M5 engineering milestone taxonomy now mirrors live GitHub milestones and .github/workflows/labeler.yml with zero drift.
  • Traceability Preserved: All granular Phase 0 through Phase 10 execution plans, requirements mappings, and exit criteria are fully retained in .planning/ROADMAP.md.
  • Bidirectional Table: The mapping table in .planning/MILESTONES.md establishes 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! 🚀

@github-actions

Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the stale label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation task: reconcile .planning ROADMAP and MILESTONES with the M0-M5 engineering milestone grouping

2 participants