freemo
62ded31c24
fix(cli): route 'agents actor add' through ActorRegistry.add() YAML-first path
...
Route the 'agents actor add' CLI command through ActorRegistry.add() instead
of the legacy registry.upsert_actor() path. This ensures the original YAML
text, schema_version, and compiled_metadata are preserved in the database.
Changes:
- src/cleveragents/cli/commands/actor.py: Add _load_config_text() helper that
returns both raw text and parsed dict. Refactor add() to call registry.add()
with the raw yaml_text and update=update_existing flag when a registry is
available. The service fallback path (no registry) is unchanged.
- features/steps/actor_cli_steps.py: Update add command step definitions to
mock registry.add() instead of registry.upsert_actor(). Update 'the actor
add should pass the loaded config' assertion to verify registry.add() is
called with a non-empty yaml_text string.
- features/steps/actor_cli_yaml_steps.py: Update add command steps to mock
registry.add() instead of registry.upsert_actor().
- features/steps/actor_add_rich_output_steps.py: Update add command steps to
mock registry.add() instead of registry.upsert_actor().
- robot/helper_actor_add_rich_output.py: Update helper to mock registry.add()
instead of registry.upsert_actor().
- features/actor_add_yaml_first_path.feature: New Behave feature verifying
the YAML-first persistence path is used by actor add.
- features/steps/actor_add_yaml_first_path_steps.py: Step definitions for
the new YAML-first path feature.
- robot/actor_add_yaml_first_path.robot: New Robot integration tests verifying
yaml_text is preserved and upsert_actor is not called.
- robot/helper_actor_add_yaml_first_path.py: Helper script for Robot tests.
Fixes #3426
ISSUES CLOSED : #3426
2026-04-05 21:19:40 +00:00
..
2026-04-05 17:53:56 +00:00
2026-04-03 00:29:46 +00:00
2026-04-03 00:29:46 +00:00
2026-04-05 17:53:56 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 17:53:56 +00:00
2026-04-05 17:53:56 +00:00
2026-04-05 21:10:14 +00:00
2026-04-02 23:53:13 +00:00
2026-04-01 06:16:41 +00:00
2026-04-01 06:16:41 +00:00
2026-04-05 08:12:32 +00:00
2026-04-05 21:19:40 +00:00
2026-04-05 07:49:49 +00:00
2026-04-05 21:19:40 +00:00
2026-03-17 09:53:57 +00:00
2026-03-09 13:01:58 -04:00
2026-04-05 21:19:40 +00:00
2026-04-05 21:19:40 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 18:18:08 +00:00
2026-04-02 16:53:03 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-04-02 17:00:53 +00:00
2026-04-02 16:59:07 +00:00
2026-03-20 21:22:10 +00:00
2026-02-27 09:47:10 -05:00
2026-04-02 06:21:49 +00:00
2026-02-17 21:00:05 -05:00
2026-04-05 17:55:54 +00:00
2026-04-02 19:09:04 +00:00
2026-04-05 08:39:14 +00:00
2026-04-05 19:48:40 +00:00
2026-04-02 19:09:04 +00:00
2026-04-02 19:09:04 +00:00
2026-04-02 19:09:04 +00:00
2026-04-05 08:39:14 +00:00
2026-04-05 19:48:40 +00:00
2026-04-01 06:16:41 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 19:48:40 +00:00
2026-03-20 21:22:10 +00:00
2026-04-05 20:56:32 +00:00
2026-04-02 16:59:40 +00:00
2026-04-02 08:31:27 +00:00
2026-04-05 10:17:24 +00:00
2026-04-02 16:58:36 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-02-24 12:19:04 -05:00
2026-04-04 20:38:16 +00:00
2026-03-20 21:22:10 +00:00
2026-04-01 06:16:41 +00:00
2026-03-10 12:17:51 +00:00
2026-04-04 20:38:16 +00:00
2026-03-31 21:47:12 +00:00
2026-04-02 17:08:52 +00:00
2026-04-05 18:08:56 +00:00
2026-03-09 13:01:58 -04:00
2026-03-20 21:22:10 +00:00
2026-04-03 02:01:45 +00:00
2026-04-04 20:38:16 +00:00
2026-04-02 17:07:48 +00:00
2026-04-02 16:53:03 +00:00
2026-04-02 16:59:07 +00:00
2026-03-31 21:47:12 +00:00
2026-04-02 16:58:39 +00:00
2026-04-05 17:49:20 +00:00
2026-04-05 08:29:55 +00:00
2026-04-05 18:20:15 +00:00
2026-04-05 18:20:15 +00:00
2026-04-05 05:46:05 +00:00
2026-04-02 16:59:14 +00:00
2026-01-27 21:55:06 -05:00
2026-02-12 04:47:02 +00:00
2026-04-05 08:26:50 +00:00
2026-04-02 16:58:32 +00:00
2026-04-02 16:52:33 +00:00
2026-04-05 07:06:53 +00:00
2026-04-04 23:48:02 +00:00
2026-04-02 16:52:33 +00:00
2026-04-02 19:09:04 +00:00
2026-04-02 16:53:03 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-03-02 02:01:27 +00:00
2026-03-30 17:48:48 +00:00
2026-04-02 16:58:36 +00:00
2026-04-02 17:08:38 +00:00
2026-04-02 17:07:41 +00:00
2026-04-02 19:09:04 +00:00
2026-04-02 19:09:04 +00:00
2026-04-02 19:09:04 +00:00
2026-04-05 19:44:17 +00:00
2026-04-05 19:46:23 +00:00
2026-04-04 20:38:16 +00:00
2026-04-02 19:09:04 +00:00
2026-04-05 21:11:36 +00:00
2026-02-13 05:01:27 +00:00
2026-04-02 19:09:04 +00:00
2026-02-27 13:47:42 -05:00
2026-04-05 20:46:24 +00:00
2026-04-05 19:48:40 +00:00
2026-04-02 19:09:04 +00:00
2026-04-02 19:09:04 +00:00
2026-04-01 04:27:09 +00:00
2026-04-03 13:38:33 -04:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 04:38:31 +00:00
2026-04-03 00:01:48 +00:00
2026-04-05 19:48:40 +00:00
2026-04-02 21:30:05 +00:00
2026-04-04 20:38:16 +00:00
2026-04-02 16:59:48 +00:00
2026-03-17 09:53:57 +00:00
2026-03-19 06:53:06 +00:00
2026-04-05 08:22:36 +00:00
2026-04-05 18:00:27 +00:00
2026-03-20 21:22:10 +00:00
2026-03-10 03:39:32 +00:00
2026-04-02 08:31:27 +00:00
2026-04-02 08:31:27 +00:00
2026-03-17 09:53:57 +00:00
2026-04-04 20:38:16 +00:00
2026-04-01 13:02:24 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 18:13:11 +00:00
2026-04-05 07:29:35 +00:00
2026-04-02 08:31:27 +00:00
2026-04-05 09:03:32 +00:00
2026-04-05 08:04:27 +00:00
2026-04-02 16:53:03 +00:00
2026-04-05 04:37:45 +00:00
2026-04-02 17:00:53 +00:00
2026-03-27 23:53:22 +00:00
2026-04-04 20:38:16 +00:00
2026-04-04 23:08:32 +00:00
2026-04-04 23:08:32 +00:00
2026-04-05 07:28:12 +00:00
2026-04-05 21:12:13 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 09:38:43 +00:00
2026-04-05 18:19:19 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 07:15:48 +00:00
2026-04-05 21:11:53 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 19:48:40 +00:00
2026-04-05 08:59:59 +00:00
2026-03-20 21:22:10 +00:00
2026-04-05 07:18:27 +00:00
2026-04-03 19:00:22 +00:00
2026-04-02 16:50:50 +00:00
2026-04-02 16:51:15 +00:00
2026-04-02 16:51:29 +00:00
2026-04-05 17:52:59 +00:00
2026-04-05 07:39:57 +00:00
2026-04-03 03:58:45 +00:00
2026-04-03 19:03:15 +00:00
2026-04-02 19:09:04 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 08:47:35 +00:00
2026-04-01 04:27:09 +00:00
2026-04-02 23:53:13 +00:00
2026-04-02 23:59:37 +00:00
2026-04-02 17:07:26 +00:00
2026-04-02 16:53:03 +00:00
2026-04-02 16:53:03 +00:00
2026-04-02 17:07:26 +00:00
2026-04-02 17:07:26 +00:00
2026-04-02 17:07:26 +00:00
2026-04-02 17:07:26 +00:00
2026-04-05 17:49:35 +00:00
2026-04-01 21:51:14 +00:00
2026-04-05 18:08:09 +00:00
2026-04-04 20:38:16 +00:00
2026-04-05 18:08:09 +00:00
2026-04-05 18:09:41 +00:00
2026-04-03 05:56:27 +00:00
2026-04-02 17:08:13 +00:00
2026-03-20 21:22:10 +00:00
2026-04-05 17:52:30 +00:00
2026-04-02 20:48:33 +00:00
2026-04-01 09:23:21 +00:00
2026-04-05 17:50:51 +00:00
2026-04-05 17:50:51 +00:00
2026-04-03 05:56:27 +00:00
2026-04-02 17:09:15 +00:00
2026-04-05 17:52:59 +00:00
2026-04-01 03:30:00 +00:00
2026-04-04 20:38:16 +00:00