statespace
AGENTS.md1 starsChanged 11 days agoApache-2.0View on GitHub
An experiment compares commits of one app. Each arm is one commit with an exact share of the app's subjects. ssp app, ssp experiment, and ssp token call the Statespace API. ssp proxy docker, ssp proxy kubernetes, ssp proxy fargate, ssp proxy cloudrun, ssp proxy fly, and ssp proxy lambda run a reverse proxy in front of the app's live service. ssp proxy s3 and ssp proxy gcs serve a static site from a bucket: live is the bucket root,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- statespaceSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Every proxy instance routes requests to the arms of running experiments, in the order of statespace.toml.
- Very specific: line 20
Use ssp <noun> <verb> <object>.
- Very specific: line 23
Run alongside live, never inside it: never change a resource that ssp did not create.
- Very specific: line 30
Keep settings in statespace.toml.
- Very specific: line 31
Keep commands noninteractive, except ssp login.
- Distinctive: line 38
Never count live or overrides.
- Distinctive: line 39
Never change the bucket function: it would move the subjects of running experiments.
- Distinctive: line 40
Keep no legacy: when the design changes, remove the old way.
- Very specific: line 41
Keep the starter statespace.toml and the CI step in skills/statespace/SKILL.md current.
- Distinctive: line 43
Write docs, READMEs, and skills in Simplified Technical English.
- Very specific: line 63
Use Conventional Commits, such as feat(proxy): restart units with backoff.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Contributor instructions
An experiment compares commits of one app. Each arm is one commit with an exact share
of the app's subjects. ssp app, ssp experiment, and ssp token call the
Statespace API. ssp proxy docker, ssp proxy kubernetes, ssp proxy fargate, ssp proxy
cloudrun, ssp proxy fly, and ssp proxy lambda run a reverse proxy in front of the
app's live service.
ssp proxy s3 and ssp proxy gcs serve a static site from a bucket: live is the
bucket root, and each arm is a build folder (src/proxy/orchestrator/files).
Every proxy instance routes requests to the arms of running experiments, in the order
of statespace.toml. Only the instance that holds the app's lease starts and stops
units, one for each arm of each starting or running experiment, through the
Orchestrator trait in src/proxy/orchestrator. On a file runtime, every instance
checks the build folders, because each instance serves the files itself.
../design/ is the source of truth for the model.
Rules
- Use
ssp <noun> <verb> <object>. The object is positional.--appnames the app of an experiment or a token. Leave it optional where the folder can tell the app.ssp proxytakes no--app: Statespace tells the app of the runtime token. - Run alongside live, never inside it: never change a resource that
sspdid not create. Each unit is a resource thatsspcreates, labels, and deletes. - Print text by default and exactly one JSON document with
--json, exceptssp proxy.--jsoncarries exactly the information of the text output, structured; never more. Send notes and warnings to standard error. Errors exit 1, as{"error": "..."}with--json. - Give
--note(1 to 200 characters, one line) to every command that changes something. - Keep settings in
statespace.toml. Add no proxy flag for a setting. - Keep commands noninteractive, except
ssp login. - Print secrets only in the response that creates them. Never pass
STATESPACE_*variables to units or live. ssp proxymust never block or slow the app: drop counts rather than wait, and send a request to live rather than fail it. Build an orchestrator from its flags alone, so the proxy serves live before Statespace names the app; the calls that report live or run units take theApp.- Never count live or overrides. Read no logs of units or live.
- Never change the bucket function: it would move the subjects of running experiments.
- Keep no legacy: when the design changes, remove the old way.
- Keep the starter
statespace.tomland the CI step inskills/statespace/SKILL.mdcurrent. There is nossp init. - Write docs, READMEs, and skills in Simplified Technical English. Never name customers.
Checks
cargo fmt --all -- --check
cargo clippy --all-targets -- -D warnings
cargo test --locked
sh -n install.sh && shellcheck install.sh
# Needs Docker
STATESPACE_DOCKER_TESTS=1 cargo test --locked --test cli docker
# Needs a kind cluster selected in kubectl
STATESPACE_KIND_TESTS=1 cargo test --locked --test cli kind
# Needs a Fly.io test app and its deploy token; see CONTRIBUTING.md
STATESPACE_FLY_TESTS=1 cargo test --locked --test cli fly_proxies_run_arms
# Real Fargate, Cloud Run, Lambda, S3, and Cloud Storage: see CONTRIBUTING.mdCommits
Use Conventional Commits, such as feat(proxy): restart units with backoff. Add no AI
attribution.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

