Files
Assistant/dev/tasks/DEV-000132-work-graph-admission-scheduler.json
2026-08-22 13:31:39 +03:00

24 lines
2.1 KiB
JSON

{
"task_id": "DEV-000132",
"task_revision": 1,
"architecture_revision": "ADR-0018",
"base_repo_revision": "b2f922c",
"risk_tier": "E",
"intent": "Add deterministic Work Graph admission, bounded ready-node scheduling and explicit conflict resolution to the graph harness.",
"requirement_ids": ["WP-400", "Graph admission", "Bounded scheduler", "Conflict resolution"],
"allowed_change_scope": {"modules": ["work-agent-execution"], "paths": ["modules/work/domain/graph_scheduler.go", "tests/agent_execution/graph_test.go", "dev/ACTIVE_TASK.json", "dev/tasks/DEV-000132-work-graph-admission-scheduler.json"]},
"forbidden_change_scope": {"paths": ["architecture/**", "security/**", "deploy/**", "database/**", "adapters/**", "cmd/**", "runtime/**", ".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-000131 graph harness", "ADR-0021 graph lifecycle"], "may_change": ["Pure graph admission/scheduling/conflict domain functions"]},
"semantic_owner": "work-agent-execution",
"canonical_state": ["No persistence; graph values remain deterministic harness state"],
"state_transitions": ["DRAFT -> ADMITTED; READY nodes bounded by MaxParallel; conflict unresolved -> explicitly resolved"],
"side_effects_and_privileges": ["Pure domain logic only"],
"persistence_and_migrations": ["Durable scheduler follows after the harness"],
"failure_retry_restart": ["Budget overflow and unknown conflict candidate reject without mutation"],
"assumptions": ["Runtime scheduler must use Agent Execution queue/leases in a later task"],
"acceptance_scenarios": ["Admission validates attempt budget", "Scheduler respects active/max parallel", "Conflict cannot resolve without explicit known candidate"],
"required_tests": ["go test ./...", "go vet ./...", "preflight", "check-diff", "check-architecture", "independent", "git diff --check"],
"terminal_gap_states": ["BLOCKED_BY_SPEC_GAP", "BLOCKED_BY_CONFLICT"]
}