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

Reconcile production target and start Wave 2

davoodmehraban89 committed Oct 2, 2026 at 02:12 UTC bec6635ec2abf8873c0ba76afff77e5b8d89aeb7
1 file changed +6 -6
PROJECT_STATE.md
+6 -6
@@ -15,6 +15,7 @@ This is high-assurance accounting/ERP software. Posted financial history, tenant
15 | Date | Request / decision | Status | Evidence / next action |
16 |---|---|---|---|
17 | 2026-10-02 | Owner switched GitHub Pages source to **GitHub Actions** after the gated Pages workflow was installed. | **WAVE 0 COMPLETED / POSITIVE + NEGATIVE CONTROLS VERIFIED** | Negative control: failing SHA `03561a3369130a7aaba689474d92aa3e93137404` on PR #15 failed required `static-quality`, could not merge, and produced no Release gate / gated Pages deployment. Positive control: protected-main SHA `150ff54d938a45b9a9b476f3a4a8fdabbb45d065` passed Quality `36932956964`, Security `36932956877`, exact-SHA Release gate `36933115365`, then gated Pages deploy `36933151878`; no legacy dynamic branch Pages deployment appeared. F-402/F-403/F-406/F-407/F-423/F-424 are closed at the verified GitHub/repository boundary. |
18 +| 2026-10-02 | Live Supabase target `hcsixhqbyuhpshfwqpjx` became available to the connector; owner directed immediate continuation. | **WAVE 1 PRODUCTION RECONCILED / WAVE 2 STARTED** | Production migration history and live `request_transition_instance` definitions were inspected read-only. F-409/F-410 guard is present in production; next slice is F-411/F-413/F-414/F-417/F-418 with server validation, form-runtime fidelity, idempotency binding, active/latest-version enforcement and schema-bound conditions. |
19 | 2026-10-02 | Owner completed the GitHub `Protect main` ruleset and directed autonomous continuation to fully remediate the audited defects. | **ACTIVE — REMEDIATION CONTINUATION** | Ruleset `24334764` verified ACTIVE on default branch with deletion + non-fast-forward protection, PR-only updates, strict required checks `static-quality`, `Release and QA safety invariants`, and `CodeQL JavaScript`; bypass list empty. Continue Wave 1/2 request integrity work. |
20 | 2026-10-01 | Owner authorized starting the canonical remediation pack after external full-system audit. | **WAVE 0 CLOSED** | Release/QA fail-open paths, exact-SHA promotion and Pages deployment ordering are now verified by positive and negative controls above. |
21 | 2026-10-01 | Owner said «ادامه بده» after D3a handoff. | **D3B + D3C VERIFIED** | D3b visual editor/conditions/timeline and D3c SLA/delegation/outbox are production + disposable-DB + real-DOM verified. Remediation audit supersedes roadmap ordering. |
@@ -57,14 +58,13 @@ Posted accounting history is immutable and balanced; tenant isolation is enforce
58 ## NOT VERIFIED / external boundary
59 Automatic background scheduling for SLA scans; delivery/dispatch consumers for D3c outbox intents; authenticated two-real-user production browser E2E with a persistent legitimate non-owner member; automatic external invitation email delivery; owner-approved accounting cutover; real Persian OCR accuracy/provider; qualified digital signature; physical printer; live external adapters; GitHub Dependency graph/enforceable dependency review; leaked-password protection; PostgreSQL upgrade; CodeQL v4 migration; external BPM/provider integration remain outside verified scope.
60
60 -The connected Supabase tool currently exposes project `gmxxlxjonkwvtfbphyzg`, while the owner-specified production target is `hcsixhqbyuhpshfwqpjx`. Therefore production DDL/RLS verification for new remediation migrations is **NOT VERIFIED** until the correct target is exposed by the connector. Never apply Factor-easy migrations to the unrelated visible project.
61 +The connected Supabase tool now exposes the owner-specified production target `hcsixhqbyuhpshfwqpjx` (`Finora`, `ACTIVE_HEALTHY`, PostgreSQL 17.6.1). Live migration history includes the C8/D1/D2/D3 and Wave 1 request migrations through two recorded `request_wave1_legacy_transition_guard` applications. Read-only production inspection confirmed the current private legacy transition implementation authorizes tenant/module/capability before replay, rejects D3 step-runtime bypass, binds replay to actor+action, and the public wrapper is `SECURITY INVOKER`. No production DDL was required for this reconciliation.
62
63 ## Exact next executable work
63 -1. Continue Wave 1/2 remediation in repository + disposable PostgreSQL: F-409/F-410 guard is present and adversarially exercised in CI; retain it as verified code/disposable-DB evidence, but do not claim new production verification while the target Supabase project is unavailable through the connector.
64 -2. Implement immutable request input/version/condition hardening (F-411/F-414/F-417/F-418 and related findings) with negative tests before any D4 consumer activation.
65 -3. Reconcile/apply archived remediation migrations to production only after the connector exposes `hcsixhqbyuhpshfwqpjx`; archive every applied migration under `supabase/migrations/`.
66 -4. Only after request integrity gates, resume D4 approver/delegate work queue and bounded outbox-consumer contracts.
67 -5. Continue compliance/accounting roadmap only with sourced legal/tax/accounting evidence and controlled cutover safeguards.
64 +1. Implement Wave 2 immutable request input/version/condition hardening (F-411/F-413/F-414/F-417/F-418) with negative disposable-DB tests and real-DOM form-fidelity coverage before any D4 consumer activation.
65 +2. After protected-branch CI passes, reconcile the exact Wave 2 migration against production `hcsixhqbyuhpshfwqpjx` and apply only the archived reviewed migration; then rerun production read-only/adversarial verification and security advisors.
66 +3. Only after request integrity gates, resume D4 approver/delegate work queue and bounded outbox-consumer contracts.
67 +4. Continue compliance/accounting roadmap only with sourced legal/tax/accounting evidence and controlled cutover safeguards.
68
69 ## Live QA open items
70 - Exact Taxpayer-System print redesign: owner reference images were received in chat and implementation was reported complete; retain regression coverage and do not silently redesign away from the approved reference.