A1 multi-turn intent closure (sessions and cancel routing) #700

Merged
weichen merged 9 commits from feature/intent-multi-turn-a1 into main 2026-10-22 12:25:13 +00:00
Owner

Land functional follow-up A1: multi-turn intent closure.

Why: the host declined set_slot/change_slot/cancel and never kept pending expectations, so multi-turn clarifications could not complete an action and "取消刚才的任务" could not reach a real run.

Evidence: two implementation units (conversation-scoped intent sessions U-A1b; cancel intent routed through cmdbus with explicit targets and the standard confirmation path U-A1c), two reviewed repairs (architecture baseline edges for the new session package; storage-migrate manifest), per-unit SELF receipts in the task card (all exit=0). Combination: every target passes except the known environment-dependent svc governance flake (documented in the card, reproduced on clean main); the backend module now carries the scratch-session feature merge from the parallel line.

Impact: backend pin advances to 9ee752c; one new store table (intent_session) with a clean migration; route/server gain session-aware multi-turn handling; cmdbus confirmation semantics unchanged. A2-A4 and A2A remain out of scope.

Refs: docs/superpowers/plans/2026-10-21-agent-stack-audit-remediation-plan.md (A1)

Land functional follow-up A1: multi-turn intent closure. Why: the host declined set_slot/change_slot/cancel and never kept pending expectations, so multi-turn clarifications could not complete an action and "取消刚才的任务" could not reach a real run. Evidence: two implementation units (conversation-scoped intent sessions U-A1b; cancel intent routed through cmdbus with explicit targets and the standard confirmation path U-A1c), two reviewed repairs (architecture baseline edges for the new session package; storage-migrate manifest), per-unit SELF receipts in the task card (all exit=0). Combination: every target passes except the known environment-dependent svc governance flake (documented in the card, reproduced on clean main); the backend module now carries the scratch-session feature merge from the parallel line. Impact: backend pin advances to 9ee752c; one new store table (intent_session) with a clean migration; route/server gain session-aware multi-turn handling; cmdbus confirmation semantics unchanged. A2-A4 and A2A remain out of scope. Refs: docs/superpowers/plans/2026-10-21-agent-stack-audit-remediation-plan.md (A1)
weichen added 6 commits 2026-10-22 10:51:42 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-intent-multi-turn-a1.md; R0=955a32de2bb49171348bad5f566cce935df19212.

Impact: task metadata only; the feature workspace starts at 955a32de2b.

Refs: .task/feature-intent-multi-turn-a1.md
Why: fix the design decisions (run-cancel as the first business action,
store-backed conversation intent session with TTL and revision,
cmdbus confirmation unchanged) before implementation.
Evidence: scoping over intentgate/route/server and the intent lib.
Impact: task metadata only.
Refs: docs/superpowers/plans/2026-10-21-agent-stack-audit-remediation-plan.md (A1)
Why: land U-A1b (conversation-scoped intent sessions) and U-A1c (cancel
intent routed through cmdbus with explicit targets) per the approved
A1 feature scope.
Evidence: unit transports (a1b/a1c-run.json) and host verifications
(verify-a1b.json, verify-a1c.json exit=0); combination re-run below.
Impact: one component gitlink.
Refs: feature/intent-multi-turn-a1
Why: the A1 session package reuses the gate's result/command types,
persists via the store and is mediated by the server; the three edges
are the reviewed design, recorded in the task card.
Evidence: lint-architecture passes (verify-a1arch.json); boundaries
and full combination re-run below.
Impact: three baseline edge lines.
Refs: feature/intent-multi-turn-a1
Why: the backend branch advanced with the intent_session manifest fix.
Evidence: integration transport (a1git2-run.json); combination re-run
below.
Impact: one component gitlink.
Refs: feature/intent-multi-turn-a1
Record A1 unit receipts and the combination results
ci / svc-realcombo (pull_request) Successful in 3m12s
ci / test (pull_request) Successful in 10m52s
ci / test-pg (pull_request) Successful in 15m3s
9126b09b5d
Why: audit trail for U-A1b/U-A1c, the baseline and manifest repairs,
and the known environment-dependent governance flake.
Evidence: verify-a1b/a1c/a1sr/a1-rest exit=0.
Impact: task metadata only.
Refs: feature/intent-multi-turn-a1
weichen added 2 commits 2026-10-22 11:38:35 +00:00
Why: the independent review of the A1 multi-turn closure raised two
real blockers (cross-action slot inheritance; cancel store errors
swallowed); the report documents them for the repair that follows.
Evidence: review receipt /tmp/agent-stack-b2/reviewa1-run.json
(pi-glm attempt1 success).
Impact: review report only.
Refs: PR #700
Fold-close the task card before merge
ci / test (pull_request) Successful in 9m36s
ci / svc-realcombo (pull_request) Successful in 3m56s
ci / test-pg (pull_request) Successful in 15m50s
1651efa97b
Why: close the task card inside its own PR so landing it needs no post-merge backfill or separate close PR.
Evidence: .task/feature-intent-multi-turn-a1.md -> .task/archive/feature-intent-multi-turn-a1.md; status 已完成(合入前闭合); PR #700 https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/700.
Impact: task metadata only; the card is archived within PR #700 and lands with its merge commit.
Refs: task.sh close --self
weichen force-pushed feature/intent-multi-turn-a1 from d8c3022875 to 1651efa97b 2026-10-22 11:38:35 +00:00 Compare
weichen added 1 commit 2026-10-22 12:09:48 +00:00
Merge authoritative main into the task branch
ci / svc-realcombo (pull_request) Successful in 3m59s
ci / test (pull_request) Successful in 10m59s
ci / test-pg (pull_request) Successful in 14m51s
ce7b0d9c44
Why: include the current integration baseline before merge.

Evidence: fetched origin/main=3d3474a7.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
weichen merged commit c92443280e into main 2026-10-22 12:25:13 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Dev#700