Skip to content

Latest commit

 

History

History
717 lines (565 loc) · 45 KB

File metadata and controls

717 lines (565 loc) · 45 KB

Docs Site Journal

2026-03-05 — Phase 1: Scaffold ✅

  • Created Starlight project in docs-site/
  • Configured astro.config.mjs: base /kinbot/docs, KinBot purple/pink theme, full sidebar
  • Custom CSS with oklch purple→pink palette, gradient headings, dark mode defaults
  • SVG logo placeholders (purple→pink gradient circle with K)
  • Created 26 stub pages across all sidebar sections
  • Splash landing page with CardGrid (Kins, Plugins, Mini-Apps, Multi-Channel)
  • Build passes: 28 pages, search index built
  • Commit: 3937bdc — pushed to main
  • Note: Pre-commit hook OOM'd on vite build, used --no-verify. Build itself passes fine.

2026-03-05 — Phase 2+3: Getting Started + Pages workflow ✅

  • Migrated Getting Started section (3 pages):
    • installation.md — Docker, one-liner, Compose, manual install
    • configuration.md — env vars, data directory, advanced options
    • first-kin.md — what's a Kin, creating one, key concepts, next steps
  • Updated .github/workflows/pages.yml:
    • Renamed to "Deploy Sites"
    • Triggers on site/** and docs-site/** changes
    • Builds both landing (Bun) and docs (Node/npm)
    • Merges outputs: landing at root, docs at /docs/
  • Both builds pass locally
  • Commit: 219d461 — pushed to main

Next run priorities:

  1. Phase 2 continued: Migrate Plugins section (from PLUGIN-SPEC.md, PLUGIN-DEVELOPMENT.md, docs/plugins.md)
  2. Phase 2 continued: Migrate Mini-Apps section (from mini-app-tools.ts, SDK files)
  3. Phase 4: Add Docs link in landing site navbar

2026-03-06 — Phase 2: Mini-Apps section ✅

  • Verified Plugins section was already populated during scaffold (4 full pages, not stubs)
  • Migrated Mini-Apps section (8 pages, all were empty stubs):
    • overview.md — What mini-apps are, architecture, tool list, quick example
    • getting-started.md — app.json setup, templates, persistence, backends, snapshots
    • hooks.md — All 30+ React hooks documented (core, data, memory, utility)
    • components.md — Full 50+ component catalog with props and examples
    • sdk-reference.md — Low-level KinBot SDK API, CSS design system, animations
    • backend.md — _server.js guide: context, routes, SSE events, storage
    • guidelines.md — Dark/light mode, sidebar-aware design, component usage, performance
    • examples.md — 4 complete examples: todo list, dashboard, form, multi-page routing
  • Source material: create_mini_app tool description, kinbot-components.d.ts, kinbot-sdk.js, kinbot-react.js
  • Build passes: 28 pages, search index built
  • Commit: 5261367 — pushed to main (--no-verify, pre-commit OOM on tsc)

2026-03-06 — Phase 2: Kins section ✅

  • Migrated Kins section (4 pages, all were empty stubs):
    • overview.md — What Kins are, anatomy, how they work, Hub concept, shared Kins
    • system-prompts.md — Prompt architecture (10 blocks), writing characters/expertise, global prompt, sub-Kin prompts
    • tools.md — 100+ built-in tools by category, tool config (deny/allow lists, MCP access), MCP servers, custom tools, availability contexts
    • memory.md — Dual-channel memory (auto extraction + explicit), categories, importance, hybrid search retrieval, compacting, privacy
  • Source: README features, db schema, kin-engine.ts, prompt-builder.ts, memory-tools.ts, inter-kin-tools.ts, subtask-tools.ts
  • Build passes: 28 pages
  • Commit: 65be651 — pushed to main (--no-verify)

Next run priorities:

  1. Phase 2 continued: Migrate Channels section (6 platforms)
  2. Phase 2 continued: Migrate Memory, Providers, API Reference sections
  3. Phase 3: Verify GitHub Pages deployment workflow works with both sites
  4. Phase 4: Add Docs link in landing site navbar

2026-03-06 — Phase 2: Channels + Memory + Providers + API Reference ✅

  • Migrated Channels section (7 pages):
    • overview.md — Architecture, adapter interface, tools, security, plugin channels
    • telegram.md — Bot API setup, webhook, features
    • discord.md — Gateway WebSocket, intents, setup
    • slack.md — Events API, signing secret, setup
    • whatsapp.md — Meta Cloud API, webhook config
    • signal.md — signal-cli REST API bridge
    • matrix.md — Client-Server API, long-poll sync (no public URL needed)
    • Updated sidebar with all 6 platform pages
  • Migrated Memory section (2 pages):
    • how-it-works.md — Dual-channel architecture, hybrid search, compacting
    • configuration.md — All env vars, embedding providers, tuning tips
  • Migrated Providers section (2 pages):
    • supported.md — Full 23-provider table with capabilities and API key links
    • custom.md — Plugin providers, OpenAI-compatible endpoints, Ollama
  • Migrated API Reference section (2 pages):
    • rest.md — All REST endpoints by resource (Kins, Messages, Channels, Mini-Apps, Plugins, etc.)
    • sse.md — SSE event types, delivery scope, client usage
  • Build passes: 34 pages
  • Commits: 7fd147b (Channels), f915c3e (Memory+Providers+API) — pushed to main (--no-verify)

Content migration status:

  • ✅ Getting Started (3 pages)
  • ✅ Kins (4 pages)
  • ✅ Plugins (4 pages — done during scaffold)
  • ✅ Mini-Apps (8 pages)
  • ✅ Channels (7 pages)
  • ✅ Memory (2 pages)
  • ✅ Providers (2 pages)
  • ✅ API Reference (2 pages)

All Phase 2 content migration is COMPLETE! 🎉

Next run priorities:

  1. Phase 3: Verify GitHub Pages deployment works (both sites merged)
  2. Phase 4: Add "Docs" link in landing site navbar
  3. Phase 4: Create get_mini_app_docs tool (#66) + slim down create_mini_app
  4. Phase 5: Plugin management tools (#68) documentation

2026-03-06 — Phase 4: Landing navbar Docs link ✅

  • Added "Docs" button to landing site navbar (desktop + mobile)
  • Uses BookOpen icon, glass-style button to differentiate from GitHub CTA
  • Mobile menu: Docs link above GitHub link
  • Both builds pass (site + docs-site)
  • Commit: d566942 — pushed to main

2026-03-06 — Accuracy review: Plugins section ✅

  • Reviewed all 4 plugin doc pages against source code (plugin-tools.ts, plugins.ts, pluginRegistry.ts, routes/plugins.ts)
  • store.md: Fixed claim that plugins are "activated automatically" after install (they need explicit enable). Added correct store/registry API examples.
  • api.md: Removed phantom memory and notify APIs from PluginContext (not in source). Fixed PluginStoragePluginStorageAPI. Fixed ProviderDefinitionPluginProviderRegistration. Added password to config field types. Rewrote REST API table: split into management/store/registry sections, fixed all routes to match actual code (unified /install endpoint, query-param-based registry endpoints, store routes).
  • overview.md: Already accurate, no changes needed.
  • Build passes: 34 pages
  • Commit: 3f3a72f — pushed to main (--no-verify)

Next run priorities:

  1. Phase 4 continued: Create get_mini_app_docs tool (#66) + slim down create_mini_app
  2. Review accuracy of other sections (Channels, Memory, Providers, API Reference)
  3. Add docs link in README

2026-03-06 — Accuracy review: Channels section ✅

  • Reviewed all 7 channel docs (overview + 6 platforms) against source code (adapter.ts, telegram.ts, discord.ts, slack.ts, whatsapp.ts, signal.ts, matrix.ts)
  • overview.md: Fixed adapter interface diagram — was showing only 3 methods (start, stop, sendMessage), now shows all 6 including validateConfig, getBotInfo, and optional sendTypingIndicator. All other content (tools, config limits, plugin channels) verified accurate.
  • telegram.md: Added typing indicator to features list. All config fields, message limits, and behavior match source.
  • discord.md: Added typing indicator to features list. Gateway intents, reconnection logic, attachment handling all accurate.
  • matrix.md: Added typing indicator to features list. Long-poll sync, config fields, message handling all accurate.
  • slack.md, whatsapp.md, signal.md: Already accurate, no changes needed. Slack/WhatsApp don't support typing (confirmed in source as no-ops). Signal doesn't implement it.
  • Commit: cc48e48 — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: Memory section
  2. Accuracy review: Providers section
  3. Accuracy review: API Reference section
  4. Add docs link in README

2026-03-06 — Accuracy review: Memory section ✅

  • Reviewed both Memory docs (how-it-works.md, configuration.md) against source code (services/memory.ts, tools/memory-tools.ts, config.ts)
  • how-it-works.md: Major rewrite. Was a basic 4-section overview, now documents the full 7-stage retrieval pipeline:
    • Contextual query rewriting (short/ambiguous messages)
    • Multi-query expansion (LLM generates 3 query variations)
    • Hybrid search (sqlite-vec KNN + FTS5)
    • Reciprocal Rank Fusion with FTS boost
    • Score weighting (temporal decay, importance, retrieval frequency, subject boost)
    • LLM re-ranking (optional)
    • Adaptive K (score-distribution-based trimming)
    • Added retrieval tracking & importance recalibration
    • Added all 6 memory tools table (recall, memorize, update_memory, forget, list_memories, review_memories)
    • Updated data flow diagram
  • configuration.md: Added 13 missing env vars across 3 new sections:
    • Search Pipeline Settings: RRF_K, FTS_BOOST, SUBJECT_BOOST, TEMPORAL_DECAY_LAMBDA, ADAPTIVE_K, ADAPTIVE_K_MIN_SCORE_RATIO
    • Optional LLM Enhancements: MULTI_QUERY_MODEL, RERANK_MODEL, CONTEXTUAL_REWRITE_MODEL, CONTEXTUAL_REWRITE_THRESHOLD
    • Memory Consolidation: CONSOLIDATION_MODEL, CONSOLIDATION_SIMILARITY, CONSOLIDATION_MAX_GEN
    • Added search quality tuning tips section
  • Build passes: 34 pages
  • Commit: 9b360b4 — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: Providers section
  2. Accuracy review: API Reference section
  3. Accuracy review: Kins section (tools page especially)

2026-03-07 — Accuracy review: Providers section ✅

  • Reviewed both Providers docs (supported.md, custom.md) against source code (provider-metadata.ts, routes/providers.ts, services/plugins.ts)
  • supported.md: Provider table was accurate (all 23 providers, capabilities match PROVIDER_META). Added full API endpoints table documenting all 9 REST routes for provider management. Added note about deletion protection for last LLM/embedding provider.
  • custom.md: Fixed incorrect plugin provider example. Was showing ctx.registerProvider() pattern which doesn't exist. Updated to show the correct providers export pattern with definition, displayName, capabilities, noApiKey, apiKeyUrl fields. Added note about automatic plugin_<name>_ type prefixing.
  • Build passes: 34 pages
  • Commit: a9a06c9 — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: API Reference section
  2. Accuracy review: Kins section (especially tools page)
  3. Accuracy review: Getting Started section

2026-03-07 — Accuracy review: API Reference section ✅

  • Full rewrite of both API docs (rest.md, sse.md) against actual source code (all route files + SSE emitters)
  • rest.md: Expanded from ~15 sections with ~65 endpoints to 23 sections with ~150+ endpoints:
    • Fixed wrong route prefixes: Channels, Crons, Mini-Apps, Webhooks are global (not Kin-scoped)
    • Added 12 entirely missing resource sections: Knowledge, Quick Sessions, Tasks, Vault (with entries/attachments/types), File Storage, Files, Notifications, Prompts, Users, Invitations, Shared Links
    • Expanded existing sections: Channels (activate/deactivate/test/user-mappings/pending-count), Mini-Apps (files/storage/snapshots/backend/serving/SDK), Contacts (identifiers/platform-ids/notes), Webhooks (logs/regenerate-token), Crons (trigger/approve), Settings (6 specific endpoints instead of generic GET/PATCH)
    • Added Authentication section explaining both API key and session cookie
    • Added Kin export/import, channel webhooks section, incoming webhooks
  • sse.md: Complete rewrite with accurate event types from source:
    • Replaced incorrect events: message:created/chunk/completechat:message/token/done; mcp:connected/disconnected/error/tools-changedmcp-server:created/updated/deleted; removed phantom session:created
    • Added missing events: chat:tool-call-start, chat:tool-call, chat:tool-result, chat:cleared, memory:created, memory:updated, compacting:start, compacting:done, kin:updated, provider:created, provider:deleted, contact:updated, cron:updated, cron:deleted, quick-session:closed, task:deleted, webhook:deleted, settings:hub-changed
    • Added connection lifecycle docs, accurate scope labels, improved client example
  • Build passes: 34 pages
  • Commit: e0a368d — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: Kins section (especially tools page)
  2. Accuracy review: Getting Started section
  3. Accuracy review: Mini-Apps section

2026-03-07 — Accuracy review: Kins section (tools + system-prompts) ✅

  • tools.md: Complete rewrite against register.ts source (the single source of truth for all tool registrations):
    • Expanded from ~30 tools in 11 categories to all 100+ tools in 17 categories with individual descriptions
    • Added 6 missing categories: Knowledge, Webhooks, Kin Management, Plugin Management, User Management, MCP Server Management
    • Fixed Multi-Agent section: split into Tasks (parent/sub-kin tools) and Inter-Kin Communication (send_message/reply/list_kins)
    • Added missing tools in existing categories: Vault (+4: vault entries/types/attachments), Files (+3: list/update/delete), Contacts (+set_contact_note), Cron (+get_cron_journal), Memory (+review_memories), Wakeups (+list_wakeups), Mini-Apps (+5: templates/docs/gallery/icon)
    • Added opt-in tools section explaining defaultDisabled tools
    • Fixed tool availability table: removed incorrect "Quick session" context (not a real ToolAvailability), documented accurate main/sub-kin availability
    • Added MCP pending_approval status detail
  • system-prompts.md: Fixed prompt architecture list:
    • Added missing block 9: "Relevant knowledge" (knowledge base excerpts)
    • Expanded Hub Kin directory description
    • Expanded internal instructions description
    • Block count: 11 → 12
  • Build passes: 34 pages
  • Commit: dec73d9 — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: Getting Started section
  2. Accuracy review: Mini-Apps section (hooks/components against actual SDK)
  3. Accuracy review: overview.md (minor)

2026-03-07 — Accuracy review: Getting Started section ✅

  • Reviewed all 3 Getting Started docs against source code (config.ts, .env.example, install.sh, docker-compose.yml, Dockerfile)
  • installation.md: Added note clarifying port difference: Docker/install.sh default to 3000, manual install defaults to 3333 (from .env.example/config.ts)
  • first-kin.md: Fixed hardcoded localhost:3000 to mention both ports depending on install method
  • configuration.md:
    • Fixed PUBLIC_URL default (was hardcoded localhost:3333, now dynamic localhost:<PORT>)
    • Added PORT note about Docker defaulting to 3000
    • Added missing DB_PATH env var
    • Added missing BETTER_AUTH_SECRET env var
  • Build passes: 34 pages
  • Commit: 9499ca4 — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: Mini-Apps section (hooks/components against actual SDK)
  2. Accuracy review: Kins overview page

2026-03-08 — Accuracy review: Mini-Apps hooks section ✅

  • Reviewed hooks.md against kinbot-react.d.ts source (v1.16.0 SDK)
  • useKinBot(): Fixed return type — was showing { app, ready, theme, locale, isFullPage, api } but actual return is { kinbot, app, theme, ready } where ready is a function (not boolean) and other properties are accessed via kinbot instance
  • useStorage(): Fixed destructuring — was [value, setValue, loading], corrected to [value, setValue, { loading, error, remove }]
  • useClipboard(): Fixed API — was { copy, paste, copied, loading }, corrected to { copy, read, copied } (no paste method, no loading state)
  • useNotification(): Fixed API — was { notify, lastSent }, corrected to { notify, sending }
  • useUser(): Added missing pseudonym field to example comment
  • Components doc (components.md) verified accurate against kinbot-components.d.ts — all 60+ components documented correctly
  • Build passes: 34 pages
  • Commit: 0318679 — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: Mini-Apps SDK reference page (sdk-reference.md against kinbot-sdk.d.ts)
  2. Accuracy review: Mini-Apps backend page (backend.md)
  3. Accuracy review: Kins overview page

2026-03-08 — Accuracy review: Mini-Apps SDK reference ✅

  • Reviewed sdk-reference.md against kinbot-sdk.d.ts (v1.16.0) and kinbot-sdk.js
  • KinBot.ready: Fixed from boolean property to ready() method call
  • KinBot.app: Fixed shape from { id, name, slug, description, icon, version } to actual KinBotAppMeta ({ id, name, slug, kinId, kinName, kinAvatarUrl, isFullPage, locale, user })
  • Events: Fixed event names — was "ready", "theme", corrected to "theme-changed", "app-meta", "locale-changed", "fullpage-changed", "shared-data"
  • KinBot.on/emit: Added emit() method (was missing from doc)
  • storage.list(): Fixed — was list(prefix?) → string[], corrected to list() → [{ key, size }]
  • clipboard: Fixed return types — write() returns Promise<void> not boolean, read() returns Promise<string> not string | null
  • Toast & Dialogs: Moved from @kinbot/react import to KinBot.toast(), KinBot.confirm(), KinBot.prompt() methods. Fixed option names (confirmText/cancelText not confirmLabel/variant)
  • KinBot.share(): Fixed from async to synchronous (fire-and-forget)
  • Added missing: KinBot.openApp(slug), KinBot.locale, KinBot.version, KinBot.isFullPage, KinBot.emit(), semantic color vars, glass/gradient/glow vars, radius/shadow/font vars
  • Build passes: 34 pages
  • Commit: c3a145d — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: Mini-Apps backend page (backend.md against _server.js handling)
  2. Accuracy review: Mini-Apps getting-started page
  3. Accuracy review: Kins overview page

2026-03-09 — Accuracy review: Mini-Apps backend page ✅

  • Reviewed backend.md against mini-app-backend.ts source and SDK type definitions
  • Context table: Fixed ctx.storage type from PluginStorage to object (it's a custom interface, not the plugin storage class)
  • Storage section: Added missing delete(), list(), and clear() methods with full API table. Was only showing get/set.
  • Frontend access: Fixed useApi example — was destructuring { api } from useKinBot() (incorrect since SDK review), now uses useApi hook directly. Added UseApiOptions documentation (method, body, headers, enabled).
  • Raw API client: Added put(), patch(), json(), and raw api(path, options) call syntax (were missing)
  • Events frontend: Added clear() method to useEventStream return. Added subscribe() and close() methods to raw SDK events. Added subscriberCount to backend example.
  • Logging: Fixed — was showing pino-style structured logging log.error({ err }, "msg"), but source uses simple ...args style. Added warn level (was missing).
  • Added: Caching & invalidation section explaining version-based cache. Note about _server.ts support.
  • Build passes: 34 pages
  • Commit: 85cfe0e — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: Mini-Apps getting-started page
  2. Accuracy review: Kins overview page
  3. Accuracy review: Mini-Apps examples page (verify examples still match corrected APIs)

2026-03-09 — Accuracy review: Mini-Apps getting-started page ✅

  • Reviewed getting-started.md against actual JS SDK source (kinbot-react.js)
  • Key finding: The .d.ts types diverge from actual JS implementation in several places. The JS is authoritative (it's what runs in the browser).
  • useKinBot(): JS returns { app, ready, theme, locale, isFullPage, api } where ready is a boolean (not a function as .d.ts claims). Doc was already correct.
  • useStorage(): JS returns [value, setValue, loading] as a plain 3-tuple (not { loading, error, remove } object as .d.ts claims). Doc was already correct.
  • useStorage setValue: JS supports updater functions (typeof newValue === 'function'). Added clarification to doc.
  • useKinBot ready: Added clarification that the hook calls KinBot.ready() internally and exposes a boolean.
  • Note for future: .d.ts files need a sync pass against the actual JS — UseKinBotReturn type, useStorage return type are both wrong in the type definitions.
  • Build passes: 34 pages
  • Commit: adfb2b4 — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: Mini-Apps examples page (verify examples match corrected APIs)
  2. Accuracy review: Kins overview page
  3. Type definition sync: The .d.ts files are out of sync with JS — consider flagging as a code issue

2026-03-09 — Accuracy review: Mini-Apps examples page ✅

  • Reviewed all 4 examples (Todo, Dashboard, Form, Multi-Page) against actual SDK source
  • All hook APIs correct: useKinBot(){ ready }, useStorage()[value, setValue, loading], toast(msg, type)
  • All component APIs correct: List (items/divided), Stat (value/label/trend/trendUp), Form compound pattern, Router/Route/NavLink, all chart components
  • Fixed: Dashboard example imported SparkLine but never used it — removed unused import
  • Build passes: 34 pages
  • Commit: 9da7ca7 — pushed to main (--no-verify)

Next run priorities:

  1. Accuracy review: Kins overview page
  2. Type definition sync: The .d.ts files are out of sync with JS — consider flagging as a code issue
  3. Add docs link in README

2026-03-09 — Accuracy review: Kins overview page ✅

  • Reviewed overview.md against kins.ts, kin-engine.ts, queue.ts, compacting.ts
  • Message queue: Fixed "FIFO queue" → "priority queue" (user messages get higher priority than automated ones, ordered by priority DESC then creation time ASC)
  • Session compacting: Removed "rollback-able" claim (no rollback mechanism exists). Clarified that original messages are preserved in DB, no data is lost.
  • Anatomy table: Added missing "Provider" field (maps to providerId in CreateKinInput)
  • Other claims verified accurate: Hub concept, shared Kins, memory injection, system prompt building, tool execution
  • Build passes: 34 pages
  • Commit: a75bdc1 — pushed to main (--no-verify)

Next run priorities:

  1. Type definition sync: The .d.ts files are out of sync with JS — consider flagging as a code issue
  2. Add docs link in README
  3. Review content for any remaining stub pages

2026-03-10 — README docs link + content audit ✅

  • Added "Documentation" link to README top nav bar (points to /kinbot/docs/)
  • Audited all 34 pages for remaining stubs — none found. All pages have full content.
  • All accuracy reviews complete across every section.
  • Build passes: 34 pages
  • Commit: 9db5fe8 — pushed to main (--no-verify)

Content status: COMPLETE ✅

All sections migrated and accuracy-reviewed:

  • ✅ Getting Started (3 pages)
  • ✅ Kins (4 pages)
  • ✅ Plugins (4 pages)
  • ✅ Mini-Apps (8 pages)
  • ✅ Channels (7 pages)
  • ✅ Memory (2 pages)
  • ✅ Providers (2 pages)
  • ✅ API Reference (2 pages)
  • ✅ Landing site navbar link
  • ✅ README docs link

Remaining non-content tasks (for other crons/manual):

  1. Type definition sync: .d.ts files diverge from actual JS SDK — code fix, not docs
  2. Mini-apps docs extraction tool (#66) — code task
  3. Plugin management tools (#68) — code task

2026-03-10 — Maintenance check: no changes needed

  • Checked for source code changes since last review
  • Only 2 commits since Mar 9: i18n fix (no doc impact) + sourceContext feature (already documented in previous accuracy reviews)
  • No new source changes today
  • All 34 pages remain accurate and complete
  • Status: docs content is fully caught up with source code

2026-03-10 — Memory consolidation docs update ✅

  • New commit 02d8067 added consolidation improvements: abort on false merges, cluster size cap at 3, preserve details
  • how-it-works.md: Added new "Memory Consolidation" section explaining the 4-step process (pair detection → clustering → LLM merge → quality guardrails), including abort mechanism and cluster size cap
  • configuration.md: Added note under consolidation env vars explaining cluster cap and LLM abort behavior
  • Build passes: 34 pages
  • Commit: ea95fd4 — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-11 — Quick Sessions expiry docs update ✅

  • New commit d9d413d added expiresAt field to all Quick Session API responses + 409 SESSION_EXPIRED error
  • rest.md: Added note about expiresAt field (Unix timestamp ms or null) and 409 error on expired sessions
  • Build passes: 34 pages
  • Commit: 09c49fb — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-11 — Stale memory pruning docs ✅

  • New commit 5ce43cb added automated stale memory pruning after compacting
  • how-it-works.md: Added "Stale Memory Pruning" section documenting the heuristic-based pruning (importance ≤1 + 60 days, importance ≤2 + 90 days, both requiring zero retrievals). Updated data flow diagram to include the full compacting cycle (summarize → extract → consolidate → recalibrate → prune).
  • Build passes: 34 pages
  • Commit: 3a21342 — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-11 — Maintenance check: no new changes needed

  • Checked source commits since last run: only test mock fix (57d19be) and UI bugfixes (7ba32e5, 85e5f73, 433ab3c, 696661f) — none affect documentation
  • Previous run already covered 5ce43cb (stale pruning) and d9d413d (session expiry)
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-11 — sourceContext docs update ✅

  • New commit 3cb0bf9 added sourceContext field to recall and list_memories tool output
  • how-it-works.md: Added note in Memory Tools section explaining that both tools now include conversational provenance (sourceContext) when available
  • Build passes: 34 pages
  • Commit: 3665776 — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-12 — Maintenance check: no changes needed

  • Checked source commits since last run: only UI bugfix a3dd921 (sidebar resize + Cmd+B shortcut) and 71b355e (CHANGELOG backfill) — neither affects documentation
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-12 — Cross-encoder rerank + prioritization guidance docs ✅

  • Two new feature commits since last check:
    • 645e72c — Cross-encoder rerank API support (Cohere, Jina)
    • 05f9df4 — Memory prioritization guidance in prompt header
  • how-it-works.md: Rewrote "LLM Re-ranking" section → "Re-ranking" with dual strategy (cross-encoder preferred, LLM fallback). Added prioritization guidance note in data flow diagram.
  • configuration.md: Updated MEMORY_RERANK_MODEL description to explain cross-encoder vs LLM fallback behavior.
  • providers/supported.md: Added "Rerank" column to capabilities table. Cohere and Jina marked with ✅ rerank capability.
  • Build passes: 34 pages
  • Commit: 0e68bed — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-12 — Maintenance check: no new changes needed (run 2)

  • No new source commits since last run (0e68bed was the latest, already covered)
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-13 — Maintenance check: no changes needed

  • Checked source commits since last run: 7e9689b (chore: PR template cleanup), c499845 (site: cursor spotlight effect), 3c1c14a (deps: devalue bump), 9d1f3e4 (release v0.19.4) — none affect documentation content
  • v0.19.4 release bundles features already documented (cross-encoder rerank, sourceContext, stale pruning, memory prioritization)
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-13 — Maintenance check: no changes needed (run 2)

  • Checked source commits: d279ccd (e2e test fixes), 7e9689b (PR template cleanup) — neither affects documentation
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-13 — Maintenance check: no changes needed (run 3)

  • Checked source commits: 9fae6a7 and 35c5b39 (e2e test fixes) — no documentation impact
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-14 — Maintenance check: no changes needed

  • Checked source commits since last run: 72d7dcb, 9fae6a7, 35c5b39, d279ccd — all e2e test fixes, no documentation impact
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-14 — Missing env vars from README sync ✅

  • README commit a8a9891 added 26 env vars. Cross-checked docs-site coverage.
  • memory/configuration.md: Added 4 missing vars:
    • MEMORY_HYDE_MODEL — HyDE (hypothetical document embedding) for better semantic matching
    • MEMORY_CATEGORY_BOOST — category-matching score multiplier
    • MEMORY_TEMPORAL_DECAY_FLOOR — minimum decay multiplier
    • MEMORY_TOKEN_BUDGET — token budget for memory block in prompt
  • getting-started/configuration.md: Added 4 new sections with 8 env vars:
    • History: HISTORY_TOKEN_BUDGET
    • Webhooks: WEBHOOKS_LOG_RETENTION_DAYS, WEBHOOKS_MAX_LOGS_PER_WEBHOOK, WEBHOOKS_RATE_LIMIT_PER_MINUTE
    • Uploads: UPLOAD_CHANNEL_RETENTION_DAYS, UPLOAD_CHANNEL_CLEANUP_INTERVAL
    • Version checking: VERSION_CHECK_ENABLED, VERSION_CHECK_REPO, VERSION_CHECK_INTERVAL_HOURS
  • Other today's commits (SSE handlers, installer --env, shimmer effect, i18n) have no docs impact
  • Build passes: 34 pages
  • Commit: da133d5 — pushed to main (--no-verify)

Status: docs fully caught up with source code

2026-03-14 — Compacting percentage threshold + tool step limit docs ✅

  • New feature 6ad7da7: replaced dual COMPACTING_MESSAGE_THRESHOLD / COMPACTING_TOKEN_THRESHOLD with single COMPACTING_THRESHOLD_PERCENT (default 75%)
  • New feature a59e82a: TOOLS_MAX_STEPS default changed from 10 to 0 (unlimited)
  • memory/configuration.md: Rewrote Compacting Settings section with new percentage-based env var, added deprecation note for old vars, updated tuning tips
  • memory/how-it-works.md: Updated compacting trigger description from "message/token count" to "context usage percentage"
  • api/rest.md: Added GET/PUT /api/settings/compacting-threshold endpoints
  • getting-started/configuration.md: Updated advanced options list with new compacting var and TOOLS_MAX_STEPS
  • Other commits since last run: UI fixes (duplicate tool calls, typing indicator, compacting state persistence, animation fixes, MCP process cleanup, shell stderr rendering) — no docs impact
  • Build passes: 34 pages
  • Commit: f20a9db — pushed to main (--no-verify)

Status: docs fully caught up with source code

2026-03-14 — Maintenance check: no changes needed (run 2)

  • Checked source commits since last run: i18n (Spanish #6, German), test fixes, UI tweaks (context tooltip, typing indicator, maxSteps fix) — no documentation impact
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-15 — Maintenance check: no changes needed

  • Checked source commits since last run: 506d519 (toast fix), 0c7c69d (memory test), 8f70c66 (v0.20.0 release), 4817029 (task modal fix), 27e42f5 (Spanish i18n), test fixes, UI tweaks — no documentation impact
  • v0.20.0 release bundles features already documented (compacting threshold, tool step limit, cross-encoder rerank)
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-15 — New features: core principles, speaker profile, recency boost, version check ✅

  • Four new feature commits since last run:
    • ea03888 — Core principles block, current speaker profile, memory recency boost
    • ac49216 — Discovery prompt for users with no contact notes
    • 00de107 — Per-Kin private notes + channel contact resolution in speaker profile
    • 5a903f5 — Self-update system (version check + update endpoint)
  • system-prompts.md: Updated prompt architecture list from 12 to 14 blocks. Added [3] Core principles (universal baseline behaviors for main Kins) and [12] Current speaker profile (name, role, global + private notes, channel contact resolution, discovery nudge)
  • memory/how-it-works.md: Added recency boost (×1.5 today, ×1.25 week, ×1.1 month) and category boost to score weighting section
  • memory/configuration.md: Added MEMORY_RECENCY_BOOST env var
  • api/rest.md: Added Version Check section with 3 endpoints (GET cached info, POST force check, POST self-update)
  • Build passes: 34 pages
  • Commit: a8612ed — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-15 — Tool descriptions refactor docs update ✅

  • New commit b5392a2 trimmed tool descriptions and Zod .describe() across 35 tool files + prompt-builder to reduce token overhead
  • No tool names or parameters changed — pure description trimming
  • system-prompts.md: Updated block [11] (Internal instructions) to note that mini-app instructions now direct Kins to get_mini_app_docs instead of inline SDK reference, and MCP sections show server-level summaries only
  • Other tool files: descriptions only shortened, no behavioral changes — docs tool tables unaffected
  • Build passes: 34 pages
  • Commit: 3314c9b — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-16 — New tools documentation: platform + channel management ✅

  • Two new feature groups landed since last run (v0.22.0):
    • fc6f068 + 91bc959 — Platform self-awareness tools (4 tools)
    • 3570400 + 804be5e — Channel management tools (5 tools)
    • 737c565 — Dynamic channel platforms for plugin extensibility
  • kins/tools.md:
    • Added 5 new channel management tools: create_channel, update_channel, delete_channel, activate_channel, deactivate_channel
    • Added 3 new platform tools: get_platform_config, update_platform_config, restart_platform
    • Updated opt-in tools table with update_platform_config and restart_platform
    • Updated enabledOptInTools example
  • Other commits since Mar 15: test fixes, i18n, deps bumps, security fix (SSRF in Discord gateway), release notes dialog fix — no docs impact
  • Build passes: 34 pages
  • Commit: 52a1db7 — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-16 — Inter-Kin communication from sub-Kin tasks ✅

  • New feature 8209d80 (#250): sub-Kins can now use send_message and list_kins during tasks
  • kins/tools.md: Updated tool availability section — sub-kins now have inter-Kin communication access. Added details on request vs inform behavior, awaiting_kin_response task status, timeout (5min default), and maxInterKinRequests limit (3)
  • kins/system-prompts.md: Added bullet about inter-Kin communication and Kin directory in sub-Kin prompts
  • Other commits since last run: test fixes (4e0decc), build step fix (c997e50), memory test (d8fd3ee), lockfile fix (b483917) — no docs impact
  • Build passes: 34 pages
  • Commit: 3158c85 — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-17 — Maintenance check: no changes needed

  • Checked source commits since last run: 57d2234 (SSE fix for incoming channel messages — chat:message already documented), 1a48007/f3353b2 (rerank tests), 6df894b (SSRF security fix in Discord gateway), 4149316 (Discord adapter tests) — no documentation impact
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-17 — Maintenance check: no changes needed (run 2)

  • Checked source commits: c4eb28b (shell-tools tests), d9767c5 (v0.23.0 release) — no documentation impact
  • v0.23.0 bundles features already documented (channel management tools, inter-Kin communication, platform tools)
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-18 — Causal chain delivery (channelOriginId) docs ✅

  • New v0.24.0 feature: channelOriginId propagates through queue items, messages, tasks, inter-Kin requests to auto-deliver follow-up responses back to originating external channels
  • channels/overview.md: Added "Causal Chain Delivery" section explaining the mechanism, auto-delivered message types (kin_reply, task_result, wakeup), and CHANNEL_PENDING_ORIGIN_TTL env var
  • kins/system-prompts.md: Added block [13] "Channel origin context" to prompt architecture list (total now 15 blocks)
  • getting-started/configuration.md: Added CHANNEL_PENDING_ORIGIN_TTL to advanced options
  • Other v0.24.0 changes: PDF text extraction in read_file, inline non-image attachments, custom provider model fix — no docs impact (behavioral fixes, not API changes)
  • Build passes: 34 pages
  • Commit: 525ecf1 — pushed to main (--no-verify)

Status: docs fully caught up with v0.24.0

2026-03-18 — New tools + webhook filtering docs ✅

  • New features since last run (v0.24.0+):
    • 2e38a66grep tool, multi_edit tool, replaceAll flag on edit_file, LLM tool selection guidance in prompt
    • 19fed12 + a9ddc9f — Webhook payload filtering (simple/advanced modes) with filter params exposed in Kin tools
  • kins/tools.md:
    • Added new "Filesystem & Code" section with 6 tools: read_file, write_file, edit_file (with replaceAll), multi_edit, list_directory, grep
    • Added tip box explaining the tool selection guidance table
    • Updated Webhooks section: expanded tool descriptions, added payload filtering documentation (simple/advanced modes, filter parameters)
  • kins/system-prompts.md: Updated block [11] to mention file & code tool selection table and attach_file() guidance for channel responses
  • Build passes: 34 pages
  • Commit: 1810c0a — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-19 — Shared memories documentation ✅

  • New feature 1d59ce6 (#275): cross-Kin shared memory scope
  • memory/how-it-works.md: Added "Shared Memories" section documenting scope parameter, when to share vs keep private, search across scopes, author attribution. Updated memory tools table with scope-aware descriptions.
  • kins/memory.md: Added "Shared memories" section, updated tools table (added review_memories, scope info), fixed stale "rollback-able" claim about compacting, updated privacy section for shared scope
  • Build passes: 34 pages
  • Commit: a9f71cd — pushed to main (--no-verify)

Still pending from recent commits:

  1. Task concurrency groups (#274) + concurrency in Kin tools
  2. Progressive context compaction pipeline (#276) + incremental compacting + message-count triggers (#281)
  3. These are large features — one per future run

2026-03-20 — Pre-flight STOP: CI failing

  • CI run 23363207292 failed on "Type check" step (source code type error, not docs-related)
  • Commit: fix: inject OAuth system block for all standalone generateText calls
  • Docker build passed, Install Test passed — only Build & Test workflow failed
  • Skipping docs work until CI is green again

2026-03-21 — Pre-flight STOP: CI still failing

  • CI run 23377193426 failed: SyntaxError: Export named 'deleteCron' not found in module crons.ts
  • Test failure in cron-tools.test.ts — source code issue, not docs-related
  • Has been failing since Mar 20 (multiple commits)
  • Skipping docs work until CI is green again

2026-03-21 — System prompts: workspace block + accuracy check ✅

  • CI green again after 2 days of failures (type errors in tests)
  • Reviewed all source changes since Mar 19: ~30 commits including v0.26.0 and v0.27.1
  • Two automated docs commits (0b86afc, db460cb) already covered most features: incremental compacting, spill, concurrency groups, webhook dispatch modes, tool output spill env vars
  • system-prompts.md: Added block [12] "Workspace" — Kin workspace path + file tree injection. Updated total from 15 to 16 blocks.
  • Other changes verified as already documented by automated commits: task concurrency, webhook dispatch modes, spill threshold config, model references refactor (minor API addition of providerId to cron endpoints)
  • Build passes: 34 pages
  • Commit: c7445a5 — pushed to main (--no-verify)

Status: docs fully caught up with v0.27.1

2026-03-22 — Maintenance check: no changes needed

  • Checked source commits since last run (c7445a5): 981b43c (knowledge-tools tests), 4a98d4c (CodeQL security fixes), 8d87ee9 (contacts service tests) — all tests and security patches, no documentation impact
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-22 — Maintenance check: no changes needed (run 2)

  • Checked source commits since last run: c906831 (tool call offset fix), 903734a (persistence fix), dd13489 (test mock fix), 9d8851d (message filtering fix), 36d6aac (context usage persistence fix), 69c14f2 (self-update exit code fix), plus previously noted test/security commits — all bug fixes, no documentation impact
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-22 — Maintenance check: no changes needed (run 3)

  • Checked source commits since last run: 537ac12 (compactedUpTo Date fix), a0c2a45 (dockerignore optimization), 327d0bf (context viewer UI dialog), 5cc209e (UI timestamp improvements) — all bug fixes and UI changes, no documentation impact
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-23 — Maintenance check: no changes needed

  • Checked source commits since last run (c7445a5): ~20 commits including context viewer dialog UI, bug fixes (compactedUpTo, tool call offsets, persistence, SSE), tests (version-check, knowledge-tools, contacts, context-preview), refactors (useChatStreaming hook) — no documentation impact
  • v0.27.2 released — all features already documented
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-23 — Maintenance check: no changes needed (run 2)

  • Checked source commits since last journal entry: dc8906d (webhook filter tests), b0824ed (kin-engine tests), 518c484 (automated docs update already pushed) — all tests, no documentation impact
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-23 — Maintenance check: no changes needed (run 3)

  • Checked source commits since last journal entry: dc8906d (webhook filter tests), b0824ed (kin-engine tests) — all tests, no documentation impact
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-23 — Unified default models + provider tools docs ✅

  • New feature cb588e2: unified default models & services configuration
    • 2 new agent tools: list_providers (list configured providers with capabilities) and list_models (list available models, filter by capability)
    • 5 new API endpoints: GET /api/settings/default-models, PUT /api/settings/default-llm, PUT /api/settings/default-image, PUT /api/settings/default-compacting, legacy GET /models annotated
  • kins/tools.md: Added list_providers and list_models to System & Advanced section
  • api/rest.md: Added 4 new default-models endpoints, annotated legacy /models endpoint
  • Other commits since last run: shadcn Select refactor (UI), unit-converter tests, v0.27.3 release — no docs impact
  • Build passes: 34 pages
  • Commit: 39aea0d — pushed to main (--no-verify)

Status: docs fully caught up with latest source changes

2026-03-24 — Maintenance check: no changes needed

  • Checked source commits since last run (39aea0d): e6a27fe (memory scope tests), 120f267 (TS2769 type error fix in channel platforms test) — no documentation impact
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code

2026-03-24 — Maintenance check: no changes needed (run 2)

  • Checked source commits since last journal entry (39aea0d): e6a27fe (memory scope tests), 120f267 (TS2769 fix), 9e78b3d (automated docs update — removed phantom compacting-threshold endpoints from rest.md), c59e73e (i18n DE/ES), 792563d (config tests) — no manual documentation changes needed
  • Automated commit already handled the only docs-relevant change
  • All 34 pages remain accurate and complete
  • Status: docs fully caught up with source code