[Docs] Mirror lmcache/ layout in docs/design/ for discoverability#3040
[Docs] Mirror lmcache/ layout in docs/design/ for discoverability#3040ApostaC merged 6 commits intoLMCache:devfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request establishes a comprehensive code quality and review standard for the LMCache project, including the addition of docs/coding_standards.md, a new CLAUDE.md guide, and specialized review/check skills for AI agents. It also reorganizes design documentation to mirror the lmcache/ package structure and updates various READMEs and source files to point to these new locations. The review feedback identifies several opportunities to improve path consistency for automated agents and highlights a minor naming inconsistency with the newly established documentation guidelines.
|
|
||
| When working in `lmcache/v1/mp_observability/`: | ||
|
|
||
| Design docs live in `docs/design/v1/mp_observability/` — update them whenever |
There was a problem hiding this comment.
For consistency with the relative links in README.md and to ensure coding agents can correctly resolve the path from this directory, please use the relative path from the repository root by adding the ../../../ prefix.
| Design docs live in `docs/design/v1/mp_observability/` — update them whenever | |
| Design docs live in ../../../docs/design/v1/mp_observability/ — update them whenever |
| metadata contract table in `docs/design/v1/mp_observability/EVENTS.md` | ||
| with the new type's metadata keys and types. |
There was a problem hiding this comment.
The path to EVENTS.md should be relative to this file's location to ensure it is discoverable by agents working within this module, consistent with the pattern used in README.md.
| metadata contract table in `docs/design/v1/mp_observability/EVENTS.md` | |
| with the new type's metadata keys and types. | |
| metadata contract table in ../../../docs/design/v1/mp_observability/EVENTS.md\ | |
| with the new type's metadata keys and types. |
|
|
||
| 2. **New metrics subscriber** — after adding counters/histograms, update the | ||
| metrics table in `METRICS.md` with the metric name, type, and description. | ||
| metrics table in `docs/design/v1/mp_observability/METRICS.md` with the |
There was a problem hiding this comment.
| ("How to Add a New Event and Subscriber") and the design rules in | ||
| `DESIGN.md`. | ||
| (co-located with this file; "How to Add a New Event and Subscriber") and | ||
| the design rules in `docs/design/v1/mp_observability/DESIGN.md`. |
| metadata: Flat key-value payload. Contents depend on ``event_type``; | ||
| see the metadata contracts in DESIGN.md Section 2.7. | ||
| see the metadata contracts in | ||
| ``docs/design/v1/mp_observability/DESIGN.md`` Section 2.7. |
There was a problem hiding this comment.
To maintain consistency with the relative paths established in the module's README.md and to assist coding agents in locating the design documentation from this source file, consider using a relative path from the repository root.
| ``docs/design/v1/mp_observability/DESIGN.md`` Section 2.7. | |
| ../../../docs/design/v1/mp_observability/DESIGN.md Section 2.7. |
| - Use descriptive file names (e.g., `overall.md`, `l2_eviction.md`, `query-command.md`) | ||
| rather than mirroring module file names. See `docs/design/README.md` for the full | ||
| convention. |
There was a problem hiding this comment.
The newly established standard in this file (and in docs/design/README.md) recommends using descriptive file names rather than mirroring module file names. However, describe.md and ping.md in docs/design/cli/commands/ still mirror their respective module names (describe.py and ping.py). Consider renaming them to something more descriptive, such as describe-command.md and ping-command.md, to adhere to this guideline.
Signed-off-by: ApostaC <yihua98@uchicago.edu>
Signed-off-by: ApostaC <yihua98@uchicago.edu>
Signed-off-by: ApostaC <yihua98@uchicago.edu>
bca5cb1 to
fd53215
Compare
royyhuang
left a comment
There was a problem hiding this comment.
Btw do we have design docs for the core components in mp mode, for example, our listeners and controllers pattern? It would great if we can add those!
There was a problem hiding this comment.
Probably rename this to event-bus.md following other design docs naming convention. Similarly for other files in this dir.
@royyhuang I double-checked, and there are no extra design docs in
|

What this PR does / why we need it:
Reorganizes
docs/design/to mirror thelmcache/package tree so developersand coding agents can easily locate the design doc for a given module:
a module at
lmcache/<path>/has design docs atdocs/design/<path>/.Concretely:
docs/design/l2_adapters/→docs/design/v1/distributed/l2_adapters/,docs/design/cli/describe.md→docs/design/cli/commands/describe.md)..mdfiles from insidelmcache/into thecorresponding
docs/design/<path>/location (DESIGN.md,EVENTS.md,METRICS.mdfromlmcache/v1/mp_observability/).README.mdfiles co-located with code; addedrelative symlinks from the mirrored
docs/design/<path>/README.mdso themirror tree is complete.
docs/design/README.mdexplaining the convention.CLAUDE.md,AGENTS.md,docs/coding_standards.md§5.1, and.claude/skills/pr-review/SKILL.mdso both humans and coding agents aredirected to the mirrored location when looking for or adding design docs.
Special notes for your reviewers:
This branch is forked off
chore/coding-standard(PR #3039). Please rebasethis PR onto
devafter #3039 is merged so the PR shows only the docs-layoutchanges.
If applicable:
Note
Low Risk
Docs-only reorganization plus link/reference updates; primary risk is broken doc links or tooling that assumes the old
docs/design/paths.Overview
Standardizes design documentation by making
docs/design/mirror thelmcache/package tree, so design docs forlmcache/<path>/live underdocs/design/<path>/.Adds
docs/design/README.mdto document the convention, drops in mirroredREADME.mdlink stubs for select modules, and fixes internal relative links in moved design docs (e.g., CLI command docs and L2 adapter docs). Updates agent and contributor guidance (AGENTS.md,CLAUDE.md,.claude/skills/pr-review/SKILL.md,docs/coding_standards.md) plus MP observability references (lmcache/v1/mp_observability/*,event.py) to point at the newdocs/design/v1/mp_observability/locations.Reviewed by Cursor Bugbot for commit 65292f7. Bugbot is set up for automated code reviews on this repo. Configure here.