File size: 7,388 Bytes
b68816f f07443e b68816f a7f0bca 59715a0 b68816f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | # Docs index
<!-- doc-status -->
> β
**LIVE β the map.** Reorganised 2026-08-24. Every doc in this repo carries a **status banner
> under its H1**; read it before trusting the body.
**Status legend:** β
LIVE (canonical) Β· π LIVE PLAN (in flight) Β· π‘ PROPOSAL (not approved) Β·
β ARCHIVED (superseded, kept for the record) Β· π REFERENCE (another repo's, can drift)
---
## Start here β repo root
The root deliberately holds only four docs. If you read nothing else, read the first three.
| Doc | Status | Is |
|---|---|---|
| [../REPO_STATUS.md](../REPO_STATUS.md) | β
| **What is built.** Canonical current state |
| [../DEV_PLAN.md](../DEV_PLAN.md) | β
| **What is in flight.** Sprint plan, task table, locked decisions |
| [../API_CONTRACT_BE_PYTHON.md](../API_CONTRACT_BE_PYTHON.md) | β
| **The contract of record** for the FE-facing surface |
| [../README.md](../README.md) | β | HuggingFace Space card. The YAML frontmatter is load-bearing for deployment β don't restructure it |
`CLAUDE.md` also sits in the root but is **gitignored** (local operating manual, not shipped).
**Trust order when sources disagree:** code > REPO_STATUS / DEV_PLAN > everything else.
---
## `knowledge/` β the knowledge-pipeline workstream
Client documents β candidate knowledge entries an expert reviews rather than authors. Two halves
(parsing, Sofhia Β· extraction, Rifqi) meeting at one versioned artifact.
| Doc | Status | Read it when |
|---|---|---|
| [knowledge/knowledge_pipeline_context.md](knowledge/knowledge_pipeline_context.md) | π | You need the *why* β ownership split, settled decisions, what not to reopen |
| [knowledge/KNOWLEDGE_PIPELINE_TODO.md](knowledge/KNOWLEDGE_PIPELINE_TODO.md) | π | You want per-task status and owners. **Start here** |
| [knowledge/KNOWLEDGE_PIPELINE_CALIBRATION.md](knowledge/KNOWLEDGE_PIPELINE_CALIBRATION.md) | π | **Before changing any constant.** Every tuned value with the reason it has that value |
| [knowledge/KNOWLEDGE_PARSING_OUTPUT_CONTRACT.md](knowledge/KNOWLEDGE_PARSING_OUTPUT_CONTRACT.md) | π | You're working either side of the seam |
| [knowledge/KNOWLEDGE_SURFACE_PLAN.md](knowledge/KNOWLEDGE_SURFACE_PLAN.md) | π | Persistence + endpoints: who owns what, phased tasks, blockers. Approved 2026-09-01 |
| [knowledge/KNOWLEDGE_CONSUMPTION_PLAN.md](knowledge/KNOWLEDGE_CONSUMPTION_PLAN.md) | π‘ | How agents READ the entries (N14). Which agent gets what, and why. **Proposal, nothing built** |
| [knowledge/TABLE_BRANCH_PROPOSAL.md](knowledge/TABLE_BRANCH_PROPOSAL.md) | π‘ | Step 8 β the symptom x cause matrix a shop manual actually holds. Deterministic triples, LLM only to phrase. **Proposal, nothing built** |
| [knowledge/TERM_HIERARCHY_PROPOSAL.md](knowledge/TERM_HIERARCHY_PROPOSAL.md) | π‘ | Step 7 + R7 β parent/child terms and cross-document identity, designed together. **Touches `entity_id`; read before building** |
| [knowledge/KNOWLEDGE_DOMAIN_CONTEXT_V4.md](knowledge/KNOWLEDGE_DOMAIN_CONTEXT_V4.md) | π‘ | What a *real* domain context is. v3's object is a document brief wearing the name. **Proposal, nothing built** |
| [knowledge/KNOWLEDGE_PERSISTENCE_CONTRACT.md](knowledge/KNOWLEDGE_PERSISTENCE_CONTRACT.md) | π‘ | The four-table DDL sent to Harry 2026-09-01. **Pending β no ORM written against it yet** |
| [knowledge/KNOWLEDGE_DOMAIN_CONTEXT_V3.md](knowledge/KNOWLEDGE_DOMAIN_CONTEXT_V3.md) | β
| `DomainContext` design reasoning. **Shipped in full 2026-09-02** β the live shape is the output contract Β§8 |
Roll-up status: DEV_PLAN Β§0.8 Β· built state: REPO_STATUS Β§14 Β· eval harness: [../eval/knowledge/README.md](../eval/knowledge/README.md)
---
## `plans/` β design plans
| Doc | Status | Note |
|---|---|---|
| [plans/SPINE_V2_PLAN.md](plans/SPINE_V2_PLAN.md) | π | Approved 2026-07-13; W2+W1 shipped. **W3 deferred β do not start.** Holds the `message_charts` DDL (Β§4.4) |
| [plans/DS_TOOLS_PLAN.md](plans/DS_TOOLS_PLAN.md) | π‘ | Design study only. **Nothing was built from it**; don't implement without sign-off |
---
## `tools/` β the analytical-tools workstream
The `analyze_*` tool surface: forecast, importance, anomaly, cluster, A/B testing, segmentation,
pareto. Tools are **pure functions, no base class** β the "framework" is `spec_builder` +
`ml/executor` + the shared chart kit.
| Doc | Status | Read it when |
|---|---|---|
| [tools/ANALYTICAL_TOOLS_CONVENTIONS.md](tools/ANALYTICAL_TOOLS_CONVENTIONS.md) | β
| **Before writing any tool.** The InputModel β ToolSpec flow, the auto-chart convention, `run_fit`, the three registrations, and the rules that aren't negotiable |
Roll-up status: DEV_PLAN Β§0.9 Β· built state: REPO_STATUS Β§9 Β· chart envelope: [plans/SPINE_V2_PLAN.md](plans/SPINE_V2_PLAN.md) Β§4.2
---
## `testing/` β what running the thing actually found
End-to-end dry-runs of the `structured_flow` path against real sources. These runs are
expensive (~170k-290k tokens each) and found twelve bugs that 881 passing unit tests did
not, because each was an interaction between the model's choices and a real data shape.
| Doc | Status | Read it when |
|---|---|---|
| [testing/AGENTIC_DRY_RUN_LOG.md](testing/AGENTIC_DRY_RUN_LOG.md) | π | **Before running a dry-run** (it costs real money, and Β§6 halves it), and before assuming a green run means a working turn β seven of the twelve bugs produced a confident WRONG answer rather than an error |
Suites + shapes: `eval/chat_sim/run_chat.py` Β· per-run answers: `eval/chat_sim/results/`
---
## `archive/` β superseded, kept for the record
Nothing here is safe to implement from. Each says what replaced it.
| Doc | Superseded by |
|---|---|
| [archive/API_ENDPOINTS_RESTRUCTURE.md](archive/API_ENDPOINTS_RESTRUCTURE.md) | [../API_CONTRACT_BE_PYTHON.md](../API_CONTRACT_BE_PYTHON.md). The frozen 2026-06-30 snapshot sent to Harry; says "observability" (now traceability) and cites the removed `ENABLE_SLOW_PATH` |
| [archive/CODE_REVIEW_2026-07-23.md](archive/CODE_REVIEW_2026-07-23.md) | DEV_PLAN Β§0.7 for live **F-n** status. The review body still explains *why* each fix exists |
| [archive/PROJECT_BRD.md](archive/PROJECT_BRD.md) | REPO_STATUS (built state) + API_CONTRACT_BE_PYTHON (contract). Written against `pr/4` |
---
## `reference/` β other repos
| Doc | Note |
|---|---|
| [reference/API_CONTRACT_BE_GOLANG.md](reference/API_CONTRACT_BE_GOLANG.md) | The **Go** Orchestrator's contract. We don't edit that repo; this is a copy and can drift. Verify against the Go source before relying on it. Last synced 2026-07-01 |
---
## Subsystem docs (live beside the code)
`src/*/README.md` β catalog Β· knowledge_parsing Β· query Β· retrieval Β· security.
`eval/*/README.md` β chat_sim Β· help Β· intent Β· knowledge Β· planner Β· readiness.
Eval READMEs are reliable; follow their run and commit conventions exactly. Subsystem READMEs can
lag β code wins.
---
## Conventions
- **Every doc gets a status banner** under its H1, marked `<!-- doc-status -->`. New docs too.
- **Archive, don't delete.** A deleted doc leaves a dead link and no explanation; an archived one
says what replaced it. (Repo convention: deletion needs Rifqi's explicit sign-off.)
- **Docs are part of the change** β a behaviour, surface or schema change updates the affected doc
in the same unit of work.
|