@davoodmehraban89 / Aram-1 / commits / 0a41a8c
Fork 0

docs(mapping): append verified system staging audit and missing approvals

davoodmehraban89 committed Oct 30, 2026 at 19:56 UTC 0a41a8c8dd4d3e52c7c8f53edfbf8418fa1596ae
1 file changed +10
docs/PROJECT_LOG.md
+10
@@ -339,3 +339,13 @@ Each new entry must record: UTC timestamp, actor, task/phase, base branch and SH
339 - No canonical accounting XLSX/PDF, `data/`, real production/customer DB, existing migration, dependency, workflow, secrets or binaries modified. The new migration is **not run on any user database**.
340 - **NOT ACCEPTED:** proposal hash is unsigned/not tamper-proof against malicious DB access; no immutable accounting audit, authenticated decision workflow, transactional compare-and-set apply, dual-reviewer identities, legacy import gate, financial-source reconciliation or provider-specific concurrency test. All remain Issues #49/#39/#43, plus PR #25 migration reconciliation. Zero real C1/C2/C3 approvals, no merge.
341 - Rollback while Draft: close without merge. A later accepted migration downgrade deletes unreviewed drafts and would require separately reviewed backup/recovery.
342 +
343 +### 2026-10-30 — Gate 3 DraftStaged system audit evidence, Draft PR #54
344 +
345 +- User authorized continued ARAM work; implementation is a **SYSTEM staging-event foundation**, not real authenticated reviewer approval. [Draft PR #54](https://github.com/davoodmehraban89/Aram/pull/54) child of unmerged #53 exact `3f089d03ca134cd73082dd0db8ba2461e1e6bc7c`; upstream #52/#51/#50/#26 and migration PR #25 remain unmerged. Accepted branch `source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914` unchanged.
346 +- Introduced `mapping_draft_events` on the existing separate Core MetaData; new explicit `20261030_03` SQLite-only migration creates unique per-draft `DraftStaged` event table and BEFORE UPDATE/DELETE triggers. Non-SQLite migration raises **before DDL** until provider-specific controls are independently reviewed. SQLite triggers can be removed by an administrator and are not WORM/signed audit.
347 +- Saving a new Unreviewed draft records exactly one independent checksum-linked SYSTEM event in the **same caller transaction**; rollback discards both. Idempotent replay does not add events. Scoped draft read crosschecks event presence/draft ID/year/request key/payload hash/event digest; corrupt or tampered read fails. No trusted actor/approver fields or MappingRule write/apply path.
348 +- Test-only [RED CI 41088848958](https://github.com/davoodmehraban89/Aram/actions/runs/41088848958) missing module; initial [GREEN CI 41089095498](https://github.com/davoodmehraban89/Aram/actions/runs/41089095498) **190 passed, 1 warning**, full migration/compile passed.
349 +- Three added adversarial tests: parent draft DELETE blocked by FK, distinct staged drafts get distinct events, and migration must **refuse nonempty pre-audit draft table**. [RED CI 41089408299](https://github.com/davoodmehraban89/Aram/actions/runs/41089408299) **1 expected missing-guard failure, 192 passed, one warning**. Fix refuses upgrade before DDL if any old `20261030_02` rows exist, rather than fabricating historical events. [GREEN CI 41089569653](https://github.com/davoodmehraban89/Aram/actions/runs/41089569653) **193 passed, 1 warning**, migrations up/down and compile successful. **Final docs-head CI still required.**
350 +- No canonical financial XLSX/PDF, `data/`, user/production DB, existing migration, dependencies, GitHub workflow, binary, credentials, tag or release changed. Actual C1/C2/C3 independent approvals absent. This is **NOT** authenticated financial approval, externally anchored immutable journal, atomic MappingRule apply/CAS, real source-ledger reconciliation, or multi-provider concurrency guarantee. Issues #49/#39/#43 stay OPEN and Gate 3 formally unaccepted.
351 +- Before any proposed live upgrade, accounting owner must approve retention/backups for old drafts and possible destructive downgrade; real DB access has never been granted. Rollback before merge: close Draft without data change.