Luis Mendes
2acb957d83
fix(cli): replace in-memory automation-profile repository with database-backed persistence
...
The automation-profile CLI commands used an _InMemoryProfileRepository
(a Python dict) that lost all data between CLI process invocations.
Profiles created with "automation-profile add" were invisible to
subsequent "automation-profile show" or "list" calls because each CLI
command is a separate process with a fresh empty dict.
Changes:
- Replaced _InMemoryProfileRepository with the real
AutomationProfileRepository from the infrastructure layer, wired
via the DI container following the same pattern as tool.py and
session.py.
- Added auto_commit support to AutomationProfileRepository (matching
the existing SessionRepository pattern) so that CLI commands running
outside a UnitOfWork commit each operation automatically.
- Added safety_json and guards_json Text columns to the
automation_profiles table (Alembic migration m6_005) for full-fidelity
round-trip of the AutomationGuard and SafetyProfile sub-models.
Previously, guards and several safety fields (max_cost_per_plan,
max_retries_per_step, etc.) were silently dropped on persistence.
- Updated _from_domain, _to_domain, and _update_row to serialize and
deserialize the full guard and safety sub-models via JSON, with
backward-compatible fallback to legacy scalar columns.
Refs: #746
2026-03-17 09:53:53 +00:00
..
2026-03-16 12:11:08 +00:00
2026-03-16 22:50:27 +00:00
2026-03-12 14:38:57 +00:00
2026-03-16 23:22:05 +00:00
2026-03-12 23:32:48 +00:00
2026-03-17 09:53:53 +00:00
2026-03-12 19:49:11 +00:00
2026-03-12 14:38:57 +00:00
2026-03-12 14:38:57 +00:00
2026-03-12 14:38:57 +00:00
2026-03-09 13:01:58 -04:00
2026-03-03 03:29:31 +00:00
2026-03-10 15:09:03 +00:00
2026-03-05 15:13:19 +00:00
2026-03-05 10:27:36 -05:00
2026-03-07 14:53:18 +00:00
2026-03-05 01:28:50 +00:00
2026-03-09 13:01:58 -04:00
2026-02-14 12:16:39 -05:00
2026-03-15 19:33:11 -04:00
2026-02-14 12:16:39 -05:00
2026-02-14 12:16:39 -05:00
2026-02-17 20:25:12 +00:00
2026-02-13 09:41:28 -05:00
2026-03-09 13:01:58 -04:00
2026-02-24 19:12:01 +00:00
2026-03-09 13:01:58 -04:00
2026-03-02 08:17:21 +00:00
2026-03-10 23:11:22 +00:00
2026-02-20 20:24:10 +00:00
2026-02-25 10:30:42 +00:00
2026-02-26 09:10:35 +00:00
2026-03-09 13:01:58 -04:00
2026-02-25 10:01:57 +00:00
2026-03-04 23:47:20 +00:00
2026-03-09 13:01:58 -04:00
2026-03-09 13:01:58 -04:00
2026-02-20 08:50:06 -05:00
2026-02-20 15:57:21 +00:00
2026-03-09 13:01:58 -04:00
2026-02-28 22:06:57 +00:00
2026-03-09 13:01:58 -04:00
2026-03-01 03:09:51 +00:00
2026-03-09 13:01:58 -04:00
2026-02-26 02:47:14 +00:00
2026-02-27 13:47:42 -05:00
2026-03-01 03:09:51 +00:00
2026-03-02 10:18:14 +00:00
2026-02-22 00:43:08 -05:00
2026-02-22 00:43:08 -05:00
2026-03-03 14:55:58 -05:00
2026-02-16 23:50:59 -05:00
2026-02-24 20:11:42 +00:00
2026-03-10 21:39:31 +00:00
2026-02-20 15:57:21 +00:00
2026-02-19 22:44:34 +00:00
2026-02-22 00:43:08 -05:00
2026-02-14 13:51:12 -05:00
2026-03-02 02:01:27 +00:00
2026-02-18 12:18:03 +00:00
2026-03-07 11:49:14 -05:00
2026-02-25 10:48:05 -05:00
2026-03-09 13:01:58 -04:00
2026-03-01 04:38:30 +00:00
2026-03-01 04:38:30 +00:00
2026-03-01 04:38:30 +00:00
2026-03-02 15:05:20 +00:00
2026-03-09 13:01:58 -04:00
2026-03-02 14:56:13 +00:00
2026-03-10 23:11:22 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 17:44:18 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-09 13:01:58 -04:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-12 14:38:57 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-10 19:29:27 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-02 14:56:13 +00:00
2026-03-12 10:31:37 +00:00
2026-03-03 23:36:15 +00:00
2026-03-05 14:11:23 +00:00
2026-03-09 13:01:58 -04:00
2026-03-05 12:58:57 +00:00
2026-03-05 22:00:15 +00:00
2026-03-03 17:01:57 +00:00
2026-02-24 12:19:04 -05:00
2026-03-10 14:18:04 -04:00
2026-02-25 12:08:01 -05:00
2026-02-16 16:46:54 -05:00
2026-02-13 18:54:15 +00:00
2026-03-09 13:01:58 -04:00
2026-03-04 21:20:47 +00:00
2026-03-02 14:32:31 +00:00
2026-02-16 21:35:54 +00:00
2026-03-09 13:01:58 -04:00
2026-02-13 20:34:57 +00:00
2026-02-24 12:19:04 -05:00
2026-02-22 15:29:41 -05:00
2026-02-22 00:43:08 -05:00
2026-03-10 19:29:27 +00:00
2026-02-27 02:33:42 +00:00
2026-02-26 16:13:44 +00:00
2026-03-03 12:53:28 +00:00
2026-03-09 13:01:58 -04:00
2026-03-03 12:53:28 +00:00
2026-03-09 13:01:58 -04:00
2026-03-09 13:01:58 -04:00
2026-03-06 23:14:30 +00:00
2026-03-10 12:17:51 +00:00
2026-03-10 12:17:51 +00:00
2026-03-10 12:17:51 +00:00
2026-03-10 12:17:51 +00:00
2026-03-10 12:17:51 +00:00
2026-03-09 13:01:58 -04:00
2026-03-06 20:07:03 +00:00
2026-03-06 20:07:03 +00:00
2026-02-13 20:34:57 +00:00
2026-03-12 19:49:11 +00:00
2026-02-25 10:05:10 +00:00
2026-02-25 10:07:09 +00:00
2026-03-02 11:54:53 +00:00
2026-03-03 14:48:55 -05:00
2026-02-19 13:46:48 +00:00
2026-02-21 16:30:33 +00:00
2026-02-16 21:35:54 +00:00
2026-02-14 04:01:20 +00:00
2026-03-04 15:36:34 +00:00
2026-02-22 15:29:41 -05:00
2026-03-04 20:26:42 +00:00
2026-03-09 13:01:58 -04:00
2026-03-09 13:01:58 -04:00
2026-03-03 21:44:20 +00:00
2026-02-17 00:38:33 +00:00
2026-03-03 17:04:17 -05:00
2026-02-27 13:47:42 -05:00
2026-02-22 15:29:41 -05:00
2026-03-12 14:38:57 +00:00
2026-02-25 04:50:43 +00:00
2026-02-25 22:09:26 +00:00
2026-02-26 02:01:47 +00:00
2026-03-03 23:36:15 +00:00
2026-03-09 13:01:58 -04:00
2026-02-25 13:17:26 +00:00
2026-02-25 19:38:43 -05:00
2026-02-25 19:38:43 -05:00
2026-02-25 19:38:43 -05:00
2026-03-09 13:01:58 -04:00
2026-03-03 14:55:58 -05:00
2026-02-21 10:23:33 -05:00
2026-02-28 20:21:18 +00:00
2026-02-20 00:28:15 +00:00
2026-02-23 10:45:01 +00:00
2026-03-15 19:59:38 -04:00
2026-03-01 03:09:51 +00:00
2026-03-09 13:01:58 -04:00
2026-02-24 12:19:04 -05:00
2026-02-25 19:38:43 -05:00
2026-02-16 21:35:54 +00:00
2026-03-09 13:01:58 -04:00
2026-02-27 13:47:42 -05:00
2026-02-14 13:42:02 -05:00
2026-03-01 03:09:51 +00:00
2026-03-02 02:01:27 +00:00
2026-02-22 15:29:41 -05:00
2026-03-08 23:28:05 +00:00
2026-02-22 00:43:08 -05:00
2026-02-21 10:23:33 -05:00
2026-02-27 13:47:42 -05:00
2026-03-01 03:09:51 +00:00
2026-03-09 13:01:58 -04:00
2026-03-03 12:10:25 +00:00
2026-03-03 12:10:25 +00:00
2026-02-20 15:57:21 +00:00
2026-03-01 03:09:51 +00:00
2026-02-25 19:38:43 -05:00
2026-02-17 00:37:53 +00:00
2026-02-25 14:00:04 -05:00
2026-03-09 13:01:58 -04:00
2026-02-15 00:12:07 -05:00
2026-03-09 13:01:58 -04:00
2026-03-02 02:01:27 +00:00
2026-02-15 06:16:19 +00:00
2026-03-09 13:01:58 -04:00
2026-03-08 22:31:40 +00:00
2026-02-15 08:29:31 +00:00
2026-03-09 13:01:58 -04:00
2026-02-25 14:00:04 -05:00
2026-03-09 13:01:58 -04:00
2026-03-02 02:01:27 +00:00
2026-03-02 08:17:21 +00:00
2026-03-09 13:01:58 -04:00
2026-03-06 20:07:03 +00:00
2026-03-08 21:53:21 -04:00
2026-02-17 16:40:18 +00:00
2026-02-18 03:27:00 +00:00
2026-03-09 13:01:58 -04:00
2026-02-16 23:56:55 -05:00
2026-02-17 14:40:16 +00:00
2026-03-09 13:01:58 -04:00
2026-03-03 23:36:15 +00:00
2026-03-10 21:39:31 +00:00
2026-03-13 13:32:52 +08:00
2026-03-10 21:39:31 +00:00
2026-02-15 11:04:18 -05:00
2026-03-08 22:19:40 +00:00
2026-02-27 09:47:10 -05:00
2026-03-09 13:01:58 -04:00
2026-03-09 13:01:58 -04:00
2026-03-09 13:01:58 -04:00
2026-02-24 12:19:04 -05:00
2026-02-23 03:11:12 +00:00
2026-03-09 23:55:33 +00:00
2026-02-17 00:37:53 +00:00
2026-03-09 13:01:58 -04:00
2026-02-27 13:47:42 -05:00
2026-02-17 22:59:16 -05:00
2026-03-01 03:09:51 +00:00
2026-02-22 00:43:08 -05:00
2026-02-18 03:27:00 +00:00
2026-02-18 00:10:15 +00:00
2026-03-09 13:01:58 -04:00
2026-03-10 03:39:32 +00:00
2026-02-16 16:46:54 -05:00
2026-02-20 08:48:33 -05:00
2026-03-07 19:36:09 +00:00
2026-02-18 03:27:00 +00:00
2026-03-10 04:06:02 +00:00
2026-02-16 16:46:54 -05:00
2026-03-09 13:01:58 -04:00
2026-02-18 03:27:00 +00:00
2026-02-17 21:07:54 +00:00
2026-02-16 21:35:54 +00:00
2026-03-10 21:39:31 +00:00
2026-03-10 21:39:31 +00:00
2026-02-18 03:27:00 +00:00
2026-02-18 03:27:00 +00:00
2026-03-10 03:39:32 +00:00
2026-03-09 13:01:58 -04:00
2026-03-11 17:42:13 +00:00
2026-03-11 17:42:13 +00:00
2026-03-11 17:42:13 +00:00
2026-03-11 17:42:13 +00:00
2026-03-03 22:21:14 +00:00
2026-03-03 22:21:14 +00:00
2026-03-04 15:59:15 +00:00
2026-03-09 13:01:58 -04:00
2026-03-09 13:01:58 -04:00
2026-03-06 00:49:33 +00:00
2026-03-12 14:38:57 +00:00
2026-02-19 20:10:56 +00:00
2026-02-13 19:24:24 +00:00
2026-02-25 10:06:59 +00:00
2026-03-04 12:18:51 -05:00
2026-03-02 22:05:53 +00:00
2026-02-28 17:46:54 +00:00
2026-03-12 14:38:57 +00:00
2026-03-12 14:38:57 +00:00
2026-02-22 00:43:08 -05:00
2026-02-20 01:10:19 +00:00
2026-03-12 16:16:41 +00:00
2026-03-12 16:16:41 +00:00
2026-02-18 00:10:15 +00:00
2026-03-05 21:38:55 +00:00
2026-03-08 02:57:44 +00:00
2026-03-09 13:01:58 -04:00
2026-02-25 19:38:43 -05:00
2026-02-27 13:47:42 -05:00
2026-02-24 12:19:04 -05:00
2026-02-26 10:57:07 +00:00
2026-02-21 10:23:33 -05:00
2026-02-20 08:50:08 -05:00
2026-03-02 14:56:13 +00:00
2026-02-27 20:09:26 +00:00
2026-02-21 16:30:40 +00:00
2026-02-21 16:30:40 +00:00
2026-02-16 19:52:47 +05:30
2026-02-21 10:23:33 -05:00
2026-03-09 13:01:58 -04:00
2026-03-09 13:01:58 -04:00
2026-03-09 13:01:58 -04:00
2026-03-01 09:07:06 +00:00
2026-03-09 13:01:58 -04:00
2026-03-02 09:41:25 -05:00
2026-03-09 13:01:58 -04:00
2026-03-08 21:53:21 -04:00
2026-03-11 03:54:46 +00:00
2026-03-16 01:45:50 +00:00
2026-03-12 20:42:14 +00:00
2026-03-12 19:49:11 +00:00
2026-03-12 16:16:41 +00:00
2026-03-12 16:16:41 +00:00
2026-03-12 16:16:41 +00:00
2026-03-16 01:12:24 +00:00
2026-03-11 01:36:06 +00:00
2026-03-08 22:11:49 +00:00
2026-02-14 14:03:28 -05:00
2026-02-20 08:49:30 -05:00
2026-02-22 00:43:08 -05:00
2026-02-20 08:49:30 -05:00
2026-02-14 18:55:48 +00:00
2026-02-17 20:28:20 +00:00
2026-02-21 10:23:33 -05:00
2026-03-12 10:31:37 +00:00
2026-03-05 19:20:39 +00:00
2026-03-11 00:40:07 +00:00
2026-03-09 13:01:58 -04:00
2026-03-06 23:14:30 +00:00
2026-03-13 18:21:50 +00:00
2026-03-05 21:38:55 +00:00
2026-03-09 13:01:58 -04:00
2026-02-15 09:04:17 +00:00
2026-02-22 00:43:08 -05:00
2026-02-25 10:03:57 +00:00
2026-03-09 13:01:58 -04:00