Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1ce2c568e | ||
|
|
445e9edd7c | ||
|
|
48dfd364e4 | ||
|
|
e4021523b8 |
@@ -4,13 +4,16 @@ Audit date: 2026-08-17. Active implementation: DEV-000062 revision 1.
|
|||||||
|
|
||||||
## DEV-000062 checkpoint
|
## DEV-000062 checkpoint
|
||||||
|
|
||||||
- `DEV_000062_STATUS = IN_PROGRESS`
|
- `DEV_000062_STATUS = COMPLETED`
|
||||||
- `LAST_COMPLETED = DEV-000062 packet rev.1, ADR-0011, Interaction/Situation/Epistemics contract extensions, Situation Project Registry V1, active project focus semantics, Interaction utterance interpretation/project references, append-only correction/supersession foundation, Core Runtime semantic persistence wiring, Creator Web /chat focus display`
|
- `LAST_COMPLETED = DEV-000062 packet rev.1, ADR-0011, Interaction/Situation/Epistemics contract extensions, Situation Project Registry V1, active project focus semantics, Interaction utterance interpretation/project references, append-only correction/supersession foundation, Core Runtime semantic persistence wiring, Creator Web /chat focus display, production deployment and live /chat acceptance`
|
||||||
- `TESTS_PASS = 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_PASS = 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 live /chat acceptance`
|
||||||
- `ACTIVE_BINDINGS = none`
|
- `ACTIVE_BINDINGS = none`
|
||||||
- `CANARY_BINDING = unchanged; not promoted to ACTIVE`
|
- `CANARY_BINDING = unchanged; not promoted to ACTIVE`
|
||||||
- `OPENAI_REAL_CREDENTIAL = not required / not activated`
|
- `OPENAI_REAL_CREDENTIAL = not required / not activated`
|
||||||
- `NEXT_STEP = commit, push, PR/promotion, apply migration 016, rebuild/deploy affected production services if required, then run live DEV-000062 /chat acceptance`
|
- `PRODUCTION_REVISION = 445e9edd7c5b614b58dd925f89aa9fe49cf0a1d6`
|
||||||
|
- `HUMAN_CHAT_URL = https://assistant.cin.su/chat`
|
||||||
|
- `LIVE_ACCEPTANCE = PASS: explicit УПО focus, unverified assertion, directive/no execution, correction, explicit Assistant focus, current-focus question answered without cognition`
|
||||||
|
- `NEXT_STEP = DEV-000063 Project Copilot planning, if separately approved`
|
||||||
- `REAL_BLOCKERS = none known`
|
- `REAL_BLOCKERS = none known`
|
||||||
|
|
||||||
## Current milestone
|
## Current milestone
|
||||||
|
|||||||
@@ -71,6 +71,9 @@ func InterpretUtterance(utterance interaction.HumanUtterance, projects []situati
|
|||||||
result.Relations = append(result.Relations, relations...)
|
result.Relations = append(result.Relations, relations...)
|
||||||
}
|
}
|
||||||
result.Reply = semanticReply(utterance.Content, result, previousFocus)
|
result.Reply = semanticReply(utterance.Content, result, previousFocus)
|
||||||
|
if isCurrentFocusQuestion(utterance.Content, act) && previousFocus != nil {
|
||||||
|
result.NeedsCognition = false
|
||||||
|
}
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -229,3 +232,11 @@ func semanticReply(message string, result SemanticResult, previousFocus *situati
|
|||||||
}
|
}
|
||||||
return FallbackText(result.Interpretation.SpeechAct)
|
return FallbackText(result.Interpretation.SpeechAct)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func isCurrentFocusQuestion(message string, act interaction.SpeechAct) bool {
|
||||||
|
if act != interaction.SpeechActQuestion {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
lower := strings.ToLower(message)
|
||||||
|
return strings.Contains(lower, "сейчас") || strings.Contains(lower, "что мы") || strings.Contains(lower, "делаем")
|
||||||
|
}
|
||||||
|
|||||||
@@ -61,6 +61,9 @@ func TestInterpretUtteranceQuestionAboutCurrentWorkUsesFocus(t *testing.T) {
|
|||||||
if !strings.Contains(result.Reply, "Assistant") {
|
if !strings.Contains(result.Reply, "Assistant") {
|
||||||
t.Fatalf("expected focus-aware reply, got %q", result.Reply)
|
t.Fatalf("expected focus-aware reply, got %q", result.Reply)
|
||||||
}
|
}
|
||||||
|
if result.NeedsCognition {
|
||||||
|
t.Fatalf("focus question should be answered from canonical focus without cognition")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestInterpretUtteranceInheritedFocusForThere(t *testing.T) {
|
func TestInterpretUtteranceInheritedFocusForThere(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user