ad34d0d1e0
Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
777 B
777 B
status, system, requirements
| status | system | requirements | |
|---|---|---|---|
| current | agents |
|
Native review finding status atomicity
The task review repository is the owner of persisted finding state. A status
transition updates status and resolved_at in one database statement and
returns the row produced by that statement. The service validates the requested
status before it calls the repository, then publishes the existing finding
updated event with the returned row.
Concurrent writers can therefore observe different final rows without creating a timestamp that describes an earlier read. SQLite tests provide deterministic coverage. A PostgreSQL test with two database connections checks the same transaction boundary when a PostgreSQL environment is available.