6da5cd605a
Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
41 lines
1.6 KiB
Markdown
41 lines
1.6 KiB
Markdown
# Harness Overview
|
|
|
|
This harness turns recurring project knowledge into files and checks that an
|
|
agent can discover without chat history.
|
|
|
|
## Goals
|
|
|
|
- Make repository context legible through short maps and deeper docs.
|
|
- Keep architecture constraints close to the code they protect.
|
|
- Give agents a deterministic validation path before opening or updating a PR.
|
|
- Prefer mechanical checks over reminder text when a rule can be verified.
|
|
|
|
## Entry Points
|
|
|
|
- `AGENTS.md` is the root map for coding agents.
|
|
- `ARCHITECTURE.md` documents package boundaries and state ownership.
|
|
- `DEVELOPMENT.md` remains the contributor rules and command reference.
|
|
- `docs/harness/validation.md` maps change types to checks.
|
|
- `docs/harness/worktree-runbook.md` explains isolated worktree development.
|
|
- `docs/harness/pr-review.md` provides a PR self-review checklist.
|
|
- `scripts/harness-check.mjs` enforces baseline repository invariants.
|
|
|
|
## Operating Model
|
|
|
|
1. Read the root map and the specific doc for the task.
|
|
2. Make the smallest scoped change.
|
|
3. Add or update focused tests when behavior changes.
|
|
4. Run `npm run harness:check` and the relevant validation commands.
|
|
5. If a failure pattern repeats, improve this harness with docs, tests, scripts,
|
|
or CI instead of relying on a longer prompt.
|
|
|
|
## What Belongs In The Harness
|
|
|
|
- Facts that future agents must know to work safely.
|
|
- Checklists that prevent repeated PR review comments.
|
|
- Scripts that fail fast on repository-wide invariants.
|
|
- Runbooks for local, CI, release, and desktop packaging flows.
|
|
|
|
Do not put long implementation notes in `AGENTS.md`. Add them under `docs/` and
|
|
link to them from the map.
|