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

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

Synced Dec 3, 18:15 UTC

docs(mapping): append signed proposer evidence and absent approval blockers

davoodmehraban89 committed Oct 30, 2026 at 23:08 UTC b6a92cae65cb5adfca1bfe70da700d01ef9c581c
1 file changed +10
docs/PROJECT_LOG.md
+10
@@ -367,3 +367,13 @@ Each new entry must record: UTC timestamp, actor, task/phase, base branch and SH
367 - Tests-first commit `463b340d9bb5a88837439620e8608bcce98e770e` [RED CI 41110810775](https://github.com/davoodmehraban89/Aram/actions/runs/41110810775): **28 intended failures/231 prior passes**, demonstrating missing scope verification and API; initial code `f9deb416726334b9070ae864632ce38a7aa862cb` [CI 41110973867](https://github.com/davoodmehraban89/Aram/actions/runs/41110973867) **2 failed/257 passed** because negative tests expected 403 for malformed role but correct outcome is 401. Corrected assertions and added explicit direct proposer→reviewer denial test in `59cb141cad81add6523f4fea7a127c8180d080e5`; **exact code-head CI pending**.
368 - Scope: auth identity module, NEW year authorization module, read-only main route, synthetic tests, focused spec/plan and append-only log/handoff. No real enterprise IdP users or grants configured. No finance approval, persisted proposal-author identity, reviewer/author independence, externally immutable audit, atomic locked CAS apply, Excel bypass closure, production/provider verification or ledger reconciliation. Issues #49/#39/#43 and real C1/C2/C3 review remain blockers; no merge/release.
369 - Tests only on disposable SQLite and synthetic RSA signing keys; no canonical XLSX/PDF, `data/`, customer/production DB, migration, dependencies, workflow or accepted branch changes. A successful year-access check does NOT authorize eventual finance posting or skip same-transaction revalidation.
370 +
371 +### 2026-10-30 — Gate 3 atomically authored Unreviewed Mapping drafts, Draft PR #57
372 +
373 +- User expressly authorized continued work; created [Draft PR #57](https://github.com/davoodmehraban89/Aram/pull/57) child of **unmerged** Draft #56 exact `0fc0713bd9e0906954c16d7a6b25aad8bf793383`. Upstream #55/#54/#53/#52/#51/#50/#26 and migration redesign #25 remain unmerged; accepted `source-data-cleanup@7dc864fd032f0c4ae4d650d89304a01286a6d914` unchanged.
374 +- New POST `/api/v1/mapping/unreviewed-drafts` accepts strict typed rows and year/request key ONLY via RSA-verified FastAPI principal and signed exact company/year `mapping_proposer` permission. Stages Unreviewed Mapping draft, existing SYSTEM DraftStaged event and new immutable-at-SQLite-DML author record **in one transaction**; all rollback together on failure. No MappingRule posting, approval, finance decision or private signing key.
375 +- New independent Core table `mapping_draft_authors` with per-draft UNIQUE, RESTRICT FK, proposer-only CHECK, author issuer+subject and source hash, optional readback consistency check. Additive `20261030_04` SQLite-only explicit Alembic migration creates update/delete denial triggers; other DB providers fail closed. Cannot resist a privileged administrator or serve as externally signed/WORM audit.
376 +- Existing unattributed old drafts are **NOT retroactively claimed** by a new signer; request key ownership is fixed by original author. Exact same signer+request key+proposal is idempotent without duplicate author/system events; different signer receives 409. A separate **read-only** check requires a different reviewer (`issuer`, `subject`) with current signed reviewer scope; it never records Reviewed/Approved, audit decision or rule change. No real IdP configured or actual enterprise reviewer.
377 +- Tests-first SHA `b31bf83778a1e5bcb404290fd00a7e5c445fd6e9`: [RED CI 41116237163](https://github.com/davoodmehraban89/Aram/actions/runs/41116237163) missing new module at collection. Code SHA `ed9703da28d04bef7d09692a974322987280f401`: [GREEN CI 41116509978](https://github.com/davoodmehraban89/Aram/actions/runs/41116509978) **275 passed, two warnings**, all four Alembic upgrade legs and reverse downgrades, compileall successful. **Recheck final documentation HEAD CI separately.**
378 +- Allowed eight changes: new authored service, its tests, new migration, modified main endpoint, new spec/plan, append-only log/handoff. No canonical financial XLSX/PDF, `data/`, customer/production DB, original migration, workflows, dependencies, executables, releases or accepted branch touched. No finance C1/C2/C3 approval.
379 +- **Remaining real blockers:** existing low-level `save_unreviewed_batch` and direct Mapping/Excel write APIs are still possible ungoverned paths; external IdP, stable employee identity, real reviewer/author separation, signed human audit, transactional MappingRule CAS/apply, provider concurrency and actual 1402–1404 reconciliation not done. Issues #49/#39/#43 OPEN. PR #57 Draft/unmerged; Gate 3 formally 0% accepted.