سامانه صدور فاکتور و حسابداری
ci(quality): add document lifecycle contract gate without truncating workflow
davoodmehraban89 committed
Nov 18, 2026 at 09:07 UTC
17565459f234ecbef9e54f0aa8b8de73c40edf35
1 file changed
+93
-1
.github/workflows/quality.yml
+93
-1
@@ -219,4 +219,96 @@ jobs:
219
- name: Execute C8 runtime transactional assertions
220
run: psql -v ON_ERROR_STOP=1 -h 127.0.0.1 -U postgres -d finora_c8 -f supabase/tests/office_c8_runtime.sql
221
- name: Execute C8 two-session concurrency assertion
222
- run: node scripts/office-c8-concurrency.mjs
\ No newline at end of file
222
+ run: node scripts/office-c8-concurrency.mjs
223
+ - name: Execute C8 private-entry and index assertions
224
+ run: psql -v ON_ERROR_STOP=1 -h 127.0.0.1 -U postgres -d finora_c8 -f supabase/tests/office_c8_runtime_security.sql
225
+
226
+ d1-request-database:
227
+ runs-on: ubuntu-latest
228
+ services:
229
+ postgres:
230
+ image: postgres:17-alpine
231
+ env:
232
+ POSTGRES_USER: postgres
233
+ POSTGRES_PASSWORD: postgres
234
+ POSTGRES_DB: finora_d1
235
+ ports:
236
+ - 5433:5432
237
+ options: >-
238
+ --health-cmd "pg_isready -U postgres -d finora_d1"
239
+ --health-interval 5s
240
+ --health-timeout 5s
241
+ --health-retries 10
242
+ env:
243
+ PGPASSWORD: postgres
244
+ PGHOST: 127.0.0.1
245
+ PGPORT: 5433
246
+ PGUSER: postgres
247
+ PGDATABASE: finora_d1
248
+ steps:
249
+ - uses: actions/checkout@v7
250
+ - name: Install PostgreSQL client
251
+ run: sudo apt-get update -qq && sudo apt-get install -y postgresql-client
252
+ - name: Bootstrap disposable D1 database
253
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_d1_bootstrap.sql
254
+ - name: Apply D1 foundation
255
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001204500_request_workflow_d1_foundation.sql
256
+ - name: Apply D1 transition evidence hardening
257
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001205500_request_workflow_d1_transition_evidence.sql
258
+ - name: Apply D1 RPC security hardening
259
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001210500_request_workflow_d1_rpc_security.sql
260
+ - name: Apply D1 revision qualification
261
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001211500_request_workflow_d1_revision_qualification.sql
262
+ - name: Execute D1 behavioral assertions
263
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_d1_behavior.sql
264
+ - name: Seed legacy request records for D2 cutover
265
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_d2_legacy_seed.sql
266
+ - name: Apply D2 non-destructive legacy cutover
267
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001223500_request_workflow_d2_legacy_cutover.sql
268
+ - name: Apply D2 request workflow FK indexes
269
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001224500_request_workflow_d2_fk_indexes.sql
270
+ - name: Execute D2 legacy cutover assertions
271
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_d2_legacy_behavior.sql
272
+ - name: Apply F-412 deterministic duplicate-code guard
273
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261002070000_request_wave2_duplicate_code_guard.sql
274
+ - name: Execute F-412 duplicate-code adversarial assertion
275
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_wave2_duplicate_code_guard.sql
276
+ - name: Apply D3a step runtime
277
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001230000_request_workflow_d3a_step_runtime.sql
278
+ - name: Execute D3a sequential and parallel workflow assertions
279
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_d3a_workflow_behavior.sql
280
+ - name: Apply Wave 1 legacy transition guard
281
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261002010000_request_wave1_legacy_transition_guard.sql
282
+ - name: Execute Wave 1 adversarial legacy transition assertions
283
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_wave1_legacy_transition_security.sql
284
+ - name: Apply D3b conditions and timeline
285
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001233000_request_workflow_d3b_conditions_timeline.sql
286
+ - name: Apply Wave 2 request integrity hardening
287
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261002023000_request_wave2_integrity_hardening.sql
288
+ - name: Execute D3b condition and timeline assertions
289
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_d3b_condition_timeline.sql
290
+ - name: Execute Wave 2 request integrity assertions
291
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_wave2_integrity.sql
292
+ - name: Apply D3c SLA delegation and outbox
293
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001235500_request_workflow_d3c_operations.sql
294
+ - name: Apply D3c escalation idempotency fix
295
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261002000500_request_workflow_d3c_escalation_conflict_fix.sql
296
+ - name: Execute D3c operational assertions
297
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_d3c_operations.sql
298
+ - name: Apply Wave 3 decision replay hardening
299
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261002071000_request_wave3_decision_idempotency.sql
300
+ - name: Execute Wave 3 replay authorization and stability assertions
301
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_wave3_decision_idempotency.sql
302
+ - name: Apply Wave 4 operational integrity hardening
303
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261002072000_request_wave4_operational_integrity.sql
304
+ - name: Execute Wave 4 outbox/SLA/delegation assertions
305
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_wave4_operational_integrity.sql
306
+ - name: Apply Wave 4b scheduler and outbox delivery boundary
307
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261002073500_request_wave4b_scheduler_outbox_delivery.sql
308
+ - name: Execute Wave 4b scheduler/outbox adversarial assertions
309
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_wave4b_scheduler_outbox_delivery.sql
310
+ - name: Apply D4a authorized work queue
311
+ run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261002033000_request_workflow_d4a_work_queue.sql
312
+ - name: Execute D4a work queue assertions
313
+ run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_d4a_work_queue.sql
314
+