\set ON_ERROR_STOP on
-- Cross-surface postflight row-level readback.

select id::text,
       from_node_id::text,
       anchor_role,
       claim_id::text,
       source_id::text,
       weight,
       left(note, 240) as note
from public.strategy_node_anchors
where id = '47f128a0-36c5-4b60-97d4-48c32fa48bc7'::uuid;

select c.id::text,
       c.status,
       c.superseded_by::text,
       left(c.text, 240) as text
from public.claims c
where c.id in (select id from (values
    ('d0000000-0000-0000-0000-000000000005'::uuid),
    ('e6ce4e36-15d2-53bc-8b74-dda0efc095c1'::uuid)
  ) as v(id))
order by c.id;

select id::text,
       anchor_role,
       to_shared_root_id::text,
       left(note, 240) as note
from public.strategy_node_anchors
where id = 'c7dd984c-ac1b-43f9-9996-576ddf61c6d2'::uuid;
