@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 3fdfb76
Fork 0

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

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

Synced Dec 3, 18:15 UTC

docs: record C8 task 1 production verification

davoodmehraban89 committed Oct 1, 2026 at 21:12 UTC 3fdfb76cabbca9ec67e33d1dfcb213405de075da
1 file changed +32
docs/OFFICE_SLICE_C8_TASK1_VERIFICATION.md new
+32
@@ -0,0 +1,32 @@
1 +# Office C8 Task 1 — Workflow Policy Verification
2 +
3 +Date: 2026-10-01
4 +Production project: `hcsixhqbyuhpshfwqpjx`
5 +
6 +## Status
7 +COMPLETED for Task 1: versioned workflow policy publication/catalog.
8 +
9 +## Delivered
10 +- Private versioned policy table with RLS and no direct client DML.
11 +- Immutable published policy history.
12 +- Bounded graph validation: 2–20 stages, <=60 edges, one start, terminal reachability, unique IDs, no self/duplicate edges, no terminal outgoing edges, bounded labels/definition, `edit|refer|approve` allowlist.
13 +- Server-side serialized version allocation.
14 +- Public SECURITY INVOKER publish/catalog wrappers over checked private implementations.
15 +
16 +## TDD / nonproduction evidence
17 +- RED confirmed before implementation: production policy table and publish/catalog RPCs were absent.
18 +- Free disposable PostgreSQL 17 CI harness added; no paid branch/service used.
19 +- PR #11 Quality run `36900700757`: disposable migration apply PASS; behavioral SQL assertions PASS with rollback; static C8 contract PASS; full accounting/enterprise/C1–C7 gates PASS; Real-DOM PASS.
20 +- PR #11 Security run `36900700778`: CodeQL PASS. Dependency Graph availability remains an external repository-setting boundary.
21 +
22 +## Production
23 +- Applied migration: `20261001173917 office_slice_c8_workflow_policy`.
24 +- Repository archive: `supabase/migrations/20261001173917_office_slice_c8_workflow_policy.sql`.
25 +- Post-apply checks: table/RPCs present; RLS enabled; authenticated direct SELECT/INSERT denied; policy row count zero; anon publish/catalog execute denied.
26 +- Security advisor: existing 20 public SECURITY DEFINER warnings unchanged. Private C8 table reports informational `RLS enabled no policy`, intentional because direct client DML is revoked and access is through checked functions.
27 +
28 +## Rollback
29 +Operational rollback disables C8 UI/write entry points while preserving policy evidence. Do not DROP or delete published policy history.
30 +
31 +## Next
32 +C8 Task 2: attach/transition/read transactional slice with immutable revisioned events, request-id idempotency, expected-revision conflict handling, source-first lock order and two-session concurrency verification before production DDL.