Ai Chat, when ends, it is always creating new plans #5

Closed
opened 2026-10-03 10:47:28 +02:00 by EduarD3V · 7 comments
Owner

What the title says, this is something wrong. It has to create a plan only if the user asks to.

What the title says, this is something wrong. It has to create a plan only if the user asks to.
EduarD3V added this to the Gotoi project 2026-10-03 10:47:34 +02:00
Author
Owner

Claimed — branch issue/5-chat-no-autoplan. Doing: gate the control-chat create_plan/create_match_rule tools on an explicit operator request.

Claimed — branch `issue/5-chat-no-autoplan`. Doing: gate the control-chat create_plan/create_match_rule tools on an explicit operator request.
Author
Owner

Plan: /home/eduardez/workspace/gotoi-wt/meta/issue-5.plan.md — (1) update UC-MW-137; (2) gate tools in middleware/src/control-agent.ts on the operator's current message; (3) refusal tests in uc-mw-137-ai-create-plan-rule.test.ts; (4) run gates.

Plan: /home/eduardez/workspace/gotoi-wt/meta/issue-5.plan.md — (1) update UC-MW-137; (2) gate tools in middleware/src/control-agent.ts on the operator's current message; (3) refusal tests in uc-mw-137-ai-create-plan-rule.test.ts; (4) run gates.
Author
Owner

DONE. Commits: 7c2abe9 (UC-MW-137), 4a47de6 (gate + tests). Gates: uc-check ok; ai-headers ok; type-mirror ok; uc-mw-137 tests 5/5 (2 new refusal tests). Full bun test red PRE-EXISTING/env: committed bun.lock is lockfileVersion 2 but local Bun 1.3.14 ignores it (Unknown lockfile version) → dep drift; untouched base 33143a0 fails the same 20 unrelated tests (541 pass/20 fail) vs 545/18 here. Report: /home/eduardez/workspace/gotoi-wt/meta/issue-5.report.md Fix: control-chat create_plan/create_match_rule now require an explicit operator request in the current message.

DONE. Commits: 7c2abe9 (UC-MW-137), 4a47de6 (gate + tests). Gates: uc-check ok; ai-headers ok; type-mirror ok; uc-mw-137 tests 5/5 (2 new refusal tests). Full `bun test` red PRE-EXISTING/env: committed bun.lock is lockfileVersion 2 but local Bun 1.3.14 ignores it (Unknown lockfile version) → dep drift; untouched base 33143a0 fails the same 20 unrelated tests (541 pass/20 fail) vs 545/18 here. Report: /home/eduardez/workspace/gotoi-wt/meta/issue-5.report.md Fix: control-chat create_plan/create_match_rule now require an explicit operator request in the current message.
Author
Owner

DONE (corrected). Extra commit 9152969 fixes the regression my earlier prompt text caused: UC-MW-115's 2048-token compaction harness went 422. Restored the original system-prompt line and shortened both tool descriptions to net-shorter-than-develop (gate is in code). Gates now: uc-mw-115-control-chat 12/12; uc-mw-137 5/5; uc-check, ai-headers, type-mirror ok. Commit: 7c2abe9 UC-MW-137; 4a47de6 gate+tests; 9152969 prompt shrink. Report: /home/eduardez/workspace/gotoi-wt/meta/issue-5.report.md

DONE (corrected). Extra commit 9152969 fixes the regression my earlier prompt text caused: UC-MW-115's 2048-token compaction harness went 422. Restored the original system-prompt line and shortened both tool descriptions to net-shorter-than-develop (gate is in code). Gates now: uc-mw-115-control-chat 12/12; uc-mw-137 5/5; uc-check, ai-headers, type-mirror ok. Commit: 7c2abe9 UC-MW-137; 4a47de6 gate+tests; 9152969 prompt shrink. Report: /home/eduardez/workspace/gotoi-wt/meta/issue-5.report.md
Author
Owner

Branch pushed and PR opened: #6 (targets develop, draft).

Branch: issue/5-chat-no-autoplan - 3 commits: 7c2abe9 (UC-MW-137), 4a47de6 (gate + refusal tests), 9152969 (prompt shrink; fixes the UC-MW-115 tiny-context regression the first pass introduced).

Gates, touched surface, all exit 0: docs/use-cases/_check.py (350 UCs conform) - scripts/check-ai-headers.py (534 ok) - scripts/check-type-mirror.py - uc-mw-137 5/5 (2 new additive refusal tests) - uc-mw-115-control-chat 12/12 - plan-chat 11/11.

Draft because the full middleware suite is red for pre-existing environment flakiness: origin/develop 33143a0 fails the same ~20 unrelated tests (541 pass/20 fail) as this branch (545 pass/18 fail). No test was weakened or skipped.

Needs a human: merge into develop. Behaviour change is a conservative English guard rail in code - review whether the request-verb/noun heuristic is acceptable, or whether you would rather gate it on an explicit UI affordance.

Branch pushed and PR opened: https://git.eduard3v.com/EduarD3V/gotoi/pulls/6 (targets develop, draft). Branch: issue/5-chat-no-autoplan - 3 commits: 7c2abe9 (UC-MW-137), 4a47de6 (gate + refusal tests), 9152969 (prompt shrink; fixes the UC-MW-115 tiny-context regression the first pass introduced). Gates, touched surface, all exit 0: docs/use-cases/_check.py (350 UCs conform) - scripts/check-ai-headers.py (534 ok) - scripts/check-type-mirror.py - uc-mw-137 5/5 (2 new additive refusal tests) - uc-mw-115-control-chat 12/12 - plan-chat 11/11. Draft because the full middleware suite is red for pre-existing environment flakiness: origin/develop 33143a0 fails the same ~20 unrelated tests (541 pass/20 fail) as this branch (545 pass/18 fail). No test was weakened or skipped. Needs a human: merge into develop. Behaviour change is a conservative English guard rail in code - review whether the request-verb/noun heuristic is acceptable, or whether you would rather gate it on an explicit UI affordance.
EduarD3V added reference issue/5-chat-no-autoplan 2026-10-04 21:47:10 +02:00
Author
Owner

This can be closed, is ok

This can be closed, is ok
EduarD3V 2026-10-04 21:50:22 +02:00
  • closed this issue
  • added the
    verified
    label
Author
Owner

PR #6 (Issue #5 fix) merged into develop (5dc62a7) — gates independently re-verified on the branch head: uc-check, ai-headers, type-mirror green; uc-mw-137 5/5, uc-mw-115 12/12 (tiny-context regression surface), plan-chat 11/11 stable over 4 runs. Issue stays closed+verified.

PR #6 (Issue #5 fix) merged into develop (5dc62a7) — gates independently re-verified on the branch head: uc-check, ai-headers, type-mirror green; uc-mw-137 5/5, uc-mw-115 12/12 (tiny-context regression surface), plan-chat 11/11 stable over 4 runs. Issue stays closed+verified.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
EduarD3V/gotoi#5
No description provided.