diff --git a/context/current-state.md b/context/current-state.md index 5cd0ee5..d0d4bf4 100644 --- a/context/current-state.md +++ b/context/current-state.md @@ -5,19 +5,18 @@ NEXT: Pi to direct next build phase (Phase 2 session-brain auto-write, or Phase ## Decisions (last 5) -- 2026-06-21: Subagent cost guardrails installed — all 8 builtin subagents now default to deepseek/deepseek-v4-flash with 2-5 min hard timeouts. Prevents future runaway credit burn. +- 2026-06-22: Clerk prod migration COMPLETE — frontend (pk_live on Vercel) + backend (CLERK_JWKS_URL → clerk.sttilsolutions.com on Railway) both deployed. DNS verified, JWKS serving. +- 2026-06-21: Subagent cost guardrails installed — all 8 builtin subagents default to deepseek/deepseek-v4-flash with 2-5 min hard timeouts. - 2026-06-21: Audit logger trust fix committed + pushed (Supabase client detection, error wrapping). Cascade test assertion corrected. -- 2026-06-21: SIGNAL_API_KEY rotated by Claude Code. Leaked key removed from Vercel + source; api.js now Clerk-token-only; exposure closed (old key returns 401). -- 2026-06-21: Build Spec Phase 1 done (Claude Code). research_insight category live. CGM-to-pharmacy insight planted. 8 session summaries moved Signal ws -> Sessions ws. -- 2026-06-21: STTIL Shield is standalone revenue product. AI Consent Addendum is open-source brand builder + Shield lead magnet. +- 2026-06-21: SIGNAL_API_KEY rotated by Claude Code. Leaked key removed from Vercel + source. Exposure closed. +- 2026-06-21: Build Spec Phase 1 done (Claude Code). research_insight category live. CGM-to-pharmacy insight planted. ## Open Threads (max 5) -- Clerk prod migration: verify live auth state (mixed pk_test/pk_live in deployed bundle). Pi to own. -- LabABLE Meeting Fri 2026-06-26 1:30 PM — /pilot-prep needed. +- LabABLE Meeting Fri 2026-06-26 1:30 PM — run /pilot-prep. - Build Spec Phase 2: session-brain auto-writes current-state.md + insight extraction (Pi to design). -- 3 validation product blockers: MA misclassification, duplicate patient_id, doc-status override. -- Firecrawl env var set this session (key valid), persists only after pi restart from sourced shell +- 3 validation product blockers: MA misclassification, duplicate patient_id, doc-status override (Claude Code is on these). +- Primary domain sttilsolutions.com still "Pending" in Clerk (separate from Frontend API — non-blocking for auth). ## Stack @@ -27,10 +26,10 @@ NEXT: Pi to direct next build phase (Phase 2 session-brain auto-write, or Phase - Signal-ui: Vercel (signal-ui-xi.vercel.app) - Supabase: itmospnregdyiatbbdwl (JWT key) - TriLane: localhost:8000 (signal/sessions/scale-software workspaces) -- Clerk: production key deployed to Vercel, auth to `clerk.sttilsolutions.com`, Google OAuth configured. +- Clerk: production key deployed to Vercel + Railway. Frontend auth via `clerk.sttilsolutions.com` (verified). Google OAuth configured. ## Tip TriLane Memory now has the `research_insight` category live + 1 planted insight (CGM-to-pharmacy, salience 1.0) in the Signal workspace. Session summaries no longer leak into the Signal workspace; they live in the Sessions workspace. -## Updated: 2026-06-21 (Pi: subagent cost guardrails installed, audit log fix committed, session 3 wrapped + NotebookLM pushed) +## Updated: 2026-06-22 (Pi: Clerk prod migration complete, Firecrawl persisted, Build Spec Phase 2 next)