Skip to content

Latest commit

 

History

729 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Khala

Khala

An alliance of tools that calibrates the AI era.

AI builds it. You understand it.


Khala answers the two failure modes of the AI era — the machine lies, and the human stops judging — with deterministic grounding, not advice. Khala is not a tool you run; it is the link the tools share. The ecosystem is Khala; one of its components is Nexus.

  • The machine lies — stale or wrong, asserted with confidence. Defended by grounding answers in verifiable sources — and by mechanical checks, not trust: every citation is verified against the retrieved evidence, answer numbers must appear in that evidence, and answers built on stale sources are flagged.
  • The human stops judging — AI output rubber-stamped without reading. Defended by making accountable review a gate before code is written.

One substrate, four kinds of information

Khala exists so that everyone who builds and runs the service — humans and agents — thinks from the same information. Documents alone don't cover that. Four kinds of information drift apart in an AI-era org, and each one is a Khala surface:

Four kinds of information — documented knowledge, design decisions, operational facts, comprehension — flow into one governed substrate (approved, current, cited), which a human and an agent read through two doors: the same view.

Information How it stays the same for everyone Tool
What the org knows — docs, specs, know-how One warehouse, two doors: humans (web) and agents (MCP/A2A) read the same governed corpus — same approvals, same current version, same citations. Nexus
Why it was built — design decisions A flight recorder for decisions: the choices coding agents make by the hundred are recorded at zero marginal cost, and approval stays a named human's accountable act. Arbiter
What the system is doing — traces, metrics, logs Judgment context, not another dashboard: telemetry joined with approved knowledge (specs, runbooks, decisions) into evidence for review and troubleshooting. Observer over Nexus + OTel
Who still understands it — comprehension A cognitive-debt ledger: the warehouse is the denominator (what must be known), vouches are the numerator (what a named human can still explain) — the gap becomes a number you can repay. Adept

The first row is where a team starts — everyday value. The last row is why it matters more every year: as agent output grows, an org that doesn't measure comprehension doesn't even know what it no longer knows.

The three debts of the AI era

As AI becomes the producer, three debts accumulate (Martin Fowler, "the three debts of the AI era", 2026-04-02). Khala is the window where you pay them down cheaply — so you stay in command of your own system:

  • Technical debt — artifacts pile up faster than they're maintained → Probe + Observer.
  • Intent debtwhy a thing was built is lost → Arbiter.
  • Cognitive debtnobody understands the systemAdept measures it as vouch coverage against the shared warehouse, and drives its repayment.

The reframe is recorded in ADR-0002.

The tools

Tool One-liner Directory
Nexus Hybrid retrieval over your docs and OTel telemetry — every answer carries citations that are verified in code. ./nexus
Archon Authority window over domain invariants — reads values from code constants at query time. Ships inside Nexus. ./nexus/nexus/claims
Observer Platform-aware PR analyzer — PR scope, API spec lint/diff, review checklists; consumes Nexus. ./observer
Arbiter ADR/SDD governance MCP — reviewable, traceable decision records; publishes to Nexus. ./arbiter
Probe Mutation-driven test-quality harness — catches what advisory review misses. ./probe
Adept Cognitive-debt meter — graded, grounded comprehension vouches; coverage + orphan hotlist. ./adept
Adept web Team surface for the same meter — browser UI + server-backed (file or Postgres). ./adept-web
docs Astro Starlight bilingual ecosystem documentation site. ./docs

Quickstart (Nexus · ~5분)

전제: Docker + Docker Compose. (go-task 있으면 task, 없으면 우측 명령 그대로)

# (선택) LLM 답변 생성용 — 없어도 근거 검색은 동작
export ANTHROPIC_API_KEY=sk-ant-...

task up        # 또는: cd nexus && docker compose up -d
task models    # 최초 1회 임베딩 모델 — 또는: docker compose exec nexus-ollama ollama pull nomic-embed-text

키 없이 답변 생성(dev): 유료 키 없이도 서술을 돌릴 수 있습니다 — NEXUS_LLM_PROVIDER=claude-code 로 두고 task llm-bridge 를 띄우면 실행 중인 Claude Code 를 LLM 백엔드로 씁니다. 키는 품질 계층이지 핵심이 아닙니다.

→ 브라우저에서 http://localhost:8000 열기 → 채팅에 질문하면 근거와 함께 답합니다.

  • 문서 넣기: 좌측 업로드, 또는 docker compose exec nexus-app nexus ingest ./docs
  • 업데이트: git pulltask update — 이미지 재빌드·재기동 + DB 마이그레이션 적용(nexus/migrations)
  • 정지: task down (또는 docker compose down)

How this repository is kept honest

A system whose promise is calibration has to hold itself to the same standard, so the guards below are not process decoration — each one exists because something went wrong first, and each is enforced on every push rather than remembered.

Guard What it refuses Why it exists
Doc-to-code anchorsdoc-anchors.yml A document whose anchored source paths no longer exist "Is this page stale?" was being judged by counting commits by hand. Anchors turn it into one join.
Disposable-database marker A test run against a database that has not declared itself scratch The suite truncates tables. Pointed at the development database once, it took the corpus with it.
Fingerprint scanner A push carrying identifying details — files, commit messages, and PR bodies alike Details scrubbed before the repo went public came back through ordinary work a month later.
Declared index generations Ingestion whose resolved embedding generation differs from the corpus's declared one A documented command, run from the host, wrote vectors into a column no query reads. Nothing failed.
Pre-registered verdict rules An evaluation harness edited after seeing the score it produced Evaluation labels are signed, and the rule that decides the verdict is written down before the run.

Roughly 1,900 test functions run across 17 CI jobs, including a job that runs the database-backed suite against a real Postgres with migrations applied — added after the discovery that those tests had never executed at all. Governance artifacts (10 ADRs, 49 SPECs) are stamped and checked for integrity in CI.

→ Engineering log — a dated record of thirteen defects, how each surfaced, and what changed. It is the most useful page here for judging the project, because it is the one that reports what was wrong.

Open items are counted rather than described, in OPEN.md, so that it is possible to tell whether they are going up or down.

Documentation

Full ecosystem reference, philosophy, and per-tool guides live at the docs site: https://livinglikekrillin.github.io/khala/ (source in ./docs).

Conventions & license

  • Contribution flow, naming, versioning, and terminology rules: CONVENTIONS.md.
  • What each thing is called, and why: GLOSSARY.md. It is the record of the words this repo retired and the ones it deliberately kept, and it is what scripts/check_terms.py reads.
  • Licensed under the MIT License.

About

An alliance of tools for the AI era: grounded knowledge (Nexus·Archon), accountable review & governance (Arbiter·Observer), and comprehension & mutation quality (Adept·Probe). AI builds it — you understand it.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages