docs/development/ holds one page per kind of change (settings, State Store and persistence, task lifecycle, workflows and steps, event automation, dashboard, agent execution and containers, processes and wiring, merging work), each naming every layer the change must reach and pointing at the document that owns the design. The docs build puts them in the development set; docs/index.md and CLAUDE.md link them. Also adds the container-profile case to the validator agreement test, the check the profiles work skipped.
2.5 KiB
2.5 KiB
Development guides
Checklists for changing Archie. Each page covers one kind of change and names
every place that change must reach, so a feature that works in one layer does
not silently stop at the next. The pages point at the documents that own the
design (docs/architecture/, the PRDs, CLAUDE.md) rather than restating
them.
| Changing | Guide |
|---|---|
A setting in config.toml or the dashboard |
Configuration settings |
| A stored field, table, RPC or error | State Store and persistence |
| Task statuses, fields or the task brief | Task lifecycle |
| Workflow definitions or step types | Workflows and steps |
| Sources, event types, mappings or bindings | Event automation |
Anything under ui/ |
Dashboard |
| The agent container, its image or its tools | Agent execution and containers |
| A process, plugin engine, channel or NATS subject | Processes and wiring |
| Merging a lane or a branch | Merging work |
Every change
- Write the failing test first for anything with logic, branching or a contract, and check it fails on an assertion, not a compile error.
- Test through the path production uses. A test that sets a value directly on the consumer proves nothing about the layers that normally deliver it.
- Run
task checkand let its exit status decide the commit:task check && git commit ....task testpasses-short, which skips the process and Postgres tests, so rungo test -count=1 ./cmd/... ./internal/...too when a change crosses a process or the database. - Regenerate, never hand-edit, generated output:
task proto:generate,go -C tools tool sqlc generate -f $PWD/internal/infrastructure/postgres/sqlc.yaml,task ui,task docs:artifact.task proto:checkcompares against the git index, so stage regenerated contracts before running it. - Stage by path, or read
git statusbeforegit add -A. Tests that start embedded NATS or write logs must uset.TempDir(); anything they leave in the tree gets committed.task checkalso adds linter-tool lines togo.sum(bead 1e37); restorego.sumbefore committing unless you changed a dependency. - A change to
docs/prds/ordocs/architecture/carries the regenerateddocs/data/generated/dev-docs.json, and PRD edits followdocs/prds/RULES.mdand passtask docs:prds.