Commit Graph

26 Commits

Author SHA1 Message Date
Joel Hooks 92c39e3ef9 chore: all 9 PRD stories done — ADR-0190/0191/0192/0193 omnibus complete 2026-03-04 12:38:23 -08:00
Joel Hooks 7f973145f3 chore: all code stories done, deploy-worker pending 2026-03-04 12:33:06 -08:00
Joel Hooks ca552150d5 chore: mark stories 3,4,9 done in prd.json — tests + deploy pending 2026-03-04 12:32:13 -08:00
Joel Hooks 1fc9b406a1 chore: mark stories 1,2,7 done in prd.json 2026-03-04 12:30:40 -08:00
Joel Hooks ba5b8d4650 feat: omnibus PRD for ADR-0190/0191/0192/0193 memory yield completion
9 stories covering: inference circuit breaker module (0191 V1-V2),
task-triage hash-before-classification bug fix (0193), circuit
integration into triage (0193 V4), recall rewrite regression tests
(0192 V5), scorecard observe-skip tracking (0190), worker deploy,
and ADR status updates.

Priority order: circuit module → wire into infer() → triage bug fix →
triage circuit → tests → scorecard enhance → deploy → ADR updates.

To execute: joelclaw loop start or ralph_loop mode=prd
2026-03-04 12:25:24 -08:00
Joel Hooks 4c0fc8c2d5 chore: PRD for ADR-0194 stale run sweep via Inngest loop 2026-03-02 21:29:31 -08:00
Joel Hooks 065312b8fe feat(ADR-0196): cancel-on-new-message foundation + codex knowledge mandate
ADR-0196:
- message-types.ts: classify human vs system messages
- gateway-handle-message.ts: Inngest fn with cancelOn + concurrency
- 1.5s batching window for rapid-fire messages
- system events bypass cancel behavior
- 7 tests passing

SYSTEM.md:
- Mandatory system knowledge query + OTEL emit for all codex runs
- References @joelclaw/sdk as preferred interface
2026-03-02 21:24:51 -08:00
Joel Hooks b6f631f58e chore: PRD for ADR-0196 cancel-on-new-message 2026-03-02 21:07:24 -08:00
Joel Hooks 1a5d18d810 feat(ADR-0199): watchdog self-heal + brain/codebase/ bootstrap
- Watchdog auto-recreates system_knowledge collection when missing
- Created ~/Vault/system/brain/codebase/ with 4 pattern notes:
  adaptive-heartbeat-gate, force-enforce-verify,
  system-knowledge-retrieval, inngest-gate-step
2026-03-02 20:55:17 -08:00
Joel Hooks b491299475 chore: PRD for 0199 remaining gaps 2026-03-02 20:44:28 -08:00
Joel Hooks 0f76f1b9bf feat(ADR-0199): OTEL emissions for all loop stage system_knowledge retrievals
Add system_knowledge.retrieval OTEL events to:
- reviewer (review.ts)
- judge (utils.ts/llmEvaluate)
- test-writer (test-writer.ts)
- planner (plan.ts)

Matches existing implementor pattern. All 5 loop stages
now emit observable proof of knowledge retrieval.
2026-03-02 20:37:36 -08:00
Joel Hooks a2aebc3644 chore: update lockfile + PRD for OTEL loop 2026-03-02 20:29:04 -08:00
Joel Hooks 6556783a98 feat(ADR-0198): adaptive heartbeat gates for all cron functions
Add cheap gate steps to 6 cron Inngest functions:
- heartbeat (10min gate)
- batch-review (pending count gate)
- knowledge-watchdog (3h gate)
- check-granola (45min gate)
- reflect (cron-only gate, event bypasses)
- check-system-health (45min + healthy gate)

Pattern: first step checks Redis timestamp/count, returns
{ status: 'skipped', reason: '...' } if work not needed.
Stores last-run timestamp after successful completion.

Removes stale seed-articles.ts from cancelled loop.
2026-03-02 20:24:27 -08:00
Joel Hooks db24b7958d chore: set PRD to ADR-0198 adaptive heartbeat 2026-03-02 20:08:38 -08:00
Joel Hooks 7750e6e135 prd: CFP-7 done — all stories complete 🎉 2026-02-27 15:56:10 -08:00
Joel Hooks cdff614d4a prd: CFP-6 done 2026-02-27 15:31:59 -08:00
Joel Hooks c17845627a prd: CFP-5 done 2026-02-27 15:23:25 -08:00
Joel Hooks 84ac6f9661 prd: CFP-4 done 2026-02-27 14:34:52 -08:00
Joel Hooks f326faf53d prd: CFP-3 done 2026-02-27 14:21:42 -08:00
Joel Hooks 748c124506 fix: set 30m Inngest timeout + 15m execSync timeout for story pipeline
Default 5m step timeout was killing codex implement stages that take 10-15 min.
2026-02-27 10:01:09 -08:00
Joel Hooks 97b6505fc9 chore: mark CFP-2 done 2026-02-27 09:55:25 -08:00
Joel Hooks ab2bac2340 fix(prd): context null→{}, mark CFP-1 done 2026-02-27 09:36:40 -08:00
Joel Hooks fe7b41248b fix(prd): CFP-2 must land with CFP-3 cache boundaries — PPR constraint 2026-02-27 09:21:59 -08:00
Joel Hooks d5680566af feat(CFP-1): seed articles into Convex — 19 articles seeded
scripts/seed-articles.ts created by codex pipeline, manually verified.
All 19 MDX articles upserted to Convex contentResources.
2026-02-27 09:10:54 -08:00
Joel Hooks 0a2587553c feat(story-pipeline): structured output schemas, self-healing, gateway signals
- Output contracts per stage (implement/prove/judge) with JSON schemas
- codexExecWithHealing: JSON extraction + repair codex call on parse failure
- Gateway progress notifications at each stage transition
- Configurable codex timeout via PRD context
- Rewrote prd.json as content feedback pipeline (CFP-1 through CFP-7)
- Fix TS error: spread GatewaySignalMeta for Record<string,unknown> compat
2026-02-27 08:56:01 -08:00
Joel Hooks 016dccc295 redesign: cool finds index — full titles, readable descriptions, compact cards
- Titles wrap fully instead of truncating
- Relevance text shows complete (no line-clamp)
- Date shown as relative time (2d ago) above title, not stealing width
- Single type badge (repo/article/video) replaces full tag list
- Source URL removed from index (shown on detail page)
- Tighter card spacing for better scan density
- Re-removed duplicate self-hosting discovery (also from Vault source)
2026-02-22 08:07:35 -08:00