@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 63d4a5e
Fork 0

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

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 18:15 UTC

ci(quality): add document lifecycle contract gate

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