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.
- artifact-serverSkill
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
- Distinctive: line 7
Keep product logic independent of SQLite, disk storage, HTTP, MCP, and deployment providers.
- Distinctive: line 8
Put concrete providers behind narrow ports named for product behavior.
- Distinctive: line 9
Do not weaken TypeScript, Oxlint, or anti-slop rules to make a change pass.
- Distinctive: line 10
Do not use module mocks. Tests should use real application services, temporary disk storage, temporary SQLite databases, and real HTTP …
- Distinctive: line 11
Test observable behavior and failure recovery, not private implementation details.
- Distinctive: line 15
Never let untrusted paths, hostnames, tokens, or installation IDs select raw storage locations.
- Very specific: line 21
Before writing any Effect code, first read node_modules/effect/AGENTS.md
- Very specific: line 24
If you need to learn more about particular Effect APIs and concepts that the guide does not cover, search through the source code in …
- Very specific: line 31
Run pnpm smoke after changing HTTP delivery, publication, SQLite, blob storage, restart behavior, or cleanup.
- Very specific: line 32
Run pnpm perf:baseline before and after a performance-sensitive change.
- Very specific: line 33
Run pnpm verify:object-storage after changing remote blob or staging storage.
- Very specific: line 34
Run pnpm verify:external-storage-runtime after changing Postgres persistence, external-storage composition, external-storage configuration, …
- Very specific: line 35
Run pnpm verify:external-storage-performance after changing the compiled external-storage publish/read path, Postgres query shape, S3 …
- Very specific: line 36
Treat project/performance/FINDINGS.md as the current risk register, not as a permanent excuse for a known bottleneck.
- Distinctive: line 37
Do not tighten machine-timing gates from one laptop run.
- Distinctive: line 38
Do not reintroduce inline base64 publication to add large-file support.
- Very specific: line 42
Run pnpm verify:iteration.
≈ “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
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-BandART-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:iterationis 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 smokeafter changing HTTP delivery, publication, SQLite, blob storage, restart behavior, or cleanup. - Run
pnpm perf:baselinebefore and after a performance-sensitive change. Compare the same machine, Node version, workload, and storage class. - Run
pnpm verify:object-storageafter changing remote blob or staging storage. It requires Docker and proves the S3-compatible adapter against pinned MinIO. - Run
pnpm verify:external-storage-runtimeafter 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-performanceafter 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.mdas 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.
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.

