@davoodmehraban89 / Aram-2 Mirror · read-only
Fork 0

Mirrored from https://github.com/davoodmehraban89/Aram.git

Synced Dec 4, 15:30 UTC

arena/094f314c-aram
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/globals-17.15.0 dependabot/npm_and_yarn/frontend/vite-8.4.0 dependabot/npm_and_yarn/frontend/vitest-5.1.2 dependabot/npm_and_yarn/frontend/vitest/coverage-v8-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
md 91 lines 5.77 KB
Rendered Raw
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 - Integration is **delegated to the executing agent** by the owner's standing
23 directive (ADR-034): merge your own focused PR **only after** the T1 gate
24 returns PASS and required CI is green on the real head SHA. Squash, explicit PR
25 number, into `source-data-cleanup`. **Tagging and releases remain owner
26 actions.** Because the same agent integrates, separation of duties is
27 procedural and absolute: the verification phase re-derives every piece of
28 evidence independently and never trusts the implementation phase's claims.
29 - 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).
30 - 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).
31 - Do not incorporate work from closed PR #7 except when a task explicitly identifies the exact feature and files to recover.
32 - 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.
33 - Do not commit ZIP, EXE, build output, secrets, credentials, caches, or local databases unless explicitly required by an approved artifact task.
34 - Do not invent financial values, mapping rules, tests, CI outcomes, URLs, or acceptance status.
35
36 ## Agent orchestration (five-role model — ADR-033)
37
38 Work proceeds through a five-role agent orchestration coordinated by a single
39 manager (M0): **A1** Analyst (no product code), **B1** Backend Engineer,
40 **F1** Frontend Engineer, **D1** DevOps/Release & Security Engineer, and
41 **T1** Independent Tester, who gates every deliverable and never fixes code.
42
43 Before starting or resuming any task in this repository, read
44 `docs/agent-orchestration/MASTER_ORCHESTRATION_PROMPT.md` — it defines the
45 roles, the work-order → focused-PR → tester-verdict → integration loop,
46 serialization rules against open PRs, and first actions. Full per-role prompts:
47 `docs/agent-orchestration/AGENT_PROMPTS.md` (use when the roles run as separate
48 sessions).
49
50 A sole agent without sub-agent capability executes the roles sequentially with
51 strict separation of duties: the verification phase must independently
52 reproduce all evidence (fresh checkout, re-run commands, CI on the real head
53 SHA) and never trust the implementation phase's claims. The orchestration
54 documents add operating procedure only — they never override this file,
55 `PROJECT_STATUS.md`, `docs/ACCEPTANCE_POLICY.md`, or the governing booklets.
56 Where the orchestration prompt still says merge is an owner-only action,
57 **ADR-034 supersedes that clause**; everything else in ADR-033 stands.
58
59 ## Verification
60
61 - Run the exact tests required by the task.
62 - Run `git diff --check`.
63 - Inspect the complete diff against the approved base SHA.
64 - Confirm the exact changed-file list.
65 - Push the branch and open a real PR into the requested base branch.
66 - Provide real commit, PR, CI, artifact, and release URLs when applicable.
67 - If GitHub publication fails, the task is not complete.
68
69 ## Project records
70
71 Every meaningful PR must:
72
73 - update `PROJECT_STATUS.md` when current state changes;
74 - append a short entry to `docs/PROJECT_LOG.md` (lightweight process, booklet §0.5: code and tests grow, not documentation);
75 - create no new root-level analytical document; historical root analytical docs live in `docs/archive/` (booklet §0.5; see ADR-026);
76 - add a new ADR instead of silently rewriting an accepted decision;
77 - satisfy `docs/ACCEPTANCE_POLICY.md`;
78 - use `.github/pull_request_template.md`;
79 - 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);
80 - keep `docs/handoff/MASTER_RECOVERY_PROMPT.md` stable unless the governance process itself changes;
81 - keep `docs/handoff/CHATGPT_BOOTSTRAP_PROMPT.txt` as the saveable entry point for a successor chat.
82
83 An agent's written success report is not acceptance evidence.
84
85 ## Required final response
86
87 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.
88
89 End with the **real integration state**: the merged PR number, squash SHA and
90 merge timestamp, or the open PR URL if it is not merged. Do not use a fixed
91 "not merged" sentence — report what actually happened (ADR-034).