codex/windows-native-pilot-shell-20261030
add-index-html-10623938925177053894 arena/094f314c-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 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 22 lines 3.43 KB
Rendered Raw
1 # Gate 3 — unreviewed-only durable proposal storage execution
2
3 **Issue #49**, candidate [Draft PR #53](https://github.com/davoodmehraban89/Aram/pull/53), based EXACTLY on unmerged [Draft #52](https://github.com/davoodmehraban89/Aram/pull/52) at `1063431b08a9e03e022aa9b8e6c5ed90bfb05395`. Upstream #51→#50→#26 unaccepted; accepted baseline `source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914` untouched.
4
5 1. [x] Inspected baseline SQLAlchemy/Base metadata, initial Alembic migration `20260820_01` using `Base.metadata.create_all`, PR #25 still unmerged and absence of application authentication/reviewer system.
6 2. [x] Added tests-only SHA `3ee1a4c44e9580ecc21a38ea26ea155841ebcaba`: [RED CI 41086027866](https://github.com/davoodmehraban89/Aram/actions/runs/41086027866) **missing implementation module** (test import failure).
7 3. [x] Added SQLAlchemy Core table on independent `MetaData` and strict unapproved-only persistence, scoped idempotency, re-verification and readback hash. Added explicit additive `20261030_02` migration. Initial CI surfaced **test fixture teardown** FK constraints when dropping `fiscal_years` before the independent table, plus an error-message mismatch for pending ORM changes. These were test/service lifecycle defects, not production DB failures; CI run [41086255707](https://github.com/davoodmehraban89/Aram/actions/runs/41086255707) is **FAILED**, do not omit this fact from history.
8 4. [x] Fixed fixture to drop the independent table before `Base.metadata.drop_all`; reject pending financial ORM edits before invoking the nested verifier. [GREEN CI 41086542121](https://github.com/davoodmehraban89/Aram/actions/runs/41086542121) on `b6c41f74055d6804d9f3af7bf321cdec0561ade3`: **179 passed, 1 warning**, both Alembic upgrade legs `->20260820_01->20261030_02`, both downgrades, compileall successful.
9 5. [x] Expanded synthetic DB integrity coverage: corrupted stored JSON, direct SQL duplicate idempotency key, migration metadata/FK isolation. Tests-only SHA `fe167c7b480517cecf302e92427d75afe51f2bc4`.
10 6. [ ] Verify new post-additional-tests CI and **final documentation SHA** CI, full changed paths, patch sanity, reviewer permissions and no protected file changes.
11 7. [ ] Independent real C1 technical/DDL, C2 qualified finance, C3 acceptance and owner approval; all blocked until real identities/branch protection exist (Issue #39). Upstream draft PRs must be accepted in order and fully restacked. PR #25 explicit initial DDL design must be reconciled to avoid migration collisions.
12 8. [ ] Later separate projects: actual trusted auth and role policy; durable Draft→Reviewed→Approved with actor separation, append-only audit; transactional CAS inside approved apply service; close legacy direct mapping import bypass, add provider concurrency tests, link authorized financial source ledger evidence (Issues #49, #43).
13
14 ### Changed-path allowlist
15
16 - NEW `backend/src/aram_backend/mapping_draft_store.py`
17 - NEW `backend/tests/test_mapping_draft_store.py`
18 - NEW `backend/migrations/versions/20261030_02_unreviewed_mapping_drafts.py`
19 - NEW this focused spec and plan in `docs/superpowers/`
20 - APPEND ONLY `docs/PROJECT_LOG.md`, `docs/handoff/LATEST_HANDOFF.md`.
21
22 No customer/canonical accounting XLSX/PDF, `data/`, existing migrations, config/dependencies, GitHub workflows, credentials, binary, EXE, tag, release or accepted-branch writes. No login/role identity claimed. Do **not** migrate a production DB or merge as a substitute for reviewer acceptance.