Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 4, 20:30 UTC
governance/aram-5-1-3-controls-20261030
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/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
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 | # ADR-013 (PROPOSED) — ARAM 5+1+3 delivery and verification model |
| 2 | |
| 3 | - **Status:** Proposed. **Not accepted or effective** until this governance PR is independently reviewed, all applicable gates pass, and its merge into `source-data-cleanup` is verified. |
| 4 | - **Date:** 2026-10-30 |
| 5 | - **Decision owner:** Davood (financial, product, scope, and reserved approvals) |
| 6 | - **Base reviewed:** `source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914` |
| 7 | - **Relates to:** ADR-001, ADR-003, ADR-004, ADR-008, ADR-009, ADR-010, ADR-011. |
| 8 | - **Numbering:** ADR-012 is already proposed in open PR #29; do not treat either proposal as accepted. Re-check numbering before final merge. |
| 9 | |
| 10 | ## Decision requested |
| 11 | |
| 12 | Run each focused ARAM work item with **one operational project manager, five specialized execution roles and three separately evidenced acceptance controls**. These are **responsibilities**, not a claim that nine independent runtime agents exist. |
| 13 | |
| 14 | ### Permanent governance and authority |
| 15 | |
| 16 | 1. **Davood — owner:** final financial/product judgment. Reserved decisions: unresolved accounting policy, material feature scope, actual protected-data modifications, credentials or new external authority, destructive actions, and formal production release. |
| 17 | 2. **ARAM Project Manager — coordination:** ChatGPT as operational coordinator, or an explicitly authorized successor. Recover current GitHub state, verify base and dependencies, appoint roles, avoid overlapping paths, collect evidence, escalate reserved decisions, and select one next priority. |
| 18 | 3. **Implementation execution — Jules or authorized coding successor:** use exact-base dedicated branch and focused Draft PR; no self-merge. The designated lead may implement multiple specialist functions only when its ability is explicit and it does not self-certify independent controls. |
| 19 | 4. **Codex Work — senior technical supervisor, independent reviewer and routine authorized maintainer:** retains standing delegation defined in ADR-011, conditional on actual availability, non-authorship of the change, fresh exact-SHA evidence and all required gates. A reviewer who authored a change must be replaced by another qualified reviewer for that change. |
| 20 | 5. **GitHub — evidence of record:** remote PR/ref, checks, reviews, diff, artifacts, releases and durable handoff outrank summaries. |
| 21 | |
| 22 | ADR-011's routine merge delegation remains unchanged. This ADR adds specialist accountability and explicit gating. If the reviewer or runtime is unavailable, report `BLOCKED`; never simulate a separate person, account, model or approval. |
| 23 | |
| 24 | ### Five specialist execution roles |
| 25 | |
| 26 | | Role | Accountable delivery | Minimum required evidence | |
| 27 | |---|---|---| |
| 28 | | A1: Financial Accounting Expert | applicable accounting references, trial-balance and note/statement logic, comparative periods, ambiguity register | referenced rules, synthetic fixtures, reconciliation assertions, explicit owner decisions on ambiguity | |
| 29 | | A2: Data Engineering / Excel | validated input, immutable source lineage, versioned mapping, duplicate/idempotency/exception policies, company-year separation | field-level errors, source-to-output trace, atomic import/rollback, hostile-workbook tests | |
| 30 | | A3: Software Architecture / Backend | data model, API, authorization, fiscal-year lock/tenant boundaries, migration/rollback | unit/integration tests, migration round-trip, authorization/isolation checks, impact analysis | |
| 31 | | A4: Frontend / Financial Reporting | accountant-facing Persian RTL forms, mapping review, accessible reports, Excel/PDF and print layouts | UI workflow checks, screenshot/manual-review evidence, reconciliation of exports with backend | |
| 32 | | A5: QA / DevSecOps | test suites, regression matrix, dependency and secret checks, CI, reproducible Windows build | actual SHA-bound Actions runs, clean environment tests, artifacts/hashes when relevant | |
| 33 | |
| 34 | Roles may be performed sequentially or by multiple authorized agents, but report the **actual executor and tools**. No assertion of independent parallel agents without actual task execution evidence. |
| 35 | |
| 36 | ### Three mandatory controls — each bound to one exact candidate SHA |
| 37 | |
| 38 | **C1 — Technical & Security Review:** independent non-author reviewer examines complete diff, allowed paths, architecture, dependencies, secrets, access controls, migration/downgrade, test logs and check-run conclusion at head SHA. Decision: `PASS | FAIL | BLOCKED`. |
| 39 | |
| 40 | **C2 — Financial Accuracy & Data Integrity:** separately qualified financial reviewer validates relevant debit/credit and opening/closing identities, reporting period and company boundaries, unit/rounding, mapping exceptions, notes/sub-notes, comparisons, and demonstrable row-level lineage using synthetic or explicitly approved test data. Where task is documentation-only or unrelated to financial behavior, mark `PASS (NOT_APPLICABLE: justified)` with rationale, reviewer identity and evidence; never assert financial validation occurred. Decision: `PASS | FAIL | BLOCKED`. |
| 41 | |
| 42 | **C3 — Acceptance & Release Governance:** independent acceptance reviewer cross-checks original task, accepted base, full file inventory, exact SHA, outcomes and identities from C1/C2, PR and CI provenance, protected paths, rollback, durable docs, remaining risks, and merge/release delegation. Decision: `ACCEPT | REVISE | REJECT | BLOCKED`. |
| 43 | |
| 44 | **C1, C2 and C3 must have three distinct, traceable reviewer identities, each independent of every author of the checked change and of one another.** A sequential three-pass assessment by one LLM can provide useful QA observations but **does not meet independent-review requirements**. Independence is about real reviewer identities and non-authorship, not section names. No self-approval: a model, agent, account or human that authored the change cannot approve its own work. If no qualified independent reviewers are available, C1/C2/C3 remain `BLOCKED` and the PR stays Draft/unmerged. |
| 45 | |
| 46 | ### Work-item protocol |
| 47 | |
| 48 | 1. **Recover:** read remote `source-data-cleanup` SHA, all active and dependent PRs, Issues, branch checks, ADRs and mandatory handoff/control docs. Reconcile stale text with live GitHub before acting. |
| 49 | 2. **Scope:** choose **one small acceptance-testable item**; identify lead A1–A5, collaborators, allowed paths, exact base, dependencies, prohibited actions, fixture provenance, success criteria and rollback. |
| 50 | 3. **Implement:** code or docs only within allowlist, no source-financial mutation; execute targeted, negative, regression and integration tests as applicable; maintain explicit failures. |
| 51 | 4. **Publish:** dedicated branch, Draft PR, exact changed-file list, reviewable full diff, test commands/results, CI links tied to final head, governance log/handoff. |
| 52 | 5. **Review:** C1, C2 and C3 independently record identity, checked SHA, evidence, decision and open issues. `FAIL` or `BLOCKED` means not accepted. |
| 53 | 6. **Repair:** return findings to author; on each head change invalidate SHA-bound reviews and repeat affected checks, including acceptance. |
| 54 | 7. **Merge:** only delegated maintainer after all gates pass; production release, protected financial changes and reserved owner decisions require Davood's separate approval. No direct accepted-branch writes. |
| 55 | 8. **Post-merge:** verify new branch SHA, merge commit, CI, complete change list, Issue states, log/handoff and one next highest-priority action. |
| 56 | |
| 57 | ### Required evidence record |
| 58 | |
| 59 | Record: task identifier, goal, manager, lead/coauthors, exact base SHA, branch/head SHA, PR URL, changed paths, commands and raw results, Actions URLs/conclusions, C1 reviewer/SHA/decision, C2 reviewer/SHA/decision, C3 reviewer/SHA/decision, protected-data confirmation, financial ambiguity register, test artifact hashes if relevant, rollback, risks, and **one** of `ACCEPTED | REVISION_REQUIRED | REJECTED | BLOCKED | UNVERIFIED`. |
| 60 | |
| 61 | A successful job does not prove independent review. An open or closed-unmerged PR is not accepted. A Draft PR that merely describes a planned database connector has not implemented it. |
| 62 | |
| 63 | ### Decision boundaries and migration plan |
| 64 | |
| 65 | - Preserve existing ADR-011 role assignments and routine merge authority; add the above accountability gates only after acceptance. |
| 66 | - Do not change other repositories through this decision. |
| 67 | - Existing active Drafts (#22–#33, as discovered 2026-10-30) retain their own base/dependencies. Do not duplicate their technical scopes; review and reconcile them before beginning another implementation PR. |
| 68 | - PR #32 (year-isolation ORM guard) and PR #26 (mapping core) remain separate Draft changes. Their previous green CI cannot be transferred to a rebased head. |
| 69 | - ADR-012 in Draft PR #29 and its Excel-first V1/Peyvast-later proposal is **not accepted** by this ADR. |
| 70 | - If reviewer capacity for three truly independent roles does not exist, use sequential QA internally **but keep acceptance blocked**; obtain an independent reviewer later. |
| 71 | |
| 72 | ### Rollback |
| 73 | |
| 74 | Before merge, close this Draft PR without merge. After an authorized merge, revert the governance commit through a new reviewed rollback PR; do not rewrite accepted decision history, force-push, touch source financial data, or retroactively claim the prior governance was accepted. |