mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 15:29:36 +00:00
TASK-001 (prep) — Repository Extraction Script:
scripts/extract_dealix_repo.sh — automates git filter-repo extraction
of Dealix-only paths to new GitHub org. Preserves commit history.
Awaits founder decision on org name.
TASK-003 — Python Dependency Modernization:
backend/pyproject.toml — full project spec with pinned versions:
- fastapi, pydantic, sqlalchemy, asyncpg pinned
- OpenTelemetry packages now included
- pytest==8.3.4, pytest-asyncio==0.24.0 (stable)
- Dev group with ruff, mypy, testcontainers
Ready for uv sync to generate uv.lock.
TASK-004 — Node Dependency Hygiene:
frontend/package.json — pinned packageManager=pnpm@9.12.0
and engines.node >=20.10.0 <21.0.0
TASK-005 — Secrets Audit Infrastructure:
.pre-commit-config.yaml — gitleaks + detect-private-key + detect-aws
+ ruff auto-fix + truth-registry-validator local hook
docs/internal/rotation_log.md — rotation tracking template with
scan commands (gitleaks, trufflehog3) and forbidden practices
TASK-006 — Legal Foundation Tracker:
docs/internal/legal_status.md — tracks:
- Company incorporation options (MISA vs DIFC vs ADGM)
- IP assignment requirements
- Privacy Policy / ToS / DPA review status
- Trademark filing (KSA, UAE, Egypt, Jordan)
- PDPL / ZATCA / NCA / SDAIA regulatory status
- Professional indemnity + cyber + general insurance
TASK-010 (complete) — Truth Registry Tooling:
scripts/validate_truth_registry.py — validates TRUTH.yaml structure,
status values, and claims_registry.yaml alignment
.github/workflows/truth-validation.yml — CI workflow on changes to
truth registry or claims registry
TASK-101 — Release Readiness Gate (blueprint-spec):
scripts/release_readiness_gate.py:
- Required artifacts check (11 files)
- TRUTH.yaml field validation
- Forbidden claims scan in public docs
- Architecture brief sub-gate
Complements release_readiness_matrix.py (runtime checks).
Blueprint saved:
DEALIX_EXECUTION_BLUEPRINT.md — authoritative execution doc
Updated:
release_readiness_matrix.py — now 53/53 checks (was 41/41)
docs/execution_log.md — full task tracking
All 3 gates GREEN:
Architecture Brief: 40/40
Release Readiness Matrix: 53/53
Release Readiness Gate: PASS
Remaining P0 founder decisions (cannot be automated):
- TASK-001: GitHub org name + run extraction
- TASK-006: Entity incorporation + counsel engagement
https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
5.5 KiB
5.5 KiB
DEALIX — Tier-1 Company Execution Blueprint
This is the authoritative execution blueprint for Dealix. Version: 1.0.0 Last updated: 2026-04-17 Execution status: See
docs/execution_log.md
How to Use This Blueprint
- Read
docs/internal/STATE_AUDIT.mdfirst — honest current state - Check
docs/execution_log.md— what's done, what's next - Consult
docs/registry/TRUTH.yaml— canonical capability status - Check
commercial/claims_registry.yaml— what you can/can't claim publicly - Run gates:
python scripts/architecture_brief.py— 40/40 governance checkpython scripts/release_readiness_matrix.py— 41/41 runtime checkpython scripts/release_readiness_gate.py— blueprint-spec gatepython scripts/validate_truth_registry.py— truth/claims alignment
Executive Summary
Dealix is the Arabic-first, PDPL-native, decision-grade Revenue OS for enterprises in Saudi Arabia and the GCC. This blueprint defines Tier-1 quantitatively and provides execution tasks to reach it.
Current state (from State Audit):
- Pre-revenue, pre-production
- Strong architecture (~103 files, 11,731 lines, 28 commits)
- Golden path, trust enforcement, structured outputs, Saudi workflow: LIVE
- RLS, idempotency, durable execution, OTel: CODE READY, not yet in production
- Repository separation and dependency drift: BLOCKERS
Tier-1 definition — 11 quantitative thresholds:
- Availability ≥ 99.95%
- p95 API latency < 300ms
- p95 Golden path latency < 5s
- Deployment frequency ≥ 5/week
- Lead time for changes < 1 business day
- Change failure rate < 15%
- MTTR < 30 minutes
- SOC 2 Type II + PDPL-compliant
- KSA data residency available
- NPS ≥ 40 after 3 months
- NRR ≥ 110% after 18 months
Immutable Guardrails
- Never merge PR that fails Release Readiness Gate
- Never expose UI capability without runtime evidence
- Never mark task "done" without passing Acceptance + Verification
- Never introduce dependencies without pinning + SBOM
- Never commit secrets — use AWS Secrets Manager / Vault / Doppler
- Never deploy on Friday after 14:00 KSA time
TASK INDEX (P0 first)
P0 — Blockers
- TASK-001: Extract Dealix into own repo →
scripts/extract_dealix_repo.shready - TASK-002: Monorepo restructure (depends on 001)
- TASK-003: Fix Python dependency drift →
pyproject.tomlready for uv - TASK-004: Fix Node dependency drift →
package.jsonpinned, needs pnpm-lock - TASK-005: Secrets audit + rotation →
rotation_log.md+.pre-commit-config.yamlready - TASK-006: Legal foundation → tracker at
docs/internal/legal_status.md
P1 — Foundation
- TASK-010: Canonical truth registry →
TRUTH.yaml+claims_registry.yamlDONE - TASK-020: RLS enforcement → migration
20260417_0002_add_rls.pyDONE - TASK-022: Idempotency coverage → middleware + service DONE
- TASK-030: Golden path E2E →
services/golden_path.pyDONE - TASK-050: LLM router with cost guards →
services/model_router.pyexists - TASK-080: OTel instrumentation →
observability/otel.py+ gateway span DONE - TASK-100: CI workflow →
dealix-ci.ymlexists with architecture + release matrix - TASK-101: Release Readiness Gate →
release_readiness_gate.pyDONE
P2 — Productization
- TASK-102: Feature flags (future)
- TASK-110: Approval Center surface → DONE (backend + frontend)
- TASK-120: Sales enablement assets → one-pager + marketer hub DONE
P0 Special
- TASK-999: State Audit →
docs/internal/STATE_AUDIT.mdDONE
Blueprint-Execution Progress
| Task | Status | Evidence |
|---|---|---|
| TASK-999 | DONE | docs/internal/STATE_AUDIT.md |
| TASK-001 (prep) | READY | scripts/extract_dealix_repo.sh — founder decision pending |
| TASK-003 (pyproject) | DONE | backend/pyproject.toml |
| TASK-004 (pin) | PARTIAL | frontend/package.json pinned; pnpm-lock.yaml needs generation |
| TASK-005 (pre-commit) | DONE | .pre-commit-config.yaml + rotation_log.md |
| TASK-006 | DONE | docs/internal/legal_status.md |
| TASK-010 | DONE | TRUTH.yaml + claims_registry.yaml + validator + CI |
| TASK-020 (RLS) | DONE | migration + middleware + helpers |
| TASK-022 (idempotency) | DONE | middleware + service + model |
| TASK-030 (golden path) | DONE | golden_path service + API |
| TASK-080 (OTel) | DONE | observability/otel.py + gateway span |
| TASK-100 (CI) | DONE | .github/workflows/dealix-ci.yml |
| TASK-101 (gate) | DONE | scripts/release_readiness_gate.py |
| TASK-110 (Approval Center) | DONE | api/v1/approval_center.py + frontend |
| TASK-120 (sales pack) | DONE | revenue-activation/sales-pack/* |
Red Flags That HALT Execution
- Credential found in git history still active
- Test claimed to pass but actually skipped
- TODO in security-critical code paths
- LLM prompt with absolute claims ("always", "never", "100%")
- UI capability not backed by feature flag or telemetry
- Customer-facing claim not in
claims_registry.yaml - Dependency with CVE ≥ 7.0
- Infrastructure not tagged
project=dealix
Next Actions for Founder
- TASK-001: Decide GitHub org name (
dealix-io?) and runscripts/extract_dealix_repo.sh - TASK-006: Engage Saudi counsel for privacy/ToS review
- TASK-006: Decide entity structure (MISA vs DIFC)
- TASK-006: File trademark in KSA
Everything else in this blueprint can be executed by coding agents without founder intervention.