fix(actors): enforce --update flag in agents actor add - reject re-adding existing actor without --update #3221

Merged
freemo merged 1 commits from fix/actor-add-update-enforcement into master 2026-04-05 21:12:06 +00:00

1 Commits

Author SHA1 Message Date
freemo 491781714f fix(actors): enforce --update flag in agents actor add - reject re-adding existing actor without --update
CI / lint (pull_request) Successful in 22s
CI / typecheck (pull_request) Successful in 57s
CI / security (pull_request) Successful in 54s
CI / quality (pull_request) Successful in 35s
CI / build (pull_request) Successful in 25s
CI / helm (pull_request) Successful in 23s
CI / unit_tests (pull_request) Failing after 6m58s
CI / docker (pull_request) Has been skipped
CI / e2e_tests (pull_request) Successful in 18m30s
CI / integration_tests (pull_request) Failing after 23m24s
CI / coverage (pull_request) Successful in 10m59s
CI / status-check (pull_request) Failing after 1s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Successful in 58m21s
Before calling upsert_actor(), check if the actor already exists using
registry.get_actor() or service.get_actor(). If the actor exists and
update_existing is False, print the spec-required error panel and exit
with error code 1.

Error panel includes:
- Actor name
- Registration timestamp (formatted as YYYY-MM-DD HH:MM)
- Hint to use --update flag

Adds Behave tests for:
- Duplicate-without-update failure case (exit code 1, error panel shown)
- Duplicate-with-update success case (exit code 0, actor updated)
- New actor without --update success case (exit code 0, actor added)

ISSUES CLOSED: #2609
2026-04-05 07:49:49 +00:00