Skip to content

Cost & Velocity Observations

Operational metrics from 8 milestones of AI-assisted solo development on VelaPay.


Per-Milestone Velocity

MilestonePhasesPlansCalendar DaysPlans/DayFocus Area
v1.0520Base protocol + checkout
v1.1826213.0Privacy layer, keeper automation
v1.2103649.0Admin dashboard, validation, gap closure
v1.331326.5Auth migration, Better Auth
v1.4213113.0Agent mandate protocol
v1.5737218.5Public billing surfaces, checkout sessions
v1.641628.0Docs-only milestone
v1.752939.7Protocol/SDK refactor, versioned accounts
v1.8347ActiveActiveStreaming, dashboard, webhooks

Velocity Analysis

Highest velocity milestones:

  • v1.5 (18.5 plans/day) — Public billing surfaces had clear patterns from prior work. Shared checkout-session abstraction reduced per-plan complexity. High reuse of established patterns.
  • v1.1, v1.4 (13.0 plans/day) — Focused scope with minimal integration complexity. v1.4's agent mandates were a clean extension of the existing mandate system.

Lowest velocity milestones:

  • v1.3 (6.5 plans/day) — Auth migration is inherently slow: every plan requires testing against multiple auth states (logged in, logged out, session expired, wallet-only, email-only). Playwright E2E setup consumed significant time.
  • v1.6 (8.0 plans/day) — Docs milestones have different characteristics. Content writing is faster than code, but review and cross-referencing takes longer. Build-time validation added overhead.

Median velocity: ~9-10 plans/day for feature work. This is the reliable planning number for future milestone estimation.


Phase-Level Breakdown

Plans per Phase by Type

Phase TypeAvg Plans/PhaseRangeNotes
Feature phases5-63-9Higher coupling, more plans needed
Gap-closure phases1-31-5Fewer plans but higher debugging ratio
Docs-only phases3-42-6Lower coupling, content-driven size
Protocol/SDK phases6-84-12Highest coupling, careful sequencing
Infrastructure phases4-52-7CI/CD, deployment, configuration
Auth phases4-63-8Every plan touches sensitive paths

Plan Duration Distribution

DurationPlan TypeFrequency
5-10 minSimple implementations (config, types, utilities)~30%
10-20 minStandard features (CRUD, UI components, API routes)~50%
20-30 minComplex features (protocol instructions, auth flows, integrations)~15%
30+ minDebugging, refactoring, gap-closure~5%

Average plan execution: ~15 minutes across all types.


Gap-Closure Overhead Analysis

v1.2 Gap-Closure (Phases 20-23)

MetricValue
Gap-closure phases4
Gap-closure plans~8
Feature phases6
Feature plans~28
Overhead ratio~22%
Root causeDeferred wave-0 test stubs

v1.7 Gap-Closure (Phases 43-44)

MetricValue
Gap-closure phases2
Gap-closure plans~6
Feature phases3
Feature plans~23
Overhead ratio~30%
Root causeSkipping verifier on Phase 42
Specific gapsIntegration drift + traceability drift

Gap-Closure Cost Model

FactorImpact
Each skipped verifier+1-2 gap-closure phases
Each gap-closure phase+1-3 plans
Deferred validation debtCompounds ~10% per milestone if not addressed
Dedicated closure vs. in-bandDedicated is 2x more effective (catches more issues)

Recommendation: Budget 1-2 gap-closure phases per milestone (~3-6 plans, ~45-90 min). This is cheaper than the compound interest of deferred validation.


Model Usage & Cost

Model Configuration

RoleModelProfilePurpose
Primary (orchestrator)Opus 4.6qualityPlanning, architecture decisions, complex debugging
Executor subagentSonnetbalancedPlan execution, code generation, file creation
Planner subagentSonnetbalancedPhase planning, task breakdown, dependency analysis
Researcher subagentSonnetbalancedContext gathering, documentation search, web lookup
Reviewer subagentSonnetbalancedCode review, security review, quality checks

Execution Time Breakdown

ComponentTimePercentage
Plan execution (subagents)~25 hours~69%
Planning + orchestration~6 hours~17%
Verification + debugging~3 hours~8%
Milestone audits~2 hours~6%
Total~36 hours100%

Context Window Usage

MilestoneAvg Context at Plan StartPeak ContextNotes
v1.0-v1.1~20K tokens~60K tokensSmall codebase, low context needs
v1.2~40K tokens~100K tokensGrowing codebase, more cross-referencing
v1.3~35K tokens~80K tokensFocused scope, moderate context
v1.5~50K tokens~120K tokensMulti-repo work, high context needs
v1.7~60K tokens~150K tokensProtocol refactor, maximum cross-referencing
v1.8~55K tokens~130K tokensStreaming + multi-repo, high context

Commit Activity

Per-Milestone Commits

MilestoneApproximate CommitsKey Pattern
v1.0~50Initial scaffolding + protocol
v1.1~60Privacy + keeper additions
v1.2~90Admin dashboard + gap closure
v1.3~35Auth migration
v1.4~30Agent mandates
v1.5~85Public surfaces + checkout
v1.6~40Documentation
v1.7~70Protocol refactor
v1.8~70+Streaming + webhooks (active)
Total529+

Commit Message Patterns

The project follows conventional commits:

  • feat(phase-N): description — feature implementations
  • fix(phase-N): description — bug fixes
  • docs(phase-N): description — documentation
  • ci(phase-N): description — CI/CD changes
  • chore(phase-N): description — maintenance

Infrastructure Costs

Cloudflare (Primary Platform)

ServiceUsageMonthly Cost
Workers5 deploymentsFree tier
D12 databases (dev + staging)Free tier
KVSession storageFree tier
R2Static assetsFree tier
QueuesBilling eventsFree tier (10k ops/day)

Total Cloudflare cost: $0/month during development.

Railway (Dashboard SSR)

ServiceUsageMonthly Cost
Railway computeDashboard SSR~$5/month (developer plan)

Helius (RPC + Webhooks)

ServiceUsageMonthly Cost
RPC providerDevnet + stagingFree tier
WebhooksEvent indexingFree tier
DAS APIAsset queriesFree tier

Development Tooling

ServiceUsageMonthly Cost
AI assistance (Opus 4.6 + Sonnet)~36 hours executionVariable
GitHub (private repos)5 reposFree tier
Domain (velapay.com)Cloudflare DNS~$10/year

Total infra cost during development: ~$5/month + AI costs.


Estimation Guide for Future Milestones

How to Estimate a Milestone

  1. Count the number of feature phases (from roadmap)
  2. Add 1-2 gap-closure phases (standard allocation)
  3. Estimate plans per phase: 5-6 for features, 3-4 for docs
  4. Calculate total plans: phases × plans/phase
  5. Estimate duration: total plans ÷ 9 plans/day
  6. Add 20% buffer for gap-closure and debugging

Example Estimation

Milestone v2.0: Multi-token billing
- Feature phases: 4
- Gap-closure phases: 1
- Plans per feature phase: 6
- Plans per gap-closure phase: 3
- Total plans: (4 × 6) + (1 × 3) = 27 plans
- Estimated duration: 27 ÷ 9 = 3 days
- With buffer: 3.6 days → ~4 days

Velocity Adjustments

FactorAdjustmentReason
Protocol changes-20% plans/dayHigher coupling, more testing
New auth patterns-30% plans/dayEvery plan touches sensitive paths
Docs-only-10% plans/dayReview takes longer than writing
Reusing established patterns+30% plans/dayLess design, more execution
Multi-repo coordination-15% plans/dayContext switching overhead

Internal knowledge base for the Vela Labs workspace.