feat(work): gate agent canary dispatch
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"task_file": "dev/tasks/DEV-000123-agent-dry-run-orchestration.json",
|
||||
"task_id": "DEV-000123",
|
||||
"task_file": "dev/tasks/DEV-000124-agent-canary-gate.json",
|
||||
"task_id": "DEV-000124",
|
||||
"task_revision": 1
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"task_id": "DEV-000124",
|
||||
"task_revision": 1,
|
||||
"architecture_revision": "ADR-0018",
|
||||
"base_repo_revision": "7f82240",
|
||||
"risk_tier": "E",
|
||||
"intent": "Add an explicit opt-in canary gate for the dry-run agent dispatcher with implementation allowlist and bounded dispatch count.",
|
||||
"requirement_ids": ["WP-301", "Opt-in canary", "Bounded dispatch"],
|
||||
"allowed_change_scope": {"modules": ["work-agent-execution"], "paths": ["modules/work/application/canary.go", "tests/agent_execution/canary_test.go", "dev/ACTIVE_TASK.json", "dev/tasks/DEV-000124-agent-canary-gate.json"]},
|
||||
"forbidden_change_scope": {"paths": ["architecture/**", "security/**", "deploy/**", "cmd/**", "runtime/**", "adapters/**", "database/**", ".gitea/**"]},
|
||||
"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": ["DEV-000123 dry-run orchestration"], "may_change": ["Canary configuration and gate errors"]},
|
||||
"semantic_owner": "work-agent-execution",
|
||||
"canonical_state": ["Canary configuration is caller-owned; dispatch state remains Work-owned"],
|
||||
"state_transitions": ["disabled/unauthorized/limited -> rejected; enabled and allowed -> dry-run orchestration"],
|
||||
"side_effects_and_privileges": ["No side effect before all canary gates pass"],
|
||||
"persistence_and_migrations": ["Reuses existing persistence; no migration"],
|
||||
"failure_retry_restart": ["Caller receives typed gate failure; retries remain bounded by used dispatch count"],
|
||||
"assumptions": ["Runtime wiring and production configuration are separate follow-up work"],
|
||||
"acceptance_scenarios": ["Disabled canary writes nothing", "Wrong implementation writes nothing", "Limit is enforced", "Allowed canary persists four records"],
|
||||
"required_tests": ["go test ./...", "go vet ./...", "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_SPEC_GAP", "BLOCKED_BY_CONFLICT"]
|
||||
}
|
||||
Reference in New Issue
Block a user