mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 00:50:00 +01:00
Reliability (the paths the dogfood loop exercises):
- github-provision: AbortSignal.timeout on all three fetches (repo-create,
template-seed, deprovision) with the module's existing error envelopes —
a slow GitHub can no longer hang the new-project provision flow.
- x-oauth1: 10s timeouts on request/access token fetches — login fails fast.
- provision route: gitUrl + dirPath now land on user_projects in ONE update
(entity patch last) — a mid-flight crash can't leave a repo linked but
undispatchable.
- env health: warn-level GROQ_API_KEY check — the chat action-producer going
dark is now visible on /api/health instead of failing silently.
- Route-level error boundaries for /money /people /goals via a shared
RouteError component (extracted from the /system boundary — rule of three).
SSOT collapse (audit items 8a-8d):
- BUILDER_CHANNELS const in constants/statuses.ts; RunnerChannel /
BuilderChannel / PeekBuilderChannel now aliases; z.enum sites reference it.
- ORCHESTRATION_OUTCOME const-object; infer-outcome.ts comparison sites use it.
- One StatusTone (constants/statuses.ts); activity-status's colliding
EventStatus renamed; dispatch-status references the shared type.
- jsonOk/jsonError helpers in route-helpers.ts for new routes; CLAUDE.md now
documents the real { ok } / { error } envelope.
Docs + dead code:
- CLAUDE.md truth pass: Duet marked retired, Loki/Terminal/Activity added to
tree + Views table, magic contact count removed.
- Deleted: orangecat-context.ts (149L, 0 importers), 7 uncalled control-states
accessors, listPromptsForProject, updateBeaconChoice,
removeSubscriptionByEndpoint (push 410 cleanup already runs via
pruneDeadEndpoints — the audit's "never runs" claim was wrong).
- u/[username]: inline timeAgo → compactRelativeDate from lib/dates.
Tests: auth env fixture gains GROQ_API_KEY. 32/32 unit files, 150/150
test:home, tsc + eslint clean. Net −140 lines.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>