agent-bot
7de9e35dcf
CI / go-vet (pull_request) Failing after 39s
CI / backup-restore-drill (pull_request) Successful in 30s
CI / web (pull_request) Successful in 31s
fix(chat): bind project ID through CLI chat + stage dispatch (issue #2 )
...
Root cause: the 2026-09-28 controlled-projection hardening added the
ErrUnboundControlledProject guard, and the server path got session project
binding backfilled - but two paths missed:
- CLI chat mode never called session.SetProjectID (only -project name)
- coordinator handleAdvanceStage built StageRunRequest without
ProjectID/UserID, so every stage-advance squad task was rejected
Fixes:
- handleChatMode gains projectID param (wired from -project-id flag);
session binding follows the server convention
- handleAdvanceStage passes parseDecimalID(UserCtx.Project/User.ID)
- CLI chat tests get hermetic env (unreachable DB + ALLOW_IN_MEMORY) so
local runs stop accidentally hitting the real dev DB on :5433
- stale test TestBindSessionProjectContext_KeepsExistingProjectID asserted
the pre-fix 'switch does not propagate' bug; updated to assert switch
propagation + bind no-overwrite
Result: go test -short ./... = 75 packages, 0 failures (first time).
Short tests promoted from report-only back into the required CI gate.
2026-09-29 09:04:16 +00:00
..
2026-09-28 02:27:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-15 14:40:56 +00:00
2026-09-28 02:27:16 +00:00
2026-09-25 13:17:22 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-21 09:47:06 +00:00
2026-09-28 02:27:16 +00:00
2026-09-16 09:42:07 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-25 16:33:58 +00:00
2026-09-16 09:42:07 +00:00
2026-09-25 13:17:22 +00:00
2026-09-24 11:49:43 +00:00
2026-09-13 02:50:23 +00:00
2026-09-13 02:50:23 +00:00
2026-09-28 02:00:24 +00:00
2026-09-28 02:27:16 +00:00
2026-09-25 13:17:22 +00:00
2026-09-29 06:11:20 +00:00
2026-09-15 14:40:56 +00:00
2026-09-15 13:00:33 +00:00
2026-09-25 13:17:22 +00:00
2026-09-23 12:45:30 +00:00
2026-09-13 12:25:22 +00:00
2026-09-20 10:42:58 +00:00
2026-09-25 13:17:22 +00:00
2026-09-20 10:42:58 +00:00
2026-09-15 13:00:33 +00:00
2026-09-15 14:40:56 +00:00
2026-09-18 03:39:08 +00:00
2026-09-19 09:28:11 +00:00
2026-09-25 20:08:56 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:00:24 +00:00
2026-09-25 13:17:22 +00:00
2026-09-15 13:00:33 +00:00
2026-09-28 02:27:16 +00:00
2026-09-17 17:03:08 +00:00
2026-09-28 02:27:16 +00:00
2026-09-25 14:37:11 +00:00
2026-09-28 02:27:16 +00:00
2026-09-20 07:04:57 +00:00
2026-09-25 13:17:22 +00:00
2026-09-25 13:17:22 +00:00
2026-09-25 13:17:22 +00:00
2026-09-26 02:00:14 +00:00
2026-09-28 02:27:16 +00:00
2026-09-25 13:17:22 +00:00
2026-09-13 11:12:03 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-25 13:17:22 +00:00
2026-09-28 12:34:32 +00:00
2026-09-22 01:10:17 +00:00
2026-09-24 11:49:43 +00:00
2026-09-25 13:17:22 +00:00
2026-09-25 13:17:22 +00:00
2026-09-25 13:17:22 +00:00
2026-09-15 14:40:56 +00:00
2026-09-25 13:17:22 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:37:48 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-25 13:17:22 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:00:24 +00:00
2026-09-26 02:00:14 +00:00
2026-09-26 02:00:14 +00:00
2026-09-26 02:00:14 +00:00
2026-09-15 13:00:33 +00:00
2026-09-25 13:17:22 +00:00
2026-09-20 03:45:16 +00:00
2026-09-25 13:17:22 +00:00
2026-09-19 06:00:30 +00:00
2026-09-25 04:45:49 +00:00
2026-09-25 04:45:49 +00:00
2026-09-28 02:27:16 +00:00
2026-09-25 16:33:58 +00:00
2026-09-28 02:27:16 +00:00
2026-09-16 10:42:20 +00:00
2026-09-24 11:49:43 +00:00
2026-09-28 02:27:16 +00:00
2026-09-24 11:49:43 +00:00
2026-09-28 02:27:16 +00:00
2026-09-23 12:45:30 +00:00
2026-09-23 12:45:30 +00:00
2026-09-22 18:15:29 +08:00
2026-09-13 02:50:23 +00:00
2026-09-22 19:40:28 +08:00
2026-09-17 02:04:51 +00:00
2026-09-25 13:17:22 +00:00
2026-09-29 09:04:16 +00:00
2026-09-13 02:50:23 +00:00
2026-09-14 14:07:05 +00:00
2026-09-28 02:27:16 +00:00
2026-09-26 02:00:14 +00:00
2026-09-28 02:27:16 +00:00
2026-09-22 18:04:02 +08:00
2026-09-28 02:27:16 +00:00
2026-09-13 22:37:24 +00:00
2026-09-17 09:39:59 +00:00
2026-09-28 02:27:16 +00:00
2026-09-20 03:45:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-23 13:57:08 +00:00
2026-09-25 13:17:22 +00:00
2026-09-25 20:08:56 +00:00
2026-09-20 07:04:57 +00:00
2026-09-16 09:42:07 +00:00
2026-09-25 13:17:22 +00:00
2026-09-28 10:36:26 +00:00
2026-09-19 09:19:36 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 06:09:42 +00:00
2026-09-28 10:30:52 +00:00
2026-09-14 08:39:44 +00:00
2026-09-28 12:34:32 +00:00
2026-09-17 08:18:11 +00:00
2026-09-24 16:13:47 +00:00
2026-09-25 20:08:56 +00:00
2026-09-25 20:08:56 +00:00
2026-09-28 02:27:16 +00:00
2026-09-25 21:01:37 +00:00
2026-09-25 21:01:37 +00:00
2026-09-23 13:57:08 +00:00
2026-09-25 13:17:22 +00:00
2026-09-25 21:01:37 +00:00
2026-09-25 13:17:22 +00:00
2026-09-13 02:50:23 +00:00
2026-09-26 02:00:14 +00:00
2026-09-28 10:36:26 +00:00
2026-09-26 02:00:14 +00:00
2026-09-25 13:17:22 +00:00
2026-09-28 12:34:32 +00:00
2026-09-23 12:45:30 +00:00
2026-09-17 09:46:09 +00:00
2026-09-23 12:45:30 +00:00
2026-09-28 12:34:32 +00:00
2026-09-13 02:50:22 +00:00
2026-09-13 02:50:22 +00:00
2026-09-23 12:45:30 +00:00
2026-09-28 02:27:16 +00:00
2026-09-28 02:27:16 +00:00
2026-09-23 13:57:08 +00:00
2026-09-14 12:52:28 +00:00
2026-09-23 13:57:08 +00:00
2026-09-25 13:17:22 +00:00
2026-09-16 09:42:07 +00:00
2026-09-25 13:17:22 +00:00
2026-09-28 02:27:16 +00:00
2026-09-22 19:20:11 +08:00
2026-09-22 18:15:29 +08:00
2026-09-24 03:24:13 +00:00
2026-09-25 13:17:22 +00:00
2026-09-28 02:27:16 +00:00
2026-09-21 14:58:21 +00:00
2026-09-28 02:27:16 +00:00