agentleFS
statespace-techstatespace-tech/statespace/AGENTS.md

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.

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
  1. Very specific:

    Every proxy instance routes requests to the arms of running experiments, in the order of statespace.toml.

    line 10
  2. Very specific:

    Use ssp <noun> <verb> <object>.

    line 20
  3. Very specific:

    Run alongside live, never inside it: never change a resource that ssp did not create.

    line 23
  4. Very specific:

    Keep settings in statespace.toml.

    line 30
  5. Very specific:

    Keep commands noninteractive, except ssp login.

    line 31
  6. Distinctive:

    Never count live or overrides.

    line 38
  7. Distinctive:

    Never change the bucket function: it would move the subjects of running experiments.

    line 39
  8. Distinctive:

    Keep no legacy: when the design changes, remove the old way.

    line 40
  9. Very specific:

    Keep the starter statespace.toml and the CI step in skills/statespace/SKILL.md current.

    line 41
  10. Distinctive:

    Write docs, READMEs, and skills in Simplified Technical English.

    line 43
  11. Very specific:

    Use Conventional Commits, such as feat(proxy): restart units with backoff.

    line 63

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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. --app names the app of an experiment or a token. Leave it optional where the folder can tell the app. ssp proxy takes no --app: Statespace tells the app of the runtime token.
  • Run alongside live, never inside it: never change a resource that ssp did not create. Each unit is a resource that ssp creates, labels, and deletes.
  • Print text by default and exactly one JSON document with --json, except ssp proxy. --json carries 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 proxy must 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 the App.
  • 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.toml and the CI step in skills/statespace/SKILL.md current. There is no ssp 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.md

Commits

Use Conventional Commits, such as feat(proxy): restart units with backoff. Add no AI attribution.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.