98 lines
4.1 KiB
JSON
98 lines
4.1 KiB
JSON
{
|
|
"task_id": "GEN2-REM-CORE-M5-LOCAL-MEDIUM-001",
|
|
"task_revision": 1,
|
|
"architecture_revision": "ARCH-GEN2-000",
|
|
"base_repo_revision": "gen2-integration",
|
|
"risk_tier": "E",
|
|
"intent": "Restore the existing Local MEDIUM cognitive path and make discovery, invocation, model availability and readiness evidence bounded and distinct for Core M5 acceptance.",
|
|
"requirement_ids": [
|
|
"REQ-GEN2-027-GOAL",
|
|
"REQ-GEN2-027-BOUNDARY",
|
|
"REQ-GEN2-027-GATE"
|
|
],
|
|
"allowed_change_scope": {
|
|
"modules": ["configuration", "capability", "operations/supervisor"],
|
|
"paths": [
|
|
"cmd/cognitive-worker/**",
|
|
"cmd/core-runtime/**",
|
|
"runtime/health/**",
|
|
"runtime/supervisor/**",
|
|
"deploy/**",
|
|
"modules/configuration/**",
|
|
"contracts/configuration/**",
|
|
"tests/**",
|
|
"docs/evidence/**",
|
|
"dev/ACTIVE_TASK.json",
|
|
"dev/tasks/GEN2-REM-CORE-M5-LOCAL-MEDIUM-001.json"
|
|
]
|
|
},
|
|
"forbidden_change_scope": {
|
|
"paths": [
|
|
"security/**",
|
|
"architecture/**",
|
|
"database/**",
|
|
"adapters/models/**",
|
|
"go.mod",
|
|
"go.sum",
|
|
".gitea/workflows/**"
|
|
]
|
|
},
|
|
"allowed_architecture_delta": {
|
|
"new_cross_module_dependencies": 0,
|
|
"new_canonical_owners": 0,
|
|
"new_privileges": 0,
|
|
"new_database_owner_roles": 0,
|
|
"new_third_party_dependencies": 0
|
|
},
|
|
"contracts": {
|
|
"consume": ["contracts.capability@gen2", "contracts.configuration@gen2"],
|
|
"may_change": ["Only bounded readiness and provider-routing behavior in the declared paths."]
|
|
},
|
|
"semantic_owner": "Capability and Operations/Supervisor; no new semantic owner.",
|
|
"canonical_state": [
|
|
"Existing Capability registry remains authoritative for binding qualification and activation.",
|
|
"Lifeboat remains fallback only; it does not replace Local MEDIUM."
|
|
],
|
|
"state_transitions": [
|
|
"provider discovery -> qualified binding -> active route -> unavailable/degraded -> recovered active route"
|
|
],
|
|
"side_effects_and_privileges": [
|
|
"No external mutation; no credential value is read into evidence; no new privilege or database change."
|
|
],
|
|
"persistence_and_migrations": [
|
|
"No database schema or migration change. Existing provider and capability state remain authoritative."
|
|
],
|
|
"assumptions": [
|
|
"The existing llm-local gateway and protected provider references are the approved Local MEDIUM deployment path.",
|
|
"Production data and secret values are not copied or exposed."
|
|
],
|
|
"failure_retry_restart": [
|
|
"Provider probes have bounded per-provider timeouts and do not block unrelated healthy paths.",
|
|
"Core readiness is ready when required infrastructure and cognitive worker readiness are available; optional provider loss is represented as degraded fleet state.",
|
|
"Restart must re-run discovery and restore the same routing without changing canonical state."
|
|
],
|
|
"acceptance_scenarios": [
|
|
"SQLite/gateway contention is identified without reading credentials.",
|
|
"Local MEDIUM discovery health, invocation health and model availability are separately observable.",
|
|
"Local MEDIUM authenticated model probe and a real cognitive invocation succeed.",
|
|
"CPU/GPU loss does not prevent MEDIUM selection; Lifeboat is fallback.",
|
|
"MEDIUM loss selects Lifeboat and recovery returns selection to MEDIUM.",
|
|
"Core and cognitive-worker restart restore readiness and routing."
|
|
],
|
|
"required_tests": [
|
|
"FAST: go test ./cmd/cognitive-worker/... ./cmd/core-runtime/... ./runtime/health/... ./runtime/supervisor/...",
|
|
"FAST: go vet ./cmd/cognitive-worker/... ./cmd/core-runtime/... ./runtime/health/... ./runtime/supervisor/...",
|
|
"FAST governance: go run ./cmd/devctl preflight -task dev/tasks/GEN2-REM-CORE-M5-LOCAL-MEDIUM-001.json",
|
|
"FAST scope: go run ./cmd/devctl check-diff -task dev/tasks/GEN2-REM-CORE-M5-LOCAL-MEDIUM-001.json",
|
|
"FAST independent: go run ./cmd/devctl/independent",
|
|
"FAST whitespace: git diff --check gen2-integration --",
|
|
"Targeted production provider/restart/recovery smoke"
|
|
],
|
|
"terminal_gap_states": [
|
|
"BLOCKED_BY_ARCHITECTURE_GAP",
|
|
"BLOCKED_BY_SPEC_GAP",
|
|
"BLOCKED_BY_MISSING_CAPABILITY",
|
|
"REQUIRES_MIGRATION_DECISION"
|
|
]
|
|
}
|