Harden CI and switch release builds to tagged immutable images
This commit is contained in:
parent
bed2e6cfb6
commit
f24e96efa7
60 changed files with 4710 additions and 64 deletions
26
AGENTS.md
Normal file
26
AGENTS.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Drive v2 agent instructions
|
||||
|
||||
`Drive_v2_final_plan.md` is the product and architecture baseline. ADRs in `docs/adr/` supersede it only where they explicitly say so.
|
||||
|
||||
## Required commands
|
||||
|
||||
- Backend: `go test ./cmd/... ./internal/...`
|
||||
- Frontend: `npm --prefix web run check`
|
||||
- Full validation: `docker compose run --rm verify`
|
||||
- Container build: `docker build -t drive-v2:dev .`
|
||||
|
||||
## Non-negotiable rules
|
||||
|
||||
- Preserve the invariants in Section 2 of `Drive_v2_final_plan.md`.
|
||||
- Domain code must not import HTTP, SQL, PostgreSQL, or filesystem adapters.
|
||||
- Transport handlers parse, call one application service, and serialize; they do not contain persistence or filesystem logic.
|
||||
- Only the storage adapter may access managed storage paths.
|
||||
- Every metadata mutation and its change event must commit in one PostgreSQL transaction.
|
||||
- Committed blobs are immutable. All transfers stream and all sizes/offsets use 64-bit types.
|
||||
- Do not add endpoints outside `api/openapi.yaml` or queries outside `db/queries/`.
|
||||
- Do not edit generated files directly. Regenerate them and commit source and output together.
|
||||
- Do not add dependencies or change architecture without owner approval and an ADR.
|
||||
- Keep frontend features isolated. Never create a global event bus, central extension switch, or all-purpose file-manager component.
|
||||
- Never discard errors silently or weaken a test to make a change pass.
|
||||
|
||||
Keep changes small and scoped. Read the relevant ADR and module documentation before editing.
|
||||
Loading…
Add table
Add a link
Reference in a new issue