Commit Graph

16 Commits

Author SHA1 Message Date
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
Claude
3011b31ace
fix(ci): restore pytest.ini to match passing commit + clean CI YAML
Root cause confirmed: CI failure is NOT from our code changes.
The router.py and pytest.ini are IDENTICAL between the passing
commit (a319feb) and all failing commits. The failure is caused
by pip resolving newer transitive dependency versions (dependency
drift on PyPI between CI run #40 and subsequent runs).

Changes:
- Restored pytest.ini exactly as passing commit had it
  (with asyncio_default_fixture_loop_scope = function)
- Cleaned up CI YAML: removed debug diagnostic steps
- Restored clean architecture_brief + pytest pipeline

https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
2026-04-17 05:54:32 +00:00
Claude
2423896232
fix(ci): add import diagnostics + pin pytest-cov + verbose error output
Add diagnostic steps to CI:
- Print installed test dep versions after pip install
- Verify app.main import chain before running pytest
- Show --tb=short for better error visibility

Pin pytest-cov==5.0.0 to prevent breaking transitive dep updates.

https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
2026-04-17 05:46:10 +00:00
Claude
6f4421123e
fix(ci): pin test deps to prevent breaking updates + restore architecture_brief
Root cause: pytest/pytest-asyncio/aiosqlite minimum version pins (>=X)
allowed pip to install latest versions that may have breaking changes.
The first CI run (a319feb) passed because it ran before the update;
all subsequent runs failed with exit code 4 (collection error).

Fix: Pin upper bounds on test dependencies:
- pytest>=8.0.0,<8.4.0
- pytest-asyncio>=0.24.0,<0.26.0
- aiosqlite>=0.20.0,<0.21.0
- httpx>=0.28.1,<0.29.0

Also restore architecture_brief.py to CI pipeline (was removed
during debugging, now restored since issue was deps not script).

https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
2026-04-17 04:48:46 +00:00
Claude
6d77e7b0b4
ci(dealix): temporarily remove architecture_brief from CI to isolate test failure
The backend pytest step fails with exit code 4 (collection error).
Removing architecture_brief step to isolate whether the script
interferes with the pytest working directory or Python environment.

https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
2026-04-17 04:34:16 +00:00
Claude
f5c5aafbb0
feat(dealix): wire all Tier-1 APIs to real database — Sprints A-G
Sprint A — Executive Room real data:
  Rewrote executive_roi_service.py (20→158 lines) to aggregate from 7 live
  services: deals (revenue/pipeline/win_rate), approval SLA (pending/warning/
  breach from _dealix_sla), connector health (IntegrationSyncState), compliance
  posture (saudi_compliance_matrix), contradictions (contradiction_engine),
  strategic deals, evidence packs.

Sprint B — Approval Center live:
  Wired approval_center.py to query real ApprovalRequest table with SLA data
  from payload["_dealix_sla"]. Approve/reject endpoints update real DB records
  with reviewed_at timestamp.

Sprint C — Saudi Compliance live:
  Wired saudi_compliance.py to call saudi_compliance_matrix service methods
  (get_matrix, get_posture, get_risk_heatmap) with real AsyncSession + tenant_id.

Sprint D — Contradiction + Evidence Pack DB:
  Wired contradiction.py and evidence_packs.py to real database via
  contradiction_engine and evidence_pack_service. All CRUD operations
  now persist to PostgreSQL with proper tenant isolation.

Sprint F — Operating Plane:
  Created CODEOWNERS file mapping sensitive paths to @VoXc2.
  Added architecture_brief.py step to CI pipeline (runs before pytest).

Sprint G — OWASP LLM:
  Added OWASP LLM Top 10 review + architecture brief validation to
  release-prep.md (steps 10-11).

https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
2026-04-16 13:44:35 +00:00
Sami Assiri
378ea5f742 chore: snapshot Dealix salesflow phase2 for audit worktree
Made-with: Cursor
2026-04-04 18:04:21 +03:00
Lucas Valbuena
bbad8adb71
Update FUNDING.yml 2026-02-06 23:12:44 +01:00
Lucas Valbuena
b623c36421
Remove custom funding link from FUNDING.yml 2025-11-16 16:10:47 +01:00
Lucas Valbuena
7bd08c2415
Update FUNDING.yml 2025-11-01 12:06:16 +01:00
Lucas Valbuena
3a9b60f108
Update FUNDING.yml 2025-08-29 11:39:37 +02:00
Lucas Valbuena
dce33b15cb
Update FUNDING.yml 2025-08-29 11:37:02 +02:00
Lucas Valbuena
8a5fa6dc62
Update FUNDING.yml 2025-08-11 18:11:27 +02:00
Lucas Valbuena
d1bb01c375
Update FUNDING.yml 2025-07-18 14:39:44 +02:00
Lucas Valbuena
5d92b2eb09
Update FUNDING.yml 2025-07-16 14:32:48 +02:00
Lucas Valbuena
7954f1f745
Create FUNDING.yml 2025-07-16 14:32:04 +02:00