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

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

Synced Dec 4, 04:15 UTC

docs: finalize CI failure handoff and status

Addresses remaining review feedback regarding the CI fix stringified forward references, finalizing and persisting updates to documentation records. Co-authored-by: davoodmehraban89 <57283229+davoodmehraban89@users.noreply.github.com>

google-labs-jules[bot] committed Aug 24, 2026 at 16:11 UTC c179f8c91043add500423e591509035c5a41a2ca
5 files changed +21 -4
PROJECT_STATUS.md
+2
@@ -34,6 +34,8 @@
34 | Parallel V1 prototype | `VERIFIED_BUT_UNMERGED` | Closed, unmerged [PR #7](https://github.com/davoodmehraban89/Aram/pull/7); reference/recovery source only |
35 | PR #7 test/release claims | `CLAIMED_BUT_NOT_PROVEN` | No independent acceptance evidence recorded |
36 | Official V1 release | `NOT_IMPLEMENTED` | No accepted user-ready release |
37 +| Gate 2B Mapping Foundation | `PRESENT_BUT_UNVERIFIED` | PR pending review, CI fixed via stringified references |
38 +
39 | Comprehensive Mapping Excel import/export | `NOT_IMPLEMENTED` | Mandatory before V1 acceptance |
40 | Note and sub-note mapping workflow/UI | `NOT_IMPLEMENTED` | Mandatory before V1 acceptance |
41
backend/src/aram_backend/models.py
+1
@@ -1,3 +1,4 @@
1 +from __future__ import annotations
2 import enum
3 from datetime import datetime, timezone
4 from decimal import Decimal
docs/DECISION_LOG.md
+6
@@ -51,3 +51,9 @@ Accepted decisions are immutable. To change one, add a new ADR that explicitly s
51
52 - Status: Accepted
53 - Decision: Every meaningful PR updates `PROJECT_STATUS.md` and appends an entry to `docs/PROJECT_LOG.md`. Work is not complete until the remote evidence is visible.
54 +
55 +### Model Forward References
56 +- **Date**: 2026-08-24
57 +- **Context**: During the Gate 2B implementation, `pytest` collection failed in GitHub Actions CI with an `ImportError` due to cyclic loading of `models.py`.
58 +- **Decision**: All SQLAlchemy relationship type hints for models (`FiscalYear`, `NoteRow`, `StatementLine`) must use stringified forward references (e.g. `Mapped[list["NoteRow"]]`) rather than direct type references to prevent circular imports during module load.
59 +- **Consequences**: Ensures clean schema initialization across tests and application instances without cyclic dependency crashes.
docs/PROJECT_LOG.md
+11
@@ -156,3 +156,14 @@ Each new entry must record: UTC timestamp, actor, task/phase, base branch and SH
156 - Remaining risk: PR #13 must be independently reviewed before its documentation becomes accepted
157 - Next action: review PR #13, then select the next focused Issue #11 roadmap task
158
159 +
160 +### 2026-08-24T16:04:14Z — Gate 2B Mapping Workflow Foundation CI Fix
161 +
162 +- Actor: Jules implementation
163 +- Task/phase: Gate 2B Mapping Workflow Foundation CI Fix
164 +- CI Failure: GitHub CI test job failed during pytest collection with `ImportError: cannot import name 'MappingStatus' from 'aram_backend.models'` because of cyclic reference evaluation due to missing forward declarations.
165 +- Root Cause: `FiscalYear`, `NoteRow`, and `StatementLine` were missing forward stringified declarations in relationship type hints within `models.py`, which caused circular imports that failed pytest collection.
166 +- Fix Applied: Stringified forward references (`"FiscalYear"`, `"NoteRow"`, `"StatementLine"`) in `models.py` relationship type hints. Re-added missing schema enums to schema catalog endpoints.
167 +- Commit SHA: d750fe63ce37624190c1f26dd03352723bb7c269
168 +- Tests / CI / artifacts: Verified locally (pytest passed, alembic round-trip passed, compileall passed). No artifact pollution found.
169 +- Next action: Independent review and merge of Gate 2B PR.
docs/handoff/LATEST_HANDOFF.md
+1 -4
@@ -59,10 +59,7 @@ Do not ask Davood to reconstruct project history from memory.
59
60 ### Single next action
61
62 -Review and merge documentation-only PR #13 (https://github.com/davoodmehraban89/Aram/pull/13), which records
63 -the accepted PR #12 merge and PR #9 closure. After that, verify Issue #11 and
64 -select the next small, controlled implementation task. Do not begin work from
65 -an old Jules task or cached branch.
62 +Review and merge the Gate 2B Mapping Workflow Foundation PR. The CI test collection failure related to SQLAlchemy cyclic references has been fixed by stringifying forward references. After merging, verify Issue #11 and select the next small, controlled implementation task. Do not begin work from an old Jules task or cached branch.
63
64 ### Mandatory first response
65