سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 08:00 UTC
test: verify full ledger guard chain and document remaining gates
JVK committed
Nov 4, 2026 at 21:59 UTC
4149d50b92ee680a0da84da93b306ff1ba99f96c
30 files changed
+1126
-22
.github/workflows/wp1-ledger.yml
+3
@@ -31,6 +31,8 @@ jobs:
31
run: node scripts/wp1-reversal-dimensions-test.mjs
32
- name: Prove manual journal update guards and rollback
33
run: node scripts/wp1-manual-guards-cycle.mjs
34
+ - name: Prove NULL revision rejection and rollback
35
+ run: node scripts/wp1-null-revision-cycle.mjs
36
- name: Verify full candidate conservative DOWN and UP
37
run: node scripts/wp1-prerequisite-rollback.mjs
38
- name: Upload synthetic evidence
@@ -43,4 +45,5 @@ jobs:
45
docs/wp1/evidence/prerequisite-rollback/
46
docs/wp1/evidence/reversal-dimensions/
47
docs/wp1/evidence/manual-update-guards/
48
+ docs/wp1/evidence/null-revision/
49
retention-days: 14
PROJECT_STATE.md
+5
@@ -288,3 +288,8 @@ Owner requests layer-by-layer click/functional testing of all controls and compa
288
### 2026-11-04 — NULL revision mutation guard
289
- Root identified and reproduced four real CAS bypasses: NULL expected revision accepted by update/delete/post/reverse. Additive CLI-generated20261104214503 changes only four comparisons to IS DISTINCT FROM, retaining rowlocks, authorization and authorized read-only replay semantics.
290
- Dedicated source-derived PostgreSQL proof PASS: four exact baselineRED bypasses,16negative mutations(NULL/zero/negative/wrong) rejected withunchangedrecords, validwritesandread-onlyreplaysPASS. UP/DOWN/UP verifiesexactfourfunctiondefinitions/ACLs andretains3posted/6lines/audit/counters. Report docs/wp1/NULL_REVISION_GUARDS_FA.md. Combined15chain/fullCI notyetverified; independentSQLreview notclaimed; production untouched.
291
+
292
+### 2026-11-04 — Final integrated server repair checkpoint
293
+- Final15migration chain complete local proof PASS: all16SQLfiles including seeded1000events plusactualtwo-sessionconcurrency. Full15DOWN/UP restores71baselinefunctions/ACLs/triggers, retains4posted/10lines/10audit/counters byhash, andD1/D2 re-enforce afterUP. Dedicated reversal/manual/NULLcycles allPASS with exactpriorfunctions/ACLs andretainedhistory. Evidence docs/wp1/evidence/integrated-15 andprerequisite-rollback.
294
+- New scoped fixes: analytical tags preserved onfull/partialreversal;17manualdate/type/scope bypasses rejected; NULL revisions rejected beforefournewjournalmutations(16negativecases), authorizedread-onlyreplayunchanged. All97manifestbodyhashes,manifestmutations,staticquality/release-safety and43clientprotocoltestsPASS. No runtimeJS changes since reviewed56818d8. SQL independently reviewed byroot only; independent specialist review remains open.
295
+- Goals/current/remaining updated in docs/wp1/STATUS_FA.md, docs/ROADMAP_CURRENT.md, docs/EXECUTION_STATUS.md, SOURCE_COVERAGE andROLLOUT_HOLD. Source-backed next-step plan docs/wp1/MANUAL_RPC_NEXT.md: single-snapshot RLS graphread, pending-edit-safe merge, explicitmanualUI adapter, atomiclinkedcorrection anddimensioncontract; no graphRPC/UIadapter yet. WP1 and laterpackages notcomplete. No productionmutation/merge/deploy; G1–G5 unchanged. PublishcandidateandverifyexactnewheadCI next.
docs/EXECUTION_STATUS.md
+3
-3
@@ -2,9 +2,9 @@
2
3
هدف جاری: تکمیل WP1 با ثبت مالی معتبر سمت سرور و حفاظت ویرایشهای ذخیرهنشده. مالک ادامه همه WPها را مجاز کرده؛ گیت هر مرحله و G1–G5 برقرار است. [نقشه راه جاری](ROADMAP_CURRENT.md) و [وضعیت دقیق WP1](wp1/STATUS_FA.md) مرجع فعلیاند.
4
5
-- انجامشده: WP0 و CI آن؛ آزمون کامل مالی شامل۱۰۰۰رویداد/همزمانی و برگشت/نصب مجدد۱۲تغییر روی799cff4 درCI موفق. هیچ نصب عملیاتی انجام نشده است.
6
-- در حال تأیید نهایی: کلاینت سازگار با سرور قدیم/جدید، تأیید کامل ذخیره، حفظ ویرایش در تعارض و حفاظت جابهجایی سازمان.۴۳آزمون مستقل،۸آزمونPages و۵۵فرمان کنترل موفق؛ اجرای کامل۲۲۲/۲۲۲موفق است؛ CI کامیت جدید پس از انتشار بررسی میشود.
7
-- باقیمانده: مسیرRPC سند دستی، اصلاح/ابطال تراکنشی خرید،پوشش منابع،حل تعارض،تطبیق ساختار واقعی،shadowکامل،پذیرش واقعی،بکاپ/بازیابی و بستهG1. ممیزی کامل همه دکمهها و ورود روی اینترنت مالک همچنان پذیرش نهایی ندارند.
5
+- انجامشده: WP0 و CI آن؛ اتصال امن کلاینت در56818d8 و تمام CI آن؛ ۲۲۲ آزمون مرورگر،۴۳ آزمون Node،۸ آزمون Pages و۵۵ فرمان کنترل موفق.
6
+- اصلاحهای جدید: حفظ ابعاد برگشت سند و کنترل تاریخ/نوع سند دستی؛ زنجیرهٔ۱۴تغییر در تمام آزمونهای مالی شامل۱۰۰۰رویداد،همزمانی و DOWN/UP موفق است. نسخهٔ خالی نیز پس از بازتولید چهار نقص در عملیات سند اصلاح شد و۱۶آزمون منفی و چرخهٔ اختصاصی آن موفقاند؛ آزمون کامل محلی زنجیرهٔ۱۵تغییر شامل۱۶فایل SQL،۱۰۰۰رویداد،همزمانی و DOWN/UP موفق است؛ CI نسخهٔ جدید جداگانه بررسی میشود.
7
+- باقیمانده: خواندن یکپارچه و مسیرRPC سند دستی، اصلاح/ابطال تراکنشی خرید،قرارداد ابعاد و پوشش منابع،حل تعارض،تطبیق ساختار واقعی،shadowکامل،پذیرش واقعی،بکاپ/بازیابی و بستهG1. بازبینی مستقل SQL، ممیزی همهٔ دکمهها و ورود روی اینترنت مالک هنوز پذیرش نهایی ندارند. نصب عملیاتی انجام نشده است.
8
9
## سوابق پیشین (وضعیتهای تاریخدار)
10
docs/ROADMAP_CURRENT.md
+3
-3
@@ -17,8 +17,8 @@
17
18
## کار جاری
19
20
-۱. آزمون کامل SQL،۱۰۰۰رویداد،همزمانی و هر۱۲rollback روی799cff4 در CI موفق؛ اتصال کلاینت در حال تأیید نهایی است.
21
-۲. حفاظت خرید زیر ENFORCE پیش از تغییر محلی؛ اتصال امن sync/RPC با تشخیص قابلیت و خطای صادقانه.
22
-۳. rollback پیشنیازها اثبات شده؛ گردش کامل خرید،پوشش منبعبهمنبع و حل تعارض کاربر باقی است. [بسته انتشار هنوز آماده نیست](wp1/ROLLOUT_HOLD.md).
20
+۱. اتصال امن sync در کامیت56818d8 و تمام CI آن موفق است؛ ۲۲۲ آزمون مرورگر و ۴۳ آزمون ویژهٔ تعارض/سازمان نیز موفقاند.
21
+۲. حفظ ابعاد در برگشت و کنترل تاریخ/نوع سند دستی با آزمون کامل زنجیرهٔ۱۴تغییر موفقاند. کنترل نسخهٔ خالی نیز پس از بازتولید چهار نقص اصلاح شد؛ آزمون نهایی زنجیرهٔ۱۵تغییر شامل۱۶فایل SQL،۱۰۰۰رویداد،همزمانی و DOWN/UP کامل موفق است؛ CI نسخهٔ جدید جداگانه بررسی میشود.
22
+۳. ادامهٔ WP1: خواندن یکپارچهٔ سند با رعایت دسترسی، اتصال فرم دستی به RPC، اصلاح/ابطال تراکنشی خرید، قرارداد ابعاد و پوشش منابع. [بسته انتشار هنوز آماده نیست](wp1/ROLLOUT_HOLD.md).
23
24
تست synthetic یا SQL fixture معادل تأیید ورود روی اینترنت مالک، JWT/PostgREST واقعی،چاپگر یا داده واقعی نیست. هیچ درصد تکمیل ساختگی گزارش نمیشود. G1 نصب migration،G2 تنظیمات داشبورد،G3 راز بکاپ،G4 داده تست Production وG5 هزینه همچنان فقط پس از آمادهشدن نتیجه قابل بررسی به مالک ارجاع میشوند.
docs/wp1/CLIENT_SYNC_CONTRACT.md
+1
-1
@@ -20,4 +20,4 @@ Independent review identified and reproduced two scheduling/tenant races. Both w
20
21
A final identity-refresh status regression is also covered: with no queued save, stale write completion changes a still-pending same-tenant badge from saving to unconfirmed, without accepting the stale ACK or clearing a newer save timer.
22
23
-Final local checkpoint2026-11-04:43Node,222full-browser,8generatedPages and55quality commands PASS. C8 fixture now waits for actual organization/startup readiness before injecting synthetic authority;30repeated cases PASS. [Hashes and evidence](evidence/client-sync/result.json). New-headCI is separate and pending at publication.
23
+Final local checkpoint2026-11-04:43Node,222full-browser,8generatedPages and55quality commands PASS. C8 fixture now waits for actual organization/startup readiness before injecting synthetic authority;30repeated cases PASS. [Hashes and evidence](evidence/client-sync/result.json). Exact client head56818d8 subsequently passed Quality41758729100,Security41758729122 andWP1proof41758729204. Later SQL changes require their own exact-head CI.
docs/wp1/MANUAL_RPC_NEXT.md
new
+27
@@ -0,0 +1,27 @@
1
+# Next WP1 increment: manual journal server workflow
2
+
3
+Status: source-backed implementation plan, not implemented or accepted. Depends on the integrated ledger guards and versioned sync; remains in draft PR195. No production activation.
4
+
5
+## Problem and invariant
6
+
7
+`js/journal-ui.js` still calls synchronous local engine operations from its explicit save/post/reverse/delete/copy/return-to-draft handlers. The server mutation RPCs return a voucher and revision, without the authoritative line/dimension graph. A whole-datastore `pullAll()` after a mutation can erase unrelated pending edits. Replacing the synchronous engine globally would also affect business-document callers.
8
+
9
+Preserve the synchronous engine for existing callers; add an asynchronous adapter at the manual UI boundary. A successful server write and a successfully refreshed display are separate outcomes. Never show a generic success or silently retry a mutation after an uncertain response.
10
+
11
+## Ordered implementation
12
+
13
+1. **Read-only graph RPC.** Add a SQL/STABLE SECURITY INVOKER function returning the visible header plus journalLines/journalLineDimensions and separate record revisions in a single statement/snapshot. Use existing RLS; revoke PUBLIC/anon EXECUTE and grant authenticated only. Return null for an absent/invisible header, never an orphan child graph. Include organization/voucher identity and deterministic record ordering. Add `effective_status` from the existing security-invoker reversal view for posted originals, falling back to the stored status for drafts/reversal documents. Reject/omit cross-company or mismatched line links explicitly; do not normalize corrupt history. Document which behavior is selected in the test contract.
14
+2. **Pending-edit-safe graph reconciliation.** Serialize with `syncRunning` and the normal sync queue; capture `finoraSyncContext`, hydrated tenant, company, form identity and affected records. Read/validate the complete graph before changing local arrays. Merge only affected rows and their `syncSnap`/`versionSnap` entries atomically, preserving unrelated dirty objects and timers. Check the context and affected local graph again after every await. Do not use `finoraPublishSyncSnapshot` to replace the whole datastore after a single operation.
15
+3. **Manual form adapter.** Capture the expected revision when opening an edit. Whitelist company/year/date/description/reference/type for creation; date/description/reference/type for edits. Never send client numbers, posted fields, source authority or owner authority. Drafts have no server number until posting. Normalize dates and integer IRR amounts. Positive capability uses RPC; only an explicitly absent capability without positive revision evidence permits legacy behavior. No fallback after a supported endpoint fails.
16
+4. **Mutation outcomes/retries.** Allow one pending form operation; retain the same intent ID and payload for uncertain create/reversal retries. Update/delete do not have identical replay semantics and need explicit reconciliation. If the server confirms a mutation but graph refresh fails or local input changed, display “server operation confirmed; display refresh pending” and retain the form/edits. A changed tenant/form must not be cleared by a stale completion. Derive totals from authoritative lines for display only; do not sync display-only fields into posted history.
17
+5. **Linked correction transaction.** Return-to-draft requires a new atomic reversal + linked corrective draft RPC and replay contract. Two separate calls can leave a reversal without the promised draft; do not ship that behavior. Copy may populate a new manual form for explicit save; existing `copy` voucher type is unsupported under ENFORCE. Opening/closing stay unavailable until their own approved server contracts.
18
+6. **Dimensions contract before acceptance.** Current client tags can reference contact/project/branch/contract/costCenter entities directly, whereas staged server validation expects dimensionValues. Account required/optional/unavailable rules also need server enforcement. Preserve report meanings of counterpartyId/projectId through a documented authoritative or derived representation. Do not enable a workflow that silently drops these identifiers.
19
+
20
+## Required tests
21
+
22
+- Read graph: same IDs in two organizations, revoked member, absent header with child rows, anon ACL, wrong-company child, unrelated children, full and partial reversal statuses, complete graph above client page-size limits, deterministic order and safe revisions.
23
+- Client: no double-submit, uncertain write, confirmed write + failed refresh, null/malformed graph, editing during refresh, unrelated dirty edits, organization/company switch, stale form completion, same-user organization hydration, normal sync competing with graph merge, read-only roles, unsupported opening/closing/copy behavior.
24
+- Server: current/stale/NULL revisions; invalid dates, amounts and dimensions; RLS/permission negatives; atomic correction and replay; real two-session conflicts; conservative DOWN/UP with retained history.
25
+- UI: form state and truthful save status, draft numbering, preserved input, complete/partial reversal display, generated Pages/CSP behavior, full regression at the exact final SHA.
26
+
27
+A source-derived PostgreSQL fixture is not actual Auth/JWT/PostgREST or production schema parity. Independent SQL review and real non-production service acceptance remain distinct gates. Purchase correction/cancel and other source adapters follow their own transaction contracts; this increment cannot close all of WP1 by itself.
docs/wp1/ROLLOUT_HOLD.md
+5
-3
@@ -2,14 +2,16 @@
2
3
Production G1 is not requested. Stacked work depends on WP0 PR194 and unmerged historical source; no production SQL has run.
4
5
-Candidate order is the eleven `2026101610*` archived Stage1–3 SQL files, followed by `*_wp1_ledger_scope_authority_hardening.sql`. The initial files are preserved for provenance and must never be applied partially: early guards are strict before later mode definitions. Final production packaging must prove a single transactional UP and all DOWN paths on a complete clone/local stack before approval. Source-derived WP0 fixture excludes unrelated workflow schemas; passing that fixture is not production schema parity.
5
+Candidate order is the eleven `2026101610*` archived Stage1–3 SQL files, followed in timestamp order by scope/authority hardening, reversal dimensions, manual update guards and NULL revision guards (`*_wp1_*.sql`, currently four corrections; fifteen files total). The initial files are preserved for provenance and must never be applied partially: early guards are strict before later mode definitions. Final production packaging must prove a single transactional UP and all DOWN paths on a complete clone/local stack before approval. Source-derived WP0 fixture excludes unrelated workflow schemas; passing that fixture is not production schema parity.
6
7
Required before G1:
8
9
+- Independent SQL review of the new additive repairs; the current root review and disposable regressions do not substitute for that review. Resolve entity-backed analytical dimensions and required/optional account rules before declaring manual source support complete.
10
+
11
- Reconcile24/24historical migration-version drift by SQL content, and verify new columns/indexes/function contracts against the live catalog.
12
- Red/green tests for all corrective findings; actual concurrent posting;1000event trial balance; all suite and CI results at exact SHA.
11
-- Conservative DOWN/UP for all11prerequisites pluscorrection is now locally proved:71baselinefunctiondefinitions/ACLs andbaseline triggers restored;4postedvouchers/10lines/10auditrows retained byhash; candidate APIs revoked, compatibleindexes/counters retained. Fresh exactheadCI andproductionparity remain gates. This is notpristineschema rollback.
12
-- Capability-safe client candidate is locally tested; final CI and real-service integration remain. Correct purchase correction/cancel transaction; no successful toast without server acknowledgement. Until proven, no enforcement cutover.
13
+- Conservative DOWN/UP for all11prerequisites plus all four corrections is now locally proved (15 files):71baselinefunctiondefinitions/ACLs andbaseline triggers restored;4postedvouchers/10lines/10auditrows retained byhash; candidate APIs revoked, compatibleindexes/counters retained. Fresh exactheadCI andproductionparity remain gates. This is notpristineschema rollback.
14
+- Capability-safe client56818d8 passed all exact-head CI; real-service integration and fresh CI for the subsequent SQL remain. Correct purchase correction/cancel transaction; no successful toast without server acknowledgement. Until proven, no enforcement cutover.
15
- Per-source shadow report including fieldscope/currency/period checks, not only aggregate balance. Existing11posted vouchers had zero anomalies in the limited aggregate audit; that is not full cutover approval.
16
- Read-only encrypted backup and disposable restore proof (G3secret viaenvironment), ordered verification queries, owner-reviewable G1 checklist.
17
docs/wp1/SOURCE_COVERAGE.md
+4
-2
@@ -2,7 +2,7 @@
2
3
| Source | Candidate server path | Current acceptance |
4
|---|---|---|
5
-| Manual journal | create/update/post/reverse RPC | Disposable SQL suite PASS; manual UI RPC integration pending |
5
+| Manual journal | create/update/post/reverse RPC | Disposable SQL suite PASS; date/type guards and preserved reversal dimensions added; NULL revision proof and complete 15-migration local suite PASS; exact-head CI pending; manual UI RPC integration pending |
6
| Sales invoice | server monetary contract + autopost | Disposable SQL suite PASS; end-to-end UI server path pending |
7
| Purchase invoice | fixed purchase contract + autopost | Disposable SQL suite PASS; client refuses unsupported ENFORCE correction; complete corrective/cancel transaction pending |
8
| Receipt/payment | existing staged RPC source allowlist | End-to-end server amount derivation and allocations NOT VERIFIED |
@@ -12,4 +12,6 @@
12
| COGS/inventory | existing model needs source-specific contract | Not yet server-enforced |
13
| Payroll/contracts/assets/petty cash | historical allowlists are not implementation proof | Not yet accepted; no new modules in this scope |
14
15
-No production UI activation has been made. Candidate capability-safe sync and unconfirmed-save labels are under verification; source-specific posting UI and reconciliation remain required before rollout. An allowlist or balanced caller-provided payload is not proof of authoritative source posting.
15
+No production UI activation has been made. Capability-safe sync and unconfirmed-save labels passed exact-head CI at56818d8; source-specific posting UI and reconciliation remain required before rollout. An allowlist or balanced caller-provided payload is not proof of authoritative source posting.
16
+
17
+Analytical dimensions: reversal now preserves existing type/value tags. Required/optional accountDimensionRules are not yet enforced server-side; entity-backed contact/project values need an explicit compatibility contract. These remain blockers to claiming full manual source acceptance.
docs/wp1/STATUS_FA.md
+11
-5
@@ -4,20 +4,26 @@
4
5
## انجامشده با شاهد
6
7
-- زنجیره ۱۱ پیشنیاز و یک اصلاح تکمیلی: حالت پیشفرض audit؛ تغییر حالت فقط برای مدیر سیستم؛ کنترل شرکت/سال/ارز/مبالغ؛ شمارنده تفکیکشده شرکت؛ حفاظت سند قطعی، ابعاد و انتقال هویت؛ مجوز برگشت تکراری. فایلهای اولیه برای ردیابی حفظ شدهاند؛ نصب جزئی آنها مجاز نیست.
7
+- زنجیره ۱۱ پیشنیاز و چهار اصلاح تکمیلی: حالت پیشفرض audit؛ تغییر حالت فقط برای مدیر سیستم؛ کنترل شرکت/سال/ارز/مبالغ؛ شمارنده تفکیکشده شرکت؛ حفاظت سند قطعی، ابعاد و انتقال هویت؛ مجوز برگشت تکراری. فایلهای اولیه برای ردیابی حفظ شدهاند؛ نصب جزئی آنها مجاز نیست.
8
- D1/D2 و ابعاد روی baseline با علت مورد انتظار شکست میخورند و روی اصلاح موفقاند. آزمونهای منفی، تراز ۱۰۰۰ رویداد و رقابت واقعی دو اتصال PostgreSQL موفقاند.
9
-- برگشت محافظهکارانه هر ۱۲ تغییر، سپس نصب مجدد موفق: تعریف و مجوز ۷۱ تابع پایه و تریگرهای قبلی بازمیگردد؛ ۴ سند قطعی، ۱۰ ردیف، ۱۰ رویداد ممیزی و شمارندهها بدون تغییر میمانند. ساختارها و ایندکسهای سازگار عمداً حفظ میشوند. [شاهد محلی](evidence/prerequisite-rollback/result.json).
9
+- برگشت محافظهکارانه هر ۱۵ تغییر، سپس نصب مجدد موفق: تعریف و مجوز ۷۱ تابع پایه و تریگرهای قبلی بازمیگردد؛ ۴ سند قطعی، ۱۰ ردیف، ۱۰ رویداد ممیزی و شمارندهها بدون تغییر میمانند. ساختارها و ایندکسهای سازگار عمداً حفظ میشوند. [شاهد محلی](evidence/prerequisite-rollback/result.json).
10
- کامیت `799cff4fcb1b9a98f763baf9e79a030c099deb58`: [Quality41626213964](https://github.com/davoodmehraban89/Factor-easy/actions/runs/41626213964)، [Security41626213753](https://github.com/davoodmehraban89/Factor-easy/actions/runs/41626213753) و [WP1 proof41626213760](https://github.com/davoodmehraban89/Factor-easy/actions/runs/41626213760) موفق؛ شامل آزمون کامل SQL و هر دو چرخه rollback. این شاهد به تغییرات بعد از این کامیت تعمیم داده نمیشود.
11
- محافظ اصلاح/ابطال خرید زیر ENFORCE، خطای ارتباط یا تعویض حساب پیش از تغییر محلی متوقف میشود. این محافظ معادل تکمیل گردش اصلاح خرید روی سرور نیست.
12
13
-## کار جاری
13
+## اصلاحهای اخیر و کار جاری
14
15
-اتصال مشترک sync و مسیر سازمان به نسخه رکورد و تأیید کامل پاسخ سرور؛ بدون probe اضافی هنگام ورود. کنترل تعارض همزمانی، پاسخ ناقص/دیرهنگام و حفظ ویرایش ذخیرهنشده. ۴۳ آزمون Node و ۸ آزمون Pages موفق؛ بازبینی مستقل بدون مورد مهم باقیمانده تمام شده است. اجرای کامل نهایی۲۲۲/۲۲۲ و۵۵فرمان کنترل موفقاند؛ fixture گردشکار پس از انتظار آمادهشدن ماژول مجوزها۳۰بار موفق شد. CI کامیت جدید پس از انتشار باید جداگانه تأیید شود. [شواهد](evidence/client-sync/result.json). [قرارداد کلاینت](CLIENT_SYNC_CONTRACT.md).
15
+- اتصال مشترک sync و مسیر سازمان به نسخهٔ رکورد و تأیید کامل پاسخ سرور تکمیل شده است؛ بدون بررسی اضافی هنگام ورود. ۴۳ آزمون Node، ۸ آزمون Pages، ۲۲۲ آزمون مرورگر و ۵۵ فرمان کنترل موفقاند. کامیت `56818d8` در [Quality41758729100](https://github.com/davoodmehraban89/Factor-easy/actions/runs/41758729100)، [Security41758729122](https://github.com/davoodmehraban89/Factor-easy/actions/runs/41758729122) و [WP1 proof41758729204](https://github.com/davoodmehraban89/Factor-easy/actions/runs/41758729204) موفق است. [قرارداد کلاینت](CLIENT_SYNC_CONTRACT.md).
16
+- [برگشت سند](REVERSAL_DIMENSIONS_FA.md) اکنون ابعاد تحلیلی ردیفها را در برگشت کامل و جزئی حفظ میکند؛ ابعاد قدیمی با شرکت یا سند ناسازگار رد میشوند.
17
+- [کنترل سند دستی](MANUAL_UPDATE_GUARDS_FA.md): ۱۷ راه عبور نامعتبر از تاریخ/سال مالی/نوع سند در RPC، ثبت قطعی و تغییر مستقیم بسته شد. رفتار آزمایشی audit/off حفظ شده است.
18
+- مجموعهٔ این دو اصلاح با ۱۴ migration: تمام ۱۵ فایل آزمون SQL، شامل ۱۰۰۰ رویداد و همزمانی واقعی، و برگشت/نصب مجدد کامل موفقاند. [شواهد](evidence/integrated-14/green-results.json).
19
+- [کنترل نسخهٔ خالی](NULL_REVISION_GUARDS_FA.md): چهار نقص ویرایش/حذف/قطعیکردن/برگشت بازتولید و اصلاح شد؛ ۱۶ حالت منفی، عملیات با نسخهٔ صحیح و تکرار امن درخواست موفقاند. چرخهٔ اختصاصی UP/DOWN/UP تعریف و مجوز چهار تابع و تاریخچه را حفظ میکند. آزمون کامل زنجیرهٔ نهایی ۱۵ تغییر نیز موفق است: هر ۱۶ فایل SQL، شامل ۱۰۰۰ رویداد و همزمانی واقعی. [شواهد نهایی محلی](evidence/integrated-15/green-results.json). CI نسخهٔ منتشرشده جداگانه بررسی میشود؛ نتیجهٔ نسخهٔ قبلی به آن تعمیم داده نمیشود.
20
+
21
+این اصلاحهای SQL بازبینی ریشهای و آزمون دارند؛ بازبینی مستقل متخصص SQL هنوز انجام نشده است. هدف بعدی، خواندن یکپارچهٔ سند و ردیفها با رعایت دسترسی و اتصال فرم دستی بدون از دسترفتن ویرایشهای دیگر است؛ [ترتیب اجرا و معیار پذیرش](MANUAL_RPC_NEXT.md).
22
23
## باقیمانده برای پایان WP1
24
25
۱. تکمیل مسیر دستی و خرید با RPC، شامل اصلاح/ابطال تراکنشی و نمایش نتیجه واقعی؛ محافظ رد عملیات کافی نیست.
20
-۲. پذیرش همه منابع در [ماتریس پوشش](SOURCE_COVERAGE.md)، برچسب صادقانه قابلیتهای ناقص و گردش حل تعارض بدون از دسترفتن ویرایشها.
26
+۲. تعیین قرارداد ابعاد متصل به اشخاص/پروژهها و الزام/اختیار ابعاد حساب؛ سپس پذیرش همه منابع در [ماتریس پوشش](SOURCE_COVERAGE.md)، برچسب صادقانه قابلیتهای ناقص و گردش حل تعارض بدون از دسترفتن ویرایشها.
27
۳. تطبیق محتوای ۲۴/۲۴ اختلاف تاریخی migration با سرور و آزمون روی ساختار کامل، نه فقط fixture برگرفته از منابع مخزن.
28
۴. shadow کامل شرکت/سال/ارز/دوره؛ گزارش محدود قبلی ۱۱ سند بدون اشکال تراز، جانشین این بررسی نیست.
29
۵. پذیرش واقعی Auth/JWT/PostgREST در محیط غیرعملیاتی، بکاپ رمزگذاریشده و بازیابی مستقل، بسته قابل بررسی G1 و CI دقیق نسخه نهایی.
docs/wp1/evidence/integrated-15/green-concurrency.log
new
+11
@@ -0,0 +1,11 @@
1
+{"name":"fixture","pass":true,"diagnostic":""}
2
+{"name":"drafts","pass":true,"diagnostic":""}
3
+{"name":"simultaneous_duplicate_create","pass":true,"diagnostic":" "}
4
+{"name":"concurrent_double_click_one_voucher_two_lines","pass":true,"diagnostic":"1,2\n"}
5
+{"name":"two_posts","pass":true,"diagnostic":" "}
6
+{"name":"gapless_numbers","pass":true,"diagnostic":"1,2\n"}
7
+{"name":"original","pass":true,"diagnostic":""}
8
+{"name":"two_reversals_one_winner","pass":true,"diagnostic":" ERROR: FINORA_REVERSAL_OVER_ALLOCATION\nCONTEXT: PL/pgSQL function public.finora_journal_reverse(uuid,text,text,text,text,bigint,jsonb) line 73 at RAISE\n"}
9
+{"name":"no_duplicate_reversals","pass":true,"diagnostic":"1\n"}
10
+{"name":"partial_status_from_view","pass":true,"diagnostic":"partially_reversed\n"}
11
+FINORA_STAGE1_TWO_CONNECTIONS_PASS
docs/wp1/evidence/integrated-15/green-results.json
new
+485
@@ -0,0 +1,485 @@
1
+{
2
+ "baseline": {
3
+ "scope": "source-derived ledger baseline; NOT a production database clone",
4
+ "image": "postgres:17-alpine",
5
+ "migrations": [
6
+ {
7
+ "name": "20260921082958_finora_core_schema_auth_licenses_rls.sql",
8
+ "sourceSha256": "f9fc9d548e1ec1e7c224f2ddf59fee9f59045a97bf7586a6e5211b39732fe206",
9
+ "appliedSha256": "a232419f6a09726036e34be673089839c2a5cc03fbc30453bbe1d7060de5995f",
10
+ "terminalLiteralNewlineRemoved": true
11
+ },
12
+ {
13
+ "name": "20260921083540_finora_records_store_replace_relational.sql",
14
+ "sourceSha256": "f2abeb1043b92abcd32cf9e6ff55013c46eedda360934efff75085356806b9c0",
15
+ "appliedSha256": "b4466d9390945d127d89de45250d212d859d47585c0fb0ab618d14e35c72894f",
16
+ "terminalLiteralNewlineRemoved": true
17
+ },
18
+ {
19
+ "name": "20260921083829_finora_admin_license_rpcs_cancel_and_extend.sql",
20
+ "sourceSha256": "3ffed38bc301088c2c6ac8a43b67f4764110ac5548df52bf62b51c2b01f60330",
21
+ "appliedSha256": "47ddd34936281faf183a1b638defe92ea282ec6a02be5610761b377052cb3745",
22
+ "terminalLiteralNewlineRemoved": true
23
+ },
24
+ {
25
+ "name": "20260922035848_decouple_profile_email_add_email_col.sql",
26
+ "sourceSha256": "55e8dd71c3a038e20bb92e23eb54c3bda372e3869ac0a15ed486cd39de0ee724",
27
+ "appliedSha256": "fb391f06a35947e55883c29541a8e6591699e1a2e17d963a21e75439beb3fed0",
28
+ "terminalLiteralNewlineRemoved": true
29
+ },
30
+ {
31
+ "name": "20260922035916_drop_username_unique_and_format_constraints.sql",
32
+ "sourceSha256": "6abba23c7c7567db3442326a500498b78cfbee6dbd54cf241d1a3a4a7505cb78",
33
+ "appliedSha256": "94ea777568d5558527d884f421d2843f504e1f276b0f3170bb70522526a9f515",
34
+ "terminalLiteralNewlineRemoved": true
35
+ },
36
+ {
37
+ "name": "20260923210625_add_full_name_to_profiles.sql",
38
+ "sourceSha256": "703d8313f9079b541f92725f00434911212a3c5d0d0d84e9756e8ed955558c51",
39
+ "appliedSha256": "3c6ecfbe37c210fe2430c4ca9442e9a425767000b736e284b968221ef7e9783a",
40
+ "terminalLiteralNewlineRemoved": true
41
+ },
42
+ {
43
+ "name": "20260928025331_allow_purchases_collection.sql",
44
+ "sourceSha256": "4b2f60d800ee3caeb55c9b1c966ef18501c8f401eca96b9a3a7bb1c689b7baa8",
45
+ "appliedSha256": "f733e8f53b3d7ce1ffdfd2f3da9b7395393af86532efa45c2a394c414a92a7ef",
46
+ "terminalLiteralNewlineRemoved": true
47
+ },
48
+ {
49
+ "name": "20260928113755_allow_payment_settlement_records.sql",
50
+ "sourceSha256": "65559a79c846c58857a64b48c1f8c4fbf001e9bfb2ecb3790ae4633e0f8757a1",
51
+ "appliedSha256": "5eacb493707b37d2f1198ec9db00880d81ff5c61000c2bd528ac1c8cdfef6f40",
52
+ "terminalLiteralNewlineRemoved": true
53
+ },
54
+ {
55
+ "name": "20260928115233_repair_legacy_invoice_contact_ids.sql",
56
+ "sourceSha256": "c713e1e071858c66e38370e521a43fced55844b2adb130b0c38caea2c6a86226",
57
+ "appliedSha256": "3c5b879607230c6851cdd0b241ee4e04045449809ddd0eb21b58c2d7b3a83bec",
58
+ "terminalLiteralNewlineRemoved": true
59
+ },
60
+ {
61
+ "name": "20260928115616_restrict_internal_license_helpers.sql",
62
+ "sourceSha256": "d6c93f28dcc87ade59756e068a121ad1e34c491cb26a3443cafaeb73a31a1a6e",
63
+ "appliedSha256": "02212f26bb0dc8499b0a4e8d45a17ccf5b129be306c1824c272b40929c3a53c2",
64
+ "terminalLiteralNewlineRemoved": true
65
+ },
66
+ {
67
+ "name": "20260928141512_allow_accounting_foundation_collections.sql",
68
+ "sourceSha256": "9d5c9297debd032c31e5dcea8509ac76212b7a0022533436e5b9ad57f5346f10",
69
+ "appliedSha256": "c41453d59b58f29443e032e116fce162e0f6e3a5e576773e8f5e4ddcf7d11073",
70
+ "terminalLiteralNewlineRemoved": true
71
+ },
72
+ {
73
+ "name": "20260928145306_allow_phase3_double_entry_collections.sql",
74
+ "sourceSha256": "d1a846179c815d0c84ebf2d7dcdfcc81b18e9856016a3aa2552574703ac0dbf2",
75
+ "appliedSha256": "cbfac74cb825ddbe5643c122962ac182d950613223249aee88318e7f3156f4c2",
76
+ "terminalLiteralNewlineRemoved": true
77
+ },
78
+ {
79
+ "name": "20260929083130_phase3_hardening_atomic_sync_and_ledger_guards.sql",
80
+ "sourceSha256": "9eab93235e973bfa869659d6b1f14664c4864b711c0d6518e3865fab6b7f8cfa",
81
+ "appliedSha256": "b2f91d6e8dc513500ab559613490fc2af3bb91faab64664f0bb541322060f027",
82
+ "terminalLiteralNewlineRemoved": true
83
+ },
84
+ {
85
+ "name": "20260929091743_phase4_contracting_collections.sql",
86
+ "sourceSha256": "8506f8296eb3d4b67c80fb0b6b467a4d24b10ef29ad3d2e5779c7250a6a7a12c",
87
+ "appliedSha256": "f0eb58959c93335d48017af4344ffc337c07386c309ea9a9519d20fb03807b8a",
88
+ "terminalLiteralNewlineRemoved": true
89
+ },
90
+ {
91
+ "name": "20260929172129_phase5_complementary_erp_collections.sql",
92
+ "sourceSha256": "eab2d7aa23b5226a28f366e3eb08cd398f74184522b2ec52d8df8a7b34d01d47",
93
+ "appliedSha256": "eab2d7aa23b5226a28f366e3eb08cd398f74184522b2ec52d8df8a7b34d01d47",
94
+ "terminalLiteralNewlineRemoved": false
95
+ },
96
+ {
97
+ "name": "20260929193348_posted_source_immutability_guard.sql",
98
+ "sourceSha256": "4d57fffc27e69e2bf873ebe1d411223ef262190fac428347b9ab413be5876b78",
99
+ "appliedSha256": "4d57fffc27e69e2bf873ebe1d411223ef262190fac428347b9ab413be5876b78",
100
+ "terminalLiteralNewlineRemoved": false
101
+ },
102
+ {
103
+ "name": "20260929193357_accounting_master_uniqueness.sql",
104
+ "sourceSha256": "1b55fb34c8ec683bb84c40f85e82e283f30711a3aa7785f93bfa721e371e6f8c",
105
+ "appliedSha256": "1b55fb34c8ec683bb84c40f85e82e283f30711a3aa7785f93bfa721e371e6f8c",
106
+ "terminalLiteralNewlineRemoved": false
107
+ },
108
+ {
109
+ "name": "20260929220543_license_company_capacity.sql",
110
+ "sourceSha256": "7d4e87152b55ca2be58c47dbd40b0abd9f5b85bc59fa247f8a0bbab3d441774c",
111
+ "appliedSha256": "7d4e87152b55ca2be58c47dbd40b0abd9f5b85bc59fa247f8a0bbab3d441774c",
112
+ "terminalLiteralNewlineRemoved": false
113
+ },
114
+ {
115
+ "name": "20260929220613_restrict_company_limit_rpc.sql",
116
+ "sourceSha256": "3a74e66245125f9b4922032fbc34a4c2981534efd901519c66cd96a837b03756",
117
+ "appliedSha256": "3a74e66245125f9b4922032fbc34a4c2981534efd901519c66cd96a837b03756",
118
+ "terminalLiteralNewlineRemoved": false
119
+ },
120
+ {
121
+ "name": "20260929221252_iran_enterprise_foundation_collections.sql",
122
+ "sourceSha256": "66a07435edc6e8c75a62694ad4b9d734e9c94727bed7bbb95a323e7146d0d4ae",
123
+ "appliedSha256": "66a07435edc6e8c75a62694ad4b9d734e9c94727bed7bbb95a323e7146d0d4ae",
124
+ "terminalLiteralNewlineRemoved": false
125
+ },
126
+ {
127
+ "name": "20260929221754_iran_enterprise_financial_controls.sql",
128
+ "sourceSha256": "c5329091a70c3c2e0bc8c3f24dbd2477ab4e66f3cceb439144f5a85a961d851c",
129
+ "appliedSha256": "c5329091a70c3c2e0bc8c3f24dbd2477ab4e66f3cceb439144f5a85a961d851c",
130
+ "terminalLiteralNewlineRemoved": false
131
+ },
132
+ {
133
+ "name": "20260929222000_iran_enterprise_foundation_collections.sql",
134
+ "sourceSha256": "1884e4c169fd2b0b1d1d9bb0486ee466c41fee8d09fca283830531c635db1720",
135
+ "appliedSha256": "78f1fb98473b0503199760a4ce8c29304e77795356c4716023595c5e6b7cc675",
136
+ "terminalLiteralNewlineRemoved": true
137
+ },
138
+ {
139
+ "name": "20260930025546_modular_entitlements_office_automation_foundation.sql",
140
+ "sourceSha256": "96d31a1db0ebc3673dc016aa1fa2f434d655305f774fc5cc3eef75cae862a9f6",
141
+ "appliedSha256": "96d31a1db0ebc3673dc016aa1fa2f434d655305f774fc5cc3eef75cae862a9f6",
142
+ "terminalLiteralNewlineRemoved": false
143
+ },
144
+ {
145
+ "name": "20260930025647_office_secretariat_atomic_registration.sql",
146
+ "sourceSha256": "e2a05589a486c3662c0edfd10d97f6e258047142f61eb17aeb1110eef6114ea7",
147
+ "appliedSha256": "e2a05589a486c3662c0edfd10d97f6e258047142f61eb17aeb1110eef6114ea7",
148
+ "terminalLiteralNewlineRemoved": false
149
+ },
150
+ {
151
+ "name": "20260930030314_preserve_readonly_access_after_license_expiry.sql",
152
+ "sourceSha256": "50a1793c35f30e1fd320adf5ffe3eac5c7ff43108e8038b1608e95e94ef61398",
153
+ "appliedSha256": "50a1793c35f30e1fd320adf5ffe3eac5c7ff43108e8038b1608e95e94ef61398",
154
+ "terminalLiteralNewlineRemoved": false
155
+ },
156
+ {
157
+ "name": "20260930031853_organization_membership_rbac_foundation.sql",
158
+ "sourceSha256": "5df3530944807adfc4c1a4c57117b48b4582eba965cbb1898a2debc115d8c2b4",
159
+ "appliedSha256": "5df3530944807adfc4c1a4c57117b48b4582eba965cbb1898a2debc115d8c2b4",
160
+ "terminalLiteralNewlineRemoved": false
161
+ },
162
+ {
163
+ "name": "20260930031942_office_shared_rbac_and_referrals.sql",
164
+ "sourceSha256": "13c066da7d67318652dc865f8f5522dd4942497c9f2b9e20c73fb23c04364ec2",
165
+ "appliedSha256": "13c066da7d67318652dc865f8f5522dd4942497c9f2b9e20c73fb23c04364ec2",
166
+ "terminalLiteralNewlineRemoved": false
167
+ },
168
+ {
169
+ "name": "20260930032615_slice_b_rbac_fk_indexes.sql",
170
+ "sourceSha256": "ae9469591c7669d4759e23609f09da48b80791ae1accdab76d910278f52da1a3",
171
+ "appliedSha256": "ae9469591c7669d4759e23609f09da48b80791ae1accdab76d910278f52da1a3",
172
+ "terminalLiteralNewlineRemoved": false
173
+ },
174
+ {
175
+ "name": "20260930032654_harden_legacy_office_storage_member_writes.sql",
176
+ "sourceSha256": "4fce4b570a47af4838243226fdf521e7cb918119400ea36a8c5319cc085c43a4",
177
+ "appliedSha256": "4fce4b570a47af4838243226fdf521e7cb918119400ea36a8c5319cc085c43a4",
178
+ "terminalLiteralNewlineRemoved": false
179
+ },
180
+ {
181
+ "name": "20260930033010_allow_member_core_read_context.sql",
182
+ "sourceSha256": "4fef30460171789e426da776d36098ceb5a743c75f908d8c2e1ffa39a82f9335",
183
+ "appliedSha256": "4fef30460171789e426da776d36098ceb5a743c75f908d8c2e1ffa39a82f9335",
184
+ "terminalLiteralNewlineRemoved": false
185
+ },
186
+ {
187
+ "name": "20260930041735_harden_public_security_definer_rpc_grants_search_path.sql",
188
+ "sourceSha256": "42047543a8764fba8865d76e9474b8afe547d352c23ea39d4e3aa3611ba761c6",
189
+ "appliedSha256": "42047543a8764fba8865d76e9474b8afe547d352c23ea39d4e3aa3611ba761c6",
190
+ "terminalLiteralNewlineRemoved": false
191
+ },
192
+ {
193
+ "name": "20260930045827_enterprise_license_seats_delegated_admin.sql",
194
+ "sourceSha256": "9b304812da17c9f8cad4c6ae6d83181dfdd5177dbb2b3a43970437b69aa1727d",
195
+ "appliedSha256": "9b304812da17c9f8cad4c6ae6d83181dfdd5177dbb2b3a43970437b69aa1727d",
196
+ "terminalLiteralNewlineRemoved": false
197
+ },
198
+ {
199
+ "name": "20260930050542_enterprise_reusable_roles.sql",
200
+ "sourceSha256": "9025f7501b2f27ac74c2f225366d85eac5d12eadb146c4844dc1c072cf10ec7e",
201
+ "appliedSha256": "9025f7501b2f27ac74c2f225366d85eac5d12eadb146c4844dc1c072cf10ec7e",
202
+ "terminalLiteralNewlineRemoved": false
203
+ },
204
+ {
205
+ "name": "20260930050904_eli2_role_tenant_hardening.sql",
206
+ "sourceSha256": "40b433fe28b62f780bc60f8a38f9cf57daf2e6897daabaf7493909be706fb43c",
207
+ "appliedSha256": "40b433fe28b62f780bc60f8a38f9cf57daf2e6897daabaf7493909be706fb43c",
208
+ "terminalLiteralNewlineRemoved": false
209
+ },
210
+ {
211
+ "name": "20260930051849_enterprise_invitations.sql",
212
+ "sourceSha256": "cd735c988394a45be4253c01d2b399e6f502e4a73e6652b4ddb7726e4e71659e",
213
+ "appliedSha256": "cd735c988394a45be4253c01d2b399e6f502e4a73e6652b4ddb7726e4e71659e",
214
+ "terminalLiteralNewlineRemoved": false
215
+ },
216
+ {
217
+ "name": "20260930052909_eli3_fk_index_hardening.sql",
218
+ "sourceSha256": "496e9537aefb1f88ee2cf5269af2a3c23f84e16a40ca36b58f8cc00ea721eb22",
219
+ "appliedSha256": "496e9537aefb1f88ee2cf5269af2a3c23f84e16a40ca36b58f8cc00ea721eb22",
220
+ "terminalLiteralNewlineRemoved": false
221
+ },
222
+ {
223
+ "name": "20260930053652_enterprise_organization_ux.sql",
224
+ "sourceSha256": "225f5c37fe91f5116875bff0bb090aa71824d8d71a93607377b29e86eaf8c947",
225
+ "appliedSha256": "225f5c37fe91f5116875bff0bb090aa71824d8d71a93607377b29e86eaf8c947",
226
+ "terminalLiteralNewlineRemoved": false
227
+ },
228
+ {
229
+ "name": "20260930054352_office_registered_history_read_evidence.sql",
230
+ "sourceSha256": "4e2080d037f9e5ad6ef1baa9c25da4878133c650b5b0487bee2cdcd5d0354d51",
231
+ "appliedSha256": "4e2080d037f9e5ad6ef1baa9c25da4878133c650b5b0487bee2cdcd5d0354d51",
232
+ "terminalLiteralNewlineRemoved": false
233
+ },
234
+ {
235
+ "name": "20260930152500_office_slice_c2_actionable_referrals_sla.sql",
236
+ "sourceSha256": "c02a8dfee81b5d75e824adc6b2ecbfa0835fb92d30424b8f8420dd92a396c4c7",
237
+ "appliedSha256": "c02a8dfee81b5d75e824adc6b2ecbfa0835fb92d30424b8f8420dd92a396c4c7",
238
+ "terminalLiteralNewlineRemoved": false
239
+ },
240
+ {
241
+ "name": "20260930153000_office_evidence_insert_hardening.sql",
242
+ "sourceSha256": "aea8dbd1ca84ee089c3a86586921e333df059798dd9bdbd22fa0e8bc22afacee",
243
+ "appliedSha256": "aea8dbd1ca84ee089c3a86586921e333df059798dd9bdbd22fa0e8bc22afacee",
244
+ "terminalLiteralNewlineRemoved": false
245
+ },
246
+ {
247
+ "name": "20261002080000_identity_wave5a_bootstrap.sql",
248
+ "sourceSha256": "3acd8ff4354d5ad5e4d9423f46c879b58b4e3d0d3447f163142ad1a63d928faa",
249
+ "appliedSha256": "3acd8ff4354d5ad5e4d9423f46c879b58b4e3d0d3447f163142ad1a63d928faa",
250
+ "terminalLiteralNewlineRemoved": false
251
+ },
252
+ {
253
+ "name": "20261007165208_phone_identity_profile.sql",
254
+ "sourceSha256": "7715be48c86ccb7a0f0ac6f6e811e4a451873acf6b51c0d64513702749c18918",
255
+ "appliedSha256": "7715be48c86ccb7a0f0ac6f6e811e4a451873acf6b51c0d64513702749c18918",
256
+ "terminalLiteralNewlineRemoved": false
257
+ },
258
+ {
259
+ "name": "20261011174445_posted_source_idempotency_index.sql",
260
+ "sourceSha256": "92002acb5138f927db6094f8d428ed84954a73c3a26b13d73f96165ef0405e7a",
261
+ "appliedSha256": "92002acb5138f927db6094f8d428ed84954a73c3a26b13d73f96165ef0405e7a",
262
+ "terminalLiteralNewlineRemoved": false
263
+ },
264
+ {
265
+ "name": "20261012080000_fix_identity_bootstrap_license_before_membership.sql",
266
+ "sourceSha256": "9cc237ca25ae27cc023b98f12a82b950991b1a21a3e5713cac6c502d2da2f7ff",
267
+ "appliedSha256": "9cc237ca25ae27cc023b98f12a82b950991b1a21a3e5713cac6c502d2da2f7ff",
268
+ "terminalLiteralNewlineRemoved": false
269
+ }
270
+ ],
271
+ "omittedMigrations": [
272
+ "20260930154625_office_slice_c3_related_archive.sql",
273
+ "20260930154720_office_c3_event_time_ordering.sql",
274
+ "20260930202526_office_registration_tenant_repair.sql",
275
+ "20260930202701_office_slice_c4_versioned_templates.sql",
276
+ "20260930203456_office_slice_c5_internal_approval.sql",
277
+ "20260930203620_office_slice_c5_internal_approval.sql",
278
+ "20260930203709_office_c5_decision_event_order_fix.sql",
279
+ "20260930203839_office_c5_content_digest_hardening.sql",
280
+ "20260930204536_office_slice_c6_sla_reminder_escalation.sql",
281
+ "20260930205309_office_slice_c7_fulltext_ocr_provenance.sql",
282
+ "20260930205325_office_slice_c7_searchable_archive_ocr_provenance.sql",
283
+ "20260930205347_office_c7_search_input_guard.sql",
284
+ "20260930205753_office_c7_remove_abandoned_duplicate_api.sql",
285
+ "20260930205919_office_c7_bind_ocr_source_attachment.sql",
286
+ "20260930222500_iran_enterprise_control_collections.sql",
287
+ "20260930223000_iran_enterprise_financial_controls.sql",
288
+ "20261001173917_office_slice_c8_workflow_policy.sql",
289
+ "20261001180610_office_slice_c8_workflow_runtime.sql",
290
+ "20261001180949_office_c8_policy_publisher_fk_index.sql",
291
+ "20261001204500_request_workflow_d1_foundation.sql",
292
+ "20261001205500_request_workflow_d1_transition_evidence.sql",
293
+ "20261001210500_request_workflow_d1_rpc_security.sql",
294
+ "20261001211500_request_workflow_d1_revision_qualification.sql",
295
+ "20261001223500_request_workflow_d2_legacy_cutover.sql",
296
+ "20261001224500_request_workflow_d2_fk_indexes.sql",
297
+ "20261001230000_request_workflow_d3a_step_runtime.sql",
298
+ "20261001230500_request_workflow_d3a_security_hardening.sql",
299
+ "20261001233000_request_workflow_d3b_conditions_timeline.sql",
300
+ "20261001235500_request_workflow_d3c_operations.sql",
301
+ "20261002000500_request_workflow_d3c_escalation_conflict_fix.sql",
302
+ "20261002001000_request_delegation_to_user_fk_index.sql",
303
+ "20261002010000_request_wave1_legacy_transition_guard.sql",
304
+ "20261002023000_request_wave2_integrity_hardening.sql",
305
+ "20261002033000_request_workflow_d4a_work_queue.sql",
306
+ "20261002070000_request_wave2_duplicate_code_guard.sql",
307
+ "20261002071000_request_wave3_decision_idempotency.sql",
308
+ "20261002072000_request_wave4_operational_integrity.sql",
309
+ "20261002073500_request_wave4b_scheduler_outbox_delivery.sql",
310
+ "20261016100000_phase1a_server_journal_invariants.sql",
311
+ "20261016100500_phase1a_optimistic_version_sync.sql",
312
+ "20261016101000_phase1a_guard_modes_audit.sql",
313
+ "20261016101500_phase1a_journal_core.sql",
314
+ "20261016102000_phase1a_journal_rpc_surface.sql",
315
+ "20261016102500_phase1a_account_role_protection.sql",
316
+ "20261016103000_phase1a_sale_monetary_contract.sql",
317
+ "20261016103100_phase1a_autopost_server_authority.sql",
318
+ "20261016103500_phase1a_purchase_fixed_contract.sql",
319
+ "20261016104000_stage22_manual_guard_owner_mode.sql",
320
+ "20261016104500_stage3_posted_source_immutable.sql",
321
+ "20261102141933_wp1_ledger_scope_authority_hardening.sql",
322
+ "20261104020908_wp1_reversal_dimensions.sql",
323
+ "20261104072719_wp1_manual_update_guards.sql",
324
+ "20261104214503_wp1_null_revision_guards.sql"
325
+ ],
326
+ "platformBootstrap": "supabase/tests/wp0_platform_bootstrap.sql",
327
+ "postgres": "version \n------------------------------------------------------------------------------------------\n PostgreSQL 17.11 on x86_64-pc-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit\n(1 row)",
328
+ "imageDigest": [
329
+ "postgres@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b"
330
+ ],
331
+ "platformBootstrapSha256": "49dff07ac8c42b0ee4b2eae046fad9e4579348c31e4d9c39c111e6cd09b3f4eb"
332
+ },
333
+ "mode": "green",
334
+ "scope": "full SQL selection and concurrency",
335
+ "completed": true,
336
+ "applied": [
337
+ {
338
+ "file": "20261016100000_phase1a_server_journal_invariants.sql",
339
+ "sha256": "46c785652ebd48707fc6e8a86cffc70cbc4a2c5ef79b46acee08a8453d02a18a"
340
+ },
341
+ {
342
+ "file": "20261016100500_phase1a_optimistic_version_sync.sql",
343
+ "sha256": "9a38d8e238998c96a8f25e1b1c58c36f47a4ea00d56a90d668c70b465811abd9"
344
+ },
345
+ {
346
+ "file": "20261016101000_phase1a_guard_modes_audit.sql",
347
+ "sha256": "a94a0ee2ba6584ed3bbd4c7b550b02384f57b1f2592884e951da5945fb76919b"
348
+ },
349
+ {
350
+ "file": "20261016101500_phase1a_journal_core.sql",
351
+ "sha256": "95d64e86305dbcc40d2718a3f391e128c77b32d7a9ff86bfbf06b096682435d6"
352
+ },
353
+ {
354
+ "file": "20261016102000_phase1a_journal_rpc_surface.sql",
355
+ "sha256": "009d42fb3183277a72621ef107e1918d8e77e17ffbaa69447c10b0253145aa5b"
356
+ },
357
+ {
358
+ "file": "20261016102500_phase1a_account_role_protection.sql",
359
+ "sha256": "88f3f868d9d3eb8425eba5863d4cf637a387944423dc713ccc072a49688c1796"
360
+ },
361
+ {
362
+ "file": "20261016103000_phase1a_sale_monetary_contract.sql",
363
+ "sha256": "bc419c4a08f2a9d305e4b5387abaf2af4af3eb539f8f4143843c41f1cec3065e"
364
+ },
365
+ {
366
+ "file": "20261016103100_phase1a_autopost_server_authority.sql",
367
+ "sha256": "768a6cd5fc5f595a93240d05c43bb11f4866b5eae710af96f841cc92ec9ce61a"
368
+ },
369
+ {
370
+ "file": "20261016103500_phase1a_purchase_fixed_contract.sql",
371
+ "sha256": "a97c9d6d0bf1e98feb2081e9977f023d91fe13816532578be558bb4d4d03b5d9"
372
+ },
373
+ {
374
+ "file": "20261016104000_stage22_manual_guard_owner_mode.sql",
375
+ "sha256": "7b910723038bb6a8d1fde76fab654f7a6d42ed0f21f5013d466cf02d1be363dd"
376
+ },
377
+ {
378
+ "file": "20261016104500_stage3_posted_source_immutable.sql",
379
+ "sha256": "4ee4d3dd63dc3b47f6953227e4c3e1707e976b954b24bb8e99557bea20e4c3d4"
380
+ },
381
+ {
382
+ "file": "20261102141933_wp1_ledger_scope_authority_hardening.sql",
383
+ "sha256": "cdabffcfa64d99aa88fa900a799a953790a4918e790b644c0ae263c18aed771e"
384
+ },
385
+ {
386
+ "file": "20261104020908_wp1_reversal_dimensions.sql",
387
+ "sha256": "307eaf296a757462c2ec33d8c20c22abee0c63c0816872fc603b27f9498243e9"
388
+ },
389
+ {
390
+ "file": "20261104072719_wp1_manual_update_guards.sql",
391
+ "sha256": "be1e275fd1584cc08403423091784fc1b33eb561e5aefede0eaf4cc54afdca6d"
392
+ },
393
+ {
394
+ "file": "20261104214503_wp1_null_revision_guards.sql",
395
+ "sha256": "de8dffeab02aff67ac07c9d1d04f203ed0294285e102805cb97cf9bba1c16b98"
396
+ }
397
+ ],
398
+ "tests": [
399
+ {
400
+ "file": "wp1_direct_write_regressions.sql",
401
+ "status": 0
402
+ },
403
+ {
404
+ "file": "wp1_manual_update_guards.sql",
405
+ "status": 0
406
+ },
407
+ {
408
+ "file": "wp1_null_revision_guards.sql",
409
+ "status": 0
410
+ },
411
+ {
412
+ "file": "wp1_phase1a_cas_rls_behavior.sql",
413
+ "status": 0
414
+ },
415
+ {
416
+ "file": "wp1_phase1a_security_grants.sql",
417
+ "status": 0
418
+ },
419
+ {
420
+ "file": "wp1_phase1a_stage1_account_role_controls.sql",
421
+ "status": 0
422
+ },
423
+ {
424
+ "file": "wp1_phase1a_stage1_all_definer_security.sql",
425
+ "status": 0
426
+ },
427
+ {
428
+ "file": "wp1_phase1a_stage1_counter_two_fiscal.sql",
429
+ "status": 0
430
+ },
431
+ {
432
+ "file": "wp1_phase1a_stage1_sale_purchase_negatives.sql",
433
+ "status": 0
434
+ },
435
+ {
436
+ "file": "wp1_phase1a_stage1_seeded_1000.sql",
437
+ "status": 0
438
+ },
439
+ {
440
+ "file": "wp1_phase1a_stage1_sql_behavior.sql",
441
+ "status": 0
442
+ },
443
+ {
444
+ "file": "wp1_posted_identity_move.sql",
445
+ "status": 0
446
+ },
447
+ {
448
+ "file": "wp1_posting_negatives.sql",
449
+ "status": 0
450
+ },
451
+ {
452
+ "file": "wp1_reversal_dimensions.sql",
453
+ "status": 0
454
+ },
455
+ {
456
+ "file": "wp1_scope_move_and_null.sql",
457
+ "status": 0
458
+ },
459
+ {
460
+ "file": "wp1_shadow_and_constraint_contract.sql",
461
+ "status": 0
462
+ }
463
+ ],
464
+ "concurrency": {
465
+ "status": 0
466
+ },
467
+ "selectedTests": [
468
+ "wp1_direct_write_regressions.sql",
469
+ "wp1_manual_update_guards.sql",
470
+ "wp1_null_revision_guards.sql",
471
+ "wp1_phase1a_cas_rls_behavior.sql",
472
+ "wp1_phase1a_security_grants.sql",
473
+ "wp1_phase1a_stage1_account_role_controls.sql",
474
+ "wp1_phase1a_stage1_all_definer_security.sql",
475
+ "wp1_phase1a_stage1_counter_two_fiscal.sql",
476
+ "wp1_phase1a_stage1_sale_purchase_negatives.sql",
477
+ "wp1_phase1a_stage1_seeded_1000.sql",
478
+ "wp1_phase1a_stage1_sql_behavior.sql",
479
+ "wp1_posted_identity_move.sql",
480
+ "wp1_posting_negatives.sql",
481
+ "wp1_reversal_dimensions.sql",
482
+ "wp1_scope_move_and_null.sql",
483
+ "wp1_shadow_and_constraint_contract.sql"
484
+ ]
485
+}
docs/wp1/evidence/integrated-15/green-wp1_direct_write_regressions.sql.log
new
+18
@@ -0,0 +1,18 @@
1
+BEGIN
2
+INSERT 0 1
3
+ set_config
4
+--------------------------------------
5
+ 016d3c92-4b74-4c3b-b577-fcd37b769d6d
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ b1000000-0000-4000-8000-000000000001
11
+(1 row)
12
+
13
+INSERT 0 4
14
+DO
15
+SET
16
+DO
17
+ROLLBACK
18
+NOTICE: WP1_DIRECT_GUARDS_PASS: D1, independent RPC-balanced D2, dimension insert, spoofed GUC
docs/wp1/evidence/integrated-15/green-wp1_manual_update_guards.sql.log
new
+57
@@ -0,0 +1,57 @@
1
+BEGIN
2
+INSERT 0 1
3
+ set_config
4
+--------------------------------------
5
+ 924b870b-db69-4b08-afba-b320b8f9cb47
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ e9000000-0000-4000-8000-000000000001
11
+(1 row)
12
+
13
+INSERT 0 4
14
+ finora_journal_create_draft
15
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
16
+ {"voucher": {"id": "MG_manual", "date": "1405/07/24", "status": "draft", "version": 1, "sourceId": "", "companyId": "MG_C", "createdAt": "2026-11-04T21:47:43.446212+00:00", "createdBy": "e9000000-0000-4000-8000-000000000001", "reference": "", "sourceType": "manual", "description": "", "voucherType": "manual", "fiscalYearId": "MG_Y", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "803b3215d3481bb4def700fe3cf7c9cd", "reversalAllocations": null}, "replayed": false}
17
+ {"voucher": {"id": "MG_opening", "date": "1405/07/24", "status": "draft", "version": 1, "sourceId": "", "companyId": "MG_C", "createdAt": "2026-11-04T21:47:43.457137+00:00", "createdBy": "e9000000-0000-4000-8000-000000000001", "reference": "", "sourceType": "manual", "description": "", "voucherType": "opening", "fiscalYearId": "MG_Y", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "bd6a7a7fff1bad71f7e036cd0cff37be", "reversalAllocations": null}, "replayed": false}
18
+ {"voucher": {"id": "MG_closing", "date": "1405/07/24", "status": "draft", "version": 1, "sourceId": "", "companyId": "MG_C", "createdAt": "2026-11-04T21:47:43.463107+00:00", "createdBy": "e9000000-0000-4000-8000-000000000001", "reference": "", "sourceType": "manual", "description": "", "voucherType": "closing", "fiscalYearId": "MG_Y", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "1882e7e38353bf6d3744de8e3ad5b8bf", "reversalAllocations": null}, "replayed": false}
19
+(3 rows)
20
+
21
+INSERT 0 1
22
+SET
23
+DO
24
+RESET
25
+UPDATE 1
26
+SET
27
+ finora_journal_create_draft
28
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
29
+ {"voucher": {"id": "MG_AUDIT", "date": "1405/07/24", "status": "draft", "version": 1, "sourceId": "", "companyId": "MG_C", "createdAt": "2026-11-04T21:47:44.375532+00:00", "createdBy": "e9000000-0000-4000-8000-000000000001", "reference": "", "sourceType": "manual", "description": "", "voucherType": "opening", "fiscalYearId": "MG_Y", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "2a45bf8a7f945a968da7ddc92271a8de", "reversalAllocations": null}, "replayed": false}
30
+(1 row)
31
+
32
+UPDATE 1
33
+DO
34
+RESET
35
+UPDATE 1
36
+SET
37
+UPDATE 1
38
+DO
39
+ROLLBACK
40
+NOTICE: WP1_MANUAL_NEGATIVE_PASS rpc_date_range: FINORA_FISCAL_DATE_INVALID
41
+NOTICE: WP1_MANUAL_NEGATIVE_PASS rpc_date_format: FINORA_FISCAL_DATE_INVALID
42
+NOTICE: WP1_MANUAL_NEGATIVE_PASS rpc_null_date: FINORA_FISCAL_DATE_INVALID
43
+NOTICE: WP1_MANUAL_NEGATIVE_PASS rpc_null_header: FINORA_INVALID_DRAFT_UPDATE
44
+NOTICE: WP1_MANUAL_NEGATIVE_PASS rpc_year_closed: FINORA_FISCAL_YEAR_LOCKED_OR_MISSING
45
+NOTICE: WP1_MANUAL_NEGATIVE_PASS rpc_year_company: FINORA_FISCAL_YEAR_LOCKED_OR_MISSING
46
+NOTICE: WP1_MANUAL_NEGATIVE_PASS rpc_opening: FINORA_OPENING_CLOSING_NOT_APPROVED
47
+NOTICE: WP1_MANUAL_NEGATIVE_PASS rpc_closing: FINORA_OPENING_CLOSING_NOT_APPROVED
48
+NOTICE: WP1_MANUAL_NEGATIVE_PASS post_opening: FINORA_OPENING_CLOSING_NOT_APPROVED
49
+NOTICE: WP1_MANUAL_NEGATIVE_PASS post_closing: FINORA_OPENING_CLOSING_NOT_APPROVED
50
+NOTICE: WP1_MANUAL_NEGATIVE_PASS direct_date: FINORA_FISCAL_DATE_INVALID
51
+NOTICE: WP1_MANUAL_NEGATIVE_PASS direct_null_date: FINORA_FISCAL_DATE_INVALID
52
+NOTICE: WP1_MANUAL_NEGATIVE_PASS direct_opening: FINORA_OPENING_CLOSING_NOT_APPROVED
53
+NOTICE: WP1_MANUAL_NEGATIVE_PASS direct_source_relabel: FINORA_MANUAL_DRAFT_SOURCE_IMMUTABLE
54
+NOTICE: WP1_MANUAL_NEGATIVE_PASS v2_date: FINORA_FISCAL_DATE_INVALID
55
+NOTICE: WP1_MANUAL_NEGATIVE_PASS v2_closing: FINORA_OPENING_CLOSING_NOT_APPROVED
56
+NOTICE: WP1_MANUAL_NEGATIVE_PASS v2_source_relabel: FINORA_MANUAL_DRAFT_SOURCE_IMMUTABLE
57
+NOTICE: WP1_MANUAL_UPDATE_GUARDS_PASS: 17 negatives, atomic rejection, valid adjustment, boundary dates, posting replay
docs/wp1/evidence/integrated-15/green-wp1_null_revision_guards.sql.log
new
+46
@@ -0,0 +1,46 @@
1
+BEGIN
2
+INSERT 0 1
3
+ set_config
4
+--------------------------------------
5
+ 249c1a4a-2009-448d-a5b2-8992ce8865db
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ ea000000-0000-4000-8000-000000000001
11
+(1 row)
12
+
13
+INSERT 0 4
14
+INSERT 0 1
15
+SET
16
+ finora_journal_create_draft
17
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
18
+ {"voucher": {"id": "RV_DRAFT", "date": "1405/07/24", "status": "draft", "version": 1, "sourceId": "", "companyId": "RV_C", "createdAt": "2026-11-04T21:47:44.51107+00:00", "createdBy": "ea000000-0000-4000-8000-000000000001", "reference": "", "sourceType": "manual", "description": "", "voucherType": "manual", "fiscalYearId": "RV_Y", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "10f3b306ba9aa98fbe4e520299180481", "reversalAllocations": null}, "replayed": false}
19
+ {"voucher": {"id": "RV_ORIGINAL", "date": "1405/07/24", "status": "draft", "version": 1, "sourceId": "", "companyId": "RV_C", "createdAt": "2026-11-04T21:47:44.520927+00:00", "createdBy": "ea000000-0000-4000-8000-000000000001", "reference": "", "sourceType": "manual", "description": "", "voucherType": "manual", "fiscalYearId": "RV_Y", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "10f3b306ba9aa98fbe4e520299180481", "reversalAllocations": null}, "replayed": false}
20
+ {"voucher": {"id": "RV_DELETE", "date": "1405/07/24", "status": "draft", "version": 1, "sourceId": "", "companyId": "RV_C", "createdAt": "2026-11-04T21:47:44.52787+00:00", "createdBy": "ea000000-0000-4000-8000-000000000001", "reference": "", "sourceType": "manual", "description": "", "voucherType": "manual", "fiscalYearId": "RV_Y", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "10f3b306ba9aa98fbe4e520299180481", "reversalAllocations": null}, "replayed": false}
21
+(3 rows)
22
+
23
+ finora_journal_post
24
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
25
+ {"voucher": {"id": "RV_ORIGINAL", "date": "1405/07/24", "number": "1", "status": "posted", "version": 2, "postedAt": "2026-11-04T21:47:44.53284+00:00", "postedBy": "ea000000-0000-4000-8000-000000000001", "sourceId": "", "companyId": "RV_C", "createdAt": "2026-11-04T21:47:44.520927+00:00", "createdBy": "ea000000-0000-4000-8000-000000000001", "reference": "", "sourceType": "manual", "description": "", "voucherType": "manual", "fiscalYearId": "RV_Y", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "10f3b306ba9aa98fbe4e520299180481", "reversalAllocations": null}, "replayed": false}
26
+(1 row)
27
+
28
+DO
29
+ROLLBACK
30
+NOTICE: WP1_REVISION_NEGATIVE_PASS update null
31
+NOTICE: WP1_REVISION_NEGATIVE_PASS update 0
32
+NOTICE: WP1_REVISION_NEGATIVE_PASS update -1
33
+NOTICE: WP1_REVISION_NEGATIVE_PASS update 999999
34
+NOTICE: WP1_REVISION_NEGATIVE_PASS delete null
35
+NOTICE: WP1_REVISION_NEGATIVE_PASS delete 0
36
+NOTICE: WP1_REVISION_NEGATIVE_PASS delete -1
37
+NOTICE: WP1_REVISION_NEGATIVE_PASS delete 999999
38
+NOTICE: WP1_REVISION_NEGATIVE_PASS post null
39
+NOTICE: WP1_REVISION_NEGATIVE_PASS post 0
40
+NOTICE: WP1_REVISION_NEGATIVE_PASS post -1
41
+NOTICE: WP1_REVISION_NEGATIVE_PASS post 999999
42
+NOTICE: WP1_REVISION_NEGATIVE_PASS reverse null
43
+NOTICE: WP1_REVISION_NEGATIVE_PASS reverse 0
44
+NOTICE: WP1_REVISION_NEGATIVE_PASS reverse -1
45
+NOTICE: WP1_REVISION_NEGATIVE_PASS reverse 999999
46
+NOTICE: WP1_NULL_REVISION_PASS: 16 rejected mutations, current versions accepted, read-only replay retained
docs/wp1/evidence/integrated-15/green-wp1_phase1a_cas_rls_behavior.sql.log
new
+21
@@ -0,0 +1,21 @@
1
+BEGIN
2
+INSERT 0 2
3
+ set_config
4
+--------------------------------------
5
+ 1dc65c47-acca-4c71-89c9-090dc6bf68b3
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ 0f7676b1-152f-4b55-be3a-35dc4c7c38a2
11
+(1 row)
12
+
13
+SET
14
+ set_config
15
+--------------------------------------
16
+ 44444444-4444-4444-8444-444444444444
17
+(1 row)
18
+
19
+DO
20
+ROLLBACK
21
+NOTICE: FINORA_1A_CAS_PASS create=1 update=2 stale_rejected=true winner_preserved=true cross_tenant_denied=true
docs/wp1/evidence/integrated-15/green-wp1_phase1a_security_grants.sql.log
new
+2
@@ -0,0 +1,2 @@
1
+DO
2
+NOTICE: FINORA_1A_SECURITY_PASS private 1A routines=27 unsafe search_path=0 anon execute=0
docs/wp1/evidence/integrated-15/green-wp1_phase1a_stage1_account_role_controls.sql.log
new
+62
@@ -0,0 +1,62 @@
1
+BEGIN
2
+INSERT 0 3
3
+ set_config
4
+--------------------------------------
5
+ 4adeb80a-b610-4a51-b0e2-58d852260100
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ 13913d53-b491-4446-ab0d-24209b259805
11
+(1 row)
12
+
13
+INSERT 0 2
14
+INSERT 0 2
15
+INSERT 0 4
16
+INSERT 0 2
17
+UPDATE 1
18
+INSERT 0 1
19
+INSERT 0 1
20
+INSERT 0 1
21
+INSERT 0 1
22
+INSERT 0 1
23
+INSERT 0 1
24
+INSERT 0 1
25
+INSERT 0 1
26
+DO
27
+SET
28
+ set_config
29
+--------------------------------------
30
+ cccc3333-3333-4333-8333-333333333333
31
+(1 row)
32
+
33
+DO
34
+RESET
35
+UPDATE 1
36
+DO
37
+SET
38
+DO
39
+RESET
40
+DO
41
+UPDATE 1
42
+UPDATE 1
43
+SET
44
+ set_config
45
+--------------------------------------
46
+ aaaa1111-1111-4111-8111-111111111111
47
+(1 row)
48
+
49
+DO
50
+RESET
51
+DO
52
+DO
53
+UPDATE 1
54
+INSERT 0 1
55
+INSERT 0 1
56
+SET
57
+DO
58
+RESET
59
+DO
60
+ROLLBACK
61
+NOTICE: FINORA_ACCOUNT_ROLE_GUARDS_PASS
62
+NOTICE: FINORA_ACCOUNT_ROLE_GUARDS_AND_DRAFT_PIN_PASS
docs/wp1/evidence/integrated-15/green-wp1_phase1a_stage1_all_definer_security.sql.log
new
+2
@@ -0,0 +1,2 @@
1
+DO
2
+NOTICE: FINORA_SECURITY_DEFINER_AUDIT_PASS zero unsafe defs and anon/public grants
docs/wp1/evidence/integrated-15/green-wp1_phase1a_stage1_counter_two_fiscal.sql.log
new
+49
@@ -0,0 +1,49 @@
1
+BEGIN
2
+INSERT 0 1
3
+ set_config
4
+--------------------------------------
5
+ b2a60521-d25b-4d16-a62a-2d167bf5b0ef
6
+(1 row)
7
+
8
+INSERT 0 1
9
+INSERT 0 2
10
+INSERT 0 2
11
+INSERT 0 2
12
+INSERT 0 1
13
+SET
14
+ set_config
15
+--------------------------------------
16
+ 12345678-aaaa-4aaa-8aaa-123456789012
17
+(1 row)
18
+
19
+ finora_journal_create_draft
20
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
21
+ {"voucher": {"id": "NEW_FIRST_41", "date": "1405/05/01", "status": "draft", "version": 1, "sourceId": "", "companyId": "COMP_COUNTER", "createdAt": "2026-11-04T21:47:46.209003+00:00", "createdBy": "12345678-aaaa-4aaa-8aaa-123456789012", "reference": "", "sourceType": "manual", "description": "", "voucherType": "manual", "fiscalYearId": "FY_FIRST", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "5d6aa2f3e0043ba4c7690d7ed8785839", "reversalAllocations": null}, "replayed": false}
22
+(1 row)
23
+
24
+ finora_journal_create_draft
25
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
26
+ {"voucher": {"id": "NEW_SECOND_12", "date": "1405/10/01", "status": "draft", "version": 1, "sourceId": "", "companyId": "COMP_COUNTER", "createdAt": "2026-11-04T21:47:46.222864+00:00", "createdBy": "12345678-aaaa-4aaa-8aaa-123456789012", "reference": "", "sourceType": "manual", "description": "", "voucherType": "manual", "fiscalYearId": "FY_SECOND", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "977a41c99e7865483e6cdc605672a586", "reversalAllocations": null}, "replayed": false}
27
+(1 row)
28
+
29
+SAVEPOINT
30
+ finora_journal_post
31
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
32
+ {"voucher": {"id": "NEW_FIRST_41", "date": "1405/05/01", "number": "41", "status": "posted", "version": 2, "postedAt": "2026-11-04T21:47:46.229907+00:00", "postedBy": "12345678-aaaa-4aaa-8aaa-123456789012", "sourceId": "", "companyId": "COMP_COUNTER", "createdAt": "2026-11-04T21:47:46.209003+00:00", "createdBy": "12345678-aaaa-4aaa-8aaa-123456789012", "reference": "", "sourceType": "manual", "description": "", "voucherType": "manual", "fiscalYearId": "FY_FIRST", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "5d6aa2f3e0043ba4c7690d7ed8785839", "reversalAllocations": null}, "replayed": false}
33
+(1 row)
34
+
35
+ROLLBACK
36
+ finora_journal_post
37
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
38
+ {"voucher": {"id": "NEW_FIRST_41", "date": "1405/05/01", "number": "41", "status": "posted", "version": 2, "postedAt": "2026-11-04T21:47:46.239259+00:00", "postedBy": "12345678-aaaa-4aaa-8aaa-123456789012", "sourceId": "", "companyId": "COMP_COUNTER", "createdAt": "2026-11-04T21:47:46.209003+00:00", "createdBy": "12345678-aaaa-4aaa-8aaa-123456789012", "reference": "", "sourceType": "manual", "description": "", "voucherType": "manual", "fiscalYearId": "FY_FIRST", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "5d6aa2f3e0043ba4c7690d7ed8785839", "reversalAllocations": null}, "replayed": false}
39
+(1 row)
40
+
41
+ finora_journal_post
42
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
43
+ {"voucher": {"id": "NEW_SECOND_12", "date": "1405/10/01", "number": "12", "status": "posted", "version": 2, "postedAt": "2026-11-04T21:47:46.242517+00:00", "postedBy": "12345678-aaaa-4aaa-8aaa-123456789012", "sourceId": "", "companyId": "COMP_COUNTER", "createdAt": "2026-11-04T21:47:46.222864+00:00", "createdBy": "12345678-aaaa-4aaa-8aaa-123456789012", "reference": "", "sourceType": "manual", "description": "", "voucherType": "manual", "fiscalYearId": "FY_SECOND", "sourceVersion": "1", "reversalReason": "", "requestFingerprint": "977a41c99e7865483e6cdc605672a586", "reversalAllocations": null}, "replayed": false}
44
+(1 row)
45
+
46
+RESET
47
+DO
48
+ROLLBACK
49
+NOTICE: FINORA_STAGE1_COUNTER_PASS years=2 first_legacy=40 next=41 second_legacy=11 next=12 rollback_consumed=0
docs/wp1/evidence/integrated-15/green-wp1_phase1a_stage1_sale_purchase_negatives.sql.log
new
+45
@@ -0,0 +1,45 @@
1
+BEGIN
2
+INSERT 0 3
3
+ set_config
4
+--------------------------------------
5
+ 87078b2f-298b-4fcf-8d17-a7d161da42ea
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ 2f62f959-f49a-45ba-b173-bf2d1a233397
11
+(1 row)
12
+
13
+INSERT 0 2
14
+INSERT 0 2
15
+INSERT 0 4
16
+INSERT 0 2
17
+UPDATE 1
18
+INSERT 0 1
19
+INSERT 0 1
20
+INSERT 0 1
21
+INSERT 0 1
22
+INSERT 0 1
23
+INSERT 0 1
24
+INSERT 0 3
25
+INSERT 0 1
26
+DO
27
+SET
28
+ set_config
29
+--------------------------------------
30
+ aaaa1111-1111-4111-8111-111111111111
31
+(1 row)
32
+
33
+ finora_phase1a_publish_role_assignments
34
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
35
+ {"version": 1, "approved": true, "assignments": {"cash_default": "ACC_STAGE_1", "payable_control": "ACC_AP", "revenue_default": "ACC_STAGE_2", "purchase_default": "ACC_PUR", "receivable_control": "ACC_AR"}}
36
+(1 row)
37
+
38
+ set_config
39
+--------------------------------------
40
+ cccc3333-3333-4333-8333-333333333333
41
+(1 row)
42
+
43
+DO
44
+ROLLBACK
45
+NOTICE: FINORA_SALE_PURCHASE_NEGATIVES_AND_REVERSED_IDEMPOTENCY_PASS
docs/wp1/evidence/integrated-15/green-wp1_phase1a_stage1_seeded_1000.sql.log
new
+38
@@ -0,0 +1,38 @@
1
+BEGIN
2
+INSERT 0 2
3
+ set_config
4
+--------------------------------------
5
+ 5ffa2f68-3c0f-4779-9b66-73ec9a29570b
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ b6470b8c-9e1f-4514-b4ca-263e0e065cae
11
+(1 row)
12
+
13
+INSERT 0 2
14
+INSERT 0 2
15
+INSERT 0 4
16
+INSERT 0 2
17
+SET
18
+DO
19
+RESET
20
+SET CONSTRAINTS
21
+DO
22
+ROLLBACK
23
+NOTICE: FINORA_SEEDED_PROGRESS seed=20261016 events=100 full=24 partial=12
24
+NOTICE: FINORA_SEEDED_PROGRESS seed=20261016 events=200 full=48 partial=23
25
+NOTICE: FINORA_SEEDED_PROGRESS seed=20261016 events=300 full=72 partial=34
26
+NOTICE: FINORA_SEEDED_PROGRESS seed=20261016 events=400 full=96 partial=46
27
+NOTICE: FINORA_SEEDED_PROGRESS seed=20261016 events=500 full=119 partial=57
28
+NOTICE: FINORA_SEEDED_PROGRESS seed=20261016 events=600 full=143 partial=68
29
+NOTICE: FINORA_SEEDED_PROGRESS seed=20261016 events=700 full=167 partial=80
30
+NOTICE: FINORA_SEEDED_PROGRESS seed=20261016 events=800 full=191 partial=92
31
+NOTICE: FINORA_SEEDED_PROGRESS seed=20261016 events=900 full=214 partial=103
32
+NOTICE: FINORA_SEEDED_PROGRESS seed=20261016 events=1000 full=238 partial=114
33
+NOTICE: FINORA_SEEDED_GENERATION_PASS seed=20261016 events=1000 full=238 partial=114
34
+NOTICE: FINORA_SEEDED_VERIFY_COUNTS_PASS originals=1000
35
+NOTICE: FINORA_SEEDED_VERIFY_VOUCHERS_BALANCED
36
+NOTICE: FINORA_SEEDED_VERIFY_TWO_ORGS_BALANCED
37
+NOTICE: FINORA_SEEDED_VERIFY_NO_ORG_LEAK
38
+NOTICE: FINORA_SEEDED_PASS seed=20261016 original=1000 two_orgs=true lines=2..8 full_partial_reversals=true
docs/wp1/evidence/integrated-15/green-wp1_phase1a_stage1_sql_behavior.sql.log
new
+54
@@ -0,0 +1,54 @@
1
+BEGIN
2
+INSERT 0 3
3
+ set_config
4
+--------------------------------------
5
+ b323b502-c4eb-4729-bf52-8247b95a0ecd
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ e1f6df7f-6d50-4671-979f-4023015aff12
11
+(1 row)
12
+
13
+INSERT 0 2
14
+INSERT 0 2
15
+INSERT 0 4
16
+INSERT 0 2
17
+UPDATE 1
18
+INSERT 0 1
19
+INSERT 0 1
20
+INSERT 0 1
21
+INSERT 0 1
22
+INSERT 0 1
23
+INSERT 0 1
24
+SET
25
+ set_config
26
+--------------------------------------
27
+ aaaa1111-1111-4111-8111-111111111111
28
+(1 row)
29
+
30
+ finora_phase1a_publish_role_assignments
31
+--------------------------------------------------------------------------------------------------------------------
32
+ {"version": 1, "approved": true, "assignments": {"cash_default": "ACC_STAGE_1", "revenue_default": "ACC_STAGE_2"}}
33
+(1 row)
34
+
35
+DO
36
+ set_config
37
+--------------------------------------
38
+ bbbb2222-2222-4222-8222-222222222222
39
+(1 row)
40
+
41
+DO
42
+ set_config
43
+--------------------------------------
44
+ cccc3333-3333-4333-8333-333333333333
45
+(1 row)
46
+
47
+DO
48
+RESET
49
+DO
50
+ROLLBACK
51
+NOTICE: FINORA_STAGE1_SMOKE_A_PASS create, doubleclick, retry-conflict, post, reverse, view, tenant A->B
52
+NOTICE: FINORA_STAGE1_SMOKE_B_PASS tenant B->A and legacy/CAS
53
+NOTICE: FINORA_STAGE1_ROLE_PASS commerce source allowed, manual create/edit/delete/post/reverse denied
54
+NOTICE: FINORA_STAGE1_BOTH_DIRECTIONS_PASS direct,2arg,3arg,v2,journal
docs/wp1/evidence/integrated-15/green-wp1_posted_identity_move.sql.log
new
+28
@@ -0,0 +1,28 @@
1
+BEGIN
2
+INSERT 0 1
3
+ set_config
4
+--------------------------------------
5
+ 894e9f29-dc43-44c2-aef8-06bab9a60736
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ b1000000-0000-4000-8000-000000000001
11
+(1 row)
12
+
13
+INSERT 0 4
14
+DO
15
+SET
16
+DO
17
+RESET
18
+INSERT 0 1
19
+ set_config
20
+--------------------------------------
21
+ 05fac5db-376c-4821-9356-60eb5818c40b
22
+(1 row)
23
+
24
+INSERT 0 1
25
+DO
26
+ROLLBACK
27
+NOTICE: WP1_DIRECT_GUARDS_PASS: D1, independent RPC-balanced D2, dimension insert, spoofed GUC
28
+NOTICE: WP1_POSTED_ORG_MOVE_PASS: old ENFORCE dominates new AUDIT, original untouched
docs/wp1/evidence/integrated-15/green-wp1_posting_negatives.sql.log
new
+32
@@ -0,0 +1,32 @@
1
+BEGIN
2
+INSERT 0 1
3
+ set_config
4
+--------------------------------------
5
+ 0fc9acd0-141e-49e3-9880-62ec8c0352b8
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ b2000000-0000-4000-8000-000000000001
11
+(1 row)
12
+
13
+INSERT 0 5
14
+INSERT 0 1
15
+SET
16
+DO
17
+ROLLBACK
18
+NOTICE: WP1_NEGATIVE_PASS missing_amount: FINORA_INVALID_RIAL_AMOUNT
19
+NOTICE: WP1_NEGATIVE_PASS null_amount: FINORA_INVALID_RIAL_AMOUNT
20
+NOTICE: WP1_NEGATIVE_PASS negative: FINORA_INVALID_RIAL_AMOUNT
21
+NOTICE: WP1_NEGATIVE_PASS fraction: FINORA_INVALID_RIAL_AMOUNT
22
+NOTICE: WP1_NEGATIVE_PASS zero: FINORA_INVALID_DEBIT_CREDIT_LINE
23
+NOTICE: WP1_NEGATIVE_PASS two_sides: FINORA_INVALID_DEBIT_CREDIT_LINE
24
+NOTICE: WP1_NEGATIVE_PASS single: FINORA_INVALID_LINE_COUNT
25
+NOTICE: WP1_NEGATIVE_PASS unbalanced: FINORA_UNBALANCED_POSTED_JOURNAL count=2 debit=1000 credit=300
26
+NOTICE: WP1_NEGATIVE_PASS closed: FINORA_FISCAL_YEAR_LOCKED_OR_MISSING
27
+NOTICE: WP1_NEGATIVE_PASS out_of_range: FINORA_FISCAL_DATE_INVALID
28
+NOTICE: WP1_NEGATIVE_PASS wrong_company: FINORA_LINE_SCOPE_MISMATCH
29
+NOTICE: WP1_NEGATIVE_PASS wrong_year: FINORA_LINE_SCOPE_MISMATCH
30
+NOTICE: WP1_NEGATIVE_PASS currency: FINORA_CURRENCY_UNSUPPORTED
31
+NOTICE: WP1_NEGATIVE_PASS inactive_account: FINORA_ACCOUNT_OUT_OF_SCOPE
32
+NOTICE: WP1_POSTING_NEGATIVES_PASS: 14 cases
docs/wp1/evidence/integrated-15/green-wp1_reversal_dimensions.sql.log
new
+34
@@ -0,0 +1,34 @@
1
+BEGIN
2
+INSERT 0 2
3
+ set_config
4
+--------------------------------------
5
+ 243b486d-06c3-46f0-a0b3-f64b5c6e795c
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ d16458d2-8df1-420d-af46-5652387c406e
11
+(1 row)
12
+
13
+ set_config
14
+--------------------------------------
15
+ b6000000-0000-4000-8000-000000000001
16
+(1 row)
17
+
18
+UPDATE 1
19
+INSERT 0 12
20
+INSERT 0 1
21
+INSERT 0 1
22
+CREATE FUNCTION
23
+SET
24
+DO
25
+DO
26
+RESET
27
+ALTER TABLE
28
+INSERT 0 2
29
+ALTER TABLE
30
+SET
31
+DO
32
+ROLLBACK
33
+NOTICE: WP1_REVERSAL_DIMENSIONS_PASS: full, partial, remainder, replay, changed retry, over-allocation, tenant scope, immutable originals
34
+NOTICE: WP1_LEGACY_DIMENSION_SCOPE_PASS: wrong-company and wrong-voucher fail closed with unchanged rows
docs/wp1/evidence/integrated-15/green-wp1_scope_move_and_null.sql.log
new
+35
@@ -0,0 +1,35 @@
1
+BEGIN
2
+INSERT 0 2
3
+ set_config
4
+--------------------------------------
5
+ 4f450846-ab65-4bda-8a82-4442e7dc74b9
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ 9f0afa90-6cc7-4fa5-8ee5-7e44cd5f6ba7
11
+(1 row)
12
+
13
+ set_config
14
+--------------------------------------
15
+ b4000000-0000-4000-8000-000000000001
16
+(1 row)
17
+
18
+INSERT 0 4
19
+INSERT 0 1
20
+SET
21
+DO
22
+RESET
23
+DO
24
+UPDATE 1
25
+SET
26
+DO
27
+RESET
28
+INSERT 0 1
29
+UPDATE 1
30
+SET CONSTRAINTS
31
+DO
32
+ROLLBACK
33
+NOTICE: WP1_ENFORCE_TO_AUDIT_IDENTITY_MOVE_DENIED
34
+NOTICE: WP1_MISSING_AND_NULL_AMOUNTS_REJECTED_IN_SHADOW
35
+NOTICE: WP1_AUDIT_TO_OFF_RELOCATION_ALLOWED_AND_LOGGED
docs/wp1/evidence/integrated-15/green-wp1_shadow_and_constraint_contract.sql.log
new
+21
@@ -0,0 +1,21 @@
1
+BEGIN
2
+INSERT 0 1
3
+ set_config
4
+--------------------------------------
5
+ 1aad3b11-a357-4c69-86c1-9d36d7587406
6
+(1 row)
7
+
8
+ set_config
9
+--------------------------------------
10
+ b3000000-0000-4000-8000-000000000001
11
+(1 row)
12
+
13
+DO
14
+SET
15
+DO
16
+INSERT 0 1
17
+SET CONSTRAINTS
18
+RESET
19
+DO
20
+ROLLBACK
21
+NOTICE: WP1_SHADOW_PASS: default audit, persisted violation evidence, non-admin setter denied, deferred ledger-only constraints
docs/wp1/evidence/integrated-15/run.log
new
+18
@@ -0,0 +1,18 @@
1
+PASS wp1_direct_write_regressions.sql
2
+PASS wp1_manual_update_guards.sql
3
+PASS wp1_null_revision_guards.sql
4
+PASS wp1_phase1a_cas_rls_behavior.sql
5
+PASS wp1_phase1a_security_grants.sql
6
+PASS wp1_phase1a_stage1_account_role_controls.sql
7
+PASS wp1_phase1a_stage1_all_definer_security.sql
8
+PASS wp1_phase1a_stage1_counter_two_fiscal.sql
9
+PASS wp1_phase1a_stage1_sale_purchase_negatives.sql
10
+PASS wp1_phase1a_stage1_seeded_1000.sql
11
+PASS wp1_phase1a_stage1_sql_behavior.sql
12
+PASS wp1_posted_identity_move.sql
13
+PASS wp1_posting_negatives.sql
14
+PASS wp1_reversal_dimensions.sql
15
+PASS wp1_scope_move_and_null.sql
16
+PASS wp1_shadow_and_constraint_contract.sql
17
+PASS two-session concurrency
18
+WP1 green selected checks complete; source-derived disposable DB, not production parity or JWT gateway acceptance. Evidence /workspace/wp1-integrated15-full
docs/wp1/evidence/prerequisite-rollback/posted-reversal-seed.log
+1
-1
@@ -5,7 +5,7 @@
5
{"name":"two_posts","pass":true,"diagnostic":" "}
6
{"name":"gapless_numbers","pass":true,"diagnostic":"1,2\n"}
7
{"name":"original","pass":true,"diagnostic":""}
8
-{"name":"two_reversals_one_winner","pass":true,"diagnostic":" ERROR: FINORA_REVERSAL_OVER_ALLOCATION\nCONTEXT: PL/pgSQL function public.finora_journal_reverse(uuid,text,text,text,text,bigint,jsonb) line 73 at RAISE\n"}
8
+{"name":"two_reversals_one_winner","pass":true,"diagnostic":"ERROR: FINORA_REVERSAL_OVER_ALLOCATION\nCONTEXT: PL/pgSQL function public.finora_journal_reverse(uuid,text,text,text,text,bigint,jsonb) line 73 at RAISE\n "}
9
{"name":"no_duplicate_reversals","pass":true,"diagnostic":"1\n"}
10
{"name":"partial_status_from_view","pass":true,"diagnostic":"partially_reversed\n"}
11
FINORA_STAGE1_TWO_CONNECTIONS_PASS
docs/wp1/evidence/prerequisite-rollback/result.json
+5
-4
@@ -4,16 +4,17 @@
4
"corrections": [
5
"20261102141933_wp1_ledger_scope_authority_hardening.sql",
6
"20261104020908_wp1_reversal_dimensions.sql",
7
- "20261104072719_wp1_manual_update_guards.sql"
7
+ "20261104072719_wp1_manual_update_guards.sql",
8
+ "20261104214503_wp1_null_revision_guards.sql"
9
],
10
"baselineFunctionCount": 71,
11
"retained": {
12
"posted_count": 4,
13
"line_count": 10,
14
"audit_count": 10,
14
- "records": "fa78a715db8cbc61b946c54d4b502a29",
15
- "audit": "9fa2e93cb6f7e10c186d2fd609d4da9f",
16
- "counters": "4af072181fa0d07a34e648eb37a6d162"
15
+ "records": "b81550f6460d8d97d9bb13d3901a2b4d",
16
+ "audit": "59236fd7c72dc75c96521ec8d119e908",
17
+ "counters": "62e823a267de48669acb7dfedba950dc"
18
},
19
"scope": "conservative rollback preserves inert structures/indexes; NOT pristine schema or production parity"
20
}