chore: include focus state and redacted runtime logs
Diagnose rectification request (temporary) / diagnose (push) Successful in 16s

This commit is contained in:
Jesse_Chen
2026-08-27 18:43:57 +08:00
parent 1dcba7c9f4
commit ad166505ce
@@ -64,10 +64,20 @@ jobs:
where md5(t.request_id::text) = :'request_hash'
order by r.started_at;
\echo CASE_STATE
select concat_ws('|', c.status, c.skill_version, c.case_revision::text,
coalesce(c.conversation_summary->'active_focus'->>'kind', 'none'),
coalesce(c.conversation_summary->'active_focus'->>'status', 'none'),
coalesce(c.conversation_summary->'active_focus'->'expected_answer_schema'->>'probe_id', 'none'))
select concat_ws('|', c.status, c.skill_version,
coalesce(s.active_focus->>'intent', 'none'),
coalesce(s.active_focus->>'status', 'none'),
coalesce(s.active_focus->'expected_answer_schema'->>'probe_id', 'none'))
from public.agentic_rectification_cases c
left join public.agentic_rectification_case_conversation_summaries s on s.case_id = c.id
where md5(c.id::text) = :'case_hash';
\echo RECENT_FOCUSES
select concat_ws('|', f.intent, coalesce(f.target_domain, ''), coalesce(f.target_kind, ''), f.status,
coalesce(f.expected_answer_schema->>'probe_id', ''), f.asked_at, coalesce(f.resolved_at::text, ''))
from public.agentic_rectification_conversation_focuses f
join public.agentic_rectification_cases c on c.id = f.case_id
where md5(c.id::text) = :'case_hash'
order by f.asked_at desc
limit 8;
SQL
ssh "${ssh_options[@]}" "$remote" "container=\$(sudo -n docker ps -q --filter 'label=com.docker.compose.project=jyotisha-staging' --filter 'label=com.docker.compose.service=web' | head -n 1); test -n \"\$container\"; sudo -n docker logs --since '2026-08-27T10:22:45Z' --until '2026-08-27T10:26:00Z' \"\$container\" 2>&1" | grep -Ei 'rectification|stream|abort|timeout|provider|error' | sed -E 's/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/[redacted-uuid]/g' | tail -n 200 || true