BaaRai
135b083b9a
feat(guard): planner and main-agent hooks, target-gate scope in every session (S3b 1.1)
...
Step 1.1 of the S3b phase 1 plan. Wiring only: the approval gate for asset
targets is not enforced yet and no behaviour changes.
- Planner.Plan and MainAgent.Chat take a hooks parameter, like Worker.Execute.
Their sessions had no hooks, so nothing saw their tool calls before execution.
- guard.NewTargetOnly: the guard for those two agent kinds. It runs the
target-gate seam only: no intercept rule, no fallback judge, and no entry in
the audit ring (Guard.record is untouched and not called for these calls).
- Task.TargetGuard, built beside Task.Guard.
- intercept.WithTargetScope / TargetScopeFromContext: task id or conversation
id, an Enabled func and a wait bound, set at the five session entry points
(planner round, final planner round with wait bound 0, main-agent turn,
worker intent, conversation turn).
The seam allows every call and reads and writes nothing. No task or
conversation has an opt-in flag yet, so Enabled is nil (off) everywhere.
2026-11-10 22:14:24 +01:00
..
2026-10-12 06:45:21 +02:00
2026-10-12 06:45:21 +02:00
2026-07-26 04:27:45 -04:00
2026-10-12 00:58:53 +02:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-05 16:48:27 +01:00
2026-11-05 16:57:48 +01:00
2026-07-26 04:27:45 -04:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-10 17:45:11 +01:00
2026-08-28 14:03:07 +08:00
2026-10-08 23:14:34 +02:00
2026-09-10 16:06:08 +08:00
2026-11-10 22:14:24 +01:00
2026-10-21 15:08:37 +02:00
2026-11-10 16:28:26 +01:00
2026-09-29 10:09:23 -04:00
2026-10-08 23:14:34 +02:00
2026-11-09 20:21:27 +01:00
2026-08-31 09:00:21 -04:00
2026-10-08 23:14:34 +02:00
2026-08-24 19:28:18 +08:00
2026-11-10 22:14:24 +01:00
2026-11-10 22:14:24 +01:00
2026-11-03 23:47:49 +01:00
2026-11-03 22:14:35 +01:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-09-10 13:03:20 +08:00
2026-11-10 16:28:26 +01:00
2026-10-08 23:14:34 +02:00
2026-11-10 12:52:56 +01:00
2026-11-09 20:43:25 +01:00
2026-11-10 12:33:40 +01:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-09 21:04:12 +01:00
2026-10-21 14:46:56 +02:00
2026-10-21 14:46:56 +02:00
2026-10-08 23:14:34 +02:00
2026-08-24 19:29:00 +08:00
2026-10-08 23:14:34 +02:00
2026-10-12 18:43:41 +02:00
2026-08-24 19:29:00 +08:00
2026-10-08 23:14:34 +02:00
2026-11-09 22:35:09 +01:00
2026-10-08 23:14:34 +02:00
2026-11-09 12:22:46 +01:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-09 22:17:56 +01:00
2026-10-21 14:25:35 +02:00
2026-10-21 14:25:35 +02:00
2026-11-08 18:15:33 +01:00
2026-11-10 16:28:26 +01:00
2026-11-10 16:28:26 +01:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-08-25 09:40:05 -04:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-05 16:57:48 +01:00
2026-11-05 16:57:48 +01:00
2026-10-08 23:14:34 +02:00
2026-08-24 19:29:00 +08:00
2026-08-24 19:29:00 +08:00
2026-11-10 22:14:24 +01:00
2026-10-11 22:50:00 +02:00
2026-10-11 22:50:00 +02:00
2026-10-08 23:14:34 +02:00
2026-11-10 16:05:31 +01:00
2026-11-10 16:05:31 +01:00
2026-11-10 16:05:31 +01:00
2026-11-10 10:43:29 +01:00
2026-11-10 16:28:26 +01:00
2026-07-26 04:27:45 -04:00
2026-10-11 23:06:39 +02:00
2026-08-24 14:14:15 +08:00
2026-10-08 23:14:34 +02:00
2026-11-08 17:11:43 +01:00
2026-11-10 22:14:24 +01:00
2026-10-12 06:41:22 +02:00
2026-09-17 12:52:57 -04:00
2026-11-08 17:11:43 +01:00
2026-10-11 22:26:22 +02:00
2026-10-19 00:33:08 +02:00
2026-10-19 00:33:08 +02:00
2026-10-08 23:14:34 +02:00
2026-08-24 19:30:14 +08:00
2026-10-08 23:14:34 +02:00
2026-10-11 19:02:23 +02:00
2026-11-10 22:14:24 +01:00
2026-08-24 14:14:15 +08:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-08-28 12:56:29 +08:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-08-24 19:29:00 +08:00
2026-10-08 23:14:34 +02:00
2026-10-21 15:08:37 +02:00
2026-10-09 14:28:08 +02:00
2026-10-08 23:14:34 +02:00
2026-10-13 14:49:47 +02:00
2026-10-08 23:14:34 +02:00
2026-10-21 15:16:25 +02:00
2026-10-21 15:00:16 +02:00
2026-10-21 15:13:56 +02:00
2026-10-21 15:13:56 +02:00
2026-10-08 23:14:34 +02:00
2026-10-12 21:13:28 +02:00
2026-10-19 00:28:27 +02:00
2026-10-19 00:28:27 +02:00
2026-10-09 11:37:30 +02:00
2026-10-23 18:12:38 -03:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-10 16:28:26 +01:00
2026-08-25 12:05:26 +08:00
2026-08-25 12:05:26 +08:00
2026-11-10 09:46:49 +01:00
2026-11-10 16:28:26 +01:00
2026-10-11 14:53:08 +02:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-08-31 09:00:21 -04:00
2026-10-08 23:14:34 +02:00