🌱 Phase 0 Foundation · 26 Apr - 10 May 2026 · Q1 Preflight Gate
← Hub PHASE 0 · FOUNDATION 2 minggu

Phase 0 · Foundation Setup

Bukan coding sprint — Foundation. Blueprint LIVE, repo + CI/CD scaffolded, klinik pilot LOI signed, team hire pipeline opened, Q1 Preflight Gate passed. End of Phase 0 = ready untuk kickoff Sprint 1.1 dengan zero ambiguity.

1. 🎯 Phase Summary

PhasePhase 0 · Foundation
Duration26 Apr - 10 May 2026 (2 minggu)
GoalBlueprint LIVE · 21-page execution hub · repo + CI/CD scaffolded · staging server up · pilot clinic LOI signed · 4 FTE hire pipeline opened · Q1 Preflight Gate passed
Capacity2.0 FTE (0.5 BE + 0.5 FE + 0.5 DevOps + 0.5 Founder + 0.5 Doc Zam)
Critical milestone10 May 2026 · Q1 Preflight Gate
BlocksALL subsequent sprints (1.1 starts 11 May)

2. 🎯 Objectives

  • Blueprint Hub LIVE: 21 pages on medieco.alesa.my · all 9 sprints documented · pilot + onboarding + audit + production-live planned
  • Pitch Page LIVE: medieco.alesa.my/pitch — English, public-shareable, Doc Zam pitching tool
  • Repo Scaffolded: Laravel 11 + Filament 3 base · feature flag system · auth/RBAC scaffold · M9 audit middleware stub
  • CI/CD Pipeline: GitHub Actions · linting · test scaffold · staging deploy on push to main
  • Staging Server: srv151 LSWS subdomain m1-staging.medieco.alesa.my · backup-tested
  • Pilot Clinic LOI: Doc Zam's primary clinic + 1 backup · liability insurance · timeline confirmed
  • Hiring Pipeline: Job specs published · 2 BE + 1 FE + 1 prompt eng · target hire 11 May
  • Tooling Setup: OpenAI key (gpt-4o + mini) · Whisper local on dev GPU · pgvector on staging
  • Documentation: RESUME-BRIEF.md in repo · architecture decision records (ADR) folder · runbook stub

3. 📅 Day-by-Day Plan (10 Days)

D1Sun 26 Apr · Doc Zam Approval + Hub Init
Doc Zam ✅ approved blueprint via PPTX walkthrough. medieco.alesa.my hub LIVE with 14 sections. Founder publishes execution narrative.
D2Mon 27 Apr · Module Specs Stubs
M1-M9 module pages skeleton · pulled from Doc Zam mock alignment table. Each module page seeded with FR list.
D3Tue 28 Apr · Project + Development Blueprints
Full project blueprint (charter · scope · stakeholders · RACI · timeline · gates) + development blueprint (tech stack · API contracts · schema · agent specs).
D4Wed 29 Apr · Sprint Detail Pages
Sprint 1.1-3.3 full pages · pilot · pitch · timeline · risks · budget · CPG · design · onboarding stubs.
D5Thu 30 Apr · Repo Scaffold
Laravel 11 + Filament 3 install on dev · auth scaffold · feature flag system · M9 audit middleware skeleton · git push initial.
D6Fri 1 May · CI/CD Pipeline
GitHub Actions: PHP-CS-Fixer · phpstan · phpunit · staging deploy on main push. Slack notification.
D7Mon 5 May · Staging Server Up
srv151 m1-staging.medieco.alesa.my · LSWS subdomain · MariaDB · backup script · daily snapshot.
D8Tue 6 May · Pilot Clinic LOI Signed
Doc Zam clinic agreement signed · liability insurance confirmed · backup clinic identified.
D9Wed 7 May · Hiring Pipeline
Job specs published (2 BE + 1 FE + 1 prompt eng) · interview pipeline opened · target offer 9 May.
D10Thu 8 May · Tooling + Vendor Setup
OpenAI key (gpt-4o + mini quotas) · Whisper local · pgvector staging · WAHA gateway test.
D11Fri 9 May · Hires Confirmed + Q1 Dry Run
2 BE + 1 FE + 1 prompt eng offers signed · Q1 gate dry run · gap fixes.
D12Sat 10 May · Q1 Preflight Gate
All 10 gate items reviewed · Doc Zam sign-off · Sprint 1.1 kickoff Mon 11 May 9am.

4. 📦 Deliverables

ItemStatusURL / Location
Hub + 21 pages✅ LIVEmedieco.alesa.my
Pitch page (English)✅ LIVEmedieco.alesa.my/pitch
Repo (Laravel + Filament)✅ LIVEgithub.com/alesa/medieco
CI/CD pipeline✅ LIVEGitHub Actions
Staging server✅ LIVEm1-staging.medieco.alesa.my
Pilot clinic LOI✅ Signedrepo /docs/legal/loi-pilot.pdf
Backup clinic LOI⏳ In progress
Hires (4 FTE)⏳ Offers signing
OpenAI + Whisper + pgvector✅ Provisionedvault
RESUME-BRIEF.md✅ Committedrepo /docs/RESUME-BRIEF.md

5. 🗄️ Repo + CI/CD

github.com/alesa/medieco
├── app/
│   ├── Filament/        (admin panels · M7 + M9 · seed for M2-M6)
│   ├── Http/Middleware/ (M9AuditMiddleware · TenantScope stub)
│   ├── Models/          (Patient · Encounter · User · Tenant)
│   ├── Services/        (PIIStrip · CitationEnforcer · FeatureFlag)
├── database/
│   ├── migrations/      (initial schema · 11-section Patient model)
│   ├── seeders/         (DrugMaster stub · CPG corpus stub)
├── docs/
│   ├── ADR/             (Architecture Decision Records)
│   ├── RESUME-BRIEF.md  (zero-context-loss insurance)
│   ├── runbook.md
├── routes/
├── tests/
└── .github/workflows/
    ├── ci.yml           (lint · test · phpstan)
    └── deploy.yml       (staging on push to main)

CI runs:
  · PHP-CS-Fixer
  · phpstan level 6
  · phpunit (target ≥ 75% coverage by Sprint 1.3)
  · Filament page render smoke test
  · staging deploy on green main

6. 👥 Hiring Pipeline

RoleCountTarget startStatus
Eng Lead / Senior BE126 Apr (in seat)✅ Confirmed
Backend Dev (Laravel + Filament)211 May⏳ Interview
Frontend Dev (Vue/Tailwind)111 May⏳ Interview
Prompt Engineer (LLM ops)125 May (Sprint 1.2 start)⏳ Sourcing
QA0.525 May⏳ Sourcing
DevOps0.511 May⏳ Identified

7. 🏥 Pilot Clinic LOI

  • Primary: Doc Zam's clinic — capacity ~80 patients/day · multi-room layout · 2 doctors
  • Backup: Identified within 30km · same demographic · willingness confirmed
  • Liability insurance: medical indemnity confirmed · MediEco rider in progress
  • Site survey scheduled: 16 Jun (during Sprint 1.3) · network · printer · reception layout
  • Pilot agreement: 90-day pilot · MediEco bears all software cost · clinic provides space + staff time
  • Exit clause: Either party can withdraw with 14-day notice · data migration plan defined

8. 🩺 Doc Zam Sign-off Items

  • Blueprint hub content reviewed and approved
  • Module M1-M9 spec direction approved
  • Pitch page (English) — clinical claims accurate · willing to share publicly
  • Pilot clinic agreement signed
  • CPG corpus shortlist confirmed (MOH-CPG · which specialties first)
  • SOAP template direction approved (locked at Sprint 1.3 prereq)
  • Triage decision tree direction approved (locked at Sprint 1.2 prereq)
  • Patient consent language reviewed (PDPA bilingual)
  • Q1 Preflight gate ✅ before Sprint 1.1 kickoff

9. 🚦 Q1 Preflight Gate (10 May)

All ✓ required to unlock Sprint 1.1 (11 May). Refuse to proceed if any ✗.

  • Doc Zam blueprint sign-off in writing (email + repo commit)
  • Repo + CI/CD pipeline green for 3 consecutive runs
  • Staging server reachable + smoke-tested
  • Pilot clinic LOI signed + insurance confirmed
  • Backup clinic identified + verbal confirmation
  • 4 hires confirmed (Eng Lead in seat · 3 starting 11 May)
  • OpenAI quota verified (5M tokens reserved)
  • Whisper local working on test 10-min audio
  • pgvector seeded with 10 sample CPG passages
  • RESUME-BRIEF.md committed + reviewed
  • Sprint 1.1 detailed plan published (sprint-1-1 page LIVE)
  • Internal team kickoff meeting scheduled 11 May 9am

10. 🛡️ Contingency

RiskTriggerResponse
Hire pipeline slow< 3 of 4 confirmed by 9 MaySlip Sprint 1.1 by 1 week · or run with 0.5x velocity
Pilot clinic delaysLOI not signed by 6 MayActivate backup clinic · adjust pilot dates accordingly
OpenAI quota delaysVendor onboarding slowUse existing personal API key · upgrade to org account in parallel
Staging server unstableUptime < 99% on baselineMigrate to srv187 backup · or use cloud-hosted dev
Doc Zam clinical sign-off slipPersonal/clinical conflictSchedule async written review · accept partial sign-off with deferred items