Commit Graph

153 Commits

Author SHA1 Message Date
fa987d7ea3 chore(security): adopt standard gitleaks scan 2026-10-13 10:11:13 +03:00
31c08cfa65 test(logging): set capture level during test calls 2026-10-12 23:48:21 +03:00
3a8ac894e7 fix(git): bind drift checks to source dashboard identity 2026-10-12 21:54:37 +03:00
1af6b1a89a fix(publication): identify source by origin only 2026-10-12 13:17:25 +03:00
6c97416bf8 feat(dashboard-testing): bind capture policy intent to observed query 2026-10-12 10:46:42 +03:00
c917ea6b7f fix(api): exclude unapproved releases from launch options 2026-10-12 06:29:09 +03:00
3dae37b812 test(backend): align maintenance and profile contract fixtures 2026-10-12 04:57:39 +03:00
06b3d50ea5 test(api): author mandatory prerequisite fixtures 2026-10-12 04:22:30 +03:00
9f7cd5a72f test(backend): author current prerequisite fixtures 2026-10-12 03:49:48 +03:00
84d3926631 test(scenario): isolate owned rows and terminal signal contracts 2026-10-12 03:09:31 +03:00
e7ad47f582 fix(mcp): align capture catalog with current native contract 2026-10-12 01:52:01 +03:00
ed9eb2581a feat(git): persist explicit PROD verification decisions 2026-10-12 00:08:01 +03:00
a6a14114d4 fix(dashboard-testing): expose explicit query capability unavailable 2026-10-11 22:43:35 +03:00
f343bcbc3b test(maintenance): preserve union permission denial and no effects 2026-10-11 22:34:54 +03:00
8c7fd7b32d fix(dashboard-testing): preserve current capability refusal codes 2026-10-11 22:12:14 +03:00
4ba439c4c9 fix(deployment): verify PROD before external deployment 2026-10-11 21:43:56 +03:00
403328e63a test(maintenance): declare authored banner environments 2026-10-11 21:43:29 +03:00
2aaf28eca8 fix(publication): refuse source repository before intent 2026-10-11 21:12:14 +03:00
bc5bb86245 test(maintenance): retain required environment identity in event projections 2026-10-11 20:52:32 +03:00
100d993acd test(dashboard-testing): use approved current publication revision fixtures 2026-10-11 20:36:15 +03:00
b02009faec test(dashboard-testing): author current snapshot metadata explicitly 2026-10-11 19:24:11 +03:00
7594af99fd test(dashboard-testing): author explicit inheritance and profile revisions 2026-10-11 19:23:32 +03:00
57de1c73f5 test(dashboard-testing): clean exact committed scenario fixtures 2026-10-11 18:46:45 +03:00
03c9a8ff4e test(agent-runs): declare current draft kind in download fixtures 2026-10-11 11:58:52 +03:00
c97cf4f97e test(dashboard-testing): align current OpenAPI contract navigation 2026-10-11 11:13:51 +03:00
703c4f4fdc fix(dashboard-testing): distinguish capture request and server failures 2026-10-11 11:04:37 +03:00
917b192e64 test(dashboard-testing): author current structural editor prerequisites 2026-10-11 10:07:32 +03:00
c99d955e6e fix(dashboard-testing): match native capture to registered actor ID 2026-10-11 05:45:18 +03:00
ec21dc3fa7 fix(logging): identify approval refusal contracts safely 2026-10-11 03:04:39 +03:00
c4ee92ed7f fix(dashboard-testing): enforce baseline reason policy in the service 2026-10-11 02:55:25 +03:00
52a4a5777c test(dashboard-testing): author a valid API environment identity 2026-10-11 02:46:39 +03:00
45fcf924a8 test(dashboard-testing): start API scenarios from exact catalog revisions 2026-10-11 02:02:48 +03:00
8020590990 test(dashboard-testing): preserve current verification evidence and durability 2026-10-10 23:53:57 +03:00
a8a0ca0839 test(dashboard-testing): issue isolated current authority for API lifecycles 2026-10-10 23:40:55 +03:00
2d24d9ce66 fix(dashboard-testing): report unavailable publication verification safely 2026-10-10 23:33:25 +03:00
c97c3a725f test(api): bind reference capture guards to current native contract 2026-10-10 19:58:48 +03:00
0651179303 Merge branch 'master' into stage1/table-durable-20261007 2026-10-10 17:36:17 +03:00
ebaf1d1cff test(dashboard-testing): activate the evidence hold in the remaining suites
The previous fixture translation covered the registry and execution suites; the
same defect class was still live everywhere else.  Every DRAFT write consults the
native evidence hold, the product never creates that state implicitly, so a test
whose storage root is not activated refuses with
NATIVE_RESULT_RETENTION_UNAVAILABLE before reaching anything it asserts.

Fixed in this commit (root built by the test itself, activation made explicit):
- services/dashboard_testing/scenario: test_pack_materializer.py,
  test_pack_materializer_errors.py and test_pack_registry.py each set
  DRAFT_STORAGE_ROOT to an unactivated temp dir; their storage_root fixture now
  activates it.  test_metric_graph_v2_admission.py declared a helper parameter
  named initialized_storage_root but passed tmp_path into it, so the fixture that
  activates was never requested; the two tests now request it.  (25 failures)
- tests/test_mcp_initial_scenario_e2e.py, tests/test_mcp_agent_run_reachability.py,
  tests/test_mcp_scenario_profile_e2e.py and
  tests/api/test_dashboard_testing_verification_persistence.py: same pattern over
  DRAFT_STORAGE_ROOT and HANDLE_STORAGE_ROOT.  (1 failure + 2 errors + 1 failure)

One assertion in the scenario suite was mine to fix: commit a32d4cc6 re-derived
the captured admission fixture's digests, and
test_metric_published_admission_authority.py pins graph_content_hash and
binding_digest as literals.  Both now carry the values read back from the
verified fixture (aa3ef503..., 0f2492aa...) - taken from the artifact, not from
the migration log, after a first attempt copied values that the earlier revision
of the migration script had computed but never stored.  The fixture itself
re-verifies from scratch: context bytes, fingerprint, binding, authority and
selection digests, entry digest, wrapper digest, catalog digest, revision hash,
plan hash and graph/plan equality all recompute correctly, with no stale
identity string left.

No production code touched; every refusal still refuses.  registry 18 failed/960
passed, execution 7 failed/407 passed, scenario 414 passed.
2026-10-09 20:29:59 +03:00
a0d589e94f test(scenario-editor): give the editor tests a canonical base revision graph
Eight registry tests and four API tests failed with "canonical graph does not
satisfy its declared schema".  The raise site is editor/apply.py:115, and the
cause is the shared registry fixture: the base revision's graph_snapshot declares
canonical identity - schema_version 1 plus a structured objective, which is what
has_canonical_identity looks for - while carrying only the legacy
schema_version/compiler_version/scenario_id/revision_hash/objective/phases shape.
The strict path is therefore taken and canonical_registered_snapshot does not
parse: dashboard_context, input_fingerprints and steps are required and
objective requires selected_case_ids.

The editor tests now seed a base snapshot that satisfies the schema, through one
shared helper (tests/.../registry/editor_canonical_base.py) used by both registry
files and the API route file.  It merges only the fields the canonical schema
requires, so the fixture's own identity survives and a test that pre-seeds
context_authority before proposing still sees it.  The step id is not cosmetic:
editor operations address steps by id and the canonical set_assertion handler
resolves s["id"], so the supplied step is the one the operations name.

The shared tests/fixtures/scenario_registry/registry.json is NOT rewritten here.
Two other suites assert properties of its current shape - an empty topological
order for the base revision in test_scenario_runner_plan.py, and a 2222-vs-7777
diff whose only changed key is revision_hash in tests/api/test_scenario_registry.py
- so conforming that fixture for real is a separate coordinated change, and the
helper records that as its @REJECTED rationale rather than leaving the trap
implicit.

No assertion was weakened and no production code was touched: the strict refusal
for a graph that declares canonical identity without satisfying it is unchanged
and still covered by test_registered_editor_authority.py.

registry: 31 failed -> 23 failed, 955 passed, 0 new failures.
tests/api/test_scenario_editor_routes.py: 4 failed -> 0 (7 passed).
2026-10-09 19:45:10 +03:00
b5cf3d8532 feat(maintenance): isolate module RBAC and complete role workspace 2026-10-08 09:27:40 +03:00
323d732199 feat(investigations): add pinned baseline workspace and personal notifications
Add scoped verification and seven-day risk acceptance, a readable sixteen-metric baseline comparison, visual findings, and responsive case actions. Provide personal subscriptions and an in-app inbox with authorized target names.

Retain isolated Docker fixtures and browser audits for normal flows, access and CAS refusals, HTTP500, uncertain VLM results, polling and acceptance expiry. Verify scoped semantic contracts and record independent UX/UI scores of 4/5 and 4.1/5.
2026-10-05 23:00:05 +03:00
bcc69f4bbe feat(dashboard-testing): add sampled traversal and ClickHouse test lab
Add versioned metric graph authority, owned browser evidence, paginated and all-tab traversal, deterministic sampling policies, and analyst-facing run inspection.

Provision the DEV/PREPROD/PROD Superset, Gitea and million-row ClickHouse lab; retain reproducible lifecycle evidence and explicit incomplete-traversal limits.
2026-10-02 10:54:42 +03:00
e99306eb54 fix(dashboard-testing): bind launches to published baselines 2026-09-28 19:43:57 +03:00
e7bac04e98 feat(dashboard-testing): add reference URL baseline workflow and analyst UX
Discover dashboard filters, datasets and metrics from a parsed reference URL; capture and review baseline candidates with source provenance. Improve scenario DAG and run result views, add isolated browser coverage, and align contracts and ADRs.
2026-09-25 10:36:37 +03:00
6d58bb97d0 fix(dashboard-testing): authenticate browser SSE run stream via query token 2026-09-24 09:39:49 +03:00
d8b0bd58ad fix(dashboard-testing): enforce run/case object ACLs and recurrence guards 2026-09-24 09:32:58 +03:00
a122c328a1 feat(backend): harden automation retention and execution 2026-09-24 00:32:05 +03:00
fc3697f35f feat(dashboard-testing): complete analyst workflows 2026-09-24 00:31:22 +03:00
300c2a2954 feat(maintenance): add dashboard-targeted banners and template library 2026-09-22 21:18:15 +03:00
f0d7b79523 fix(rbac): single admin authority, gate privileged surfaces, enforce session on dual-auth
- is_admin flag is the sole admin authority; remove role-name fallbacks (dependencies, reports, tasks, agent lifecycle, security badge, frontend)
- normalize (resource, ACTION) across REST/MCP/catalog; strict admin role/permission parsing (400 on unknown)
- gate LLM provider CRUD/status/test on admin:settings; require auth on agent llm-status; quarantine listing requires scenario:automation MANAGE
- enforce logical-session revocation/idle in require_api_key_or_jwt
- last-admin lockout guards for user/role CRUD; block non-admin from granting is_admin
- frontend: flag-only admin, route permission map from the nav registry, write-control gating, 403 dedupe
- tests: orthogonal edge coverage (flag-only admin, lockout boundaries, session states, normalization)
2026-09-22 21:14:35 +03:00