Repository navigation
📝 Sr. Architect: Version 1.3.1 Release Report
Date: July 20, 2026
Version: v1.3.1
Scope: Core Service Catalog Expansion, Cost Engine Accuracy Overhaul (audited 100% pricing accuracy), Pricing Pipeline Re-Architecture on Cloudflare Workflows, Two-Worker Infrastructure Split, Regional Availability Detection, In-App Engineering Reports, Multi-Currency Billing, PulseFlow Realism Overhaul, Codebase Refactoring & Vitest Testing, Cloudflare Worker Security Hardening, Payload-Aware Cost & Capacity Modeling, AWS Icon Glyph System, Simulator Canvas UX Improvements, Legal/SEO Compliance, and a Landing Page Redesign Pass.
🚀 Key Highlights
The v1.3.1 release represents a major milestone in stabilizing, extending, and securing the AWS System Design Simulator. This update makes the simulation environment highly accurate for enterprise-grade topologies — including independently audited 100% pricing accuracy against the AWS Price List API — re-architects the entire live-pricing backbone on Cloudflare Workflows, and locks down the infrastructure.
🧱 1. Expanded AWS Service Catalog (10 New Services)
To support more complex and modern cloud topologies, the AWS Service Catalog has been expanded from 64 to 74 services. The new additions include:
| Service Name | Type | Key Capabilities & Role in Simulator |
|---|---|---|
| AWS Amplify | Scalable | Simplifies frontend web and mobile hosting with automated CI/CD builds and global CDN distribution. |
| Amazon SES | Scalable | Models transactional email, user notifications, and mass campaigns with delivery/bounce tracking. |
| Amazon DocumentDB | Stateful | Managed, MongoDB-compatible document database for decoupled JSON query workloads. |
| Amazon Neptune | Stateful | Graph database service optimizing highly connected datasets (Gremlin, openCypher, SPARQL queries). |
| Amazon Timestream | Scalable/Stateful | Serverless time-series database featuring memory-tier storage for fast IoT and ops metrics ingestion. |
| AWS AppConfig | Scalable | Manages dynamic application feature flags and configuration safety with gradual deployments. |
| AWS App Mesh | Scalable | Service mesh control plane managing service-to-service communication via Envoy sidecar proxies. |
| AWS Cloud Map | Scalable | Registry for microservice discovery, allowing endpoints to look up each other via DNS or API. |
| Amazon QuickSight | Analytics | Cloud Business Intelligence (BI) service serving interactive dashboards backed by SPICE engine. |
| Amazon Lightsail | Compute | Simple flat-rate Virtual Private Server (VPS) bundles of compute, SSD storage, and outbound transfer. |
💰 2. Live Cost Estimation Engine Upgrades
We overhauled the cost estimation logic in CostService to handle granular, production-ready AWS configurations. Cost evaluations are now matched directly with regional pricing tables and fallback baselines:
- Amazon Aurora Storage Configs: Added standard vs.
io-optimizedstorage configurations. Models compute premiums (1.30× multiplier), I/O-optimized storage rates, and bypasses standard I/O request charging for I/O-optimized deployments. - Amazon Rekognition API Modalities: Added
apiTypeselector supporting image processing, archived video analysis (per minute), live video analysis (per minute), and face/user vector storage (per million vectors). - AWS MediaConvert Transcoding Tiers: Replaced flat-rate HD conversions with a multi-dimensional pricing matrix supporting Basic/Professional tiers, H.264/H.265/AV1 codecs, and SD/HD/UHD resolutions.
- Amazon OpenSearch Serverless: Added serverless deployment mode evaluating OpenSearch Compute Units (OCUs) and serverless storage, as well as UltraWarm nodes and storage under node-based deployments.
- Amazon EMR Serverless: Introduced serverless architecture support calculating CPU-hours, Memory-hours, and Storage-hours independently from node-based instance-hour counts.
- Amazon MQ Engines: Differentiated RabbitMQ and ActiveMQ engines. Models cluster sizes (Active-Standby Multi-AZ maps to 2 nodes for ActiveMQ and 3 nodes for RabbitMQ) and applies engine-specific storage rates.
- Amazon Bedrock Fallbacks: Hardened model pricing evaluations to use fallback baseline rates for newly added LLMs (e.g.
claude-sonnet-5) if they are temporarily absent from cached regional KV pricing files. - Amazon Kinesis On-Demand: Supported On-Demand capacity mode (hourly stream base rate + ingest/egress GB rates), Enhanced Fan-Out (EFO) consumer shard and egress data charges, and extended data retention metrics.
- Amazon MSK Express & Serverless: Implemented MSK Serverless partition and data transfer billing, Express broker configurations (using
m7gfamily rates), and tiered storage cost integration. - Amazon DynamoDB Advanced Primitives: Integrated multi-region write replication for Global Tables, Point-in-Time Recovery (PITR) backup premiums, backup storage tiers, and DynamoDB Streams request rates.
- Amazon RDS Engine Pricing: Decoupled engine multipliers and base rates using engine-specific instance rate maps, and aligned Multi-AZ deployment compute replication and read replica costs.
- Amazon ElastiCache Valkey Support: Added the Valkey caching engine. Models serverless storage/ECPU rates for Valkey, applies a 20% cost reduction for Valkey node instances over Redis, and calculates SSD data tiering premiums.
- AWS Lambda Primitives: Integrated response streaming data charges and SnapStart caching/restore execution billing.
- Amazon EC2 GPU Classes: Added support for GPU instance families (
g4dn,g5,g6) using custom baseline values that bypass standard CPU size multipliers.
🛠️ 3. Code Quality, Refactoring & Testing
To improve code maintainability and test confidence:
- Modular Architecture Utilities: Refactored core graph traversal, canvas geometries, visual assets, and UI state handlers out of monoliths and into isolated, pure-function files under
frontend/src/app/core/utils/(e.g.visible-if.ts,node-visuals.ts,node-health.ts,history-stack.ts,graph-traversal.ts,graph-geometry.ts,graph-clone.ts, andfield-lock.ts). - Comprehensive Testing Suite: Configured and integrated Vitest in both the frontend simulator and backend worker, introducing detailed unit and characterization test specs for all core models, services, and utility helpers.
- Developer Credentials Configuration: Refactored backend and developer script configurations from Cloudflare
.dev.varsfiles to standard.envformats for a unified local developer experience. - PulseFlow Engine Fine-tuning: Integrated dynamic variable traffic sampling, sustained pressure collapse checks, and Auto Scaling boot delay limits.
🔒 4. Vulnerability & Security Hardening
Hardened the Cloudflare Worker API and CI pipelines against security threats:
- Timing Attack Protection: Introduced
timingSafeEqualinworker/src/security.tsutilizing cryptographically secure SHA-256 hash comparison on theADMIN_TOKENheaders to protect/trigger,/reset, and/startadmin operations. - Strict Dynamic CORS Allowed Origins: Enforced strict CORS validation (
corsHeaders) reflecting Origin headers only when matching the ALLOWED_ORIGINS whitelist (e.g.,https://srarchitect.qzz.io,http://localhost:4200) to block unauthorized cross-site requests. - API Data Integrity: Clamped incoming user rating/voting deltas (
clampDelta) to exactly-1,0, or1to eliminate vote manipulation risks. - Security Workflow Patches: Patched CI workflows (
security-scan.yml) to mirror Trivy vulnerability databases through Google Container Registry mirrors, resolving rate-limiting errors, and limited SARIF report uploads to only execute when issues are detected.
☁️ 5. Pricing Pipeline Re-Architecture: Cloudflare Workflows
The weekly pricing rebuild moved from a minute-cron + KV state machine to a durable Cloudflare Workflow (workers/aws-pricing-generator/src/workflow.ts):
- Durable Step Orchestration: Each region×phase build is one workflow step (27 regions × 9 phases ≈ 243 steps), preserving the proven-safe free-plan unit of work (10ms CPU, 50 subrequests per step) while removing the minute-cron polling loop entirely.
- Automatic Retries: The Workflows engine re-runs failed steps automatically — including steps killed by the CPU limit, which the old design could only detect via a write-ahead attempt counter. After 5 attempts the phase is skipped and the region is queued for repair.
- Failure Queue + Daily Repair Run: A new progress module (
progress.ts) tracks per-region outcomes; a daily cron (0 4 * * *) rebuilds only the regions in the failure queue (no-op when empty), alongside the weekly full run (0 3 * * 7). - Massive Refresh Speedup: End-to-end regional refresh time dropped from ~21 hours to ~4.2 hours.
- Status Continuity: Progress is mirrored to KV after every step, so the public
GET /statusendpoint works unchanged. - Local Generation Script: Added
scripts/generate-local.tsto build the full KV pricing payload locally for development and benchmarking without touching production.
🔀 6. Two-Worker Infrastructure Split
The single worker/ was split into two dedicated Cloudflare Workers under workers/:
workers/aws-pricing-generator/— the weekly pricing rebuild (now Workflow-based) plus the public pricing/status/votes API.workers/daily-analytics/— a new daily worker (cron15 0 * * *) serving:/fx— USD exchange rates (EUR, GBP, INR, JPY) refreshed daily from the ECB's official reference rates via the keyless Frankfurter API./stats— landing-page live project analytics, relocated from the pricing worker (stats.tsmoved here).
- Frontend Wiring: New
dailyApiBaseenvironment setting; the landing page's live stats and the cost engine's currency rates now read from the analytics worker.
🎯 7. Cost-Accuracy Benchmark v5 — 100% Pricing Accuracy
A full audit against the live AWS Price List API (pricing:GetProducts, queried 2026-07-12) across all 27 active regions:
| Metric | v4 | v5 |
|---|---|---|
| A. Pricing Accuracy | 99.27% | 100.00% (7,511/7,511 params exact) |
| B₁. Coverage (Simple) | — | 85.80% (296/345 cost factors) |
| B₂. Coverage (Weighted) | 92.40% | 92.40% |
| C. Cost-Realism Score | 91.73% | 92.40% |
Fixes that closed the gap to 100%:
- GPU Anchor-Ratio Rounding: Resolved sub-basis-point drift (≤0.0085%) on GPU instance size-ladders (e.g. the
g6family inme-central-1) by aligning the benchmark with the builder's raw precision logic. - DynamoDB Standard-IA & MSK Express SKUs: Corrected SKU filter discrepancies in the bulk fetcher.
- sa-east-1
r7gRepricing & Baseline-Fallback Drift: Repriced and eliminated stale baseline reliance — 100% of effective parameters are now live-KV-fed with zero fallback. - New benchmark tooling:
scripts/benchmark-kv-accuracy-v3.mjs,scripts/build-effective-pricing.mjs,scripts/generate-v5-report.mjs, plus published audit data underdocs/benchmark-data/.
🗺️ 8. Regional Service Availability Detection
region-availability.json: A generated map of real AWS regional gaps (e.g. Timestream missing API data in 19 of 27 regions; Aurora Serverless ACU pricing unavailable in 13).- UI Integration: The service palette flags services unavailable in the selected region with a disabled style and an explanatory reason ("Not available or SKU absent for the selected region"). Flagged services remain fully simulatable using us-east-1 baseline pricing.
📊 9. In-App Engineering Reports Page
- New
/reports(and/benchmarks) route with a dedicatedReportsComponentrendering theme-aware, self-contained HTML reports:- Cost-Accuracy Benchmark v5 — full methodology, per-service coverage matrix, and regional gap analysis.
- Engine Deep-Dive: PulseFlow & Rubix — an engineering write-up of the traffic and grading engine internals.
- Landing Integration: Report deep-links from the landing page, with a "Back" origin so the reports page returns the user to where they came from.
💱 10. Multi-Currency Billing Display
- Live ECB Rates:
CostServicenow fetches USD→EUR/GBP/INR/JPY rates from the analytics worker's/fxendpoint, cached inlocalStoragefor 24 hours. - Safe Fallbacks: Hardcoded rates remain as a last resort (and for offline unit tests); live rates are validated (finite, positive) before applying.
💓 11. PulseFlow Engine Realism Overhaul
The node-collapse model was rebuilt around request timeouts instead of a flat utilization threshold:
- Timeout-Driven Collapse: Under sustained overload, latency compounds per tick (
+12msgrowth ×1.12acceleration) until it reaches the request timeout (default 60s, per-nodetimeoutMsoverride). Timed-out requests shed and clear the backlog; 6 consecutive timed-out ticks collapse a resource-bound node offline, while managed (throttle-class) services keep shedding and stay up. - Recovery Headroom Retuned: A collapsed node now restarts only when demand stays at or below 90% of the capacity its current configuration would provide (
RECOVERY_HEADROOM0.72 → 0.9), after the 10-tick provisioning window. - Overload Latency Decay: Accumulated overload latency decays at 0.6 per tick once load drops under capacity, so latency visibly recovers within ~1 second.
- Dependency Failure Propagation: Requests routed into an offline synchronous dependency now fail at the caller — a dead database makes its callers error rather than hum along.
- New Characterization Harness: Added
simulation-benchmark.harness.spec.tslocking in engine behavior.
📦 12. Payload-Aware Cost & Capacity Modeling
The Users (client) node's Average Package Size (KB) field now drives real byte-level billing and capacity math across the engine instead of being a cosmetic label:
- Data-Transfer Volume Derivation: Monthly data volume (
RPS × 2,628,000 req/mo × KB ÷ 1,048,576 GB) now feeds the ELB LCU data-processed dimension (and CLB per-GB charge), CloudFront data transfer out, and S3 data transfer out (GETs × object size) — the old static "Data Transfer Out (GB)" knobs on those services are now fallbacks used only when no client node is on the canvas. - SQS / SNS 64 KB Chunk Billing: Each service now bills one request per 64 KB chunk of the payload (256 KB message limit) — a 200 KB payload costs 4× the requests of a 50 KB one, matching AWS's real billing unit.
- Kinesis Shard Sizing: Per-shard ingest capacity now respects both AWS limits — 1,000 records/s and 1 MB/s, whichever binds first — using the client's package size as the record size (e.g. 50 KB records cap a shard near 20 records/s instead of the old flat 1,000/s).
- API Gateway Cache Sizing: Cache working set (and therefore simulated cache hit rate) is now sized from the same client payload signal.
- Global Accelerator DT-Premium Geography Pricing: Replaced the flat data-transfer rate with AWS's real source→destination geography pair pricing table (9×9 region groups — NA, EU, AP, KR, IN, AU, ME, SA, AF — sourced from the official Global Accelerator pricing page). Source is the deployment region, destination is the Users node's Request Region;
globalresolves to the US/Canada baseline. - Unlimited Client Throughput: Removed the hard 1,000 RPS ceiling on the client node's Request Rate and variable-traffic min/max fields, enabling larger-scale traffic simulations.
- In-App Docs Updated: Service documentation entries for the Users node and Global Accelerator now explain exactly which downstream costs and capacity limits the package size and request region drive.
🖼️ 13. AWS Service Icon Glyph System & Category Palette Refresh
- Per-Service Icon Glyphs: Added a dedicated
glyphUrlfield to every service definition, backed by 74 new SVG glyphs underfrontend/src/assets/icons/, giving each of the catalog's services (and the client/Users node) a distinct icon asset independent of the existing brand icon set. - Category Color Palette Refresh: Darkened and enriched the category color palette (Compute, Containers, Storage, Database, Analytics, etc.) for better contrast and a more premium feel across the canvas and documentation.
- Amplify Icon Fix: Corrected the AWS Amplify glyph's color via a hue-rotation filter so it matches the standard Compute-category orange instead of its default off-palette tone.
🖱️ 14. Simulator Canvas UX Improvements
- Click-to-Connect: Clicking a node card while an output port is pending now completes the connection to that node's first compatible input port automatically, instead of requiring a precise click on the small port dot. Invalid targets (violating a service's allowed AWS integration patterns) are rejected with an explanatory error instead of silently connecting.
- Graceful Empty Numeric Inputs: Config fields (connection traffic weight, node numeric config) no longer snap to a default value while the field is empty mid-edit — they only resolve to
0on blur, so users can clear a field and retype without fighting the input. - Service Palette Subtitles: Catalog entries now show a
ShortName · Categorysubtitle when the short name doesn't already read like the full name, making the palette easier to scan. - Client Node Pinned Separately: The Users/client node no longer appears mixed into the regular category grid in the service palette.
- Compact Number Formatting: Added a shared
formatCompactNumberhelper (1.2K / 3.4M / 1B style) for cleaner large-number displays across the canvas.
⚖️ 15. Legal, Compliance & SEO
- Terms & Conditions and Legal Disclaimer: Added full legal content (documentation-content.ts) covering Terms & Conditions and a Legal Disclaimer, surfaced as dedicated categories in the in-app documentation and linked from the landing page footer.
- Static SEO Pages for Services: Added a Cloudflare Pages
_middleware.jsunderfrontend/functions/services/plus an expandedgenerate-seo-pages.mjsscript to pre-render crawlable static pages per AWS service for search indexing. - Secure Routing Fix: Hardened simulator route handling to close a routing edge case flagged during the legal/security review.
- Docs Deep-Link Scroll Fix: Footer legal links (Disclaimer, Privacy Policy, Terms & Conditions →
/docs?category=legal) previously opened the docs page and highlighted the right sidebar category but never scrolled to it.DocumentationComponentnow shares onescrollToCategorySection()method between direct-link navigation and in-page sidebar clicks, so a fresh navigation scrolls to the target section correctly.
🔐 16. Dependency Security Update
- Refreshed
backend/package-lock.jsonandfrontend/package-lock.json(and theirpackage.jsonranges) to pull in patched versions of transitive dependencies flagged by vulnerability scanning, alongside a smallbackend/server.jsaddition to serve pre-generated regional pricing files from the pricing worker's localkv-local/output during local development.
🐞 17. Minor Bugs & UI Fixes
- Landing Page Redesign Pass: Reduced redundant GitHub links (6 → 3 across navbar/hero/footer), merged the "Sponsor" and bottom final-CTA sections into one card (Launch / Sponsor / Contribute), and rebuilt the footer with a creator credit line and social links merged in from the old standalone creator card, with an improved layout and dark-mode styling.
- Dark Mode Contrast Fixes: Fixed several elements that were unreadable or visually mismatched in dark mode — the "Top Contributors" heading, telemetry metric tiles (PulseFlow Tick Speed / Billing Coverage), community stat values, the hero "GitHub" button (was rendering as a washed-out light pill), and the hero's "An interactive playground to" lead-in text.
- Mode-Card Hover Blur Fix: Fixed a visible blur/smear on the Developer/Architect mode cards during the 3D tilt hover effect, caused by
backdrop-filterblur compounding with the tilt's 3D transform and a laggy transition failing to keep up with fast mouse movement. - Hero Section Short-Viewport Fix: Added a height-gated responsive rule so the hero's "Launch Simulator" / "GitHub" buttons no longer get clipped below the fold on short desktop viewports (e.g. 1366×768 laptops, or scaled displays), without affecting taller screens or mobile layouts.
- Architect Tile Currency Callout: Added a feature line highlighting multi-currency cost estimates (USD, EUR, GBP, INR, JPY) to the Architect mode tile.
- Report Button Sizing: Resized the "Engine Deep Dive" and "Cost Accuracy Report" buttons to fit their telemetry cards instead of using the oversized hero-button dimensions.
- NG8102 Template Warning Fix: Removed dead
?? nullnullish-coalescing on non-optionalmin/stepnumeric input bindings in the simulator's config panel. - Resizable Workspaces: Added resizable handlers to the simulator canvas sidebar panel and the main architect dashboard view for flexible screen configurations.
- Exit Guard dialog: Hardened the exit warning guard service to ensure unsaved node layouts are never accidentally lost on browser refresh or navigation.
- Responsive layouts: Fixed mobile viewport alignment margins for several control buttons and popover dialogs.
- Documentation Additions: Added a webinar presentation deck (
docs/presentation.html) and a Software Requirements Specification (docs/requirements-specification.html) to the repo docs. - Housekeeping:
security-scan.ymlCI updates,_headers(CSP/security headers) updated for the new worker endpoints, PR template and CONTRIBUTING refreshed for theworkers/layout, andARCHITECTURE.md/README updated for the two-worker topology.