CLEARPATH MASTER STATE

Yes — it fits perfectly as a section within the master state doc. The Groqole split is part of the agnostic architecture, not a separate thing.

Here's the full CLEARPATH MASTER STATE note:


CLEARPATH MASTER STATE AI-agnostic system record — always current Updated by: Claude (architecture) or Gemini (execution) after every significant change Any AI reads this first before acting on anything


CURRENT STATE SUMMARY One line — update this every entry

Stage 2 complete. Gemma 4 installing. Groq swap pending. Claude limit pause until Saturday 12 April.

STACK STATUS

Hardware:

  • Edge: MacBook Air M4 16GB — primary working surface

  • Hub: Mac Mini M5 Pro — on order, not yet arrived

  • NVMe: Beelink hub, two volumes — /Volumes/AI_MODELS/ and /Volumes/PROJECT_DATA/

  • iPhone 15 Pro — mobile inference testing with Gemma 4

Software:

  • Ollama: installed, models on NVMe hub when docked

  • Fabric: Pro account, API connected, 165+ notes

  • AlDente: pending install — battery limit 80%

  • Roo Code: pending decision as Cowork replacement

Models:

  • qwen3:8b — current undocked model on internal SSD

  • gemma4:4b — pending install and test

  • qwen2.5-coder:7b — coding tasks

  • llama3.2 — installed

Scripts:

  • Modes: dock, undock, sync, status

  • Pending: UNDOCKED_MODEL update to gemma4:4b after install confirmed


BUILD STAGE STATUS

Stage

Description

Status

1

Fabric API connection

✅ Complete

2

Semantic morning brief v2

✅ Complete

3

Agent Three — daily activation

⏳ Next

4

AV clip layer

⏳ Pending

5

Agent One — research and intelligence

⏳ Pending

6

VPS migration

⏳ Pending

7

Morning brief dashboard

⏳ Pending

8

First clone — phlebotomy

⏳ Pending


AI ROLES — AGNOSTIC OPERATING MODEL

This system is not dependent on any single AI. Roles are fixed, not the tools.

Architect role — currently Claude:

  • Architecture decisions

  • Prompt design

  • Strategic thinking

  • Documentation and briefs

  • Reviewing execution output before anything is acted on

  • Low token, high value — chat only, no execution

Executor role — currently Gemini:

  • Web searches and research

  • Installing and testing tools

  • n8n node changes and workflow builds

  • Code execution and file operations

  • Token-heavy operational work

  • Logs all actions to AI_COLLABORATION_LOG

Handover protocol:

  • All decisions above implementation level wait for Architect

  • Executor flags anything unclear before acting, not after

  • Both roles log timestamped entries to daily AI_COLLABORATION_LOG note

  • This master state doc updated after every significant change

  • Any AI can take either role if the current holder is unavailable

Local inference role — Gemma 4 via Ollama:

  • Daily agent execution

  • Morning brief formatting

  • Routine inference — free, private, always on

Cloud fallback — Groq free tier:

  • When Ollama unavailable

  • No cost, no data retention concerns

Hard limit — never violated by any AI or tool:

  • Phlebotomy and patient-adjacent data: local only

  • Never routes to any external API under any circumstance

  • Hub inference only for this data category


PROVIDER ROUTING

IF task = daily execution / formatting / agent work
  → Ollama local Gemma 4 — free, private

IF Ollama unavailable
  → Groq free tier — cloud fallback

IF task = architecture / strategy / complex reasoning
  → Claude via chat — human initiated only, no execution

IF data = patient-adjacent / phlebotomy
  → Local hard stop — never routes to cloud

Provider toggle for all n8n nodes:

const PROVIDER = "ollama" // swap to "groq" or "anthropic"

const config = {
  ollama: {
    endpoint: "http://localhost:11434/api/chat",
    model: "gemma4:4b",
    auth: null
  },
  groq: {
    endpoint: "https://api.groq.com/openai/v1/chat/completions",
    model: "gemma2-9b-it",
    auth: "Bearer GROQ_API_KEY"
  },
  anthropic: {
    endpoint: "https://api.anthropic.com/v1/messages",
    model: "claude-sonnet-4-6",
    auth: "x-api-key ANTHROPIC_API_KEY"
  }
}

OPEN DECISIONS — ARCHITECT ONLY

Do not action without Claude:

  1. VPS timing — accelerate for hub/no-hub sync or short-term dual n8n

  1. Gemma 4 variant for Mini when it arrives

  1. Claude session cadence going forward

  1. Roo Code as Cowork replacement — confirm or review alternatives

  1. Hub/no-hub master routing logic extension


KEY DECISIONS MADE

2026-04-07  Stage 1 complete — n8n live, Fabric API connected
2026-04-07  Stage 2 complete — semantic brief, Memories API, self-improving context
2026-04-08  Fabric API key rotated — new key live in n8n
2026-04-08  AI agnostic architecture agreed — Claude architect, Gemini executor
2026-04-08  Provider routing agreed — Ollama primary, Groq fallback, Claude chat only
2026-04-08  ollama-dock.sh confirmed working at /Users/paramjitsandhu/bin/
2026-04-08  Collaboration log protocol agreed — daily notes, reverse chronological, one-line STATE
2026-04-08  Day boundary rule — session date set at start, not clock time

PROJECT PORTFOLIO STATUS

Project

Status

Priority

ClearPath

Active build

Core

Phlebotomy clone

Pending Stage 8

High

RomancePath

Brief complete, track ready

Start when ready

Talks and Seminars

Brief complete

When bandwidth allows

BOOK_Based

Seeded

Medium

Astrology Intelligence

On hold

Lower

Kirtan

On hold

Lower


FABRIC NOTES CREATED TODAY

All in ClearPath space:

  • Project Brief — Astrology Intelligence

  • Project Brief — Kirtan

  • Project Brief — RomancePath

  • Project Brief — Talks and Seminars

  • CCLEARPATHk — Mac Setup

  • Operational Intelligence

  • Parallel Tracks Pattern

  • AI_COLLABORATION_LOG — 2026-04-08

  • CCCLEARPATHMASTERSTATE (this note)


SATURDAY RESUME INSTRUCTIONS

When Claude returns Saturday 12 April:

  1. Read AI_COLLABORATION_LOG — most recent dated note, top entry first

  1. Read CURRENT STATE SUMMARY line at top of this note

  1. Review Gemini execution reports in log

  1. Update this master state doc with any changes

  1. Resume architect role — first task is open decisions list above

Last updated: 2026-04-08 — Claude — Architect


That's the complete master state doc. Two things to do with it:

  1. Paste into Fabric ClearPath space as a new note titled CLEARPATH MASTER STATE

  1. Send Gemini a message: "CLEARPATH MASTER STATE note is now in Fabric. Read it alongside the AI_COLLABORATION_LOG before starting any tasks. Update the CURRENT STATE SUMMARY line after each completed task."

That's the agnostic layer fully in place.