From 6fb9184d14ab2c284bd58bab194171e80623222a Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sat, 22 Aug 2026 11:25:14 +0300 Subject: [PATCH] Authorize readiness canary promotion --- dev/ACTIVE_TASK.json | 4 ++-- ...DEV-000102-readiness-canary-promotion.json | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 dev/tasks/DEV-000102-readiness-canary-promotion.json diff --git a/dev/ACTIVE_TASK.json b/dev/ACTIVE_TASK.json index c5f596d..982e4a5 100644 --- a/dev/ACTIVE_TASK.json +++ b/dev/ACTIVE_TASK.json @@ -1,5 +1,5 @@ { - "task_file": "dev/tasks/DEV-000101-dependency-aware-readiness.json", - "task_id": "DEV-000101", + "task_file": "dev/tasks/DEV-000102-readiness-canary-promotion.json", + "task_id": "DEV-000102", "task_revision": 1 } diff --git a/dev/tasks/DEV-000102-readiness-canary-promotion.json b/dev/tasks/DEV-000102-readiness-canary-promotion.json new file mode 100644 index 0000000..72927b8 --- /dev/null +++ b/dev/tasks/DEV-000102-readiness-canary-promotion.json @@ -0,0 +1,23 @@ +{ + "task_id": "DEV-000102", + "task_revision": 1, + "architecture_revision": "ADR-0018", + "base_repo_revision": "3f2b008", + "risk_tier": "E", + "intent": "Promote the dependency-aware readiness implementation to a controlled production canary with explicit rollback evidence, without changing deployment topology or source contracts.", + "requirement_ids": ["WP-003", "Controlled canary promotion", "Production rollback evidence"], + "allowed_change_scope": {"modules": ["deployment-governance"], "paths": ["dev/ACTIVE_TASK.json", "dev/tasks/DEV-000102-readiness-canary-promotion.json"]}, + "forbidden_change_scope": {"paths": ["architecture/**", "security/**", "database/**", "deploy/**", "contracts/**", "modules/**", "adapters/**", ".gitea/**", "cmd/**", "runtime/**"]}, + "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": ["Existing production compose topology", "Existing runtime health endpoints", "Existing production backup and deployment verification"], "may_change": []}, + "semantic_owner": "none-deployment-canary", + "canonical_state": [], + "state_transitions": ["built candidate -> canary verified", "canary failure -> rollback to recorded production revision"], + "side_effects_and_privileges": ["Controlled production container replacement only after build/config verification; no schema, credential, or external data mutation"], + "persistence_and_migrations": ["No database schema or migration changes"], + "failure_retry_restart": ["Rollback target is production revision b439a813e5932b1774cb3b6c2364c6cac3891314 and recorded core image digest sha256:4fb09995df8efbbb02359e30171f593f9cf9b90489d4ac0bf85a62ed2504ac92"], + "assumptions": ["Production control plane is docker-prod/docker.cin.su only", "Canary is limited to readiness-capable runtime services", "Existing secrets and persistent volumes remain unchanged"], + "acceptance_scenarios": ["Candidate images build from 3f2b008", "Compose configuration validates without secret disclosure", "Canary readiness returns HTTP 200 with dependency checks", "Existing health and HTTPS checks remain healthy", "Rollback command and pre-canary image identity are recorded"], + "required_tests": ["go test ./...", "go vet ./...", "go run ./cmd/devctl independent", "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", "docker compose config on docker-prod", "production canary readiness and rollback verification"], + "terminal_gap_states": ["BLOCKED_BY_ARCHITECTURE_GAP", "BLOCKED_BY_SPEC_GAP", "BLOCKED_BY_MISSING_CAPABILITY", "BLOCKED_BY_CONFLICT"] +}