@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 4e4ea63
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 23:15 UTC

docs: resume C01 execution and pin effective financial definitions

JVK committed Nov 29, 2026 at 16:39 UTC 4e4ea63ecbad9bcad12d128a3c1ee1de7011cca2
3 files changed +33
PROJECT_STATE.md
+5
@@ -762,3 +762,8 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
762 - Proven RED before implementation: actual-journal Node fixture and real browser filter both returned assets50 instead1150; the old G01 draft-only-date expectation incorrectly erased prior assets120/liabilities170. New expectation preserves zero period movement and the existing balances. GREEN: Phase6/20k rows, chart/Golden and all57 pre-browser/server/safety commands PASS; dedicated source1/1 and generated Pages1/1 PASS; complete canonical Chromium262/262 PASS(7.2m) on Nov29. Three existing Issue229 browser expected-RED sentinels remain product defects. Nov28 interrupted full run is excluded, not a PASS.
763 - Independent final code review found no blocker; reviewer reran Phase6/chart/Golden and a separate contra-account/liability arithmetic probe. Root inspected the synthetic report screenshot. Runtime blob reviewed: `366fe2586cf8608a025fe0afe4180bcb59e24531`. No SQL, Auth/permissions, journal mutation, historical conversion, main merge or deployment occurred.
764 - Exact final code/PR SHA and remote CI must be read from the scoped PR ledger; local evidence is not a remote pass. All-seven generated Pages regression PASS(10.4s) before publication. Remaining: draft-first/independent approval #229, identity integration, cheques, draft-inclusive reporting, fiscal-year/legacy-company and pre-closing income-statement semantics, historical conversion and real-account acceptance. Preserve external C01 ownership; continuation prompt and base evidence are in the linked Nov29 report.
765 +
766 +### 2026-11-29 — C01 resumed by coordinating Codex
767 +- Owner explicitly asks this environment to continue itself; root resumes implementation ownership from tested PR264 a9a74735f82536690efdd23bcd056b8ac0fd9fef. External handoff is no longer a reason to wait. No newer remote code observed after fetch.
768 +- First prerequisite: inventory effective source-draft/finalization definitions in the inherited migration chain before changing SQL. Scope is isolated candidate and disposable validation, no hosted migration/history conversion. Preserve PR264 and its successful Quality/Security/WP1 evidence.
769 +- Source inspection confirms existing autopost atomically links and posts an already-persisted source; it is not atomic source+draft Save. Do not replace this with a client-only status change or merely remove posting permission.
docs/EXECUTION_STATUS.md
+3
@@ -233,3 +233,6 @@
233 ### 2026-11-25 — FIN-V2 G01-QA checkpoint (#262)
234 - Isolated parent PR261 911e01df2e4d0c29edeb96cee68d91b8053a6263, main dab1a45; all four parent gates PASS. Decision 24abb758ff1cce8a66a9d7e1c230ca93ba2c79d1, test commit 65acbb13118fa7133125cb3d9b22cccb0b7aab24. Only existing Phase6 behavior test and append-only checkpoint files changed. Loads actual journal-engine.js and phase6-reporting.js in VM with synthetic ledger input; asserts draft exclusion, historical reversal and replacement, cutoff, gross debit/credit 490, signed balance and loss 50, and read-only input. Existing scenarios unchanged.
235 - Execution: no local full repo execution; run node scripts/phase6-behavior-check.mjs in existing Quality CI and verify exact final SHA. No claim of PASS until observed. Fixture is a read-model test, not actual posting, real browser/DB or complete report-status UX. Codex-main review; financial #229 remains open and separate. No runtime/SQL/production/merge/release.
236 +
237 +### ۲۰۲۶-۱۱-۲۹ — ادامهٔ مستقیم C01 توسط Codex اصلی
238 +مالک خواست خود این محیط ادامه دهد؛ انتظار برای محیط بیرونی برداشته شد. فهرست تعریف‌های مؤثر توابع مالی در `docs/agent-workflow/C01_EFFECTIVE_FUNCTIONS_2026-11-29.md` ثبت شد. گام بعد تأیید catalog آزمایشی و پیاده‌سازی تراکنش منبع+سند موقت و تأیید مستقل است. این checkpoint صرفاً پیش‌نیاز بررسی است؛ رفع Issue229 یا تغییر دیتابیس واقعی ادعا نمی‌شود.
docs/agent-workflow/C01_EFFECTIVE_FUNCTIONS_2026-11-29.md new
+25
@@ -0,0 +1,25 @@
1 +# C01 effective-function preflight — 2026-11-29
2 +
3 +Base: `a9a74735f82536690efdd23bcd056b8ac0fd9fef` (PR264). Root resumes execution at owner request. Repository definition inventory only; not deployed schema parity or proof of executable migrations. Overloads and dynamic SQL require separate catalog inspection in disposable PostgreSQL.
4 +
5 +| Function | Last textual definition in ordered migrations | File SHA256 |
6 +|---|---|---|
7 +| `finora_journal_autopost` | `20261117110000_wp1_autopost_source_link_atomic.sql:3` | `c490d7f15d55da183ae567ac0b1e34cf81d220a12b46691ab0ee6e37836f1cf4` |
8 +| `finora_phase1a_authorize` | `20261016101500_phase1a_journal_core.sql:40` | `95d64e86305dbcc40d2718a3f391e128c77b32d7a9ff86bfbf06b096682435d6` |
9 +| `finora_phase1a_create_core` | `20261102141933_wp1_ledger_scope_authority_hardening.sql:164` | `cdabffcfa64d99aa88fa900a799a953790a4918e790b644c0ae263c18aed771e` |
10 +| `finora_phase1a_post_core` | `20261104214503_wp1_null_revision_guards.sql:70` | `de8dffeab02aff67ac07c9d1d04f203ed0294285e102805cb97cf9bba1c16b98` |
11 +| `finora_phase1a_expected_lines` | `20261016103500_phase1a_purchase_fixed_contract.sql:30` | `a97c9d6d0bf1e98feb2081e9977f023d91fe13816532578be558bb4d4d03b5d9` |
12 +| `finora_phase1a_validate_saved` | `20261115140000_wp1_dimension_value_type_scope.sql:3` | `b326a0f8fcd4499897a5d2434f367e3643c23c3f062d803aa220113b19279ea1` |
13 +| `finora_sync_records_v2` | `20261016100500_phase1a_optimistic_version_sync.sql:126` | `9a38d8e238998c96a8f25e1b1c58c36f47a4ea00d56a90d668c70b465811abd9` |
14 +| `finora_guard_posted_source_records` | `20261117120000_wp1_stage3_canonical_source_link_projection.sql:86` | `bcdf6647167f502c5843afe607b44e4a39abc61c1171bda1f7c2821360a64b99` |
15 +| `finora_stage3_guard_posted_source` | `20261117120000_wp1_stage3_canonical_source_link_projection.sql:3` | `bcdf6647167f502c5843afe607b44e4a39abc61c1171bda1f7c2821360a64b99` |
16 +
17 +## Required implementation sequence
18 +
19 +1. Verify these effective definitions, overloads, grants and triggers in the disposable candidate database.
20 +2. Implement source+balanced linked draft Save as one transaction, with scope, revisions, retry identity and audit. Do not allocate a final number on Save.
21 +3. Implement separate authorized finalization and reconcile the legacy autopost boundary without breaking legitimate Save.
22 +4. Preserve rollback, historical immutability and existing precise expected-RED contracts; convert them only after actual acceptance.
23 +5. Integrate sale/purchase adapters after server proof. No historical conversion in this package.
24 +
25 +Status: prerequisite inventory complete; runtime implementation and disposable catalog verification remain open.