From 0e46a647024f913636508b2ae5c81800f7232a1c Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sun, 23 Aug 2026 18:52:27 +0300 Subject: [PATCH] docs(runtime): record local fallback gateway evidence --- dev/ACTIVE_TASK.json | 4 ++-- .../DEV-000238-local-fallback-evidence.json | 23 +++++++++++++++++++ ...l-fallback-gateway-live-2026-08-23-v1.json | 12 ++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 dev/tasks/DEV-000238-local-fallback-evidence.json create mode 100644 docs/evidence/local-fallback-gateway-live-2026-08-23-v1.json diff --git a/dev/ACTIVE_TASK.json b/dev/ACTIVE_TASK.json index 751b401..eb785bf 100644 --- a/dev/ACTIVE_TASK.json +++ b/dev/ACTIVE_TASK.json @@ -1,5 +1,5 @@ { - "task_file": "dev/tasks/DEV-000237-ui-authenticated-section-smoke.json", - "task_id": "DEV-000237", + "task_file": "dev/tasks/DEV-000238-local-fallback-evidence.json", + "task_id": "DEV-000238", "task_revision": 1 } diff --git a/dev/tasks/DEV-000238-local-fallback-evidence.json b/dev/tasks/DEV-000238-local-fallback-evidence.json new file mode 100644 index 0000000..c72697b --- /dev/null +++ b/dev/tasks/DEV-000238-local-fallback-evidence.json @@ -0,0 +1,23 @@ +{ + "task_id": "DEV-000238", + "task_revision": 1, + "architecture_revision": "ADR-0018", + "base_repo_revision": "0609561dfefb6dce302f56d50bb56bd5a222fb64", + "risk_tier": "E", + "intent": "Record a bounded live proof that the advisory gateway keeps a local lifeboat path when the normal model route cannot be used.", + "requirement_ids": ["Agent Execution local recovery", "model fleet fallback", "false completion prevention"], + "allowed_change_scope": {"modules": ["evidence"], "paths": ["docs/evidence/local-fallback-gateway-live-2026-08-23-v1.json", "dev/ACTIVE_TASK.json", "dev/tasks/DEV-000238-local-fallback-evidence.json"]}, + "forbidden_change_scope": {"paths": ["architecture/**", "security/**", "database/**", "deploy/**", "LLM-local/**", "modules/work/secrets/**", "contracts/**"]}, + "allowed_architecture_delta": {"new_cross_module_dependencies": 0, "new_canonical_owners": 0, "new_privileges": 0, "new_third_party_dependencies": 0, "new_database_owner_roles": 0}, + "contracts": {"consume": ["creator advisory gateway", "durable cognitive usage observation"], "may_change": []}, + "semantic_owner": "Evidence only", + "canonical_state": ["no runtime state mutation; read-only evidence capture"], + "state_transitions": ["normal route unavailable or not eligible -> builtin local lifeboat response"], + "side_effects_and_privileges": ["bounded local advisory request; no external egress and no secret exposure"], + "persistence_and_migrations": ["existing cognitive usage observation only"], + "failure_retry_restart": ["live request is bounded and idempotent in effect"], + "assumptions": ["the production database observation is the authoritative route attribution"], + "acceptance_scenarios": ["local response is COMPLETED", "usage evidence identifies builtin-local-lifeboat-v1", "no claim of external bridge or multi-model failover"], + "required_tests": ["go test ./cmd/core-runtime/...", "go vet ./cmd/core-runtime/...", "go run ./cmd/devctl preflight -active dev/ACTIVE_TASK.json", "go run ./cmd/devctl check-diff -active dev/ACTIVE_TASK.json", "go run ./cmd/devctl check-architecture", "git diff --check", "independent", "CI", "production health smoke"], + "terminal_gap_states": ["BLOCKED_BY_MISSING_CAPABILITY", "BLOCKED_BY_SPEC_GAP"] +} diff --git a/docs/evidence/local-fallback-gateway-live-2026-08-23-v1.json b/docs/evidence/local-fallback-gateway-live-2026-08-23-v1.json new file mode 100644 index 0000000..9522f98 --- /dev/null +++ b/docs/evidence/local-fallback-gateway-live-2026-08-23-v1.json @@ -0,0 +1,12 @@ +{ + "evidence_id": "local-fallback-gateway-live-2026-08-23-v1", + "observed_at": "2026-08-23", + "production_revision": "0609561dfefb6dce302f56d50bb56bd5a222fb64", + "request": {"surface": "internal cognitive-worker advisory gateway", "data_policy": "LOCAL_ONLY", "max_output_bytes": 128, "prompt_class": "bounded readiness response"}, + "http_result": {"status": 200, "finish_reason": "COMPLETED", "output_observed": true, "output_content": "готов"}, + "durable_usage_observation": {"provider_instance_id": "builtin-local-lifeboat-v1", "model_descriptor_id": "builtin-local-model-v1", "result_class": "COMPLETED", "failure_type": null, "latency_millis": 665}, + "status": "LOCAL_FALLBACK_LIVE_PASS", + "proves": ["local lifeboat path can answer when normal route is not eligible", "completion is durably attributed to the local fallback"], + "does_not_prove": ["external Agent Execution bridge", "multi-model failover between validated provider bindings", "GPU quality or promotion", "long-running recovery"], + "secrets_exposed": false +} -- 2.54.0