{ "task_id": "DEV-000246", "task_revision": 1, "architecture_revision": "ADR-0018", "base_repo_revision": "355ba7db5621a11b2c4e0827d9301ab7fdb2d419", "risk_tier": "E", "intent": "Expose read-only durable Work Graph runtime counts for operational verification without changing graph scheduling, fan-out/fan-in, verifier, or replan semantics.", "requirement_ids": ["Multi-Agent Work Graph", "fan-out/fan-in observability", "fast operational verification"], "allowed_change_scope": {"modules": ["work"], "paths": ["adapters/postgres/work_repository.go", "cmd/work-graph-runtime/**", "dev/ACTIVE_TASK.json", "dev/tasks/DEV-000246-work-graph-runtime-status.json"]}, "forbidden_change_scope": {"paths": ["architecture/**", "security/**", "database/**", "deploy/**", "contracts/**", "LLM-local/**", "modules/work/secrets/**"]}, "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": ["work-owned graph and dispatch queue tables", "existing runtime health conventions"], "may_change": ["internal read-only status response"]}, "semantic_owner": "Work Graph runtime observability", "canonical_state": ["none; counts are derived projections"], "state_transitions": ["none"], "side_effects_and_privileges": ["read-only aggregate queries only"], "persistence_and_migrations": ["none"], "failure_retry_restart": ["status fails closed with 503 when work database is unavailable"], "assumptions": ["status is consumed by internal diagnostics and can be queried from the production network"], "acceptance_scenarios": ["readyz remains database-backed", "status returns graph state and queue counts", "status does not mutate canonical state"], "required_tests": ["go test ./cmd/work-graph-runtime ./adapters/postgres", "go vet ./cmd/work-graph-runtime ./adapters/postgres", "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"] }