- Update README.md with v0.4.0 features and screenshots placeholders
- Update architecture.md with v0.4.0 implementation status
- Update progress.md marking all 27 tasks as completed
- Create CHANGELOG.md with complete release notes
- Add v0.4.0 frontend components and hooks
- Replace require.resolve() with plain string paths for globalSetup and globalTeardown
- This fixes compatibility with ES modules where require is not available
Tests now run successfully with all browsers (Chromium, Firefox, WebKit,
Mobile Chrome, Mobile Safari, Tablet)
- Replace __dirname with import.meta.url pattern for ES modules compatibility
- Add fileURLToPath imports to all E2E test files
- Fix duplicate require statements in setup-verification.spec.ts
- Update playwright.config.ts to use relative path instead of __dirname
This fixes the 'ReferenceError: __dirname is not defined in ES module scope' error
when running Playwright tests in the ES modules environment.
- Update README.md with v0.3.0 completion status and improved setup instructions
- Update export/progress.md with completed tasks (53/55, 96% progress)
- Update export/architecture.md with current project structure and implementation status
- Add docker-compose.yml with PostgreSQL service
- Add Dockerfile.backend for production builds
- Add frontend/Dockerfile for multi-stage builds
- Update .gitignore with comprehensive rules for Python, Node.js, and Docker
Project status:
- v0.2.0: Database and Backend API ✅
- v0.3.0: Frontend React implementation ✅
- v0.4.0: Reports and visualization (planned)
Complete API implementation (BE-006 to BE-010):
BE-006: API Dependencies & Configuration
- Add core/config.py with Settings and environment variables
- Add core/exceptions.py with AppException hierarchy
- Add api/deps.py with get_db() and get_running_scenario() dependencies
- Add pydantic-settings dependency
BE-007: Services Layer
- Add services/pii_detector.py: PIIDetector with email/SSN/credit card patterns
- Add services/cost_calculator.py: AWS cost calculation (SQS, Lambda, Bedrock)
- Add services/ingest_service.py: Log processing with hash, PII detection, metrics
BE-008: Scenarios API Endpoints
- POST /api/v1/scenarios - Create scenario
- GET /api/v1/scenarios - List with filters and pagination
- GET /api/v1/scenarios/{id} - Get single scenario
- PUT /api/v1/scenarios/{id} - Update scenario
- DELETE /api/v1/scenarios/{id} - Delete scenario
- POST /api/v1/scenarios/{id}/start - Start (draft->running)
- POST /api/v1/scenarios/{id}/stop - Stop (running->completed)
- POST /api/v1/scenarios/{id}/archive - Archive (completed->archived)
BE-009: Ingest API
- POST /ingest with X-Scenario-ID header validation
- Depends on get_running_scenario() for status check
- Returns LogResponse with processed metrics
- POST /flush for backward compatibility
BE-010: Metrics API
- GET /api/v1/scenarios/{id}/metrics - Full metrics endpoint
- Aggregates data from scenario_logs
- Calculates costs using CostCalculator
- Returns cost breakdown (SQS/Lambda/Bedrock)
- Returns timeseries data grouped by hour
Refactored main.py:
- Simplified to use api_router
- Added exception handlers
- Added health check endpoint
All endpoints tested and working.
Tasks: BE-006, BE-007, BE-008, BE-009, BE-010 complete
Populate aws_pricing table with real AWS pricing for:
Services:
- SQS: /bin/bash.40 per million requests
- Lambda: /bin/bash.20 per million requests + /bin/bash.0000166667 per GB-second
- Bedrock Claude 3 Sonnet: /bin/bash.003 input / /bin/bash.015 output per 1K tokens
Regions:
- us-east-1 (N. Virginia)
- eu-west-1 (Ireland)
Total: 10 pricing records inserted
Task: DB-007 complete
All database tasks (DB-001 to DB-007) now complete!
Next: Backend team can proceed with SQLAlchemy models and repositories.
Add specialized agent configurations for mockupAWS development:
- @spec-architect: Software architect and specification lead
- @db-engineer: PostgreSQL schema and Alembic migrations
- @backend-dev: FastAPI development and services
- @frontend-dev: React dashboard and UI components
- @devops-engineer: Docker and CI/CD setup
- @qa-engineer: Testing strategy and E2E tests
Update prompt-zero.md with complete team and project structure.
Add prompt-team-standup.md for team kickoff and coordination.
Each agent has detailed configuration with:
- Role and responsibilities
- Technical stack
- Scope and constraints
- Output requirements
- Communication style