forge-scale: Scalability
Engine: Hybrid — Forge + Google, Cloudflare
Purpose
Assess growth limits, contention, partitioning, quotas, backpressure, and cost against explicit demand scenarios.
Deterministic runtime composition
Before loading any provider procedure, run:
Resolve ../../runtime/cli/src/composition-entry.js relative to this SKILL.md, then run:
node "<resolved-absolute-runner-path>" scale compose --workflow audit --root "<repository-root>" --dry-run --json
Add one repeatable --request <provider-or-source> flag for each explicit user request. Add
--condition <task-condition> or --risk-surface <surface> only for a task fact you directly
proved; never infer one from generic wording. The command above is the default for this
audit-oriented module; for implementation use --workflow build, and for a fix, retest, or
release gate use --workflow fix, verify, or ship respectively. Read the JSON response,
keep the Forge contract at index zero, and resolve paths against the absolute runtime_root
reported in that response. Read eager[].runtimePath when entering the module. The full
selected[] list is availability/provenance; load only deferred[].runtimePath when the task
reaches that concern, in tier order. Refuse any path that escapes the root. Respect every reported
suppression and context budget. If missing is non-empty, stop and report the installation as
damaged; do not improvise a prose fallback. The runner and specialist content may live in a plugin
cache or global installation; never assume they are inside the audited repository.
Resolve and read ../fullstack-forge/references/shared/module-contract.md (applicability,
execution, mutation, verification, completion) and
../fullstack-forge/references/shared/evidence-rules.md (statuses, standards, tools, findings via
../fullstack-forge/references/PROTOCOL.md) relative to this module SKILL.md before reporting.
Never hide failed checks or claim that an operation ran when it did not.
Automatic activation signals
Activate when a request or direct repository evidence involves scalability, when
the user explicitly names forge-scale, or when discovery proves an applicable boundary.
- Expected growth, load concentration, or capacity incidents
When not to activate
- No scale requirement beyond measured current capacity
Automated support
Relevant discovery inputs are:
- architecture and performance evidence
- capacity targets
- provider quotas
Deterministic support, bounded evidence only:
detect-project-commands
run-project-command
Agent inspection procedure
- State the demand scenario first: expected users, concurrency, and data growth; without one, record the assumptions explicitly.
- Find the first bottleneck: connection limits, stateful servers, shared filesystems, hot rows or hot tenants, and single-writer constraints.
- Verify horizontal-scaling readiness: session placement, sticky state, file locality, and job distribution.
- Check backpressure and load shedding: determine what happens at the queue, pool, and API layer when demand exceeds capacity.
- Project storage, log, and cost growth against the scenario, and reject infrastructure additions (microservices, Kubernetes, Redis, queues) not justified by this evidence.
Manual inspection requirements:
- Validate growth and burst assumptions with operators and product owners
- Review regional and provider quota constraints
Stack-specific guidance:
- Account for framework connection pools, runtime concurrency, and managed-service quotas
Evidence to collect
Standards used as criteria:
- Google SRE capacity-planning concepts
- OpenTelemetry
Common production failures
- Model request, data, tenant, connection, queue, storage, and third-party growth
- Find serial bottlenecks, hot keys, fan-out, unbounded work, connection exhaustion, and noisy neighbors
- Inspect horizontal state, partition keys, rate shaping, load shedding, autoscaling signals, and graceful degradation
Missing-control checks
Each item needs direct evidence or one reasoned status.
- Expected users
- Request concurrency
- Database connection limits
- Horizontal scaling
- Stateful application servers
- Session storage
- Shared file systems
- Queue throughput
- Rate limits
- Hot rows
- Hot tenants
- Large-customer behavior
- Bulk operations
- Backpressure
- Capacity assumptions
- Storage growth
- Log growth
- Cost at scale
- No microservices, Kubernetes, queues, or Redis without evidence
Commands and tools
- Run
forge scale audit --json or fullstack-forge scale audit --json when
an explicit audit is requested and the CLI is installed. Normal feature work does not require it.
Safe fixes
- Add explicit bounds, batching, backpressure, and capacity telemetry
- Document measured limits
Approval-required changes
- Introducing services, sharding, queues, caches, or multi-region topology
Verification
- Run staged load tests through saturation and recovery
- Confirm correctness and tenant fairness under contention
Completion contract
Follow fullstack-forge/references/shared/completion.md and the limitations below.
Known limitations
- Capacity projections are only as credible as workload evidence
1---2name: forge-scale-33description: Assess growth limits, contention, partitioning, quotas, backpressure, and cost against explicit demand scenarios.4---56# forge-scale: Scalability78Engine: Hybrid — Forge + Google, Cloudflare910## Purpose1112Assess growth limits, contention, partitioning, quotas, backpressure, and cost against explicit demand scenarios.131415## Deterministic runtime composition1617Before loading any provider procedure, run:1819Resolve `../../runtime/cli/src/composition-entry.js` relative to this `SKILL.md`, then run:2021`node "<resolved-absolute-runner-path>" scale compose --workflow audit --root "<repository-root>" --dry-run --json`2223Add one repeatable `--request <provider-or-source>` flag for each explicit user request. Add24`--condition <task-condition>` or `--risk-surface <surface>` only for a task fact you directly25proved; never infer one from generic wording. The command above is the default for this26audit-oriented module; for implementation use `--workflow build`, and for a fix, retest, or27release gate use `--workflow fix`, `verify`, or `ship` respectively. Read the JSON response,28keep the Forge contract at index zero, and resolve paths against the absolute `runtime_root`29reported in that response. Read `eager[].runtimePath` when entering the module. The full30`selected[]` list is availability/provenance; load only `deferred[].runtimePath` when the task31reaches that concern, in tier order. Refuse any path that escapes the root. Respect every reported32suppression and context budget. If `missing` is non-empty, stop and report the installation as33damaged; do not improvise a prose fallback. The runner and specialist content may live in a plugin34cache or global installation; never assume they are inside the audited repository.353637Resolve and read `../fullstack-forge/references/shared/module-contract.md` (applicability,38execution, mutation, verification, completion) and39`../fullstack-forge/references/shared/evidence-rules.md` (statuses, standards, tools, findings via40`../fullstack-forge/references/PROTOCOL.md`) relative to this module `SKILL.md` before reporting.4142Never hide failed checks or claim that an operation ran when it did not.4344## Automatic activation signals4546Activate when a request or direct repository evidence involves scalability, when47the user explicitly names `forge-scale`, or when discovery proves an applicable boundary.4849- Expected growth, load concentration, or capacity incidents5051## When not to activate5253- No scale requirement beyond measured current capacity5455## Automated support5657Relevant discovery inputs are:5859- architecture and performance evidence60- capacity targets61- provider quotas6263Deterministic support, bounded evidence only:6465- `detect-project-commands`66- `run-project-command`6768## Agent inspection procedure69701. State the demand scenario first: expected users, concurrency, and data growth; without one, record the assumptions explicitly.712. Find the first bottleneck: connection limits, stateful servers, shared filesystems, hot rows or hot tenants, and single-writer constraints.723. Verify horizontal-scaling readiness: session placement, sticky state, file locality, and job distribution.734. Check backpressure and load shedding: determine what happens at the queue, pool, and API layer when demand exceeds capacity.745. Project storage, log, and cost growth against the scenario, and reject infrastructure additions (microservices, Kubernetes, Redis, queues) not justified by this evidence.7576Manual inspection requirements:7778- Validate growth and burst assumptions with operators and product owners79- Review regional and provider quota constraints8081Stack-specific guidance:8283- Account for framework connection pools, runtime concurrency, and managed-service quotas8485## Evidence to collect8687Standards used as criteria:8889- Google SRE capacity-planning concepts90- OpenTelemetry9192## Common production failures9394- Model request, data, tenant, connection, queue, storage, and third-party growth95- Find serial bottlenecks, hot keys, fan-out, unbounded work, connection exhaustion, and noisy neighbors96- Inspect horizontal state, partition keys, rate shaping, load shedding, autoscaling signals, and graceful degradation9798## Missing-control checks99100Each item needs direct evidence or one reasoned status.101102- Expected users103- Request concurrency104- Database connection limits105- Horizontal scaling106- Stateful application servers107- Session storage108- Shared file systems109- Queue throughput110- Rate limits111- Hot rows112- Hot tenants113- Large-customer behavior114- Bulk operations115- Backpressure116- Capacity assumptions117- Storage growth118- Log growth119- Cost at scale120- No microservices, Kubernetes, queues, or Redis without evidence121122## Commands and tools123124- Run `forge scale audit --json` or `fullstack-forge scale audit --json` when125 an explicit audit is requested and the CLI is installed. Normal feature work does not require it.126127## Safe fixes128129- Add explicit bounds, batching, backpressure, and capacity telemetry130- Document measured limits131132## Approval-required changes133134- Introducing services, sharding, queues, caches, or multi-region topology135136## Verification137138- Run staged load tests through saturation and recovery139- Confirm correctness and tenant fairness under contention140141## Completion contract142143Follow `fullstack-forge/references/shared/completion.md` and the limitations below.144145## Known limitations146147- Capacity projections are only as credible as workload evidence