سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 19:30 UTC
Close Office C2 with production verification evidence
davoodmehraban89 committed
Sep 30, 2026 at 19:08 UTC
9fd78b8a997f78fba01bc3034e5e9c7cacea8031
4 files changed
+85
-16
PROJECT_STATE.md
+9
-6
@@ -12,7 +12,8 @@ Verify live GitHub + Supabase before acting; implement/test/fix/retest/commit/ve
12
## Current change ledger
13
| Date | Request / decision | Status | Evidence / next action |
14
|---|---|---|---|
15
-| 2026-09-30 | Continue Office Slice C autonomously from the current checkpoint. | **IN PROGRESS** | Close C1 evidence/continuity first, then continue the next mature office vertical slice without redoing completed ELI/C1 work. |
15
+| 2026-09-30 | Continue Office Slice C autonomously from the current checkpoint. | **IN PROGRESS** | C1 and C2 are closed with evidence; continue to the next independent mature-office vertical slice without redoing completed work. |
16
+| 2026-09-30 | Office Slice C2: actionable referrals, target authorization, append-only actions and SLA work queue. | **IMPLEMENTED / PRODUCTION + ADVERSARIAL + REAL-DOM + SECURITY VERIFIED** | Production migrations `20260930152500_office_slice_c2_actionable_referrals_sla` and `20260930153000_office_evidence_insert_hardening`; Quality `36737229597` PASS including all accounting/Golden/ELI/C1/C2 + Real-DOM; Security `36737229678` CodeQL PASS; Pages `36737229045` PASS. Transactional tests rejected unreadable targets, sender impersonation, completion-before-ack, duplicate ack, cross-tenant queue access and direct referral/audit forgery; rollback restored temporary seat limit/member/fixtures with zero residue. Evidence: `docs/OFFICE_SLICE_C2_VERIFICATION.md`. |
17
| 2026-09-30 | Office Slice C1: immutable registered correspondence history + server-authoritative read evidence. | **IMPLEMENTED / PRODUCTION + ADVERSARIAL + REAL-DOM + SECURITY VERIFIED** | Production migration `20260930054352_office_registered_history_read_evidence`; runtime head `15b32367ff9a8154729da27cd581930871b5fb5b`; Quality `36674993838` PASS including C1 + Real-DOM; Security `36674993881` CodeQL PASS; Pages `36674993095` PASS. Transactional production verification rejected identity rewrite, backward status, delete, audit mutation/delete and cross-tenant read evidence; rollback residue zero. Evidence: `docs/OFFICE_SLICE_C1_VERIFICATION.md`. |
18
| 2026-09-30 | Continue autonomously without routine confirmation pauses. | **ACTIVE OPERATING DIRECTIVE** | Applies to reversible in-scope engineering. No claim of background execution. |
19
| 2026-09-30 | ELI-4 enterprise organization UX: typed hierarchy, consolidated capacity dashboard and organization-admin hardening. | **IMPLEMENTED / PRODUCTION + REAL-DOM + SECURITY VERIFIED; PERSISTENT TWO-USER PROD E2E NOT VERIFIED** | Production migration `20260930053652_enterprise_organization_ux`; unit kinds `region/branch/department/unit/subunit`, same-tenant parent/cycle guard, unit audit, owner/core-admin capacity summary, typed tree UI and company/user/module dashboard. Shell admin button now requires owner or `core/configure`, not arbitrary module configure. Transactional rollback verification PASS for ordinary-user denial, delegated core admin, cross-tenant parent rejection, cycle rejection, invalid kind rejection, capacity summary and unit audit. Product head before evidence commit `e88fab7470bb0697652d347d23ca48332a94c6e4`: Quality `36674128792` PASS including all accounting/Golden/ELI + Real-DOM; Security `36674128874` PASS; Pages `36674128102` PASS. Evidence: `docs/ELI_4_ENTERPRISE_ORGANIZATION_UX_VERIFICATION.md`. Persistent two-real-user production browser E2E remains blocked because production has no legitimate persistent non-owner member. |
@@ -24,12 +25,13 @@ Verify live GitHub + Supabase before acting; implement/test/fix/retest/commit/ve
25
| 2026-09-30 | Iran-first high-assurance ERP expansion. | **IN PROGRESS — BROADER ROADMAP** | `docs/IRAN_COMPLIANCE_MATRIX_V1.md`; do not claim statutory consolidation/full tax submission/full HR/CRM until lifecycle/accounting/permissions/tests exist. |
26
27
## Current production state — 2026-09-30
27
-- Supabase project `hcsixhqbyuhpshfwqpjx`: `ACTIVE_HEALTHY`, PostgreSQL `17.6.1.166`, **37 migrations through `20260930054352 office_registered_history_read_evidence`**.
28
+- Supabase project `hcsixhqbyuhpshfwqpjx`: `ACTIVE_HEALTHY`, PostgreSQL `17.6.1.166`, **39 migrations through `20260930153000 office_evidence_insert_hardening`**.
29
- Four organization-linked licenses with server-enforced `max_companies`, `max_users`, modules and future-safe `limits`; no license is below current active seat/company usage.
30
- Persistent production membership remains four active owners and zero non-owner members. All ELI adversarial multi-user tests used existing legitimate principals inside transactions and rolled back.
31
- ELI-2 persistent seeded state: 24 system roles across four organizations, 28 starter role-permission rows, zero persistent member-role assignments.
32
- ELI-3 persistent state after tests: zero invitations, zero invitation-role links, zero non-owner members and zero role assignments.
33
- ELI-4 persistent organization-unit count remains zero after rollback verification; no test hierarchy residue exists.
34
+- Office C2 persistent state after rollback verification: zero referrals, zero correspondence-audit events and zero non-owner members; temporary license seat expansion returned to `max_users=1` for the exercised organization.
35
- RLS is enabled on public tenant tables. Security advisor reports intentional authenticated SECURITY DEFINER RPC warnings plus leaked-password protection disabled; negative authorization tests for ELI RPCs passed.
36
- Performance advisor reports only unused-index informational notices; no unindexed foreign-key findings remain.
37
- Production invoice history remains unchanged; controlled accounting cutover is not part of ELI work.
@@ -42,20 +44,21 @@ Verify live GitHub + Supabase before acting; implement/test/fix/retest/commit/ve
44
- ELI-3: secure hash-only invitations, email binding, role-bound acceptance, atomic seat enforcement, revoke/expire lifecycle, invitation UI and URL acceptance.
45
- ELI-4: typed organization tree, tenant/cycle integrity, capacity dashboard and strict core-admin shell gating.
46
- Office C1 runtime/server foundation: registered correspondence identity/history protection, monotonic status, immutable audit evidence, authenticated read-evidence RPC and open-flow integration.
47
+- Office C2: server-authorized referral targets, target-bound immutable referrals, ordered acknowledgement/completion evidence, server-filtered SLA work queue, referral UI/actions, and direct referral/audit forgery prevention.
48
- Existing accounting Phases 1–6 and Iran enterprise foundation remain accepted; ELI work must not rewrite posted accounting history.
49
50
## Invariants
48
-Posted accounting history is immutable and balanced; tenant isolation is enforced at the data boundary; commercial entitlement and member authorization are independent; UI hiding is never security; expired licenses are read-only; office numbering is server-atomic; private scans remain private; seat/company limits are server-enforced; delegated customer admins cannot mutate commercial license entitlements; invitation acceptance is authenticated, email-bound and seat-safe; raw invitation tokens are never persisted or audited; organization-unit parents cannot cross tenants or form cycles.
51
+Posted accounting history is immutable and balanced; tenant isolation is enforced at the data boundary; commercial entitlement and member authorization are independent; UI hiding is never security; expired licenses are read-only; office numbering is server-atomic; private scans remain private; seat/company limits are server-enforced; delegated customer admins cannot mutate commercial license entitlements; invitation acceptance is authenticated, email-bound and seat-safe; raw invitation tokens are never persisted or audited; organization-unit parents cannot cross tenants or form cycles; referral targets must already be authorized to read the source correspondence; only the bound target may acknowledge/complete a referral; referral/audit evidence can only be inserted by authorized server operations.
52
53
## Required evidence
51
-`docs/PHASE_1_REDESIGN_VERIFICATION.md` · `docs/PHASE_2_REDESIGN_VERIFICATION.md` · `docs/PHASE_3_REDESIGN_VERIFICATION.md` · `docs/PHASE_4_REDESIGN_VERIFICATION.md` · `docs/PHASE_5_VERIFICATION.md` · `docs/PHASE_6_VERIFICATION.md` · `docs/PHASE_6_CUTOVER_MANIFEST.md` · `docs/PRODUCTION_ACCOUNTING_CUTOVER_READINESS_2026-09-30.md` · `docs/IRAN_COMPLIANCE_MATRIX_V1.md` · `docs/FINORA_ERP_EXPANSION_ROADMAP_V4.md` · `docs/FINORA_UX_ACCOUNTING_BENCHMARK_V3.md` · `docs/FINORA_MODULAR_ERP_OFFICE_AUTOMATION_V1.md` · `docs/SLICE_B_TENANT_RBAC_VERIFICATION.md` · `docs/SECURITY_DEFINER_HARDENING_2026-09-30.md` · `docs/CURRENT_STAGE_GAP_REGISTER_2026-09-30.md` · `docs/superpowers/specs/2026-09-30-enterprise-licensing-organization-identity-design.md` · `docs/ELI_1_ENTERPRISE_LICENSE_VERIFICATION.md` · `docs/ELI_2_REUSABLE_ROLES_VERIFICATION.md` · `docs/ELI_3_INVITATIONS_VERIFICATION.md` · `docs/ELI_4_ENTERPRISE_ORGANIZATION_UX_VERIFICATION.md` · `docs/PRODUCTION_RUNBOOK.md` · `supabase/migrations/`.
54
+`docs/PHASE_1_REDESIGN_VERIFICATION.md` · `docs/PHASE_2_REDESIGN_VERIFICATION.md` · `docs/PHASE_3_REDESIGN_VERIFICATION.md` · `docs/PHASE_4_REDESIGN_VERIFICATION.md` · `docs/PHASE_5_VERIFICATION.md` · `docs/PHASE_6_VERIFICATION.md` · `docs/PHASE_6_CUTOVER_MANIFEST.md` · `docs/PRODUCTION_ACCOUNTING_CUTOVER_READINESS_2026-09-30.md` · `docs/IRAN_COMPLIANCE_MATRIX_V1.md` · `docs/FINORA_ERP_EXPANSION_ROADMAP_V4.md` · `docs/FINORA_UX_ACCOUNTING_BENCHMARK_V3.md` · `docs/FINORA_MODULAR_ERP_OFFICE_AUTOMATION_V1.md` · `docs/SLICE_B_TENANT_RBAC_VERIFICATION.md` · `docs/SECURITY_DEFINER_HARDENING_2026-09-30.md` · `docs/CURRENT_STAGE_GAP_REGISTER_2026-09-30.md` · `docs/superpowers/specs/2026-09-30-enterprise-licensing-organization-identity-design.md` · `docs/ELI_1_ENTERPRISE_LICENSE_VERIFICATION.md` · `docs/ELI_2_REUSABLE_ROLES_VERIFICATION.md` · `docs/ELI_3_INVITATIONS_VERIFICATION.md` · `docs/ELI_4_ENTERPRISE_ORGANIZATION_UX_VERIFICATION.md` · `docs/OFFICE_SLICE_C1_VERIFICATION.md` · `docs/OFFICE_SLICE_C2_VERIFICATION.md` · `docs/PRODUCTION_RUNBOOK.md` · `supabase/migrations/`.
55
56
## NOT VERIFIED / external boundary
57
Authenticated two-real-user production browser E2E with a persistent legitimate non-owner member; automatic external invitation email delivery; owner-approved accounting cutover; real Persian OCR; qualified digital signature; physical printer; live external adapters; GitHub Dependency graph; leaked-password protection; PostgreSQL 17.11 upgrade; CodeQL v4 migration.
58
59
## Exact next executable work
57
-1. Start Office Slice C2 on the finalized ELI/C1 model: harden referral target authorization, add an append-only actionable referral lifecycle and a real shared work queue/SLA surface; preserve all accounting/Golden and ELI/C1 gates.
58
-2. Keep reply/related-letter graph, templates/editor, approval/signature, archive classification, OCR/full-text and external adapters as later Slice C work unless pulled into a separately verified vertical slice.
60
+1. Start Office Slice C3 as a separate vertical slice: reply/related-letter graph plus archive classification/search metadata, preserving C1/C2 evidence and all accounting/Golden/ELI gates.
61
+2. Keep templates/editor and approval/signature as later high-risk slices; keep real OCR/full-text quality and external adapters explicitly outside verified scope until real providers/data are available.
62
3. Authenticated two-real-user production browser verification remains blocked until a legitimate persistent non-owner principal is intentionally available; do not fabricate or permanently cross-add one.
63
4. External invitation email delivery remains an adapter boundary; do not claim it until a real provider is connected and tested.
64
5. Continue compliance/accounting roadmap only with sourced legal/tax/accounting evidence and owner-approved destructive cutovers.
docs/CURRENT_STAGE_GAP_REGISTER_2026-09-30.md
+3
-3
@@ -16,11 +16,11 @@ Scope: what remains before the current Finora stage can be called high-assurance
16
| 1 | **P0 Critical** | Two-real-user authenticated production E2E for organization isolation/RBAC/confidentiality/Storage | QA + Security | Transactional DB tests pass, but the canonical state explicitly marks authenticated two-real-user production browser E2E as not verified. Complete only after two real non-admin accounts exercise allowed and denied cross-user/cross-organization paths in the deployed app. |
17
| 2 | **P0 Critical** | Controlled accounting cutover for existing production invoices | Financial correctness + Migration | Production currently has 7 invoice records but no account-master/journal collections. Phase 6 intentionally did not auto-post legacy history. Complete only after chart initialization, owner-reviewed source mapping, preview, controlled source-linked posting, reconciliation and rollback evidence. |
18
| 3 | **P0 Critical if marketed as legally complete; otherwise scope boundary** | Statutory/compliance workflows not yet end-to-end | Compliance + Accounting | Do not claim full Taxpayer System submission, statutory consolidation, full payroll/HR or complete standards compliance merely because menus/calculations exist. Completion requires effective-dated sourced rules, lifecycle validation, posting/reversal, RLS, reconciliation, negative tests and acknowledged external submission where applicable. |
19
-| 4 | **P1 High** | Mature office lifecycle (Slice C) | Product + Office automation | **C1 complete:** registered-history immutability and server-authoritative read evidence are production/CI/adversarial verified (`docs/OFFICE_SLICE_C1_VERIFICATION.md`). Remaining Slice C scope: templates/editor, approval/signature lifecycle, richer referral-chain UX, SLA/reminders, reply/related-letter graph, archive classification, OCR/full-text and integration adapters. |
19
+| 4 | **P1 High** | Mature office lifecycle (Slice C) | Product + Office automation | **C1 + C2 complete:** registered-history/read evidence plus secure actionable referrals, ordered acknowledgement/completion evidence and SLA work queue are production/CI/adversarial verified (`docs/OFFICE_SLICE_C1_VERIFICATION.md`, `docs/OFFICE_SLICE_C2_VERIFICATION.md`). Remaining Slice C scope: templates/editor, approval/signature lifecycle, reminders/escalation beyond overdue state, reply/related-letter graph, archive classification, OCR/full-text and integration adapters. |
20
| 5 | **P1 High** | Versioned configurable workflow engine (Slice D) | Product + Workflow | Requests have a form/type foundation, but sequential/parallel steps, conditions, delegation/substitution, SLA/escalation and immutable action history are not yet a complete workflow engine. |
21
| 6 | **P1 High** | Member invitation/onboarding without pre-existing Finora account | Identity + UX | Current member management requires an already-registered account. Complete with invitation token/lifecycle, expiry/revocation, organization acceptance, duplicate handling and audit. |
22
| 7 | **P1 High** | Supabase leaked-password protection | Security | Live Supabase advisor reports leaked-password protection disabled. Enable and verify authentication behavior before broad rollout. |
23
-| 8 | **P1 High** | SECURITY DEFINER RPC hardening / warning closure | Security + Database | Live advisor reports 7 authenticated-callable SECURITY DEFINER functions. Current definitions include internal authorization checks, so this is not evidence of an exploit by itself; nevertheless each RPC needs an explicit exposure decision, least-privilege grants/search_path review, negative tests and warning disposition. |
23
+| 8 | **P1 High** | SECURITY DEFINER RPC hardening / warning closure | Security + Database | Live advisor currently reports 17 authenticated-callable SECURITY DEFINER functions after enterprise and Office C1/C2 RPCs. Current definitions include internal authorization checks, so this is not evidence of an exploit by itself; nevertheless each RPC needs an explicit exposure decision, least-privilege grants/search_path review, negative tests and warning disposition. |
24
| 9 | **P1 High** | GitHub dependency graph / enforceable dependency review | Supply-chain security + CI | Historical `Run failed` security emails were caused by dependency review running while Dependency graph was disabled. Workflow now records this as unavailable instead of failing falsely, but actual dependency review remains absent until the repository setting is enabled and a PR run proves the check works. |
25
| 10 | **P1 High** | Accountant daily-control workbench gaps | Accounting operations | Bank statement import/reconciliation, formal period-close checklist/locks/evidence, sensitive journal/payment approval and segregation-of-duties, and a usable critical audit-log viewer remain required accountant-first controls unless separately verified in a later slice. |
26
| 11 | **P2 Medium** | Real Persian OCR accuracy and searchable archive validation | Office + QA | Schema is OCR-ready, but real Persian scan quality is not verified. Complete with representative scans, measured extraction/search quality, failure handling and human correction workflow. |
@@ -29,7 +29,7 @@ Scope: what remains before the current Finora stage can be called high-assurance
29
| 14 | **P2 Medium** | Physical printer / real document output validation | QA + Operations | Chromium/PDF tests pass, but physical printer output remains unverified. Complete with A4/A5 Persian samples, margins/page breaks, common printer drivers and archived acceptance evidence. |
30
| 15 | **P2 Medium** | PostgreSQL platform upgrade | Platform + Security | Project state records PostgreSQL 17.6.1.166 while 17.11 platform upgrade remains pending. Upgrade only with backup/rollback window and post-upgrade accounting/RLS regression verification. |
31
| 16 | **P2 Medium** | Finish GitHub Actions runtime modernization without weakening invariants | CI maintenance | `checkout` and `setup-node` were moved to v7. A direct CodeQL v4 switch exposed that `scripts/quality-check.mjs` still intentionally asserts CodeQL v3; rather than weaken the gate, CodeQL was restored to supported v3. Complete by updating the invariant and CodeQL action together in one tested change before v3 deprecation. |
32
-| 17 | **P3 Low** | Newly-created unused indexes | Performance | Supabase performance advisor currently reports 5 unused indexes. They are new and may not have accumulated production usage yet; do not delete prematurely. Reassess after representative workload/query statistics. |
32
+| 17 | **P3 Low** | Newly-created unused indexes | Performance | Supabase performance advisor currently reports 12 unused indexes. They are new and may not have accumulated production usage yet; do not delete prematurely. Reassess after representative workload/query statistics. |
33
34
## Historical Run-failed audit
35
Gmail contained multiple GitHub `Run failed` notifications. The newest relevant failures were historical, not evidence that the previously verified `main` was still broken:
docs/OFFICE_SLICE_C2_VERIFICATION.md
new
+66
@@ -0,0 +1,66 @@
1
+# Office Slice C2 — Actionable Referrals + SLA Work Queue Verification
2
+
3
+Date: 2026-09-30
4
+Project: `hcsixhqbyuhpshfwqpjx`
5
+
6
+## Delivered
7
+- Referral creation now verifies server-side that the target is an active member who is already authorized to read the source correspondence under scope and confidentiality rules.
8
+- New referrals are bound to the target member/user rather than trusting client ownership.
9
+- Referral progress is append-only: `acknowledged` must precede `completed`; duplicate/invalid transitions are rejected.
10
+- `office_referral_work_queue` returns a server-filtered sender/target/owner queue with derived state and overdue status.
11
+- Office UI now exposes «ارجاعات و پیگیری», target actions and optional due time.
12
+- Direct authenticated inserts into `correspondenceReferrals` and `correspondenceAudit` are blocked; evidence must be produced by authorized server operations.
13
+
14
+## Production migrations
15
+- `20260930152500 office_slice_c2_actionable_referrals_sla`
16
+- `20260930153000 office_evidence_insert_hardening`
17
+
18
+Archived SQL:
19
+- `supabase/migrations/20260930152500_office_slice_c2_actionable_referrals_sla.sql`
20
+- `supabase/migrations/20260930153000_office_evidence_insert_hardening.sql`
21
+
22
+## TDD / implementation evidence
23
+- Plan: `8538918d33c7c408dfcc4132a8c013bfe9ed5812`.
24
+- Failing C2 invariant coverage: `e58cebf3833c5ebf4bc8ad563f211b80484e4857`.
25
+- Failing C2 Real-DOM coverage: `706d289b3b9221de186ab21e10d4ccf71e82d910`.
26
+- Production migration archive: `46e527db2b63d254a7c44bbeb5d6203964a63a42`.
27
+- Work-queue/action UI: `e6278172703d2a60d818fe6298b2528b59d83716`.
28
+- Office navigation/runtime refresh: `d1d15d428173e5db747aa78a10219b0b0906f091`, `66b0fd6add3de424b6d594c0f0aa2d9f35f82a87`.
29
+- Direct evidence-forgery regression gate: `4c102b5b814445cc989f1489088d6983d6e27fd5`.
30
+- Evidence insert hardening: `7626a023f16b546ffce6ec5a9d23aa58b1749213`.
31
+
32
+## Transactional production adversarial verification
33
+All multi-user fixtures, temporary seat expansion, referral/action evidence and test correspondence were rolled back.
34
+
35
+PASS:
36
+1. Referral to a target without source-letter read authorization is rejected.
37
+2. After an explicit temporary read grant, the same target can receive the referral.
38
+3. Referral ownership/identity is bound to the target user.
39
+4. Original referral mutation is rejected.
40
+5. Sender queue sees its overdue sent referral.
41
+6. Sender cannot impersonate the target and acknowledge the referral.
42
+7. Target queue sees the assigned referral.
43
+8. Completion before acknowledgement is rejected.
44
+9. Target acknowledgement succeeds; duplicate acknowledgement is rejected.
45
+10. Referral-action evidence mutation is rejected.
46
+11. Completion after acknowledgement succeeds and clears overdue state.
47
+12. Cross-tenant principal receives no queue rows.
48
+13. Direct authenticated forged `correspondenceAudit` insert is rejected.
49
+14. Direct authenticated forged `correspondenceReferrals` insert is rejected.
50
+15. Authorized server read-evidence RPC still succeeds after the insert guard.
51
+16. Authorized referral RPC still succeeds after the insert guard.
52
+17. Rollback residue is zero; temporary target membership is absent and the exercised license returned to `max_users=1`.
53
+
54
+## GitHub evidence
55
+Verified product head before this evidence commit: `7626a023f16b546ffce6ec5a9d23aa58b1749213`.
56
+- Quality `36737229597`: PASS including JavaScript syntax, accounting/Golden, ELI-1/2/3/4, Office C1/C2 invariants and Real-DOM.
57
+- Security `36737229678`: CodeQL JavaScript PASS. Dependency Review remains skipped because GitHub Dependency graph is still not enabled.
58
+- Pages `36737229045`: build/deploy/report PASS.
59
+
60
+## Supabase advisor status
61
+- Security advisor reports 17 authenticated-callable SECURITY DEFINER warnings, including the three intentionally exposed C2 RPCs. C2 has explicit entitlement/membership/scope/confidentiality checks plus negative adversarial tests; the warnings remain tracked for exposure review rather than treated as proof of exploitability.
62
+- Leaked-password protection remains disabled.
63
+- Performance advisor reports 12 unused-index informational notices and no new critical performance finding in the current snapshot.
64
+
65
+## Scope boundary / NOT VERIFIED
66
+C2 does not claim persistent two-real-user production browser E2E because production still has zero persistent non-owner members. It also does not claim templates/editor, approval/signature, qualified digital signature, related-letter graph, archive classification, real Persian OCR/full-text quality, external delivery adapters or physical-printer validation.
docs/superpowers/plans/2026-09-30-office-slice-c2-actionable-referrals-sla.md
+7
-7
@@ -23,10 +23,10 @@ Date: 2026-09-30
23
8. Existing accounting/Golden, ELI-1/2/3/4 and Office C1 gates must remain green.
24
25
## Delivery tasks
26
-- [ ] Commit failing C2 static + Real-DOM coverage first.
27
-- [ ] Add production migration with target-access helper, hardened referral v2 RPC, referral-action RPC and queue RPC.
28
-- [ ] Run transactional adversarial verification in Production and rollback all fixtures.
29
-- [ ] Archive the exact production migration in the repository.
30
-- [ ] Implement work-queue UI and referral action flow.
31
-- [ ] Run full Quality/Real-DOM/Security/Pages.
32
-- [ ] Write `docs/OFFICE_SLICE_C2_VERIFICATION.md`, update gap register and `PROJECT_STATE.md`.
26
+- [x] Commit failing C2 static + Real-DOM coverage first.
27
+- [x] Add production migration with target-access helper, hardened referral v2 RPC, referral-action RPC and queue RPC.
28
+- [x] Run transactional adversarial verification in Production and rollback all fixtures.
29
+- [x] Archive the exact production migration in the repository.
30
+- [x] Implement work-queue UI and referral action flow.
31
+- [x] Run full Quality/Real-DOM/Security/Pages.
32
+- [x] Write `docs/OFFICE_SLICE_C2_VERIFICATION.md`, update gap register and `PROJECT_STATE.md`.