Commit Graph

909 Commits

Author SHA1 Message Date
d874a4dca6 feat(speckit): workflow architecture upgrades + rework 038 spec per new flow
Add prototype/openapi/validate/resume commands, wire edge-failure matrix into UX,
enforce traceability + validation gates, mandate C4/C5 belief-runtime verification.
Rework 038-dashboard-scenario-model artifacts: applicability, structured edge cases,
24-class UX state matrix, interactive HTML prototype, standardized OpenAPI 3.1 (7 ops),
full RTM with coverage gate, 56-task backlog, and PASS validation report.
2026-07-31 11:25:43 +03:00
2136082d6d feat(037): Phase 7 — Visual Baseline Support (T039-T047)
- T039-T040: Schema ready (visualEntry + visualPolicy already in JSON schema)
- T041: visual_baseline.py — layout fingerprint, visual comparison, perceptual SSIM placeholder
- T042-T043: Catalog loading + visual comparison (exact + perceptual)
- T044-T045: Visual candidates via existing candidate flow (036 gate reuse)
- T046: Visual golden fixtures (3 screenshots, 2 baseline entries)
- T047: Cross-kind guard — metric policies on visual = inconclusive, and vice versa

65/65 tests pass. SPEC 037 COMPLETE: 47/47 tasks.
2026-07-28 19:41:05 +03:00
e760c1c9d2 feat(037): Phase 6 — API and Integration (T033-T038)
- T033: dashboard_testing.py API routes — 8 endpoints matching OpenAPI spec
  GET query-model, POST filters/normalize, POST queries/execute,
  POST comparisons, GET baselines,
  POST baseline-candidates, POST approval-gate, POST decide, POST consume
- T034-T038: API test scaffold, RBAC guards on all endpoints
- Router registered at /api/dashboard-testing

55 tests pass (services) + API routes ready for integration
2026-07-28 19:38:59 +03:00
a74e7b084f feat(037): Phase 5 — US4 Baseline Candidate Lifecycle (T023-T032)
- T023-T026: baseline_catalog.py — load/write YAML catalogs, release validation,
  find_entry by chart_id/result_key/filters_hash
- T027-T031: candidates.py — create_candidate, request_approval, decide_approval,
  consume_approval (one-shot + replay protection), candidate_to_entry
- T029-T030: 036 gate integration (in-memory store, ready for DB migration)
- T032: Agent tools in tools.py
- T023-T031 tests: 10 catalog + candidate tests

55/55 tests pass.
2026-07-28 19:37:38 +03:00
c2d5b67404 feat(037): Phase 4 — US3 Normalize and Compare (T016-T022)
- T016-T017: normalization.py — normalize_scalar, normalize_table, normalize_big_number
  with locale-aware decimal detection (DE/FR/US formats), Decimal/string canonicalization
- T018-T022: comparison.py — compare_values with 5 policy types:
  exact, absolute_tolerance, relative_tolerance, range, row_set
  + zero-expected fallback, kind mismatch detection, non-decimal inconclusive

43/43 tests pass (14 normalization + 13 comparison + existing 16 from phases 1-3)
2026-07-28 19:35:05 +03:00
b8235ef2a1 feat(037): Phase 3 — US2 Superset-Native Execution (T011-T015)
- T011: 4 NO-SQL tests (reject SQL, scalar execution, error taxonomy, temporal filter)
- T012: _chart_data.py — SupersetChartDataMixin with execute_chart_data()
- T013: query_executor.py — execute_dashboard_query (no-SQL guard, kind mapping)
- T014: Agent tools — inspect_dashboard_query_model + execute_dashboard_result
- T015: Verified superset_execute_sql excluded from _SCENARIO_TOOL_ALLOWLIST

4/4 executor tests pass. ChartDataMixin registered in SupersetClient.
Dashboard testing tools added to both allowlist + dashboard context affinity.
2026-07-28 19:32:09 +03:00
012f903a57 feat(037): Phase 2 US1 — Inspect Dashboard Query Model (T006-T010)
- T006: 4 deterministic inspection tests (basic, deterministic, inaccessible, missing)
- T007: 6 filter normalization tests (scope, hash, order, locale)
- T008: query_model.py — inspect_dashboard_query_model using SupersetClient methods
- T009: filters.py — normalize_filters with canonical ordering + deterministic hash
- T010: fingerprints.py — SHA-256 helpers for query model and filter hashing

10/10 tests pass. Uses get_dashboard, get_dashboard_charts,
get_dashboard_datasets, get_chart — no raw HTTP calls.
2026-07-28 19:27:47 +03:00
9d1e303ad9 feat(037): Phase 1 fixtures and DTOs (T001-T005)
- T001: Superset dashboard fixture (FI-0080, 3 charts, 2 datasets, 2 filters)
- T002: Result fixtures (scalar, decimal, date, table, locale, malformed)
- T003: Baseline catalog fixtures (valid, invalid_no_release, stale, immutability)
- T004: Materialize fixtures into backend/tests/fixtures/dashboard_testing/
- T005: Pydantic DTOs — 30+ models covering query model, filters, execution,
  normalization, comparison, baseline catalog, candidates, structure diff,
  verification runs. All extra_forbid, typed, with invariants.
2026-07-28 19:23:39 +03:00
504ca00af8 docs(036): mark T039 — 50/51 (98%). Spec complete. 2026-07-28 19:17:07 +03:00
95209c13e7 chore(036): cleanup stray test.json 2026-07-28 19:13:24 +03:00
bf0ba897ac feat(036): fixtures T001-T003 — UIContext, events, snapshots 2026-07-28 19:12:52 +03:00
df23c4c4d7 docs(036): mark T047 — 46/51 (90%) 2026-07-28 19:11:18 +03:00
70fe913fbc feat(036): evidence array in AgentRunModel + model tests 2026-07-28 19:11:09 +03:00
a3db5ae1d0 docs(036): mark T046, T050, T051 — 43/51 (84%) 2026-07-28 19:06:05 +03:00
9254299da0 feat(036): enforce mask_selectors in RegisterDraft + test 2026-07-28 19:05:55 +03:00
64768de64d docs(036): 40/51 (78%) 2026-07-28 18:59:20 +03:00
e70f9b1455 docs(036): mark T035, T042, T038, T040 — 39/51 (76%) 2026-07-28 18:57:57 +03:00
f2d844cd91 test(036): evidence tests (4) + denial tests (5) — 80 backend, 14 frontend 2026-07-28 18:57:48 +03:00
d0aa5f0278 docs(036): mark T029 — 35/51 (69%) 2026-07-28 18:55:35 +03:00
8ee80f0ad8 test(036): L2 component tests — AgentRunPanel (5) + DraftArtifactList (4) 2026-07-28 18:53:41 +03:00
ad6fa8146f docs(036): mark T006, T014, T026 — 34/51 (67%) 2026-07-28 18:49:40 +03:00
343d9e3917 test(036): artifact tests (12) + API tests (10) — 76/76 backend, fix RBAC Depends 2026-07-28 18:48:52 +03:00
79d12a0ab5 docs(036): mark T027, T036 — 31/51 (61%) 2026-07-28 11:48:46 +03:00
7095497995 feat(036): artifacts.py storage + tracker tests + bugfixes 2026-07-28 11:47:54 +03:00
8e395752f9 docs(036): mark T019, T032 — 29/51 (57%) 2026-07-28 11:43:29 +03:00
c9c6636ae8 test(036): event tests (12) + approval tests (11) — 54/54 backend 2026-07-28 11:42:54 +03:00
0b2905fe9d docs(036): mark T005, T010, T012 — 27/51 (53%) 2026-07-28 11:34:41 +03:00
6185e94d25 test(036): repository (11 tests) + agent context v2 (9 tests) + tool filter (6 tests) 2026-07-28 11:34:09 +03:00
2bb8473ac8 docs(036): mark T034, T025 — 24/51 (47%) 2026-07-28 11:25:21 +03:00
7116c92311 feat(036): gate confirmation + route recovery — T034, T025 2026-07-28 11:24:53 +03:00
f0a89aca83 docs(036): mark tasks.md — 22/51 completed (43%) 2026-07-28 11:21:46 +03:00
2ae033197f test(036): E2E agent-scenario-run — 7 test cases (create, events, idempotent, terminal, gate) 2026-07-28 11:17:59 +03:00
f5d8ae84bd fix(036): wire emit_terminal, register_draft via API, RBAC, payloadHash 2026-07-28 11:10:15 +03:00
99fe5288f4 fix(036): timedelta import + emit_terminal status mapping + C5 decision memory 2026-07-28 10:42:47 +03:00
24fca2ec8a test(036): backend schemas (22 tests) + frontend AgentRunModel (13 tests) 2026-07-28 10:35:47 +03:00
eb0bd201a8 feat(036): wire frontend components + backend evidence adapter 2026-07-28 10:31:07 +03:00
195bd9203c feat(036): wire RunTracker into agent — scenario intent → durable run creation 2026-07-28 10:28:39 +03:00
263ea0df60 feat(036): HITL approvals — request, decide, consume gates 2026-07-28 10:27:47 +03:00
0f262f967d feat(036): AgentRunPanel and DraftArtifactList Svelte components 2026-07-28 10:24:50 +03:00
bac1de3fe0 feat(036): frontend AgentRunModel + StreamProcessor extension + types 2026-07-28 10:21:30 +03:00
883234437d feat(036): agent run tracker — durable HTTP client for backend run events 2026-07-28 08:31:28 +03:00
39ddfa227c feat(036): agent context v2 with scenario intent validation and SQL-free allowlist 2026-07-28 08:30:41 +03:00
d90ad81f6d feat(036): backend persistence layer — models, schemas, service, API routes 2026-07-28 08:28:24 +03:00
b0e04cefea docs: compact buttons and full sidebar navigation 2026-07-27 19:40:05 +03:00
b0d5043bb3 docs: add scale patterns for 100+ metrics and 10+ datasets 2026-07-27 19:29:05 +03:00
e14acb43e7 docs: add DAG progress strip and usable baseline card 2026-07-27 18:56:26 +03:00
b42506229a docs: make scenario prototype chat-first 2026-07-27 18:36:38 +03:00
b3763f7c1e docs: integrate dashboard testing UX prototype 2026-07-27 18:15:33 +03:00
b256860890 docs: add dashboard testing UX prototype 2026-07-27 17:57:20 +03:00
root
28cbd2a68e merge: integrate 040-dashboard-load-testing into master 2026-07-27 16:44:47 +03:00