docs(mapping): capture external Session stale-read RED GREEN evidence
davoodmehraban89 committed
Oct 30, 2026 at 17:59 UTC
df8eda7c87831137358056e84386022a8b22c9c8
1 file changed
+9
docs/superpowers/plans/2026-10-30-gate3-mapping-change-preview.md
+9
@@ -22,3 +22,12 @@
22
- This spec and plan, append-only `docs/PROJECT_LOG.md` and `docs/handoff/LATEST_HANDOFF.md`.
23
24
No schema migrations, dependencies, workflows, customer or canonical financial XLSX/PDF, `data/`, production DB, API credentials, binary or Windows release. **Do not merge** until independently accepted.
25
+
26
+
27
+## Adversarial follow-up: cached ORM identities after a parallel commit
28
+
29
+- [x] Additional **test-only** SHA `6a998a82274a7526fedc5404197efa80eb7fd602`: two new synthetic tests update an existing MappingRule or FiscalYear in an **independent SQLAlchemy Session** while the review Session holds cached instances.
30
+- [x] [RED CI 41071505361](https://github.com/davoodmehraban89/Aram/actions/runs/41071505361): **2 expected failures, 117 passing, 1 warning**; prior verifier erroneously accepted a stale snapshot in both cases.
31
+- [x] Implementation SHA `f69dfa81e9a938836570a8ef2300fc8e410ce69a`: refresh cached ORM objects through `populate_existing` for scoped year, note, prior MappingRule and latest account/note query rows.
32
+- [x] [GREEN CI 41071670008](https://github.com/davoodmehraban89/Aram/actions/runs/41071670008): **119 passed, 1 warning**, disposable Alembic upgrade/downgrade and compileall succeeded. This is an additional scoped SQLite synthetic proof, **not** full concurrency/provider guarantee.
33
+- [ ] Run and inspect CI again on the **final documentation head**, then confirm changed-path allowlist, no protected-data edits, real review state, and append-only records. Do not cite prior SHA as the final.