Files
Assistant/dev/tasks/DEV-000126-agent-canary-repository.json

24 lines
2.3 KiB
JSON

{
"task_id": "DEV-000126",
"task_revision": 1,
"architecture_revision": "ADR-0018",
"base_repo_revision": "c30e0c7",
"risk_tier": "E",
"intent": "Wire the manual agent canary CLI to the existing Work PostgreSQL repository behind an explicit flag while preserving in-memory default behavior.",
"requirement_ids": ["WP-301", "Repository canary wiring", "Credential-safe adapter use"],
"allowed_change_scope": {"modules": ["work-agent-execution", "work-storage"], "paths": ["cmd/agent-canary/main.go", "dev/ACTIVE_TASK.json", "dev/tasks/DEV-000126-agent-canary-repository.json"]},
"forbidden_change_scope": {"paths": ["architecture/**", "security/**", "deploy/**", "runtime/**", "database/**", ".gitea/**"]},
"allowed_architecture_delta": {"new_cross_module_dependencies": 1, "new_canonical_owners": 0, "new_privileges": 0, "new_third_party_dependencies": 0, "new_database_owner_roles": 0},
"contracts": {"consume": ["DEV-000125 manual canary CLI", "DEV-000121 WorkRepository methods"], "may_change": ["Manual CLI storage selection"]},
"semantic_owner": "work-agent-execution",
"canonical_state": ["WorkRepository remains canonical for postgres mode"],
"state_transitions": ["CLI -postgres -> OpenWork -> canary coordinator -> repository writes"],
"side_effects_and_privileges": ["Only explicit -postgres mode connects; credentials come from existing environment variables and are never printed"],
"persistence_and_migrations": ["Requires migration 029 to be applied separately; this task does not apply migrations"],
"failure_retry_restart": ["Connection or missing migration errors are returned; no automatic retry or deployment"],
"assumptions": ["Default mode remains in-memory and production entrypoints are unchanged"],
"acceptance_scenarios": ["Default mode remains deterministic", "Postgres mode uses Work repository through ExecutionStore", "No secret values appear in output"],
"required_tests": ["go test ./...", "go vet ./...", "go run ./cmd/agent-canary", "go run ./cmd/agent-canary -enable-canary", "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", "go run ./cmd/devctl/independent", "git diff --check"],
"terminal_gap_states": ["BLOCKED_BY_MIGRATION_DECISION", "BLOCKED_BY_SPEC_GAP", "BLOCKED_BY_CONFLICT"]
}