Files
Assistant/dev/tasks/DEV-000072-semantic-interpretation-deferral-boundary.json
m 754cbe43d2
CI / test (push) Failing after 19s
wip(dev-000073): preserve durable bootstrap checkpoint
DEV-000073 is NOT DONE; current work is partial/stabilized WIP only. go test ./cmd/devctl was last verified PASS. Remaining bootstrap/secret integration requires a stronger long-horizon model. This commit is preservation-only; current ancestry includes DEV-000072 candidate 36fec6c05cdf7aaf413fe... and must be reconciled before DEV-000073 promotion.
2026-08-18 12:07:11 +03:00

160 lines
6.9 KiB
JSON

{
"task_id": "DEV-000072",
"task_revision": 1,
"architecture_revision": "DEV-000071-baseline",
"base_repo_revision": "64870798b9a50f895c99d24441703f366df5c98a",
"risk_tier": "E",
"intent": "Implement semantic interpretation and deferral boundary V1 so deterministic interpretation acts as a fast-path candidate rather than unquestionable final truth; preserve provenance between deterministic and cognitive candidates; support mixed intent and safer deferral without activating new providers.",
"non_goal_scope": [
"Do not build a dedicated naming subsystem in this task (for example, no assistant_name table/field).",
"Do not implement dedicated favorite_color/disliked_food/project_role-like preference schemas in this task.",
"Do not introduce a hardcoded 'запомни' keyword trigger or naming-specific memory trigger.",
"Do not introduce dedicated naming memory, universal ontology, or graph/knowledge DB in this task.",
"Treat naming/name-preferral utterances as generic semantic interpretation cases and test fixtures, not the target for persistence architecture changes.",
"Any future durable memory/knowledge mechanism is out of scope for this task and must be captured as a follow-up requirement."
],
"requirement_ids": [
"DEV-000071 measured baseline",
"Deterministic candidate can decline/defer",
"Mixed intent representation",
"Cognition may challenge uncertain deterministic candidate",
"No provider hardcoding",
"No Ollama activation",
"Known and holdout evaluation comparison",
"Production chat acceptance"
],
"allowed_change_scope": {
"modules": [
"interaction",
"work",
"capability",
"epistemics"
],
"paths": [
"contracts/interaction/**",
"contracts/work/**",
"contracts/cognitive/**",
"modules/interaction/**",
"modules/work/**",
"adapters/postgres/interaction_repository.go",
"cmd/core-runtime/**",
"cmd/creator-web/**",
"cmd/cognitive-worker/**",
"database/migrations/**",
"tests/**",
"docs/PROJECT_STATUS.md",
"docs/evidence/**",
"dev/ACTIVE_TASK.json",
"dev/tasks/DEV-000072-semantic-interpretation-deferral-boundary.json"
]
},
"forbidden_change_scope": {
"paths": [
"architecture/ARCHITECTURE_CONSTITUTION.md",
"architecture/architecture-registry.yaml",
"architecture/architecture-registry.json",
"architecture/adrs/**",
"security/**",
"modules/authority/**",
"modules/commit/**",
"deploy/**",
"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,
"new_database_owner_roles": 0
},
"contracts": {
"consume": [
"contracts.identity",
"contracts.interaction",
"contracts.work",
"contracts.capability",
"contracts.cognitive",
"contracts.epistemics",
"contracts.situation"
],
"may_change": [
"contracts.interaction",
"contracts.work",
"contracts.cognitive"
]
},
"semantic_owner": "interaction",
"canonical_state": [
"Interaction-owned human utterance interpretation semantics",
"Interaction-owned interpretation provenance between deterministic and cognitive candidates",
"Owner-local persistence expansion for semantic candidate provenance",
"Existing Work planning/help-path semantics updated to consume richer interaction interpretation without changing canonical ownership"
],
"state_transitions": [
"human utterance -> deterministic semantic candidate",
"candidate accepted or deferred",
"deferred candidate -> cognitive candidate",
"candidate selection -> persisted selected interpretation + provenance",
"mixed/consequential ambiguity -> clarification or bounded safe response"
],
"side_effects_and_privileges": [
"No direct external mutation",
"Cognitive Gateway only through existing provider-neutral runtime",
"No direct CPU endpoint calls from chat path",
"No provider activation changes"
],
"persistence_and_migrations": [
"Interaction owner-local migration expected",
"No cross-owner SQL writes",
"No cross-owner FK introduction",
"No new DB owner roles"
],
"failure_retry_restart": [
"If cognition is unavailable, obvious deterministic paths continue to work",
"Uncertain consequential intent must fail closed via clarification or explicit limitation",
"Model output must remain typed candidate evidence, never direct canonical fact/action"
],
"assumptions": [
"Current production has only one proven eligible cognitive binding for human chat: CPU CANARY",
"Ollama/GPU remains inactive for routing in this milestone",
"DEV-000071 artifacts remain the baseline comparison set"
],
"acceptance_scenarios": [
"ask-model request no longer finalized as assertion by default",
"think/investigate wording can defer to cognition without lexical patching as the sole strategy",
"mixed investigate+modify retains both semantic needs",
"correction wording plus new directive preserves both aspects",
"uncertain consequential request defers safely",
"suite_v1 plus DEV-000071 development/holdout comparisons are reported honestly",
"production /chat acceptance covers greeting, cognition question, named implementation request, mixed work, correction, correction+new directive, consequential ambiguity"
],
"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",
"interaction domain tests",
"work planning tests",
"reality evaluation comparisons",
"production /chat acceptance"
],
"future_scope_requirements": [
"Generic interaction-to-memory pipeline (common conceptual flow): interaction -> understood meaning -> potential memory/knowledge candidate -> subject/scope/provenance -> salience/relevance -> persistence decision -> relations/associations -> retrieval -> correction/consolidation.",
"Support multiple ordinary human preference/intention domains (names, preferred forms of address, colors, dislikes, habits, relationships, project facts, machine characteristics, temporary constraints) without special schema-per-example.",
"Use existing Epistemics/Experience/Identity/Situation foundations first; introduce new canonical concepts only when requirements and architecture review justify them."
],
"terminal_gap_states": [
"BLOCKED_BY_SPEC_GAP",
"BLOCKED_BY_ARCHITECTURE_GAP",
"BLOCKED_BY_MISSING_CAPABILITY",
"BLOCKED_BY_CONFLICT",
"REQUIRES_MIGRATION_DECISION"
]
}