docs: write down the release procedure and where AI assistance stands
CI / build (pull_request) Successful in 35s

Nothing recorded how this repository is actually run, so every rule lived in
one head and had to be rediscovered. AGENTS.md now carries the two-forge
topology, why promotions are fast-forward-only, how to tell a genuinely ahead
branch from pre-rebase duplication, and the runtime and dependency constraints
that reviews keep enforcing by hand. CLAUDE.md points at it rather than
repeating it, so the two cannot drift.

The AI section in CONTRIBUTING says the obvious thing plainly: assistants are
welcome, the sign-off still means what it says, and the person submitting is
the one who read it. Chasing the tool would age badly and cannot be enforced;
responsibility can. The four failure modes listed are the ones this codebase
actually sees — added dependencies, Node-only assumptions, deleted reasoning,
missing tests.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-08-08 22:56:05 -05:00
1 parent 1b8f2f3140
commit 23d3a8fe35
3 files changed
+103

No files matched your search

+19
View File
@@ -63,6 +63,25 @@ git commit --amend -s
git push --force-with-lease
```
## Working with AI assistance
Using an AI assistant is fine. What the project holds you to doesn't change because you used one: you are the author of what you submit, and the sign-off means what it says.
**Review it as a reviewer, not as its author.** The failure mode isn't that a machine wrote the code, it's that nobody read it. Go through the diff the way you'd go through a stranger's pull request, because that is what it is. If you can't explain why a line is there, it isn't ready to send.
**The sign-off covers provenance.** `Signed-off-by` asserts you have the right to submit the work under this project's license. That doesn't become someone else's problem because a tool produced the text. If a suggestion looks reproduced from some specific project rather than written for this one, don't submit it.
**What assistants tend to get wrong here in particular:**
- They add dependencies. Core has one runtime dependency, and that is a design constraint rather than an oversight.
- They write for Node and assume the rest follows. It doesn't — green-tea also runs on Deno, Bun and the edge, and `npm test` does not cover them.
- They delete comments they read as redundant. In this codebase a comment usually carries reasoning the code can't show on its own.
- They skip the test.
**Say so when it's relevant.** Nobody needs a disclosure for autocomplete. But if a change is large, or you're less sure of it than usual, put that in the pull request. "I generated most of this and I'm not confident about X" gets you a better review than silence, and no one will think less of you for it.
If your assistant reads repository instructions, `AGENTS.md` has the conventions and the architecture notes.
## Branch model (GitFlow)
- `main` — production-ready, protected. No direct pushes.