docs: add repository instructions for coding agents
davoodmehraban89 committed
Aug 24, 2026 at 09:08 UTC
4540d71eacba3f9a0d1536ae384b3bd0b444d8ea
1 file changed
+52
AGENTS.md
new
+52
@@ -0,0 +1,52 @@
1
+# Repository Agent Instructions
2
+
3
+These instructions apply to every AI coding agent working in this repository, including Jules, Copilot, and Codex.
4
+
5
+## Source of truth
6
+
7
+GitHub remote state is authoritative. Before editing:
8
+
9
+1. Fetch the remote.
10
+2. Read `PROJECT_STATUS.md`, `docs/ACCEPTANCE_POLICY.md`, and `docs/PROJECT_LOG.md`.
11
+3. Verify the requested base branch and full base SHA.
12
+4. If the actual SHA or repository state differs from the task, stop without changes and report the mismatch.
13
+
14
+Never treat a local file, task summary, or agent report as proof that a branch, PR, CI run, artifact, tag, or release exists.
15
+
16
+## Work rules
17
+
18
+- Use one dedicated branch and one focused PR per task.
19
+- Modify only explicitly allowed paths.
20
+- Do not merge your own PR.
21
+- Do not incorporate work from closed PR #7 except when a task explicitly identifies the exact feature and files to recover.
22
+- Do not modify canonical XLSX/PDF, `data/`, databases, or financial source values unless the task is an approved data-change task with hashes and recovery steps.
23
+- Do not commit ZIP, EXE, build output, secrets, credentials, caches, or local databases unless explicitly required by an approved artifact task.
24
+- Do not invent financial values, mapping rules, tests, CI outcomes, URLs, or acceptance status.
25
+
26
+## Verification
27
+
28
+- Run the exact tests required by the task.
29
+- Run `git diff --check`.
30
+- Inspect the complete diff against the approved base SHA.
31
+- Confirm the exact changed-file list.
32
+- Push the branch and open a real PR into the requested base branch.
33
+- Provide real commit, PR, CI, artifact, and release URLs when applicable.
34
+- If GitHub publication fails, the task is not complete.
35
+
36
+## Project records
37
+
38
+Every meaningful PR must:
39
+
40
+- update `PROJECT_STATUS.md` when current state changes;
41
+- append a complete entry to `docs/PROJECT_LOG.md`;
42
+- add a new ADR instead of silently rewriting an accepted decision;
43
+- satisfy `docs/ACCEPTANCE_POLICY.md`;
44
+- use `.github/pull_request_template.md`.
45
+
46
+An agent's written success report is not acceptance evidence.
47
+
48
+## Required final response
49
+
50
+Return the verified base SHA, remote branch, full head SHA, PR number and URL, exact changed files, test commands/results, GitHub Actions URLs/results, artifact/release evidence or `NONE`, protected-data confirmation, and remaining risks.
51
+
52
+End with: `Ready for independent GitHub review; not merged.`