140 lines
5.4 KiB
JSON
140 lines
5.4 KiB
JSON
{
|
|
"task_id": "DEV-000067",
|
|
"task_revision": 1,
|
|
"architecture_revision": "ADR-0016",
|
|
"base_repo_revision": "d4640d7617ed579a9b0852fb336905f777f80de6",
|
|
"risk_tier": "E",
|
|
"intent": "Add provider-neutral Experience, Reflection and Skill Evolution foundation without creating a LearningManager or new canonical owner.",
|
|
"requirement_ids": [
|
|
"ADR-0016",
|
|
"INV-OWN-001",
|
|
"INV-EPI-001",
|
|
"Experience preserves original intent, expectation, outcome and correction evidence",
|
|
"Fast paths can decline and return to broader reasoning",
|
|
"Skill replacement does not delete evidence"
|
|
],
|
|
"allowed_change_scope": {
|
|
"modules": [
|
|
"epistemics",
|
|
"capability",
|
|
"interaction",
|
|
"continuity"
|
|
],
|
|
"paths": [
|
|
"architecture/adrs/ADR-0016-experience-reflection-skill-evolution.md",
|
|
"architecture/architecture-registry.yaml",
|
|
"architecture/architecture-registry.json",
|
|
"contracts/epistemics/**",
|
|
"contracts/capability/**",
|
|
"modules/epistemics/**",
|
|
"modules/capability/**",
|
|
"adapters/postgres/**",
|
|
"database/migrations/**",
|
|
"cmd/core-runtime/**",
|
|
"cmd/creator-web/**",
|
|
"deploy/windows/Invoke-DomovoyNotificationReceiver.ps1",
|
|
"tests/owner_acl/**",
|
|
"tests/cognitive_advisory/**",
|
|
"docs/PROJECT_STATUS.md",
|
|
"dev/ACTIVE_TASK.json",
|
|
"dev/tasks/DEV-000067-experience-reflection-skill-evolution.json"
|
|
]
|
|
},
|
|
"forbidden_change_scope": {
|
|
"paths": [
|
|
"architecture/ARCHITECTURE_CONSTITUTION.md",
|
|
"modules/authority/**",
|
|
"modules/commit/**",
|
|
"cmd/commit-runtime/**",
|
|
"security/**",
|
|
"ci/**",
|
|
".gitea/**"
|
|
]
|
|
},
|
|
"allowed_architecture_delta": {
|
|
"new_cross_module_dependencies": 0,
|
|
"new_canonical_owners": 0,
|
|
"new_privileges": 0,
|
|
"new_third_party_dependencies": 0,
|
|
"new_provider_adapters": 0
|
|
},
|
|
"contracts": {
|
|
"consume": [
|
|
"Interaction HumanUtterance / OriginalHumanIntent / correction refs",
|
|
"Continuity HumanResponse / Attention / ProspectiveItem refs",
|
|
"Capability CapabilityUsageObservation / CapabilityGap refs",
|
|
"Cognitive Gateway / Router for future reflection reasoning only"
|
|
],
|
|
"may_change": [
|
|
"contracts/epistemics@v1",
|
|
"contracts/capability@v1"
|
|
]
|
|
},
|
|
"semantic_owner": "epistemics",
|
|
"canonical_state": [
|
|
"SystemExpectation",
|
|
"ExperienceRecord",
|
|
"ReflectionCandidate",
|
|
"SkillProfile",
|
|
"SkillEvidence",
|
|
"FastPathDecision"
|
|
],
|
|
"state_transitions": [
|
|
"successful target resolution + accepted human response -> positive experience evidence",
|
|
"user correction -> USER_CORRECTED outcome and reflection candidate",
|
|
"fast path outside supported semantics -> NOT_APPLICABLE/OUT_OF_DISTRIBUTION and escalation",
|
|
"repeated capability/skill failure evidence -> DEGRADED skill profile without deleting history"
|
|
],
|
|
"side_effects_and_privileges": [
|
|
"No external mutation is introduced",
|
|
"No cognitive model is required for LLM-free tests",
|
|
"No model output can directly rewrite skills, beliefs, source, deployment or authority",
|
|
"Docker-test remains prohibited"
|
|
],
|
|
"persistence_and_migrations": [
|
|
"epistemics.system_expectations append-only table",
|
|
"epistemics.experience_records append-only table",
|
|
"epistemics.reflection_candidates append-only table",
|
|
"capability.skill_profiles revisioned table",
|
|
"capability.skill_profile_heads projection table",
|
|
"no cross-owner FK",
|
|
"no cross-owner SQL join dependency"
|
|
],
|
|
"failure_retry_restart": [
|
|
"Experience/reflection rows are append-only historical evidence",
|
|
"Fast path decline is a valid non-failure decision and preserves return-to-thinking path",
|
|
"DEGRADED/SUSPENDED/RETIRED skill profiles preserve supporting/failure evidence refs"
|
|
],
|
|
"assumptions": [
|
|
"DEV-000066 is production baseline",
|
|
"Existing owners are sufficient; no new canonical owner is needed",
|
|
"V1 records evidence and lifecycle primitives, not autonomous self-improvement"
|
|
],
|
|
"acceptance_scenarios": [
|
|
"Target resolver selected the right recent reminder and user accepted -> positive experience evidence",
|
|
"User correction of wrong interpretation/target -> USER_CORRECTED outcome and reflection candidate",
|
|
"Known deterministic path receives unsupported input -> fast path declines and escalates rather than guessing",
|
|
"Capability implementation fails repeatedly -> related skill confidence/status can degrade without deleting history",
|
|
"Deleting/replacing/disabling a skill implementation does not delete source observations, experience, corrections, outcomes or original human intent history",
|
|
"LLM-free operation passes"
|
|
],
|
|
"required_tests": [
|
|
"go test ./...",
|
|
"go vet ./...",
|
|
"go run ./cmd/devctl preflight -active dev/ACTIVE_TASK.json",
|
|
"go run ./cmd/devctl check-architecture",
|
|
"go run ./cmd/devctl check-diff -active dev/ACTIVE_TASK.json",
|
|
"tests/cognitive_advisory/cognitive_worker_env_policy_test.ps1",
|
|
"tests/owner_acl/verify.ps1 -DockerContext docker-prod -PostgresContainer assistant-postgres-1",
|
|
"production /chat verification if runtime deployment is required"
|
|
,
|
|
"notification receiver endpoint uses canonical assistant.cin.su spelling"
|
|
],
|
|
"terminal_gap_states": [
|
|
"BLOCKED_BY_ARCHITECTURE_GAP",
|
|
"BLOCKED_BY_SPEC_GAP",
|
|
"BLOCKED_BY_MISSING_CAPABILITY",
|
|
"BLOCKED_BY_CONFLICT"
|
|
]
|
|
}
|