Home/Catalog/Reliability
Reliability — will it stay up?
Brief 123

Capacity & Scalability Audit

Every ceiling the config actually sets — pools, workers, queue bounds — read into a headroom ledger naming what saturates first, and at what multiple of today.

CAPACITY.md4 phases7 lenses~3.6k chars

Free & open · no signup · read-only — it ends by asking · nothing leaves your machine

What it does

You are working inside this repo. Mission: read the ceilings this system has actually configured — every pool size, worker count, memory limit, and queue bound — and compute the headroom ledger: how much growth each absorbs before it saturates, and which gives out first.

This is the measured pass: today's ceilings, from config. For the on-paper 10x thought experiment across the whole product — cost, ops, third parties — run 05.

Read-only pass. Your only write is the report file.

What it looks for

7 lenses it looks through

Phase 2 sweeps the codebase through every one of these, citing file and line for each finding.

1

The arithmetic

requests per second × queries per request against pool size; workers × job time against arrival rate: which inequality fails first as load grows

2

Statefulness

what pins the app to one node: local files, in-memory sessions, sticky state; could a second instance run today, provably

3

Inherited defaults

the load-bearing ceilings nobody chose: the default pool of 10, the unbounded default queue, the default heap

4

Data growth

queries whose cost grows with table size: missing LIMITs, unindexed scans — cite the query; today's fast is tomorrow's timeout

5

Queue math

arrival rate vs drain rate; where work can arrive faster than it drains, what bounds the backlog — memory is not a bound

6

Saturation behavior

at each ceiling: queue, shed, or collapse? Find the code that decides, or note that nothing does

7

Elasticity

what scales automatically vs what needs a human and a deploy, with the config that proves it

The deliverable

What lands in your repo

One structured report at the repo root — or in reports/, if you keep one — the same shape every time, ready for a teammate — or the optional Studio — to act on.

CAPACITY.md
1
Headroom ledger
resource · configured ceiling (file:line, or named default) · estimated consumption today · multiple of today's load until saturation
2
The saturation ladder
the order things give out, with the arithmetic
3
Findings
each: ceiling · what hits it · behavior at saturation · fix · config vs architecture
4
The cheapest headroom
the one config change that buys the most runway
One file. Evidence-backed. It ends by asking before touching anything.
How it works

What it makes the agent do

Every Goal Prompt follows the same four steps, so results are consistent and repeatable — no matter which one you run.

1
Phase 1

Read the ceilings out of the config

Grep the limits that exist.

2
Phase 2

Audit through 7 lenses

Every ceiling in a finding is a number with a file, or a named library default.

3
Phase 3

Curate

Build the saturation ladder.

4
Phase 4

Report

Create CAPACITY.md at repo root.

Get started

Three ways to run this Goal Prompt

01 · COPY

Paste it in

Copy it and paste it into your agent inside the repo you want checked.

02 · INSTALL

As a slash command

Install the goal plugin once — two commands — then just type /goal:capacity-scalability.

1/plugin marketplace add GhostlyGawd/goal-prompts
2/plugin install goal@goal-prompts

Or install only this Goal Prompt as /goal-capacity-scalability:

curl -fsSL https://goal-prompts.vercel.app/install | BRIEF=123 sh
03 · AGENT

From an agent (MCP)

Let an agent fetch it mid-conversation, or pull the raw Goal Prompt by URL.

https://goal-prompts.vercel.app/raw/123.md
Transparency

The exact prompt

Nothing hidden — this is the whole Goal Prompt, verbatim. Read it in a minute, edit it, or copy it as-is.

Read the full brief (3,575 characters)
# Goal: Capacity & Scalability Audit

You are working inside this repo. Mission: read the ceilings this system has actually configured — every pool size, worker count, memory limit, and queue bound — and compute the headroom ledger: how much growth each absorbs before it saturates, and which gives out first.

This is the measured pass: today's ceilings, from config. For the on-paper 10x thought experiment across the whole product — cost, ops, third parties — run 05.

Read-only pass. Your only write is the report file.

## Phase 1 — Read the ceilings out of the config
- Grep the limits that exist: DB pool size, worker and thread counts, memory limits, queue depths, rate limits, autoscale min/max, file handles. Cite each value and its file.
- Find the ceilings nobody set: an unconfigured pool has a number too — name the library default you're inheriting.
- Identify the shared, finite resources several components contend for.

## Phase 2 — Audit through 7 lenses
Every ceiling in a finding is a number with a file, or a named library default.
1. **The arithmetic** — requests per second × queries per request against pool size; workers × job time against arrival rate: which inequality fails first as load grows
2. **Statefulness** — what pins the app to one node: local files, in-memory sessions, sticky state; could a second instance run today, provably
3. **Inherited defaults** — the load-bearing ceilings nobody chose: the default pool of 10, the unbounded default queue, the default heap
4. **Data growth** — queries whose cost grows with table size: missing LIMITs, unindexed scans — cite the query; today's fast is tomorrow's timeout
5. **Queue math** — arrival rate vs drain rate; where work can arrive faster than it drains, what bounds the backlog — memory is not a bound
6. **Saturation behavior** — at each ceiling: queue, shed, or collapse? Find the code that decides, or note that nothing does
7. **Elasticity** — what scales automatically vs what needs a human and a deploy, with the config that proves it

## Phase 3 — Curate
- Build the saturation ladder: order the ceilings by which is hit first at steady growth, arithmetic shown.
- For each rung, name the fix — raise the number, add an index, add a bound, evict the state — and whether it is a config change or an architecture change.
- Flag every ceiling that turns out to be an accident.

## Phase 4 — Report
Create `CAPACITY.md` at repo root:
1. **Headroom ledger** — resource · configured ceiling (file:line, or named default) · estimated consumption today · multiple of today's load until saturation
2. **The saturation ladder** — the order things give out, with the arithmetic
3. **Findings** — each: ceiling · what hits it · behavior at saturation · fix · config vs architecture
4. **The cheapest headroom** — the one config change that buys the most runway

Start the report with today's date. If `CAPACITY.md` already exists from a previous run, read it first and lead with what changed since.

## Rules
- A ceiling is a number with a file, never a vibe; unconfigured means the library default, which you name
- The first bottleneck is the audit; average utilization is trivia
- No long-running service in this repo — nothing with pools, workers, or queues to saturate? Say so in a one-paragraph null report and stop — a null result is a valid finding.
- If a `reports/` directory exists at the repo root, write the report there instead of the root.
- Before asking, present the top findings as a ranked list in plain words
- Report only — end by asking which ceilings to raise first

House rules for this Goal Prompt

  • A ceiling is a number with a file, never a vibe; unconfigured means the library default, which you name
  • The first bottleneck is the audit; average utilization is trivia
  • No long-running service in this repo — nothing with pools, workers, or queues to saturate? Say so in a one-paragraph null report and stop — a null result is a valid finding.
  • If a reports/ directory exists at the repo root, write the report there instead of the root.
  • Before asking, present the top findings as a ranked list in plain words
  • Report only — end by asking which ceilings to raise first
Keep exploring

Pairs well with

Curated neighbors — briefs that answer the adjacent question, worth running in the same session.

More Reliability briefs

Runs inside these playbooks — curated sequences you can launch with one paste: