projectadg last reviewed 2026-05-20

Knowledge OS Stage 1 β€” wiki + ingest + MCP

Context

Aspire org knowledge sits scattered across 12+ surfaces: Hubdoc, Xero, GitLab, Notion, Slack history, Google Drive, individual brains. Asking "who's our backup produce supplier for Chanya?" or "where did we decide on Stripe vs Zinga Pay?" requires manual hunting. KO Stage 1 builds a queryable wiki backed by an Obsidian vault + Postgres index, fed by both human writes and an OCR ingest pipeline. iZinga is the platform brand; KO is its first product.

Detail

Goal

A markdown-based wiki where any Aspire agent or human can answer business questions in <5 seconds via either Obsidian quick-switcher or MCP knowledge_query.

Architecture

graph TD A["Agents β€” Claude Code / OpenClaw"] -->|MCP| B["mcp-bridge :8082<br/>FastMCP + JWT"] H["Humans"] -->|Obsidian edits| V["Vault β€” git repo<br/>markdown source of truth"] B -->|HTTP| W["wiki-api :8081<br/>FastAPI"] W --> V W --> P[("Postgres + pgvector<br/>index")] I["Raw docs<br/>PDF / image / transcript"] -->|POST /ingest/upload| O["worker-ocr<br/>async consumer"] O -->|native PDF first,<br/>then LLM vision| G["Aspire LLM Gateway<br/>llm.aspiredigital.group"] O -->|writes markdown + commits| V V -->|git push/pull| GL["GitLab<br/>aspire/knowledge-os-vault"] classDef src fill:#715EE3,color:#fff,stroke:#291F50; class V src;

Components

ComponentStatusNotes
Obsidian vault (aspire/knowledge-os-vault)βœ… livegit-backed, 8 brand namespaces + _meta + _inbox + _templates
Obsidian Git plugin (auto-commit 5min, auto-pull 10min)βœ… liveVerified 2026-05-17
Templater (6 page-type templates)βœ… liveHotkey Cmd+Shift+T
Dataview dashboard (_meta/dashboard.md)βœ… live7 live queries
wiki-api (FastAPI, port 8081)βœ… builtPostgres index + REST endpoints
mcp-bridge (FastMCP, port 8082)βœ… built6 tools: health, knowledge_query, get_page, ingest, update_page, lint_page
worker-ocr (async PDF β†’ vault)βœ… builtVision via claude-haiku-4-5 (qwen-3.6-omni broken upstream); native PDF first
ko-knowledge MCP wired into Claude Codeβœ… liveVerified end-to-end at 3 layers 2026-05-16
Production VPS deploy on OpenClaw⏸ pendingwhen: manual gate in .gitlab-ci.yml; blast radius 28 agents
Aspire LLM Gateway integrationβœ… liveVirtual key knowledge-os smoke-tested 2026-05-19

Milestones

Stage 2 / Stage 3 (out of scope this phase)

Open questions

  1. Content ownership post-seeding β€” who maintains vault quality day-to-day?
  2. cloud-first.ai data retention policy β€” confirmed on-prem for operational data routing?
  3. Pilot brand for first real load β€” Chanya remains the default per original spec.

Provenance

Full architecture: aios-workspace/engineering/projects/izinga/ARCHITECTURE.md. Engine repo: gitlab.dssc.co.th/aspire/infrastructure/knowledge-os. Vault repo: gitlab.dssc.co.th/aspire/knowledge-os-vault.

Related

πŸ”— Relationships

graph LR knowledge_os_stage_1["knowledge-os-stage-1"]:::self knowledge_os_stage_1 --> aspire_llm_gateway_only_egress["aspire-llm-gateway-only-egress"] knowledge_os_stage_1 --> use_postgresql_by_default["use-postgresql-by-default"] knowledge_os_stage_1 --> aspire_llm_gateway["aspire-llm-gateway"] knowledge_os_stage_1 --> aspire_brand_architecture["aspire-brand-architecture"] classDef self fill:#715EE3,color:#fff,stroke:#291F50;