Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 3, 18:15 UTC
codex/gate3-mapping-batch-freshness-20261030
Aram — Latest Handoff Prompt
Durable accepted-state record with persistent role assignments and recovery workflow. GitHub remote evidence remains authoritative. Always fetch the live branch head and open PRs before acting; recorded SHAs are verified events, not perpetual current-head claims.
Accepted repository state
- Repository: davoodmehraban89/Aram
- Canonical branch: source-data-cleanup
- Recorded accepted control event: PR #18, reviewed head
fcbeb7387218e9ab294318ae462ed59de717fc95, squash mergef213d321ff4cd7d3d6fa65ba78dc48f090ee846bat2026-08-25T06:46:16Z. - Durable post-merge record: PR #19, reviewed head
b9059592409606a0a4f11a71c30778cff158b6b6, squash merge77f9f595ccfe67a87b11024ff0f6143629dba438at2026-08-25T06:57:02Z. - Earlier accepted work includes PR #1, #4, #6, #8, #10, #12, #13, and #15.
- PR #7, PR #9, PR #16, and PR #17 are closed without merge and contribute no accepted code.
- Issue #14 is completed. Issue #11 records Gate 3 as ready for a new focused task definition.
- No user-ready V1 release, tag, ZIP, EXE, or retained release artifact is accepted or proven.
Accepted Gate 2A evidence
- PR: https://github.com/davoodmehraban89/Aram/pull/15
- Base:
source-data-cleanup@7c7533ee87146dc8fc78b46ebf423be55532c7eb - Reviewed PR head:
74b6a6397a2a2c9199a5c7bcf818bb661b2ebe06 - Squash merge:
4ab54f4a3cf666827fa1ed30c4e43259ea79f2d4 - Final GitHub Actions: https://github.com/davoodmehraban89/Aram/actions/runs/32712900800
- CI conclusion: success; 52 passed, 1 warning; Alembic upgrade/downgrade and compileall succeeded.
- Accepted capabilities: governed Pilot workbook v0.1 contract, approved blank template, reproducible generator, and deterministic read-only in-memory preflight.
- Template path:
samples/Aram_Pilot_Input_and_Mapping_Template_v0.1.xlsx - Independently recomputed SHA-256:
e14a7feb80a216d79ed9cb6dde2b0df3e55317f3da6b26efc77f7118f4702b6f - Protected boundary: PR #15 changed no canonical XLSX/PDF,
data/, database, financial-source, workflow, migration, desktop/release, ZIP, or EXE path.
Accepted PR #18 control evidence
- Base:
source-data-cleanup@4ab54f4a3cf666827fa1ed30c4e43259ea79f2d4 - Reviewed head:
fcbeb7387218e9ab294318ae462ed59de717fc95 - Squash merge:
f213d321ff4cd7d3d6fa65ba78dc48f090ee846b - Exact changed files:
PROJECT_STATUS.md,docs/PROJECT_LOG.md,docs/handoff/LATEST_HANDOFF.md,docs/handoff/MASTER_RECOVERY_PROMPT.md - Verification: complete remote four-file diff and metadata reviewed; append-only project-log behavior and protected-data boundary confirmed.
- GitHub Actions: none on the reviewed head; documentation-only paths did not trigger Backend CI.
- Artifacts/releases:
NONE - Protected boundary: no application code, tests, workflow, migration, dependency, workbook content, financial data, binary, ZIP, EXE, artifact, or release file changed.
- Acceptance authority: Davood explicitly authorized the merge after independent review.
Accepted PR #19 control evidence
- Base:
source-data-cleanup@f213d321ff4cd7d3d6fa65ba78dc48f090ee846b - Reviewed head:
b9059592409606a0a4f11a71c30778cff158b6b6 - Squash merge:
77f9f595ccfe67a87b11024ff0f6143629dba438 - Exact changed files:
PROJECT_STATUS.md,docs/PROJECT_LOG.md,docs/handoff/LATEST_HANDOFF.md - Verification: complete remote three-file diff, append-only log, whitespace, protected-data boundary, and post-merge accepted-head state passed.
- GitHub Actions: none on the reviewed head; documentation-only paths did not trigger Backend CI.
- Artifacts/releases:
NONE
Durable role-based operating model
- Permanent source:
docs/handoff/MASTER_RECOVERY_PROMPT.md - Decision record: ADR-011 in
docs/DECISION_LOG.md - Introduced through: PR #20
- Davood is Project Owner and the accounting/product authority.
- ChatGPT chat is Operational Coordinator: recovery, task scoping, implementation prompts, first-pass review, and copy-ready handoffs.
- Jules is the primary Implementation Agent: exact-base focused implementation, tests, Draft PR, and evidence; it never merges its own PR.
- Codex Work is Senior Technical Supervisor, Independent Reviewer, and Authorized Maintainer: technical sequencing, remote evidence review, conflict resolution, exceptional critical fixes, acceptance decisions, and routine merges under standing delegation.
- GitHub is the evidence source of truth.
- Accounting ambiguity, material scope, protected-data changes, releases, destructive actions, credentials, and new external authority remain Davood escalation points.
- A repository mismatch pauses only the affected task without edits; it does not halt the project.
Closed superseded work
- PR #16 was closed without merge on 2026-08-25.
- It duplicated accepted PR #15, used stale base
7c7533ee87146dc8fc78b46ebf423be55532c7eb, was dirty, and recorded incorrect merge SHA35d45c3f200672a6ef97f13a84cf7c823ecf1bb8. - No file or claim from PR #16 is accepted.
Closed Gate 3 / Gate 2B reference
- PR: https://github.com/davoodmehraban89/Aram/pull/17
- Base:
source-data-cleanup@7c7533ee87146dc8fc78b46ebf423be55532c7eb - Head:
4f8648add0e2ed60f01753e979fa3fbe9ccf0f18 - Final state: closed without merge on 2026-08-25; its code is not accepted.
- GitHub reports 12 changed files although the PR narrative names only 9.
- Backend CI run #31 succeeded with 51 tests on the stale branch head; that does not prove compatibility with accepted Gate 2A.
- Use PR #17 only as reference. Do not reopen, revive, or merge it.
- Comprehensive Mapping Excel import/export, carry-forward, unknown-account queue, note/sub-note mapping, management UI, reproducible Windows packaging, and end-to-end Pilot acceptance remain unimplemented.
Governance and release reality
- GitHub remote evidence outranks this record and every agent report.
- The accepted branch is currently unprotected; explicit review discipline is mandatory.
- There are no accepted Git tags or GitHub Releases.
- Canonical financial XLSX/PDF and source data remain protected.
- Green CI on an unmerged PR is not acceptance evidence.
- No Gate 3 implementation candidate is accepted or active.
Active V1-01 safety-gate candidate
- Verified base:
source-data-cleanup@b1ddee87d31ee73b3a5aeac8f9953d0a604c206a - Working branch:
codex/v1-01-safety-gate-hardening - Draft PR: #21
- Independently reviewed implementation head:
700d800dbd9c657f6bd510faafedcbde4847fafd. - Earlier exact-head candidate:
aba10b61c770ce319b1b67d960a4f0a1057e25f6; Backend CI #36 succeeded. - A later documentation-triggered Backend CI #38 exposed a flaky message-specific reparent assertion: protection fired correctly, but through the equally valid parent-company invariant.
- Stabilized candidate:
b3dc8b3a18934ffe63f615e4f650248be21a5f9c; the single test assertion now accepts either validcannot be mutatedprotection message without changing product behavior. - Latest verified CI: Backend CI #39, success on
b3dc8b3a18934ffe63f615e4f650248be21a5f9c; 67 tests passed, migration upgrade/downgrade and compile succeeded. - Purpose: close the independently reproduced protected-year deletion/mutation and Pilot-preflight false-negative defects before any Mapping/UI expansion.
- Planned changed files:
index.html,PROJECT_STATUS.md,backend/src/aram_backend/models.py,backend/src/aram_backend/pilot_workbook.py,backend/tests/test_models.py,backend/tests/test_pilot_workbook.py,docs/PROJECT_LOG.md,docs/handoff/LATEST_HANDOFF.md. - Local evidence at preparation: 67 pytest tests passed; isolated Alembic upgrade/downgrade and compileall passed; focused Ruff and mypy checks passed.
- Protected boundary: no canonical financial data, workbook, PDF, database, financial value, binary, ZIP, EXE, tag, or release is in scope.
- Independent-review decision: code, scope, diff, and protected-data boundary passed. CI #38 later revealed only a nondeterministic error-message assertion; CI #39 passed after the one-line assertion stabilization.
- Status:
IN_PROGRESS; this durable-document reconciliation records the complete CI sequence. The resulting documentation-only head must be re-fetched and compared withb3dc8b3a18934ffe63f615e4f650248be21a5f9cbefore Ready/Squash Merge.
Single next action
Publish this requested two-document reconciliation on PR #21 and route the resulting documentation-only head back to the independent reviewer. The reviewer must confirm that only PROJECT_STATUS.md and docs/handoff/LATEST_HANDOFF.md changed after the CI-verified stabilized head b3dc8b3a18934ffe63f615e4f650248be21a5f9c, verify the final workflow result, then Ready/Squash Merge. Do not begin Gate 3 Mapping until V1-01 is accepted.
Gate 3 mapping core handoff (2026-10-23)
- Exact base: source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914; branch codex/gate3-mapping-core; Draft PR https://github.com/davoodmehraban89/Aram/pull/26.
- Implementation: explicit year-scoped mapping service and regression tests; no financial targets inferred. CI run https://github.com/davoodmehraban89/Aram/actions/runs/39869553320 reports 87 passed, migration round-trip and compile succeeded on implementation head 6cdd5e88960f3759995dfb475ae8a5e534e00d6c.
- Subsequent documentation commits require exact-head verification. No protected data changes or release. Independent review and acceptance pending; do not merge automatically.
- Remaining scope: Mapping Excel import/export, carry-forward, unknown-account queue, notes and UI, financial output, Windows package and real-user acceptance.
2026-10-30 — Gate 3 Mapping review-preparation candidate, Draft PR #50
- Accepted
source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914unchanged; child PR #50 is stacked on Draft parent PR #26 exact185e47f031902a8918c93c8dbb420122e7408403. - RED CI 41070855173: 2 expected failures (obsolete note-target persistence), 88 passes. Fix adds latest-note check before idempotent replay.
- Added
mapping_change_preview.pyfor read-only old/new snapshots, expected version, current account/note checks and stale-preview fingerprint; no actual mapping approval, actor identity, audit write or authorization. - GREEN CI 41071138346 on pre-docs code head: 117 passed, 1 warning. Verify final docs-head CI before citing as final evidence.
- No canonical financial file/customer database, schema migration, workflow, dependency, release or accepted branch was changed. C1/C2/C3 actual independent reviewer identities and source-to-statement financial reconciliation remain blocked; Gate 3 not accepted. Future work in Issue #49.
2026-10-30 — Parallel-Session stale-review fix, Draft PR #50
- A second synthetic adversarial scenario found the preview validator reused SQLAlchemy identity-map objects after separate Session updates to MappingRule or FiscalYear. RED CI 41071505361: 2 expected failures, 117 passed.
populate_existingrefreshes scoped persisted objects on each preview/verify call. GREEN CI 41071670008: 119 passed, 1 warning; migration/compile passed. Confirm final docs-head CI after this append.- No actual approval, signed token, human reviewer, immutable audit, provider-level transaction lock or production DB guarantees. PR #50 stays Draft on unmerged #26; Issue #49 Gate 3 completion work and independent C1/C2/C3 review remain outstanding.
2026-10-30 — Gate 3 bulk Mapping review preflight, Draft PR #51
- PR #51 is a scoped child of still-unmerged PR #50 exact parent
f79947a8624adbd8e84c3f8247ac3ca4a7bd4240; #50 depends on unmerged #26. Accepted source-data-cleanup remains7dc864fd032f0c4ae4d650d89304a01286a6d914. - New read-only batch classifier separates new/changed/unchanged, repeated-identical/coalesced, repeated-conflicting, invalid, with stable source locators and next-version mapping diffs. Invalid/conflicting row blocks entire batch readiness; no apply, mutation or authenticated approval method.
- Regression evidence: RED 41081238728 missing module → GREEN 41081481135 138 passes; RED 41081877772 six security failures for True/1 coalescing and audit locator controls → GREEN 41082029761 144 passed, one warning, migrations and compile success. Recheck final doc SHA CI after this update.
- Existing XLSX import path still saves directly; adapters/authenticated review, immutable audit, transactional CAS, actual account hierarchy/subnote mapping, verified true reviewer IDs and real source financial reconciliation are NOT completed. Issues #49/#39/#43 remain open, no C1/C2/C3 signoffs.
- Protected XLSX/PDF,
data/, customer DB, migrations, dependencies, workflows, binaries, releases and accepted branch untouched. Keep Draft/unmerged. Rollback: close Draft; after explicit authorized acceptance, separate reviewed revert.
2026-10-30 — Gate 3 whole-batch staleness preflight, Draft PR #52
- New read-only PR #52, stacked on unmerged #51
d022ac48e78d06eb3c17ec820435ccbaac7a6a9c, upstream unmerged #50/#26. No accepted main/source-data-cleanup modifications. verify_mapping_batch_currentrechecks original complete proposal rows against fresh session-visible account, note, rule and fiscal-year facts, including previously unchanged rows. Rejects changed source, snapshot, checksum, version, catalog, year approval, invalid/conflict and all-noop-only cases. No writes or human approval.- RED CI 41083365885 missing-function collection error; GREEN CI 41083623835: 159 passed, 1 warning, migrations and compile successful on code/test SHA
70760f33026c7cb7f2ad6ac6be164de708f93d41. Verify new final docs SHA CI. - Important: no authenticated Draft→Reviewed→Approved, immutable audit, transactional comparison-and-swap/lock, real XLSX write gating, SQL Server test or actual canonical ledger reconciliation; Issues #49/#39/#43 and qualified independent C1/C2/C3 reviews BLOCKED. Keep Draft/unmerged; no production data or source changes.