Full review (plans/2026-07-17-codebase-review-and-cleanup.md) covering Go, web SPA, and docs. Applied low-risk doc/tooling fixes; code refactors and dead-code deletions are listed as actionable recommendations pending approval. Doc fixes: - AGENTS.md: remove ghost of retired request_execution (contradicted the retire notice above it); fix knowledge/wiki/ -> archive/knowledge/; replace brittle counts (33 tools, 36 docs, 20 checks) with pointers to source; drop point-in-time dates. - OIKOS.md: fix broken plan link (now in done/); 001-011 -> 001-020; 15 MCP tools -> pointer; replace hardcoded knowledge counts. - README.md: 15 tools -> pointer; fix wails plan link (now in done/); complete internal/ package list (add checkdefaults, observability, safego); add cmd/desktop/ to repo layout. - commands.md, page-templates.md: fix broken links; HERMES.md -> NOMOS.md. Plans housekeeping: - Move 4 done 2026-07-14 plans from plans/ to plans/done/. - Reconcile plans/index.md: add the 2 missing 2026-07-14 entries and the 2 missing 2026-07-15 done entries; add this review. - Fix stale plan path in migrations/020 comment. New docs: - docs/index.md and docs/operations/README.md (folder READMEs per writing-style.md). Tooling: - web/package.json: add check/typecheck/lint scripts + svelte-check devDep. - Makefile: desktop-package version now reads from VERSION file instead of hardcoded 0.1.0. VERSION 0.7.6 -> 0.7.7 (patch: docs + tooling only).
18 lines
927 B
SQL
18 lines
927 B
SQL
-- 020_session_reliability.up.sql
|
|
-- Plan step generation tracking + audit log session linkage.
|
|
-- See plans/done/2026-07-14-session-reliability-and-ux-audit.md.
|
|
|
|
-- Plan step generation: when the agent revises a plan mid-flight, new steps
|
|
-- get a higher generation number so the frontend can group/collapse old ones.
|
|
ALTER TABLE session_plan_steps ADD COLUMN IF NOT EXISTS generation INTEGER NOT NULL DEFAULT 1;
|
|
|
|
-- Track which session produced each audit-log entry so per-session analysis
|
|
-- (e.g. "did this task call update_entity_attributes?") is O(1) instead of
|
|
-- scanning the full log.
|
|
ALTER TABLE audit_log ADD COLUMN IF NOT EXISTS session_id UUID;
|
|
CREATE INDEX IF NOT EXISTS idx_audit_log_session ON audit_log (session_id);
|
|
|
|
-- Efficient lookup of pending-approval executions by session.
|
|
CREATE INDEX IF NOT EXISTS idx_nomos_plan_executions_session
|
|
ON nomos_plan_executions (session_id) WHERE continued_at IS NULL;
|