Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 4, 16:45 UTC
dependabot/pip/backend/setuptools-gte-75-and-lt-85
add-index-html-10623938925177053894
arena/094f314c-aram
arena/2d4eda07-aram
chatgpt-phase1b2-autopilot
codex/adr-future-connectors-pi-v1
codex/aram-account-note-source-trace-20261031
codex/aram-actions-node24-maintenance-20261031
codex/aram-analyst-review-workbook-20261031
codex/aram-bs-candidate-statement-20261031
codex/aram-cash-flow-direct-candidate-20261031
codex/aram-clean-reference-year-integrity-20261030
codex/aram-cross-statement-controls-20261031
codex/aram-equity-changes-candidate-20261031
codex/aram-five-statement-cli-20261031
codex/aram-five-statement-integration-20261031
codex/aram-five-statement-orchestrator-20261031
codex/aram-gate3-coverage-target-guard-20261030
codex/aram-gate3-hidden-xlsx-guard-20261030
codex/aram-gate3-integration-validation-20261030
codex/aram-gate3-mapping-change-preview-20261030
codex/aram-gate3-stale-note-guard-20261030
codex/aram-income-statement-candidate-20261031
codex/aram-manifest-referential-integrity-20261031
codex/aram-mapping-source-parser-20261101
codex/aram-multidimensional-mapping-20261101
codex/aram-multistatement-mapping-20261031
codex/aram-pipeline-manifest-schema-20261031
codex/aram-readonly-mapping-coverage-20261031
codex/aram-reconciliation-review-gate-20261031
codex/aram-same-flush-fiscal-lock-20261030
codex/aram-synthetic-windows-demo-20261031
codex/aram-trial-balance-diagnostic-20261031
codex/aram-windows-background-detail-search-20261031
codex/aram-windows-detail-review-20261031
codex/aram-windows-five-statement-pilot-20261031
codex/aram-windows-statement-figures-20261031
codex/gate-2a-pilot-workbook
codex/gate-2a-pilot-workbook-6864754244772568979
codex/gate3-authenticated-principal-boundary-20261030
codex/gate3-authored-draft-staging-20261030
codex/gate3-carry-forward-preview-20261023
codex/gate3-draft-staging-audit-20261030
codex/gate3-mapping-batch-freshness-20261030
codex/gate3-mapping-batch-review-20261030
codex/gate3-mapping-core
codex/gate3-mapping-coverage-20261023
codex/gate3-mapping-excel-20261023
codex/gate3-note-mapping-review-20261023
codex/gate3-signed-year-scope-20261030
codex/gate3-unapproved-proposal-storage-20261030
codex/payvast-mapping-discovery-20261023
codex/phase-2a-backend-foundation
codex/phase-2b-post-merge-record
codex/phase-2b-source-registration
codex/phase-2b-source-registration-12955190277775369594
codex/post-gate2a-control-reconciliation
codex/post-pr18-acceptance-record
codex/project-control-foundation
codex/t1-repo-hygiene-20261023
codex/t2-ci-hardening-20261023
codex/t3-explicit-migrations-20261023
codex/t6a-readonly-diagnostics-20261023
codex/v1-01-safety-gate-hardening
codex/v1-year-isolation-followup-20261023
codex/windows-native-pilot-shell-20261030
dependabot/github_actions/actions/checkout-7
dependabot/github_actions/actions/setup-node-6
dependabot/github_actions/actions/setup-python-7
dependabot/github_actions/actions/upload-artifact-7
dependabot/npm_and_yarn/frontend/eslint-plugin-react-hooks-7.1.1
dependabot/npm_and_yarn/frontend/vite-8.4.0
dependabot/npm_and_yarn/frontend/vitest-5.1.2
dependabot/pip/backend/mypy-gte-1.13-and-lt-3
dependabot/pip/backend/pytest-cov-gte-6.0-and-lt-8
dependabot/pip/backend/setuptools-gte-75-and-lt-85
docs/aram-master-control-plan-20261111
docs/aram-roadmap-dashboard-20261030
docs/financial-statement-reconciliation-1402-1404-20261110
feat/gate3-governed-mapping-20261101
feat/gate3-package9-1-security-20261103
feat/gate3-package9-isolated-20261103
fix/password-unicode-validation-20261111
governance/aram-5-1-3-controls-20261030
governance/role-based-operating-model
jules-1168663913887856558-73b8a885
jules-gate-2b-mapping-workflow-foundation-4137724387867065330
phase-1b1-audit-report-7365389436990903239
phase-2a-backend-foundation-10237597358138521261
phase1b2-postmerge-metadata-fix
refactor/drg-parent-year-id-15088443704684163304
source-data-cleanup
| 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 (one phase task per PR). |
| 19 | - 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). |
| 20 | - Make every PR body match `git diff --stat` and the real head exactly (file count, lines, tests, SHA); a PR whose description does not match reality is not reviewable (booklet 2 الف4). |
| 21 | - Modify only explicitly allowed paths. |
| 22 | - Do not merge your own PR. |
| 23 | - 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). |
| 24 | - 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). |
| 25 | - Do not incorporate work from closed PR #7 except when a task explicitly identifies the exact feature and files to recover. |
| 26 | - 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. |
| 27 | - Do not commit ZIP, EXE, build output, secrets, credentials, caches, or local databases unless explicitly required by an approved artifact task. |
| 28 | - Do not invent financial values, mapping rules, tests, CI outcomes, URLs, or acceptance status. |
| 29 | |
| 30 | ## Agent orchestration (five-role model — ADR-033) |
| 31 | |
| 32 | Work proceeds through a five-role agent orchestration coordinated by a single |
| 33 | manager (M0): **A1** Analyst (no product code), **B1** Backend Engineer, |
| 34 | **F1** Frontend Engineer, **D1** DevOps/Release & Security Engineer, and |
| 35 | **T1** Independent Tester, who gates every deliverable and never fixes code. |
| 36 | |
| 37 | Before starting or resuming any task in this repository, read |
| 38 | `docs/agent-orchestration/MASTER_ORCHESTRATION_PROMPT.md` — it defines the |
| 39 | roles, the work-order → focused-PR → tester-verdict → integration loop, |
| 40 | serialization rules against open PRs, and first actions. Full per-role prompts: |
| 41 | `docs/agent-orchestration/AGENT_PROMPTS.md` (use when the roles run as separate |
| 42 | sessions). |
| 43 | |
| 44 | A sole agent without sub-agent capability executes the roles sequentially with |
| 45 | strict separation of duties: the verification phase must independently |
| 46 | reproduce all evidence (fresh checkout, re-run commands, CI on the real head |
| 47 | SHA) and never trust the implementation phase's claims. The orchestration |
| 48 | documents add operating procedure only — they never override this file, |
| 49 | `PROJECT_STATUS.md`, `docs/ACCEPTANCE_POLICY.md`, or the governing booklets. |
| 50 | |
| 51 | ## Verification |
| 52 | |
| 53 | - Run the exact tests required by the task. |
| 54 | - Run `git diff --check`. |
| 55 | - Inspect the complete diff against the approved base SHA. |
| 56 | - Confirm the exact changed-file list. |
| 57 | - Push the branch and open a real PR into the requested base branch. |
| 58 | - Provide real commit, PR, CI, artifact, and release URLs when applicable. |
| 59 | - If GitHub publication fails, the task is not complete. |
| 60 | |
| 61 | ## Project records |
| 62 | |
| 63 | Every meaningful PR must: |
| 64 | |
| 65 | - update `PROJECT_STATUS.md` when current state changes; |
| 66 | - append a short entry to `docs/PROJECT_LOG.md` (lightweight process, booklet §0.5: code and tests grow, not documentation); |
| 67 | - create no new root-level analytical document; historical root analytical docs live in `docs/archive/` (booklet §0.5; see ADR-026); |
| 68 | - add a new ADR instead of silently rewriting an accepted decision; |
| 69 | - satisfy `docs/ACCEPTANCE_POLICY.md`; |
| 70 | - use `.github/pull_request_template.md`; |
| 71 | - update `docs/handoff/LATEST_HANDOFF.md` at 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); |
| 72 | - keep `docs/handoff/MASTER_RECOVERY_PROMPT.md` stable unless the governance process itself changes; |
| 73 | - keep `docs/handoff/CHATGPT_BOOTSTRAP_PROMPT.txt` as the saveable entry point for a successor chat. |
| 74 | |
| 75 | An agent's written success report is not acceptance evidence. |
| 76 | |
| 77 | ## Required final response |
| 78 | |
| 79 | 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. |
| 80 | |
| 81 | End with: `Ready for independent GitHub review; not merged.` |