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

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

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

Synced Dec 3, 14:30 UTC

fix/office-c7-source-ref-binding-v2
audit-remediation-wave3-4-20261002 audit-remediation-wave3-verify-20261002 audit-remediation-wave4-20261002 audit-remediation-wave4b-20261002 audit-remediation-wave5a-identity-20261002 audit-remediation-wave5b-offboarding-20261002 audit-remediation-wave5c-authorization-20261002 audit-security-intent-review-20261002 audit/finora-financial-core-20261115 audit/finora-master-prompt-phase0-20261016 audit/finora-stage3-legacy-source-readonly-20261023 audit/full-controls-20261030 audit/owner-live-state-reconcile-20261012 audit/owner-review-20261007 audit/phase1-live-permissions-readonly-20261013 audit/reconcile-live-state-20261006 audit/reconcile-state-20261002 audit/wp0-hardening-baseline-20261102 branding-login-favicon-20261002 c8-workflow-task1 c8-workflow-task2 c8-workflow-task3 chore/wave0-pages-gate-closeout claude-code-plugins-setup design/finora-c01-authoritative-source-draft-20261124 docs-wave4b-verified-20261002 docs/active-company-invoice-release-evidence-20261014 docs/agent-operating-model-20261114 docs/chart-taxpayer-release-evidence-20261004 docs/cloud-only-agent-orchestration-20261115 docs/confirm-finora-product-charter-20261115 docs/continuation-20261030 docs/d4a-verified docs/external-work-review-20261121 docs/finora-audit-continuity-20261014 docs/finora-backup-merge-evidence-20261014 docs/finora-ci-reconciliation-20261122 docs/finora-codex-master-prompt docs/finora-eight-phase-plan-20261011 docs/finora-f002-live-buyer-filter-verified-20261015 docs/finora-license-race-release-evidence-20261014 docs/finora-license-rollout-acceptance-20261015 docs/finora-phase0-repeat-and-pages-nav-verified-20261015 docs/finora-phase0-repeat-evidence-20261015 docs/finora-selectors-release-and-fixture-qa-20261015 docs/finora-stagea-pr240-ci-triage-20261123 docs/finora-test-license-live-pass-20261015 docs/finora-v2-m01-coverage-20261124 docs/handoff-charter-v2-20261124 docs/invoice-product-search-release-20261011 docs/invoice-workspace-release-20261007 docs/phase-status-20261031 docs/phase0-acceptance-release-evidence-20261012 docs/phase0-admin-provision-release-evidence-20261012 docs/phase0-core-bundle-owner-login-open-20261013 docs/phase0-duplicate-js-release-20261016 docs/phase0-f001-auth-rest-shared-timeout-20261013 docs/phase0-f001-owner-login-observed-20261013 docs/phase0-f001-second-device-fail-40s-20261013 docs/phase0-f003-release-verification-20261011 docs/phase0-f004-print-release-evidence-20261012 docs/phase0-f004-watermark-release-evidence-20261012 docs/phase0-f005-large-selector-release-20261012 docs/phase0-f005-release-evidence-20261012 docs/phase0-f006-dark-release-evidence-20261012 docs/phase0-f008-final-pr-closure-evidence-20261012 docs/phase0-f008-reconcile-stale-prs-20261012 docs/phase0-f107-production-evidence-20261012 docs/phase0-kavenegar-otp-preflight-release-20261012 docs/phase0-login-release-evidence-20261012 docs/phase0-login-rest-bootstrap-stage-release-20261012 docs/phase0-owner-app-assets-bundle-release-20261013 docs/phase0-owner-login-csp-release-20261012 docs/phase0-reconcile-postmerge-evidence-20261012 docs/phase0-site-probe-release-evidence-20261012 docs/phase0-startup-release-evidence-20261012 docs/phase3-treasury-release-evidence-20261014 docs/pilot-posted-correction-release-evidence-20261014 docs/pilot-purchase-correction-release-evidence-20261014 docs/print-persian-release-verification-20261011 docs/qa-ci-triage-218-20261122 docs/real-account-qa-20261030 docs/release-state-20261007 docs/seamless-amendment-release-20261014 docs/seamless-document-correction-release-20261014 docs/settings-login-release-20261025 docs/stripe-qa-deployment-evidence-20261011 docs/ux-f2-release-evidence-20261011 docs/ux-f2-release-verification-20261011 docs/wave0-closeout docs/wave2-closeout exec-phase1-architecture exec-phase1-implementation exec-phase1-qa exec-phase1-security-release exec-phase1-ux feat/accounting-document-draft-approval-20261011 feat/accounting-document-release-candidate-20261011 feat/active-company-strict-isolation-20261014 feat/admin-provisioning-reconciled-20261011 feat/admin-secure-user-provisioning-20261011 feat/admin-user-provisioning-merged-20261011 feat/d4a-request-work-queue feat/document-lifecycle-atf-20261118 feat/document-lifecycle-temp-permanent-atef feat/draft-first-attachment-lifecycle-216 feat/finora-offline-encrypted-backup-20261014 feat/finora-phase-a-navigation-20261023 feat/finora-stripe-sandbox-edge-gate feat/immutable-attachment-temporary-vouchers feat/iran-accounting-design-audit feat/journal-document-lifecycle-20261118 feat/journal-rpc-repository-adapter-20261117 feat/office-c7-fulltext-ocr-provenance feat/password-recovery-admin-reset-20261025 feat/pilot-expense-income-inplace-amendment-20261014 feat/pilot-journal-invoice-correction-20261014 feat/pilot-purchase-correction-20261014 feat/pilot-treasury-unallocated-correction-20261014 feat/retain-document-editor-after-save-20261014 feat/seamless-financial-document-correction-20261014 feat/slice-b-tenant-rbac feat/stripe-sandbox-invoice-probe feature/accounting-core-p0 feature/accounting-product-guidance feature/admin-identity-phone-auth feature/commercial-rnd feature/finora-phase1a-supabase-cli-20261016 feature/finora-stage2-manual-canary-20261017 feature/finora-stage3-commercial-payload-20261023 feature/finora-stage3-enforce-invoice-rpc-20261023 feature/finora-stage3-enforce-purchase-red-20261023 feature/invoice-workspace-cleanup feature/phase0-kavenegar-otp-preflight-20261012 feature/ux-commerce-settings-r2 fix-shell-scroll-live-cache-20261002 fix-shell-scrollbar-explicit-ownership-20261002 fix-shell-scrollbar-ownership-20261002 fix-shell-scrollbar-right-edge-20261002 fix/about-bug-report-20261114 fix/active-company-invoice-scope-20261014 fix/active-company-isolation-reconcile-20261014 fix/admin-central-password-reset-20261028 fix/auth-network-diagnostics fix/chart-taxpayer-reference-20261003 fix/combobox-enter-reliability fix/combobox-live-search fix/combobox-production-cache fix/combobox-release-asset-v2 fix/company-edit-action-20261028 fix/company-edit-pilot-delete-20261014 fix/company-form-action-state-20261014 fix/company-form-action-state-rebased-20261014 fix/contact-operational-balance-20261111 fix/dark-theme-contrast fix/financial-lifecycle-recovery-20261124 fix/finora-accounting-test-organization-readiness-20261015 fix/finora-b01-safe-org-switch-20261124 fix/finora-b02-sync-recovery-20261124 fix/finora-b03-conflict-review-20261124 fix/finora-org-license-bootstrap-race-20261014 fix/finora-stage3-posted-source-immutable-20261023 fix/finora-v2-b03-r2-qa-20261124 fix/finora-v2-b03-r3-readonly-20261124 fix/g01-asof-financial-position-20261128 fix/invoice-product-search-rehydrate-20261011 fix/invoice-search-cache-bust fix/issue229-linked-draft-status-20261122 fix/login-assets-retry-20261014 fix/login-inert-startup-20261110 fix/login-member-access-20261101 fix/login-resilience-20261017 fix/login-short-viewport-20261028 fix/login-startup-readiness-20261024 fix/navigation-utilities-placement-20261105 fix/office-c7-source-ref-binding fix/office-c7-source-ref-binding-v2 fix/owner-login-network-20261026 fix/password-recovery-invalid-cancel-20261026 fix/payment-amount-format-20261111 fix/phase0-admin-provision-seat-bootstrap-20261012 fix/phase0-auth-bundled-assets-for-unstable-isp-20261013 fix/phase0-auth-handler-binding-stalled-session-20261012 fix/phase0-login-context-stage-visibility-20261012 fix/phase0-login-single-local-bundle-20261013 fix/phase0-login-site-probe-clarity-20261012 fix/phase0-login-ui-ready-20261012 fix/phase0-modal-dashboard-drill-20261011 fix/phase0-pages-blocking-core-bundles-20261013 fix/phase0-print-no-draft-watermark-20261012 fix/phase0-startup-parallel-asset-load-20261012 fix/phase3-behavioral-verification fix/preserve-pending-edits-20261121 fix/print-persian-digit-consistency-20261011 fix/recovery-login-startup-20261027 fix/report-opening-balance-release-20261130 fix/settings-checkbox-persistence-20261024 fix/taxpayer-arithmetic-20261004 fix/ux-keyboard-search-f2-20261011 fix/wave2-request-input-integrity hardening/c01-source-draft-20261129 hardening/global-draft-conversion-20261113 hardening/wp1-ledger-integrity-20261102 integration/finora-execution-20261124 integration/issue229-ui-qa-20261122 integration/wp1-ledger-core-20261115 integration/wp2-manual-journal-rpc-20261116 main ops-heartbeat-v2-20261002 ops-progress-heartbeat-rule-20261002 ops/wave4-production-20261003 plan/financial-core-phase1-approval-20261016 qa/attachment-allocator-two-session-20261122 qa/draft-first-save-red-evidence-20261122 qa/finora-autopost-retry-identity-red-20261122 qa/finora-identity-rpc-security-tripwire-20261122 qa/finora-issue223-manual-kardex-browser-red-20261123 qa/finora-issue223-stock-real-jwt-20261123 qa/finora-issue238-inventory-count-browser-red-20261123 qa/finora-issue238-save-browser-red-20261122 qa/finora-login-cors-header-preflight-20261025 qa/finora-phase0-saved-session-repeat-20261015 qa/finora-phase5-posted-insert-jwt-red-20261123 qa/finora-stage3-ui-jwt-autopost-20261023 qa/finora-v2-g01-report-reconciliation-20261125 qa/free-supabase-local-wp2-20261116 qa/issue229-approval-boundary-jwt-20261122 qa/issue229-sale-save-linked-draft-red-20261122 qa/phase0-acceptance-start-20261012 qa/phase0-f005-account-project-contract-stress-20261012 qa/phase0-f005-selector-stress-20261012 qa/phase0-f006-dark-contrast-20261012 qa/post-wave4-verification-20261003 qa/posted-source-immutable-jwt-20261122 qa/pr219-wp1-disposable-dburl-proof-20261123 qa/purchase-source-jwt-20261122 qa/real-settings-acceptance-20261025 qa/recovery-mail-acceptance-20261026 qa/source-autopost-jwt-atomicity-20261122 qa/wave0-negative-gate-proof qa/wp2-auth-tenant-e2e-20261117 qa/wp2-authorized-journal-write-20261122 qa/wp2-financial-paths-reconciliation-20261122 qa/wp3-financial-tenant-isolation-20261117 remediation/wave0-liveqa-wave1 remediation/wave2-request-integrity staging/finora-stage22-free-20261022 state-scroll-verified-20261002 state-wave4b-production-20261002 state-wave5a-production-20261002 test/finora-accounting-boot-readiness-20261015 test/finora-f0-02-production-selectors-20261015 test/finora-pages-commerce-event-wiring-20261015 test/finora-pages-invoice-selectors-readonly-20261015 test/finora-stage3-jwt-source-post-20261023 test/phase0-invoice-fixture-bootstrap-20261016 test/phase0-invoice-persistence-20261011 test/phase0-pages-delayed-dispatcher-20261016 ux-scroll-ownership-20261002 work/finora-stage3-enforce-purchase-green-20261023 work/finora-stage3-enforce-sale-green-20261023 work/finora-stage3-payload-green-20261023
md 16.9 KB

PROJECT STATE — FINORA / FACTOR-EASY

MANDATORY CONTINUITY FILE — READ THIS FIRST

Repository: davoodmehraban89/Factor-easy · Canonical branch: main · Product: Finora 1.0

Read AGENTS.md first, then this file. Latest user chat is the only source of new instructions; repo files are continuity/context. Detailed older history remains available in Git history.

Protocol / authority

Verify live GitHub + Supabase before acting; implement/test/fix/retest/commit/verify in vertical slices; update this file with durable implementation state; archive exact production SQL; never call unrun work verified. Owner granted standing authority on 2026-09-30 for in-scope GitHub/Supabase engineering, excluding platform-required confirmations, paid/public/external actions and unsafe destructive financial-history changes. Owner explicitly directed that implementation continue autonomously without waiting for routine confirmations; progress messages/questions must not stop executable work unless the owner explicitly says stop or a real safety/tool blocker requires input.

Current change ledger

Date Request / decision Status Evidence / next action
2026-10-01 Continue Office Slice C autonomously from the current checkpoint. IN PROGRESS C1-C6 are closed with evidence; C7 searchable archive/OCR-text provenance is the active slice.
2026-09-30 Office Slice C4: tenant-safe registration repair + versioned correspondence templates + controlled draft application. IMPLEMENTED / PRODUCTION + ADVERSARIAL + REAL-DOM + SECURITY VERIFIED Production migrations 20260930202526_office_registration_tenant_repair, 20260930202701_office_slice_c4_versioned_templates; verified runtime/test head 481f9fed434f127eaa32ccf8d69c649e783b5cad; Quality 36773156535 PASS including C4 + Real-DOM; Security 36773156559 CodeQL PASS; Pages 36773155535 PASS. Removed ambiguous legacy registration overload, bound registration to organization, added private append-only template versions, server provenance validation and template UI. Evidence: docs/OFFICE_SLICE_C4_VERIFICATION.md.
2026-10-01 Office Slice C5: internal approval/attestation lifecycle. IMPLEMENTED / PRODUCTION + ADVERSARIAL + REAL-DOM + SECURITY VERIFIED Production migrations 20260930203456, 20260930203620, 20260930203709; content-bound SHA-256 approval evidence, explicit approver authorization, reject/rework/new-request semantics, stale-content rejection and AAL metadata. Runtime head 02f76f18c7685a4da88de68972113d32b30a21fb; Quality 36774255459 PASS; Security 36774255463 CodeQL PASS; Pages 36774253349 PASS. Evidence: docs/OFFICE_SLICE_C5_VERIFICATION.md. Not a qualified digital signature.
2026-10-01 Office Slice C6: server-derived SLA reminder/escalation evidence. IMPLEMENTED / PRODUCTION + ADVERSARIAL + REAL-DOM + SECURITY VERIFIED Production migration 20260930204536_office_slice_c6_sla_reminder_escalation; daily reminder dedup, 24h escalation threshold, immutable internal-only evidence, requester/admin authorization, stale/terminal work rejection and cross-tenant denial. Runtime head ba06af2bcaf5b63e37f5421fb49c4246d85ba762; Quality 36775081078 PASS including C6 + Real-DOM; Security 36775081089 CodeQL PASS; Pages 36775080542 PASS. Evidence: docs/OFFICE_SLICE_C6_VERIFICATION.md. No external delivery claim.
2026-10-01 Office Slice C7: searchable archive + OCR provenance/correction. IMPLEMENTED / PRODUCTION + ADVERSARIAL + REAL-DOM + SECURITY VERIFIED Production migrations 20260930205325, 20260930205347; server full-text search across metadata/body/latest OCR, append-only raw OCR provenance and human correction, match-source reporting, bounded query/result size and cross-tenant denial. Runtime head c307422eae508b57e448a3c9b4b3e3506836f3e2; Quality 36776208848 PASS including C7 + Real-DOM; Security 36776208767 CodeQL PASS; Pages 36776208873 PASS. Evidence: docs/OFFICE_SLICE_C7_VERIFICATION.md. C7 does not perform OCR and real Persian OCR accuracy remains unverified.
2026-09-30 Office Slice C3: related-letter graph + structured archive classification/search. IMPLEMENTED / PRODUCTION + ADVERSARIAL + REAL-DOM + SECURITY VERIFIED Production migrations 20260930154625_office_slice_c3_related_archive, 20260930154720_office_c3_event_time_ordering; Quality 36740544828 PASS including C3 + Real-DOM; Security 36740544795 CodeQL PASS; Pages 36740543917 PASS. Transactional tests covered scope/confidentiality isolation, unreadable relation target denial, self/duplicate/cycle denial, latest classification, related graph search and cross-tenant denial; rollback residue zero. Evidence: docs/OFFICE_SLICE_C3_VERIFICATION.md.
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.
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.
2026-09-30 Continue autonomously without routine confirmation pauses. ACTIVE OPERATING DIRECTIVE Applies to reversible in-scope engineering. No claim of background execution.
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.
2026-09-30 ELI-3 secure invitations for named users, bound to email, roles and seat capacity. IMPLEMENTED / PRODUCTION + REAL-DOM + SECURITY VERIFIED Production migrations 20260930051849_enterprise_invitations, 20260930052909_eli3_fk_index_hardening; hash-only token lifecycle, atomic seat-safe acceptance, role assignment, revoke/expire, audit redaction and UI verified. Evidence: docs/ELI_3_INVITATIONS_VERIFICATION.md. External automatic email delivery remains NOT VERIFIED.
2026-09-30 ELI-2 reusable tenant roles; direct member grants remain explicit overrides. IMPLEMENTED / PRODUCTION + REAL-DOM + SECURITY VERIFIED Production migrations 20260930050542_enterprise_reusable_roles, 20260930050904_eli2_role_tenant_hardening; role catalog/permissions/assignments, direct+role union, tenant integrity, commercial entitlement gate, audit and UI verified. Evidence: docs/ELI_2_REUSABLE_ROLES_VERIFICATION.md.
2026-09-30 ELI-1 named-user seats, company capacity and delegated organization admin. IMPLEMENTED / PRODUCTION + REAL-DOM + SECURITY VERIFIED Production migration 20260930045827_enterprise_license_seats_delegated_admin; seat/company limits, delegated core/configure, suspend/reactivate, audit and UI verified. Evidence: docs/ELI_1_ENTERPRISE_LICENSE_VERIFICATION.md.
2026-09-30 Slice B organization tenant/RBAC/shared office foundation. IMPLEMENTED / VERIFIED Tenant/RBAC verification retained.
2026-09-30 Modular organization-wide ERP + office automation/request foundation. SLICE A IMPLEMENTED / VERIFIED Product head df82067ecb1fda9007eb11a30d0a9d7cc1b113cd passed Quality/Security/Pages.
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.

Current production state — 2026-09-30

  • Supabase project hcsixhqbyuhpshfwqpjx: ACTIVE_HEALTHY, PostgreSQL 17.6.1.166, 51 migrations through 20260930205347 office_c7_search_input_guard.
  • Continuity repair: live migration 20260930203839 office_c5_content_digest_hardening was found live but absent from Git; its exact SQL was recovered from Supabase migration history and archived before C6.
  • 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.
  • 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.
  • ELI-2 persistent seeded state: 24 system roles across four organizations, 28 starter role-permission rows, zero persistent member-role assignments.
  • ELI-3 persistent state after tests: zero invitations, zero invitation-role links, zero non-owner members and zero role assignments.
  • ELI-4 persistent organization-unit count remains zero after rollback verification; no test hierarchy residue exists.
  • 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.
  • RLS is enabled on public tenant tables. Security advisor currently reports 20 authenticated-callable public SECURITY DEFINER warnings plus leaked-password protection disabled; C6 public wrappers are SECURITY INVOKER and did not increase this count.
  • Performance advisor reports only unused-index informational notices; no unindexed foreign-key findings remain.
  • Production invoice history remains unchanged; controlled accounting cutover is not part of ELI work.

Implemented foundations

  • Slice A: server-enforced commercial module entitlements, module launcher, office registries/correspondence/private scans, configurable request-type foundation.
  • Slice B: organizations, hierarchical units, memberships, direct per-member module capabilities, row scopes, confidentiality, organization-aware sync/license context, shared office records/referrals/audit.
  • ELI-1: named-user seats, company capacity, delegated customer admin and member lifecycle.
  • ELI-2: reusable roles, role permissions, multi-role assignment, direct+role effective authorization and role audit.
  • ELI-3: secure hash-only invitations, email binding, role-bound acceptance, atomic seat enforcement, revoke/expire lifecycle, invitation UI and URL acceptance.
  • ELI-4: typed organization tree, tenant/cycle integrity, capacity dashboard and strict core-admin shell gating.
  • Office C1 runtime/server foundation: registered correspondence identity/history protection, monotonic status, immutable audit evidence, authenticated read-evidence RPC and open-flow integration.
  • 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.
  • Office C3: append-only reply/related-letter graph, cycle/duplicate protection, append-only archive classification, latest-event semantics and server-filtered archive/related search.
  • Office C4: tenant-safe atomic registration, private append-only versioned correspondence templates, server-validated template provenance and controlled new-letter template application.
  • Office C5: content-bound internal approval/rejection with explicit approver authorization, append-only evidence, AAL metadata, stale-content detection and a strict non-qualified-signature boundary.
  • Office C6: server-derived SLA queue, daily reminder deduplication, 24-hour escalation threshold, internal-only immutable evidence, stale/terminal-work rejection and requester/admin authorization.
  • Office C7: tenant-safe server full-text archive search across metadata/body/latest OCR, append-only OCR provenance/correction evidence, bounded search inputs and explicit no-real-OCR claim.
  • Existing accounting Phases 1–6 and Iran enterprise foundation remain accepted; ELI work must not rewrite posted accounting history.

Invariants

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.

Required evidence

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/OFFICE_SLICE_C3_VERIFICATION.md · docs/OFFICE_SLICE_C4_VERIFICATION.md · docs/OFFICE_SLICE_C5_VERIFICATION.md · docs/OFFICE_SLICE_C6_VERIFICATION.md · docs/OFFICE_SLICE_C7_VERIFICATION.md · docs/PRODUCTION_RUNBOOK.md · supabase/migrations/.

NOT VERIFIED / external boundary

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.

Exact next executable work

  1. Start Office Slice C8 as the next bounded internal-office vertical slice: mature correspondence workflow policy (configurable workflow stages, authorized transition rules and immutable transition evidence) without claiming external BPM/provider integration; preserve all C1-C7/accounting/Golden/ELI gates.
  2. Keep qualified digital signature and external delivery adapters explicitly outside verified scope until real providers are connected and tested.
  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.
  4. External invitation email delivery remains an adapter boundary; do not claim it until a real provider is connected and tested.
  5. Continue compliance/accounting roadmap only with sourced legal/tax/accounting evidence and owner-approved destructive cutovers.