Router brain = existing dispatch skill (no new skill). Trigger = cheap keyword UserPromptSubmit hook. chief-of-staff conditional, not permanent. Hybrid 3-tier skill model locked. Pi designs the trigger + thresholds + pi-subagents mirror + design-review/persist skill. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
37 lines
6.6 KiB
Markdown
37 lines
6.6 KiB
Markdown
v:1
|
|
# current-state
|
|
|
|
ACTIVE: Workflow-consolidation build from Pi's recovered design is COMPLETE: v:1 state schema, state-sync skill, demoted state blocks (signal/CLAUDE.md + Pi AGENTS.md), governance doc, scoped auto-push Stop hook (live + verified), and startup edits applied to global CLAUDE.md + Pi AGENTS.md (backups *.bak-2026-06-24). Both agents now read current-state.md at startup via state-sync.
|
|
NEXT (agent, in order): (1) Pi: design from docs/delegation-and-skills-brief-2026-06-24.md — delegation-router trigger (cheap UserPromptSubmit keyword hook firing the existing `dispatch` skill) + dispatch thresholds + Pi-side pi-subagents mirror + design-review/persist skill, within the locked hybrid 3-tier skill model. Persist to a file. (2) Pi: re-design option b — broaden git auto-versioning to research artifacts (policy/regulatory docs, TriLane-fed intelligence, blog) for the research workflow. (3) Claude: build the readiness model from Pi's design (rename coverage->readiness, rules-to-config, patient/line/shipment grouping + verdict, device-keyed override+recompute, require-plan-type + remove guesser, frontend nesting). (4) Claude: review Pi's AIOS + Automated Blog plans and recommend. MCP parity + skills-as-git-repo = phase 2.
|
|
|
|
## Decisions (last 8)
|
|
- 2026-06-24 [CC]: Delegation made automatic + content-driven (Kisa's call, worked via /barrier). The existing `dispatch` skill is the router brain (no new skill); trigger = a cheap UserPromptSubmit keyword hook (Route 2, no LLM cost) firing dispatch only on task-shaped prompts; chief-of-staff stays conditional (hat chosen by the task, never permanent, never forbidden). Hybrid 3-tier skill model locked. Briefed to Pi at docs/delegation-and-skills-brief-2026-06-24.md.
|
|
- 2026-06-24 [CC]: Applied the startup edits — build complete. Global CLAUDE.md Step 1 now runs the state-sync read of current-state.md; Pi AGENTS.md embedded state block demoted to a pointer, skill section modernized, state-sync added. Backups at *.bak-2026-06-24. Workflow-consolidation core: schema + skill + governance + demoted blocks + auto-push hook + startup edits, all done.
|
|
- 2026-06-24 [CC]: Built + activated the scoped auto-push Stop hook (~/.claude/hooks/state-autopush.sh + ~/.claude/settings.json Stop) — commits + pushes current-state.md only on session stop, never `git add .`. Push path verified. Kisa chose hook option a; option b (broaden auto-versioning to research artifacts) handed to Pi to re-design for the research workflow.
|
|
- 2026-06-24 [CC]: Recovered Pi's workflow-consolidation design from its session log (Pi finalized it in chat but never wrote it to a file) to docs/workflow-consolidation-design-2026-06-24-pi-recovered.md. Built v:1 state schema + state-sync skill + governance doc; demoted CLAUDE.md embedded state block. Corrected Pi's Stop hook to scope to current-state.md, not `git add .`.
|
|
- 2026-06-24 [Pi]: Workflow consolidation design completed (v:1 schema, read/write + commit/push protocol, Stop-hook automation, skills + MCP parity, drift-to-skill table, universal git versioning). Ready for Claude implementation.
|
|
- 2026-06-23 [CC]: Workflow-consolidation brief handed to Pi (architect-reviewed); clean-start commit of current-state.md, context recovery artifacts gitignored, pushed to Forgejo + GitHub.
|
|
- 2026-06-23 [CC]: Readiness model redesign locked. Signal never determines/guesses payer plan type, eligibility, or coverage; client supplies plan type as a required mapped field; every determination cites the rule + client input. Worklist = one record per patient UUID with per-device CoverageLines; verdict from required-vs-supplied. "coverage" renamed "readiness". Brief: docs/readiness-model-brief-2026-06-23.md.
|
|
- 2026-06-23 [Pi]: RAP-ID/CSP-ID architecture proposed to reconcile rotating anonymous patient ID with persistent worklist. SaaS web app hosted by STTIL; client holds Real-ID to CSP-ID map; HIPAA host (Validated Cloud) still required.
|
|
- 2026-06-23 [Pi]: Shield architecture designed (standalone compliance product, tiered deployment, AI Consent Addendum). Ready for Claude build or refinement.
|
|
- 2026-06-23 [CC]: DNSSEC verified live. Website agent-file compliance fixes staged locally (removed outreach wording, banned >25% stat, exposed pricing, SWO term fixed) — NOT deployed; prose rewrites routed to lead-content.
|
|
- 2026-06-22 [CC]: Build Spec Phase 2 built; Clerk prod migration complete (pk_live on Vercel + JWKS on Railway). Phase 4 (support bot foundation) spec by Pi ready for build.
|
|
|
|
## Open Threads (max 5)
|
|
- WORKFLOW CONSOLIDATION (2026-06-24): building from Pi's recovered design. Remaining: Stop hook (Kisa review), global CLAUDE.md + Pi AGENTS.md startup edits, MCP parity, optional skills-as-git-repo. Design: docs/workflow-consolidation-design-2026-06-24-pi-recovered.md; brief: docs/workflow-consolidation-brief-2026-06-23.md.
|
|
- READINESS MODEL BUILD (2026-06-23): Pi's build design ready; Claude builds the rename + rules-to-config + grouping/verdict sequence. Brief: docs/readiness-model-brief-2026-06-23.md.
|
|
- SIGNAL AIOS & AUTOMATED BLOG PLANS (2026-06-23): Pi refined with Granola insights; Claude to review and recommend.
|
|
- LabABLE Meeting Fri 2026-06-26 1:30 PM — /pilot-prep.
|
|
- Website copy: brief lead-content for human-page rewrites (extract eligibility/coverage language); deploy staged agent-file fixes; 6-year retention doc fix. BAA wording attorney-gated.
|
|
|
|
## Stack
|
|
- Signal: PHI contained in `patient_id` (name, MRN, account #s) — tokenization via RAP-ID/CSP-ID (rotating anonymous ID, not static UUID).
|
|
- Signal-api: Railway (signal-api-production-91c2). Signal-ui: Vercel (signal-ui-xi.vercel.app). Supabase: itmospnregdyiatbbdwl (JWT key).
|
|
- Clerk: production key on Vercel + Railway; frontend auth via clerk.sttilsolutions.com; Google OAuth configured.
|
|
- TriLane: localhost:8000 (signal/sessions/scale-software). Pi reaches it over HTTP (127.0.0.1:8000); contract in trilane/TRILANE_HTTP_API.md.
|
|
- Model for Pi: deepseek/deepseek-v4-flash.
|
|
|
|
## Tip
|
|
State protocol: read = `git pull --rebase` then read this file (warn if Updated > 24h old); write = edit ACTIVE/NEXT, append one author-stamped decision, then commit + push. Full protocol in the `state-sync` skill. TriLane = searchable archive, not live state.
|
|
|
|
## Updated: 2026-06-24 (CC: worked the delegation barrier with Kisa. Resolved: `dispatch` is the router brain, a cheap keyword hook is the trigger, chief-of-staff stays conditional; hybrid 3-tier skill model locked. Briefed to Pi at docs/delegation-and-skills-brief-2026-06-24.md. Earlier this session: workflow-consolidation build complete (v:1 schema, state-sync skill, demoted blocks, governance, auto-push hook, startup edits). NEXT: Pi designs the delegation router + option b; Claude builds the readiness model.)
|