Files
Assistant/dev/tasks/DEV-000090-chat-runtime-error-recovery.json

24 lines
2.2 KiB
JSON

{
"task_id": "DEV-000090",
"task_revision": 1,
"architecture_revision": "DEV-000073-baseline",
"base_repo_revision": "57fb572d5b7dadff9fd82e995448c1fea30e1b5f",
"risk_tier": "E",
"intent": "Make Domovoy chat failures understandable and recoverable by distinguishing expired sessions, runtime outages, and invalid requests in the human UI.",
"requirement_ids": ["Human sees the actual recovery state", "Expired sessions return to login", "Runtime failure does not pretend to be a model answer"],
"allowed_change_scope": {"modules": ["creator-web", "development-governance"], "paths": ["cmd/creator-web/chat_test.go", "cmd/creator-web/static/assets/chat.js", "dev/ACTIVE_TASK.json", "dev/tasks/DEV-000090-chat-runtime-error-recovery.json"]},
"forbidden_change_scope": {"paths": ["architecture/**", "security/**", "database/**", "deploy/**"]},
"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 creator-web HTTP status contract"], "may_change": ["human-facing chat error handling"]},
"semantic_owner": "creator-web",
"canonical_state": [],
"state_transitions": ["401/403 -> clear session and show login", "5xx -> explain runtime outage and allow retry", "other client error -> explain invalid request"],
"side_effects_and_privileges": ["No new privilege", "No internal identifiers or raw upstream error text shown"],
"persistence_and_migrations": ["No persistence or migration"],
"failure_retry_restart": ["Session recovery is local and deterministic", "Runtime outage remains retryable"],
"assumptions": ["Creator Web status codes remain the source of truth for session and runtime failure classes"],
"acceptance_scenarios": ["Expired browser token returns to login with an explanation", "Runtime outage shows a useful retry message", "Valid responses remain unchanged", "No generic 'message not accepted runtime' text remains"],
"required_tests": ["go test ./cmd/creator-web", "go test ./...", "go vet ./...", "devctl preflight", "devctl check-diff", "git diff --check"],
"terminal_gap_states": ["BLOCKED_BY_ARCHITECTURE_GAP", "BLOCKED_BY_SPEC_GAP", "BLOCKED_BY_CONFLICT"]
}