You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test/fix(agentex): address round-2 audit on current_state
- Add the real use-case-level clobber regression test: it forces a stale read
(entity fetched RUNNING, task transitioned to COMPLETED before the write) and
asserts status stays COMPLETED. This fails on the old whole-row-merge path and
passes on the column-scoped update — the prior service-level test could not
catch the regression (it exercised the new primitive directly, which is
clobber-proof by construction); its docstring is corrected accordingly.
- update_mutable_fields_on_task now raises ItemDoesNotExist when the atomic
update reports the row vanished, instead of silently returning stale data
(consistent with the not-found contract and sibling transition methods;
defensive — no live hard-delete path reaches it).
- Drop max_length from the response Task.current_state field: input is already
bounded by UpdateTaskRequest + the String(255) column, and enforcing it on the
read path would turn a future column-widening into a 500 on every read.
- Make the repository update_mutable_fields empty-fields branch's contract honest
in its docstring (it's an unreachable defensive no-op).
- Assert the intermediate set in the clear-to-null test so the clear is a real
transition, not a null→null no-op.
- Re-await the cancelled collector in the stream test to avoid a dangling-task
warning at teardown.
- Remove the now-unused `import sqlalchemy as sa` from the migration.
- Regenerated openapi.yaml (maxLength now only on the request schema).
0 commit comments