Files
Assistant/dev/tasks/DEV-000137-governed-self-development-gate.json
m 1ccd43c552
CI / test (push) Failing after 15s
CI / test (pull_request) Failing after 14s
feat(work): add governed self-development gate
2026-08-22 13:46:01 +03:00

24 lines
2.1 KiB
JSON

{
"task_id": "DEV-000137",
"task_revision": 1,
"architecture_revision": "ADR-0018",
"base_repo_revision": "d38406f",
"risk_tier": "E",
"intent": "Add typed governed self-development gate requiring evidence, task packet, isolated worktree, independent verifier, canary, promotion or rollback.",
"requirement_ids": ["WP-701", "Governed self-development", "Independent verification", "Rollback"],
"allowed_change_scope": {"modules": ["work-agent-execution"], "paths": ["contracts/work/self_development.go", "modules/work/domain/self_development.go", "modules/work/domain/self_development_test.go", "tests/semantic_evolution/self_development_contract_test.go", "dev/ACTIVE_TASK.json", "dev/tasks/DEV-000137-governed-self-development-gate.json"]},
"forbidden_change_scope": {"paths": ["architecture/**", "security/**", "deploy/**", "database/**", "cmd/**", "contracts/authority/**", ".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": ["Existing AgentRun and work graph contracts"], "may_change": ["Typed self-development stage gate"]},
"semantic_owner": "work-agent-execution",
"canonical_state": ["DevelopmentGate value object"],
"state_transitions": ["evidence to proposal to task to isolation to independent verification to canary to promotion; canary may rollback"],
"side_effects_and_privileges": ["No direct code mutation, provider invocation, or promotion side effect"],
"persistence_and_migrations": ["Value object only; durable gate persistence follows execution-plane integration"],
"failure_retry_restart": ["Invalid stage transitions and missing evidence fail closed"],
"assumptions": ["Task packet and worktree identity are provided by the execution plane"],
"acceptance_scenarios": ["same producer cannot verify output", "promotion is terminal", "canary can rollback"],
"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"]
}