Status-only smoke missed a real failure mode: when a Server Component
throws, Next.js renders src/app/error.tsx ("Something went wrong")
INSIDE a 200 response. The page is broken from the user's perspective,
but smoke would mark it ok.
Refactor into a check_route helper that pages call with body-content
checking enabled. Greps the response body for the error-boundary
marker; failing-when-found means the run page doubles as a sanity
check on every server component, not just the route resolver.
API routes skip the body check (the marker is HTML-only and an API
that returned the literal string would be unusual).
Verified: all 18 routes still pass; the grep would catch a fake
error response if one were served.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Static-list smoke caught compile + db breakage but missed regressions
specific to [id] route handlers — readIdParam errors, per-row drizzle
queries, the parameter-handling lifecycle, etc.
Discover the first person id from /api/people (already smoked), then
GET /api/people/<id> and assert 2xx/3xx. Skipped silently if jq isn't
installed or the list is empty, so the script stays portable.
Other dynamic GETs (/api/projects/<id>) aren't smoked because no list
endpoint exists to derive an id without an extra DB roundtrip.
18 routes total now pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Page-only smoke caught compile-time route breakage but missed
server-side regressions: a broken Drizzle query would render every
page as "Error" yet still return 200. Add the DB-backed API GETs:
/api/goals, /api/habits, /api/people, /api/events, /api/crons,
/api/system
Tool-dependent endpoints (/api/calendar, /api/weather, /api/github)
stay out of the default run because they need the local Ivy gateway
and would flake on machines that don't have it.
Verified: all 17 routes (11 pages + 6 APIs) return 200 against the
running dev server.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Until now the codebase had zero automated coverage; every refactor
relied on a manual curl loop. scripts/smoke.sh runs that loop in one
command: probe BASE/, then GET every page route and assert 2xx/3xx.
- Routes match config/navigation.ts NAV_ITEMS plus the / redirect
- BASE env var override for prod smoke (defaults to localhost:3000)
- Fast-fails with a clear "start the dev server first" message if
the base is unreachable, instead of dribbling 11 curl errors
- No new dependencies — bash + curl only
Verified: all 11 routes return 200 against the running dev server.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- CLAUDE.md with full project conventions, architecture, SSOT rules
- Seed 10 real goals: God Mode, Financial Independence, Civilizational Stack, Health, Relationships + 5 sub-goals with milestones
- Add Cockpit to ~/.config/claude-projects.conf for zellij auto-detect
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>