system-prompts-and-models-o.../salesflow-saas/docs
Claude 38e9d02075
feat(dealix): close ALL 4 Tier-1 runtime gaps (Programs E, F, G, K, J)
Program F — Multi-Tenancy RLS (Row-Level Security):
  alembic 20260417_0002_add_rls.py: Enables RLS on 23 tenant-scoped tables.
  database_rls.py: set_tenant_context() helpers for SET LOCAL app.tenant_id.
  middleware/tenant_rls.py: Extracts tenant_id from JWT on every request.
  Default-deny when no context. PostgreSQL only (CI safe on SQLite).
  Result: OWASP A01:2025 — access control enforced at DB layer.

Program G — Idempotency Standard:
  models/idempotency_key.py: IdempotencyKey table with TTL + SHA256 hash.
  services/idempotency_service.py: get_existing/store with request fingerprint.
  middleware/idempotency.py: HTTP middleware on POST/PUT/PATCH.
  Result: Duplicate side effects prevented on retry.

Program E — Persistent Durable Execution:
  models/durable_checkpoint.py: DurableCheckpoint with sequence_num + status.
  services/durable_runtime.py: start_run/checkpoint/complete/resume/list_incomplete.
  Result: Workflows survive crashes — resume from last persisted checkpoint.

Program K — OpenTelemetry:
  observability/otel.py: init/span/inject_correlation_id with graceful
    degradation when OTel packages absent.
  openclaw/gateway.py: Wraps execute() in span, binds correlation_id to
    trace_id. Bridge between business correlation and production observability.

Program J — Release Gate Hardening:
  docs/governance/release-gates.md: Documents 3 mandatory gates.
  .github/workflows/dealix-ci.yml: Adds release_readiness_matrix as CI step.
  release_readiness_matrix.py: Updated to check 41/41 components.

Verification:
  architecture_brief.py:     40/40 PASS
  release_readiness_matrix.py: 41/41 PASS

https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
2026-04-17 10:12:04 +00:00
..
adr feat(dealix): complete Tier-1 Sovereign Enterprise Growth OS 2026-04-16 12:48:13 +00:00
governance feat(dealix): close ALL 4 Tier-1 runtime gaps (Programs E, F, G, K, J) 2026-04-17 10:12:04 +00:00
legal Add complete launch infrastructure: models, APIs, agents, compliance, docs, knowledge base 2026-03-31 07:57:48 +00:00
AGENT-MAP.md chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
ai-operating-model.md feat(dealix): complete Tier-1 Sovereign Enterprise Growth OS 2026-04-16 12:48:13 +00:00
API-MAP.md Add complete launch infrastructure: models, APIs, agents, compliance, docs, knowledge base 2026-03-31 07:57:48 +00:00
ARCHITECTURE.md Add complete launch infrastructure: models, APIs, agents, compliance, docs, knowledge base 2026-03-31 07:57:48 +00:00
current-vs-target-register.md feat(dealix): Tier-1 closure program — 10 tracks complete 2026-04-16 13:08:26 +00:00
CUSTOMER_OS_ONBOARDING_AR.md chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
DATA-MODEL.md Add complete launch infrastructure: models, APIs, agents, compliance, docs, knowledge base 2026-03-31 07:57:48 +00:00
DEALIX_NEXT_LEVEL_MASTER_PLAN_AR.md chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
dealix-six-tracks.md feat(dealix): complete Tier-1 Sovereign Enterprise Growth OS 2026-04-16 12:48:13 +00:00
DEPLOYMENT-NOTES.md Add complete launch infrastructure: models, APIs, agents, compliance, docs, knowledge base 2026-03-31 07:57:48 +00:00
DOCKER_FULL_STACK.md chore(dealix): launch runbooks, staging env templates, SQLite init on startup, product journey test 2026-04-12 11:01:09 +00:00
execution-matrix-90d-tier1.md feat(dealix): complete Tier-1 Sovereign Enterprise Growth OS 2026-04-16 12:48:13 +00:00
FULL_NEXT_STEP_AND_STACK_EXPANSION_AR.md feat(dealix): full execution plan + endpoint inventory + customer docs 2026-04-17 06:23:01 +00:00
INTEGRATION_MASTER_AR.md chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
LAUNCH_CHECKLIST.md chore(dealix): launch runbooks, staging env templates, SQLite init on startup, product journey test 2026-04-12 11:01:09 +00:00
MARKET_POSITIONING_AR.md chore(dealix): launch runbooks, staging env templates, SQLite init on startup, product journey test 2026-04-12 11:01:09 +00:00
MASTER_REMAINING_SCOPE_MAP.md docs(dealix): add Master Remaining Scope Map 2026-04-17 05:08:47 +00:00
NEXT_STEP_AND_STACK_RECOMMENDATIONS_AR.md feat(dealix): golden path service + correlation_id + stack recommendations 2026-04-17 05:59:32 +00:00
STAGING_ENV_CHECKLIST.md chore(dealix): launch runbooks, staging env templates, SQLite init on startup, product journey test 2026-04-12 11:01:09 +00:00
tier1-master-closure-checklist.md feat(dealix): Tier-1 closure program — 10 tracks complete 2026-04-16 13:08:26 +00:00
ULTIMATE_EXECUTION_MASTER_AR.md chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00