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

CI: align release safety with Dependency Graph gate

davoodmehraban89 committed Oct 2, 2026 at 11:03 UTC bc6c75df0620ab091dfa48a17b14a033ea107771
2 files changed +2 -1
PROJECT_STATE.md
+1
@@ -14,6 +14,7 @@ This is high-assurance accounting/ERP software. Posted financial history, tenant
14 ## Current change ledger
15 | Date | Request / decision | Status | Evidence / next action |
16 |---|---|---|---|
17 +| 2026-10-02 | Release-safety invariant initially rejected the explicit Dependency Graph availability gate. | **TEST CONTRACT FIXED / RETEST PENDING** | Safety checker now requires both properties: Dependency Review is conditional on `DEPENDENCY_GRAPH_ENABLED=true`, and remains fail-closed whenever enabled. |
18 | 2026-10-02 | PR #29 exposed that Dependency Review now fails hard when GitHub Dependency Graph is disabled. | **CI BOUNDARY FIXED / RETEST PENDING** | Security workflow now runs Dependency Review only when repository variable `DEPENDENCY_GRAPH_ENABLED=true`; when enabled the action remains fail-closed. Release/QA safety and CodeQL remain mandatory. This prevents an unavailable GitHub feature from falsely blocking unrelated PRs while preserving the explicit external-boundary status. |
19 | 2026-10-02 | Owner granted standing approval to continue in-scope project work without repeated confirmation. | **WAVE 4B PRODUCTION APPLIED + VERIFIED** | Supabase production `hcsixhqbyuhpshfwqpjx` recorded `request_wave4b_scheduler_outbox_delivery` as migration version `20261002072526`. Read-only reconciliation confirmed scheduler tables, outbox delivery columns, and all five Wave 4b RPC contracts exist. GitHub main `41aff95d11a66c67e2c64df3eac11a122f94dfd7`: Quality `36975968198`, Security `36975968108`, Release Gate `36976087514`, Deploy `36976115600` succeeded. Automatic external scheduling and D4c destination consumers remain NOT VERIFIED. |
20 | 2026-10-02 | Wave 4b first disposable-DB run exposed an ambiguous PL/pgSQL test variable in the final replay assertion. | **TEST FIX APPLIED / RETEST PENDING** | Product migration executed through all scheduler/outbox assertions; failure was confined to the final test query where local variable `k` shadowed temp-table column `k`. Renamed/qualified the assertion; no production permission or state-machine rollback. |
scripts/release-safety-check.mjs
+1 -1
@@ -25,7 +25,7 @@ must(/menu item did not change navigation\/view state/.test(qa), 'menu crawl mus
25 must(/retention-days:\s*3/.test(qa), 'QA evidence retention must remain minimal');
26
27 must(!/continue-on-error\s*:\s*true/i.test(security), 'security workflow must not fail open');
28 -must(/Dependency review \(fail closed\)/.test(security), 'dependency review must be explicitly fail closed');
28 +must(/Dependency review \\(fail closed when Dependency Graph is enabled\\)/.test(security), 'dependency review must remain fail closed when enabled');\nmust(/vars\\.DEPENDENCY_GRAPH_ENABLED == 'true'/.test(security), 'dependency review must be gated on explicit Dependency Graph availability');
29
30 must(gate.length > 0, 'exact-SHA promotion gate workflow must exist');
31 must(/workflow_run/.test(gate), 'promotion gate must be driven by completed required workflows');