nixos/slop-cannon: Keep agents' running notes in issues
Plans and status notes kept in files on branches go stale once the work moves on or the branch is forgotten. Have agents keep them in Gitea issues on the repository they're about, one per piece of work, and say the same in `AGENTS.md` for `dev/nixfiles`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #20.
This commit is contained in:
1 parent
5fcd2f29be
commit
0a8c98f76f
3 files changed
+25
No files matched your search
@@ -275,6 +275,10 @@ in churn.
|
||||
|
||||
## Documentation
|
||||
|
||||
**Work in progress goes in Gitea issues** on `dev/nixfiles`, not in `docs/` or in files on
|
||||
branches: plans, status, next steps and handoffs for a piece of work, one issue each, with its
|
||||
description kept current. When the work is done, move what lasts into `docs/` and close the issue.
|
||||
|
||||
Human-readable docs live under `docs/` (index: `docs/README.md`). Box pages are under
|
||||
`docs/sites/<site>/`, `docs/remote/`, `docs/mobile/`. A box that itself hosts sub-systems
|
||||
(containers/nested VMs) gets a **directory named for it** with a `README.md` and the child pages
|
||||
|
||||
@@ -214,6 +214,9 @@ scopes `write:repository` and `write:issue`).
|
||||
Codex's `AGENTS.md`) makes a pull request from a branch of its own the default way to finish a
|
||||
piece of work, and says how with jj and `tea`. A repository's own `AGENTS.md` can allow more,
|
||||
such as pushing to its main branch.
|
||||
- **Issues:** the same rule keeps agents' running notes, plans and handoffs in Gitea issues on
|
||||
the repository they're about, rather than in files on branches that go stale. Durable facts
|
||||
still go in the repository's docs, and the issue is closed.
|
||||
- **Access per repo:** where agents should only propose changes (`dev/nixfiles`, `slop-broker`),
|
||||
protect the main branch so only Dev pushes and merges. Elsewhere the bot's Write access is
|
||||
enough to push directly.
|
||||
|
||||
@@ -76,6 +76,24 @@ in
|
||||
- Read a pull request and its comments with `tea pulls <index> --comments`, and reply with
|
||||
`tea comment <index> "<text>"`.
|
||||
- The repository's commit conventions still apply.
|
||||
|
||||
# Running notes in issues
|
||||
|
||||
Keep notes about work in progress (plans, where it stands, what's next, handoffs to
|
||||
another agent) in Gitea issues on the repository they're about, not in files in the
|
||||
repository or on branches, which go stale.
|
||||
|
||||
- Use one issue per piece of work, and keep its description current: what it's for, where
|
||||
it stands, what's next and open questions. Add progress and findings as comments.
|
||||
- Create one with `tea issues create --title "<summary>" --description-file <file>`, and
|
||||
update it with `tea issues edit <index> --description-file <file>`. List with
|
||||
`tea issues`, read one with `tea issues <index> --comments`, and comment with
|
||||
`tea comment <index> "<text>"`.
|
||||
- Mention the issue (`#<index>`) in pull requests that move it on. Closing keywords such
|
||||
as "fixes #<index>" close it when the pull request merges, so only use them when that
|
||||
finishes the work.
|
||||
- When the work is done, put what lasts in the repository's docs (its `AGENTS.md` says
|
||||
where) and close the issue with `tea issues close <index>`.
|
||||
'';
|
||||
|
||||
slopClone = pkgs.writeShellApplication {
|
||||
|
||||
Reference in new issue
Block a user