Review unprocessed learning signals and extract improvement proposals.
Read ~/.claude/MEMORY/LEARNING/DIGEST-LOG.jsonl. Find the most recent entry's timestamp field. This is the watermark — only process files created AFTER this timestamp.
Review unprocessed learning signals and extract improvement proposals.
Read ~/.claude/MEMORY/LEARNING/DIGEST-LOG.jsonl. Find the most recent entry's timestamp field. This is the watermark — only process files created AFTER this timestamp.
Three concrete changes that improved AI rule-following behavior in PAI. Found through a structured investigation (Science → Council → RedTeam) documented in Discussion #945.
PAI's AI assistant systematically underused its own quality mechanisms despite explicit rules. Across 43 tracked sessions: effort levels skewed low (35% Standard), capability invocation averaged 0.4/session against stated minimums of 1-2, and weekly ratings trended down.
The root cause: the model finds rationalization paths to skip rules. An "Efficiency" section in steering rules gave explicit textual permission to shortcut. "Standard = DEFAULT" anchored effort estimation downward. And without PlanMode enforcement, complex tasks got no structured planning.
| #!/usr/bin/env bun | |
| /** | |
| * BuildSemanticIndex.ts — Builds/refreshes the semantic search vector index | |
| * | |
| * Embeds files from MEMORY/, auto-memory/, and ~/AI-Projects/ CONCEPT.md files | |
| * using Ollama mxbai-embed-large and stores vectors in LanceDB. | |
| * | |
| * Sub-file chunking: splits markdown at heading boundaries, splits oversized | |
| * sections (>4000 chars) at paragraph breaks, skips empty-heading chunks. | |
| * Content-hash dedup: SHA-256 per chunk, skips re-embedding unchanged content. |
STEP 1 — COMPLEXITY GATE (before reading the Algorithm file):
Default: ALGORITHM. Only downshift if the task is genuinely trivial.
Evaluate: "Can I complete this with ≤2 tool calls, no external APIs, no file creation/deletion, and no verification needed?"
bun ~/.claude/PAI/Tools/voice.ts notify algorithm-confirmed