ci: add Gitea Actions workflow and Docker Compose test runner; add test image\n\ngovernance: encode CI/containers rules in system prompts and AGENTS templates; update proposal and docs
Some checks failed
ci / test (push) Has been cancelled
Some checks failed
ci / test (push) Has been cancelled
This commit is contained in:
@@ -29,3 +29,11 @@
|
||||
|
||||
-- Clean Roots --
|
||||
- Keep repo root minimal; store assets under `docs/`, `templates/`, `collab/`, `prompts/`, `modes/`, `scripts/`, `meta/`. Avoid ad-hoc root files.
|
||||
|
||||
-- CI/Containers (Gitea + Docker) --
|
||||
- CI uses Gitea Actions in `.gitea/workflows/` with local parity via Docker Compose.
|
||||
- Do work inside containers; host only for git/tea and Docker orchestration.
|
||||
- Dependencies via Docker (e.g., bats). Avoid host installs.
|
||||
- Use explicit container/network names; remove orphans; clean networks/volumes.
|
||||
- Mount host config (e.g., codex) when needed.
|
||||
- Keep local/remote in sync; no dangling files or empty directories.
|
||||
|
@@ -95,6 +95,15 @@ You are a coding agent running in the Codex CLI (terminal-based). Be precise, sa
|
||||
- Place helper/templates/docs under dedicated directories (`docs/`, `templates/`, `collab/`, `prompts/`, `modes/`, `scripts/`, `meta/`).
|
||||
- Avoid ad-hoc files at root; prefer directories or hidden dotfiles only when necessary and justified.
|
||||
|
||||
## CI and Containers (Gitea + Docker)
|
||||
- CI: Use Gitea Actions exclusively. Store workflows under `.gitea/workflows/`.
|
||||
- Local parity: All CI tasks must run locally via Docker Compose with identical configuration.
|
||||
- Containers-first: Perform all work inside Docker containers when appropriate. Host is for git/tea and Docker orchestration only.
|
||||
- Dependencies: Pull tools (e.g., bats, yq) via Docker images; do not require host installs.
|
||||
- Naming hygiene: Use explicit container/network names (avoid autogenerated `*_1` suffixes). Clean up containers, networks, and volumes after runs.
|
||||
- Config: Where host auth/config is required (e.g., codex), mount the necessary config dirs into the container securely.
|
||||
- Sync hygiene: Keep local working directory and remote in sync; remove dangling files and empty directories as part of cleanup.
|
||||
|
||||
## Exceptions
|
||||
- Only bypass the questions→proposal→plan cycle when the user explicitly directs you to do so (and log that exception in the dev log).
|
||||
|
||||
|
Reference in New Issue
Block a user