agentleFS
plannotatorplannotator/artifact-server/AGENTS.md

artifact-server

AGENTS.md184 starsChanged 3 months agoApache-2.0View on GitHub

Build toward the contracts in project/spec/conformance.yml. Product prose lives in project/spec/artifact-server-product-spec.html; the ledger is the machine-checkable index of its promises. This repository uses the Effect TypeScript library. Before writing any Effect code, first read node_modules/effect/AGENTS.md completely, and follow the links in the file when required. If you need to learn more about particular Effect APIs and concepts that the guide does not cover, search through the source code in node_modules/effect/src. Run pnpm verify:iteration. Report any requirement that is still specified…

  • 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

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

17 rules. About 0 are common, 8 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep product logic independent of SQLite, disk storage, HTTP, MCP, and deployment providers.

    line 7
  2. Distinctive:

    Put concrete providers behind narrow ports named for product behavior.

    line 8
  3. Distinctive:

    Do not weaken TypeScript, Oxlint, or anti-slop rules to make a change pass.

    line 9
  4. Distinctive:

    Do not use module mocks. Tests should use real application services, temporary disk storage, temporary SQLite databases, and real HTTP …

    line 10
  5. Distinctive:

    Test observable behavior and failure recovery, not private implementation details.

    line 11
  6. Distinctive:

    Never let untrusted paths, hostnames, tokens, or installation IDs select raw storage locations.

    line 15
  7. Very specific:

    Before writing any Effect code, first read node_modules/effect/AGENTS.md

    line 21
  8. Very specific:

    If you need to learn more about particular Effect APIs and concepts that the guide does not cover, search through the source code in …

    line 24
  9. Very specific:

    Run pnpm smoke after changing HTTP delivery, publication, SQLite, blob storage, restart behavior, or cleanup.

    line 31
  10. Very specific:

    Run pnpm perf:baseline before and after a performance-sensitive change.

    line 32
  11. Very specific:

    Run pnpm verify:object-storage after changing remote blob or staging storage.

    line 33
  12. Very specific:

    Run pnpm verify:external-storage-runtime after changing Postgres persistence, external-storage composition, external-storage configuration, …

    line 34
  13. Very specific:

    Run pnpm verify:external-storage-performance after changing the compiled external-storage publish/read path, Postgres query shape, S3 …

    line 35
  14. Very specific:

    Treat project/performance/FINDINGS.md as the current risk register, not as a permanent excuse for a known bottleneck.

    line 36
  15. Distinctive:

    Do not tighten machine-timing gates from one laptop run.

    line 37
  16. Distinctive:

    Do not reintroduce inline base64 publication to add large-file support.

    line 38
  17. Very specific:

    Run pnpm verify:iteration.

    line 42

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

Artifact Server agent instructions

Build toward the contracts in project/spec/conformance.yml. Product prose lives in project/spec/artifact-server-product-spec.html; the ledger is the machine-checkable index of its promises.

Engineering rules

  • Keep product logic independent of SQLite, disk storage, HTTP, MCP, and deployment providers.
  • Put concrete providers behind narrow ports named for product behavior.
  • Do not weaken TypeScript, Oxlint, or anti-slop rules to make a change pass.
  • Do not use module mocks. Tests should use real application services, temporary disk storage, temporary SQLite databases, and real HTTP boundaries where those behaviors matter.
  • Test observable behavior and failure recovery, not private implementation details.
  • Name conformance tests with their requirement IDs, such as ART-004-B and ART-004-F.
  • A feature is not complete until its normal and hostile tests pass and durable evidence can be attached to the ledger.
  • Preserve immutable version bytes and IDs across retries, crashes, restarts, and restores.
  • Never let untrusted paths, hostnames, tokens, or installation IDs select raw storage locations.

Learning more about Effect

This repository uses the Effect TypeScript library.

Before writing any Effect code, first read node_modules/effect/AGENTS.md completely, and follow the links in the file when required.

If you need to learn more about particular Effect APIs and concepts that the guide does not cover, search through the source code in node_modules/effect/src.

Performance verification

  • pnpm verify:iteration is the canonical end-of-iteration gate. It runs the complete correctness, conformance, build, coverage report, smoke, and bounded performance path.
  • Coverage is diagnostic. Do not add a test only to move a percentage, lower a threshold, or exercise an implementation detail. A test must prove an observable product behavior, security boundary, recovery path, or measured performance characteristic.
  • Run pnpm smoke after changing HTTP delivery, publication, SQLite, blob storage, restart behavior, or cleanup.
  • Run pnpm perf:baseline before and after a performance-sensitive change. Compare the same machine, Node version, workload, and storage class.
  • Run pnpm verify:object-storage after changing remote blob or staging storage. It requires Docker and proves the S3-compatible adapter against pinned MinIO.
  • Run pnpm verify:external-storage-runtime after changing Postgres persistence, external-storage composition, external-storage configuration, migrations, or backup behavior. It requires Docker and drives multiple compiled server processes against pinned Postgres and MinIO.
  • Run pnpm verify:external-storage-performance after changing the compiled external-storage publish/read path, Postgres query shape, S3 object operations, connection-pool settings, or file-client concurrency. It requires Docker and records a bounded two-process Postgres/MinIO baseline.
  • Treat project/performance/FINDINGS.md as the current risk register, not as a permanent excuse for a known bottleneck.
  • Do not tighten machine-timing gates from one laptop run. CI smoke limits catch gross failures; controlled repeated baselines establish regression budgets.
  • Do not reintroduce inline base64 publication to add large-file support. Use the specified staged direct-upload and streaming-delivery paths.

Before handing off work

Run pnpm verify:iteration. Report any requirement that is still specified but not proved; do not mark it verified optimistically.

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.