From 9a2124f1058671f367109afdea7aa1b0ee0914a4 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Thu, 11 Jun 2026 23:53:49 +0000 Subject: [PATCH] tripit: flip Research agent live (RESEARCH_PROVIDER=claude_agent, #23) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Switches the planning workspace's 'Research this' from the deterministic Fake to the live claude-agent-service Researcher. Behaviour-reviewed via a prod-pod country_when call (proposed Morocco/Georgia/Peru/Iceland with real 2026 UK bank-holiday leave windows + rough fares). Opt-in, budget-capped ~$2/run, wall-clock-bounded → degrades to 'found nothing' on slow/failed/quota-exhausted runs. Reuses CLAUDE_AGENT_TOKEN already in tripit-secrets. Completes the 12-slice Trip-Planning-Decisions feature. Co-Authored-By: Claude Opus 4.8 --- stacks/tripit/main.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stacks/tripit/main.tf b/stacks/tripit/main.tf index 2385521a..a70bf4ab 100644 --- a/stacks/tripit/main.tf +++ b/stacks/tripit/main.tf @@ -96,6 +96,16 @@ locals { CALENDAR_CONFLICT_PROVIDER = "nextcloud" NEXTCLOUD_CALDAV_BASE = "https://nextcloud.viktorbarzin.me/remote.php/dav" NEXTCLOUD_CALDAV_USER = "admin" + # Live "Research this" agent (tripit issue #23, ADR-0008): opt-in per-Decision + # research via the in-cluster claude-agent-service (the `trip-planner` agent), + # budget-capped ~$2/run, bounded to a wall-clock deadline so a slow agent + # degrades to "found nothing" rather than a 504. Reuses CLAUDE_AGENT_TOKEN + # (already in tripit-secrets, shared with the tour ScriptWriter + planner bot) + # — shares the Anthropic OAuth quota, hence opt-in not always-on. Flipped live + # 2026-06-11 after a prod-pod behaviour review (country_when proposed + # not-yet-visited countries + real UK bank-holiday leave windows + fares). + # `claude_agent` mode requires images >= the #23 slice (already deployed). + RESEARCH_PROVIDER = "claude_agent" # Tour-guide content pipeline (tripit#24/#25): these three default to `fake` # in tripit's config, which is what shipped dark on 2026-06-08 — prod only # ever showed the placeholder "Sight 1". Real providers: Wikipedia GeoSearch