Process Summary v3.3 — Evidence-Backed Knowledge Topology
This is a local personal knowledge base for fast, accurate task context. It has three complementary roles:
- Topology routes a task to the smallest relevant topic set.
- Topic summaries explain current behavior, decisions, and risks.
- Code remains the source of truth before changing contracts, persistence, state machines, or permissions.
CLAUDE.md # root route only
<root-module>/CLAUDE.md # static module boundary + topic index
.claude/process-summary/topology.tsv # machine-readable topic nodes
.claude/process-summary/edges.tsv # evidence-backed topic relations
.claude/process-summary/<module>/<topic>/summary.md # human-readable current knowledge
.claude/process-summary/index.md + <year>/<month>.md # cold change history
Topology Schema
topology.tsv has one row per topic:
topic aliases owners entrypoints data_nodes events tags
aliases: business terms and common names.owners: stable class/package capability tokens, not every implementation file.entrypoints,data_nodes,events: exact API paths, tables, or event names when relevant.- Topic rows never contain dependencies. Relations belong exclusively in
edges.tsv.
edges.tsv has one row per directed relation:
source relation target evidence verified_at
relationis one ofcalls,reads,writes,publishes,consumes, orstate-transition.evidenceisrepository-relative-file#exact-anchor; the anchor must occur in that file.verified_atis an ISO date set after reading the evidence.
Never generate a full import graph or create a relationship from summary prose alone.
Retrieve
Use topology before reading summaries:
bash scripts/retrieve.sh quality/pad-incoming-inspection
bash scripts/retrieve.sh /pad/quality-incoming
bash scripts/retrieve.sh mes_quality_task
The command resolves a primary topic, then adds direct upstream/downstream neighbors, capped at three summaries. Load monthly history only for design rationale or regression investigation.
Capture
Capture only on explicit user request and only for high-value changes: API contracts, state/data semantics, cross-module flow, recurring root causes, or lasting design decisions.
- Run
scripts/capture.shand route the changed paths. - Update the primary topic summary:
现状,技术决策,注意事项, then concise history. - Update
topology.tsvwhenever aliases, owner tokens, API/table/event anchors changed. - Add or refresh an
edges.tsvrow only after verifying a code anchor; updateverified_atat the same time. - For a new topic, add both its summary and exactly one topology row.
- Run
bash scripts/topology.sh check.
Do not capture routine CRUD, formatting, renames, or transient debugging notes.
Summary Rules
Every summary.md uses only these top-level sections:
## 现状
## 相关模块
## 技术决策
## 注意事项
## 变更历史
- Keep a summary under 200 lines.
scripts/maintain.shcompacts history only; split an oversized current-state topic instead of deleting facts. - Current behavior and invariants come before history.
- Put human explanation of a relationship in
相关模块; put the machine-readable edge intopology.tsv. - Never use legacy headings such as
Overview,Dependencies,Recent Changes, orWatch Out.
Validation
bash scripts/topology.sh resolve <query>
bash scripts/topology.sh neighbors <topic>
bash scripts/topology.sh check
bash scripts/topology.sh audit 2026-04-18
check verifies nodes, relation type, edge endpoints, evidence files, evidence anchors, and date format. audit <cutoff> lists relations whose verification date is older than the cutoff.