Fix unmanaged reconciliation review blockers

Co-authored-by: genichin <4282227+genichin@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-09-13 02:21:37 +00:00
committed by GitHub
co-authored by genichin
parent f9284d1de8
commit 591db7adb7
26 changed files with 484 additions and 87 deletions
@@ -15,7 +15,7 @@ def pg_unmanaged_store(pg_clean):
return PostgreSQLUnmanagedPositionStore(pg_clean)
class TestMigration028:
class TestMigration030:
def test_tables_exist_after_migration(self, pg_clean):
import psycopg
@@ -111,6 +111,14 @@ class TestCRUDRoundTrip:
quantity=3,
observed_at=t1,
)
pg_unmanaged_store.record_operator_action(
instance_key="inst-A",
symbol="008110",
action="investigating",
evidence_ref="kis:2026-09-07",
actor="cli:test",
note="before resolve",
)
pg_unmanaged_store.resolve_absent(
instance_key="inst-A",
observed_symbols=set(),
@@ -126,3 +134,5 @@ class TestCRUDRoundTrip:
assert reopened["transition"] == "detected"
assert reopened["state"]["first_seen_at"] == t1
assert reopened["state"]["last_seen_at"] == t3
assert reopened["state"]["operator_action"] is None
assert reopened["state"]["evidence_ref"] is None