سامانه صدور فاکتور و حسابداری
docs(stage2.2): record verified real-stack and harness evidence with Quality red blocker
davoodmehraban89 committed
Oct 19, 2026 at 01:18 UTC
45bdef18e33a86e46adbf5f64692258f71e255de
1 file changed
+7
PROJECT_STATE.md
+7
@@ -174,3 +174,10 @@
174
### 2026-10-18 — Stage 2.2 acceptance HOLD: quality regression not waived
175
- HEAD bbd616cecfbba56be6126266d01fc573e7f5789f Quality Run 39157016150 Job 117762212839 Step 54 **FAILED**: 122/123 DOM cases pass; `accounting-document-workflow.spec.js:637` treasury correction test still never sees its required rejection alert, even after a strict 25s wait that exceeds the 20s `invoicePilotAwaitSync` bound (`js/invoices.js:453–462`). Targeted RPC fault was independently proved consumed once in Run 39156589781 raw trace; **not safe to mark Quality green**. Treasury correction is OUTSIDE authorized Stage 2.2 and must not be changed to manufacture green.
176
- Transient real-stack Run 39157013205 failed a timing read of the *append-only audit row* immediately after legacy audit sync. Test-only fix awaits actual database row for at most 12s, still fails if absent; a fresh real-stack Run is required. Prior independent real-stack Run 39156095490 Job 117759513522 Step 8 PASS with JWT/Auth/PostgREST, both REST attacks, single posted number and audit evidence (artifact 12147152448). Harness Run 39157013199 PASS, Security 39157016176 PASS. No owner acceptance yet.
177
+
178
+
179
+### 2026-10-19 — Stage 2.2 HEAD 2698bb7 independently verified; owner acceptance remains HOLD
180
+- **REAL-STACK PASS** Run 39158782556, Job 117767455850, Step 8, artifact 12148390599: built Pages + disposable local Supabase GoTrue/authenticated JWT/PostgREST/Chromium; actual browser login, owner mode, draft/post with one number/audit, duplicate-click, JWT REST direct posted-status **HTTP 400** and cross-org **HTTP 403** denied. Local DB: posted version 2, balanced, one posted audit, three audit-mode guard violations, 31 local requests; enforce sync payload invariant checked **non-vacuously**, old-client audit-mode offending fields intentionally recorded separately. NO production access.
181
+- **HARNESS PASS** Run 39158782582, Job 117767455701, artifact 12148396252; actual journal JS in Chromium uses test-only SQL bridge, NOT Auth/JWT/gateway. Stage 2.1 canaries Run 39158782572 PASS; Security Run 39158785280 CodeQL/safety PASS; Dependency Review SKIPPED by `vars.DEPENDENCY_GRAPH_ENABLED` guard. Summary in real-stack and harness jobs must identify their distinct test layers.
182
+- **Quality remains RED** Run 39158785350 Job 117768601711 Step 54: 122/123 DOM tests passed, `scripts/accounting-document-workflow.spec.js:624–641` treasury-payment correction fault-injection test FAILS (missing required `اصلاح کامل نشد` alert after consumed RPC failure). `js/payments.js:67–103,190–205` amendment/uncertain-ack behavior is OUTSIDE authorized manual Stage 2.2. Do NOT weaken assertion or alter payment/amend production behavior as a workaround; require separate owner approval for its semantic fix. Do not claim Quality green or Stage 2.2 accepted.
183
+- Phase1A parity workflow is push-scoped to the Stage1 feature branch (workflow lines 3–6), so **no parity run for exact Stage2 HEAD** is proved. Existing Stage1 parity is older evidence and must not be relabeled as Stage2-head parity. Stage 2.3, commercial correction RPC, Production DDL/DML or enforce, main merge, Phase 1B and separate login-resilience work remain prohibited; PR #162 DRAFT [DO NOT MERGE].