Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 4, 14:15 UTC
dependabot/npm_and_yarn/frontend/eslint-plugin-react-hooks-7.1.1
Repository Agent Instructions
These instructions apply to every AI coding agent working in this repository, including Jules, Copilot, and Codex.
Source of truth
GitHub remote state is authoritative. Before editing:
- Fetch the remote.
- Read
PROJECT_STATUS.md,docs/ACCEPTANCE_POLICY.md, anddocs/PROJECT_LOG.md. - Verify the requested base branch and full base SHA.
- If the actual SHA or repository state differs from the task, stop without changes and report the mismatch.
Never treat a local file, task summary, or agent report as proof that a branch, PR, CI run, artifact, tag, or release exists.
Work rules
- Use one dedicated branch and one focused PR per task (one phase task per PR).
- Keep each PR to at most ~1,500 changed lines, excluding tests and generated data; do not combine multiple phases in one PR (booklet 2 الف5).
- Make every PR body match
git diff --statand the real head exactly (file count, lines, tests, SHA); a PR whose description does not match reality is not reviewable (booklet 2 الف4). - Modify only explicitly allowed paths.
- Do not merge your own PR.
- Keep the product general: no company name, account code, heading, or industry constant in source code; company/industry-specific content lives only in
packs/and the database, enforced by an automated grep test (booklet 2 ب1). - No runtime network dependency; the tool runs fully offline (booklet 2 §16). Source-database connectors are read-only; never write to a source database; never store secrets in plaintext; never run a custom query without parse-validation (booklet 2 ب5/§16).
- Do not incorporate work from closed PR #7 except when a task explicitly identifies the exact feature and files to recover.
- 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. - Do not commit ZIP, EXE, build output, secrets, credentials, caches, or local databases unless explicitly required by an approved artifact task.
- Do not invent financial values, mapping rules, tests, CI outcomes, URLs, or acceptance status.
Agent orchestration (five-role model — ADR-033)
Work proceeds through a five-role agent orchestration coordinated by a single manager (M0): A1 Analyst (no product code), B1 Backend Engineer, F1 Frontend Engineer, D1 DevOps/Release & Security Engineer, and T1 Independent Tester, who gates every deliverable and never fixes code.
Before starting or resuming any task in this repository, read
docs/agent-orchestration/MASTER_ORCHESTRATION_PROMPT.md — it defines the
roles, the work-order → focused-PR → tester-verdict → integration loop,
serialization rules against open PRs, and first actions. Full per-role prompts:
docs/agent-orchestration/AGENT_PROMPTS.md (use when the roles run as separate
sessions).
A sole agent without sub-agent capability executes the roles sequentially with
strict separation of duties: the verification phase must independently
reproduce all evidence (fresh checkout, re-run commands, CI on the real head
SHA) and never trust the implementation phase's claims. The orchestration
documents add operating procedure only — they never override this file,
PROJECT_STATUS.md, docs/ACCEPTANCE_POLICY.md, or the governing booklets.
Verification
- Run the exact tests required by the task.
- Run
git diff --check. - Inspect the complete diff against the approved base SHA.
- Confirm the exact changed-file list.
- Push the branch and open a real PR into the requested base branch.
- Provide real commit, PR, CI, artifact, and release URLs when applicable.
- If GitHub publication fails, the task is not complete.
Project records
Every meaningful PR must:
- update
PROJECT_STATUS.mdwhen current state changes; - append a short entry to
docs/PROJECT_LOG.md(lightweight process, booklet §0.5: code and tests grow, not documentation); - create no new root-level analytical document; historical root analytical docs live in
docs/archive/(booklet §0.5; see ADR-026); - add a new ADR instead of silently rewriting an accepted decision;
- satisfy
docs/ACCEPTANCE_POLICY.md; - use
.github/pull_request_template.md; - update
docs/handoff/LATEST_HANDOFF.mdat the end of each B-category (B0…B12), and on any governance change, so a successor can resume without chat history — not after every commit/step (booklet §0.5 lightweight process; see ADR-026); - keep
docs/handoff/MASTER_RECOVERY_PROMPT.mdstable unless the governance process itself changes; - keep
docs/handoff/CHATGPT_BOOTSTRAP_PROMPT.txtas the saveable entry point for a successor chat.
An agent's written success report is not acceptance evidence.
Required final response
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.
End with: Ready for independent GitHub review; not merged.