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

docs(staging): record strict zero-cost CI-isolated staging authorization and guardrails

davoodmehraban89 committed Oct 22, 2026 at 23:09 UTC 2a3ea30594426d9df6a87ae92215b8c0c77c887b
1 file changed +8
PROJECT_STATE.md
+8
@@ -219,3 +219,11 @@
219 - Real-stack Run **39374548931** Job **118469632458** PASS (artifact **12241799674**) including new **AUDIT→ENFORCE stale-client UI revalidation**; real password/JWT, local Auth/PostgREST, direct forged-post HTTP 400, other-organization HTTP 403, balanced posted voucher, unique number, audit, old-client audit violation, sanitized network trace. Harness Run **39374548882** Job **118469631994** PASS 3/3 and negative, artifact **12242866971**.
220 - Local baseline-snapshot parity Run **39374548888** Job **118469632524** PASS (artifact **12243495097**); NOT fresh Production. Stage2.1 canaries **39374548884** both jobs PASS. Code-only findings fixed: uncertain treasury financial sync no blind retry; UI refreshes server mode before save/post/delete even if cached audit.
221 - Automated reviewers: functional Quality, security CodeQL/negative JWT REST, edge real-stack/canaries independently executed as **CI**. These are NOT separately launched external agent approvals; true three-agent sign-off unavailable and must not be claimed. Owner Stage2.2 acceptance HOLD, PR #162 Draft [DO NOT MERGE], no Production changes, main merge, Phase1B, Stage2.3 or stopped login work.
222 +
223 +
224 +### 2026-10-22 — Owner-approved zero-cost ephemeral staging only (PLAN / not a release)
225 +- Owner explicitly approved only a **genuinely free** isolated staging/testing environment. No credit card, currency payment, paid subscription, branch compute charges, Cloudflare deployment, or borrowing `LifeGuide-QA`; no Production mutations, merge, release, Stage2.3 or Phase1B.
226 +- Read-only cloud inventory found two active Supabase projects (Finora ERP Production and unrelated LifeGuide-QA), **no independently provisioned Finora hosted staging database**. Supabase platform's free project limit is two active projects per qualifying owner/admin and preview branches may incur compute charges; do not create a paid Supabase branch or consume an unrelated QA project.
227 +- Chosen free alternative: `staging/finora-stage22-free-20261022` forked from PR #162 exact source SHA `3c4efef047da58f150b8e39fa066f79b7d5b54e8`. GitHub Actions standard `ubuntu-latest` runners are free for this public repository. A *disposable local Supabase stack hosted inside the CI runner* provides PostgreSQL, Auth, gateway/PostgREST and real browser testing, with test-only synthetic data; it is **not** a durable publicly accessible hosted Staging service.
228 +- Planned changes exclusively on staging branch: this Project State note plus isolated test-only workflow. CI should deny remote target preconnection, use no credential secret or production variables, run migration and manual document real-stack checks, and report exact SHA/Run ID. Do not call the work complete before CI success and negative tests are verified; do not run deployment.
229 +- Continue to treat PR #162 DRAFT/DO NOT MERGE; financial history, `main`, Production data and Production Schema remain untouched. Later hosted staging will need a truly free separate database or new permission; do not silently relax the zero-cost constraint.