You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests, doc, scripts, env, logs, and generated data must not be installed as Python packages. Runtime package data must be owned by the package that consumes it.
Isolate Legacy Redis behavior under cacheroute.integrations.redis.
Move embedding implementations under cacheroute.integrations.embeddings.
Phase 4 — services
Migrate in separate reviewable PRs:
KDN;
Scheduler;
Proxy;
Instance.
Each migration must audit and update normal and dynamic imports, module strings, Uvicorn targets, subprocess commands, Docker/CI/config paths, tests and monkeypatch targets, packaging, README links, and operational entrypoints.
Phase 5 — UI, development orchestration, and native components
Co-locate UI assets with their owning service packages.
Move demos to cacheroute.entrypoints.dev or examples.
Review the Resource Agent as a focused native-component migration, potentially under crates/.
Phase 6 — compatibility cleanup
Remove obsolete root runtime packages.
Remove transition package lists and direct-source bootstraps.
Remove expired import shims, including cacheroute_compat at its documented milestone.
PR docs: research unified v1 LMCache observability for #141 #156 must rebase onto the merged namespace foundation, move its implementation into src/cacheroute/observability, resolve its existing review findings, and avoid introducing a permanent root package.
Do not resume broad production instrumentation until the observability contract package is reviewed in its canonical location.
Required validation
Each migration PR must report exact results for its applicable commands and include:
editable install;
compileall;
focused CPU-only regression suites;
dependency-light import isolation;
source-checkout entrypoint tests;
repository-wide stale import and module-string scans;
Status
PR #158 completed the Phase A namespace foundation:
src/cacheroute;cacheroute.compat;cacheroute_compatforwarding shim;cacheroute.observability;This Issue remains open. Phase A did not complete the repository migration.
Target architecture
The original target tree in this Issue mirrored deployment processes directly under
cacherouteand is superseded by the reviewed architecture in:doc/architecture/package-architecture-rfc.mdafter the architecture-guidance PR is merged.The canonical top-level Python packages are planned as:
Do not introduce a generic
cacheroute.coredumping ground. Do not mechanically move current root directories into matching package names.Architectural rules
cacheroute.contractspackages.cacheroute.integrationsand implements CacheRoute-owned ports.cacheroute.servicesand must not import one another's internal modules.cacheroute.entrypoints.cacheroute.compatcontains temporary compatibility only, never permanent implementations.cacheroute.__init__remains empty or metadata-only.doc/.Target repository categories
tests,doc,scripts,env, logs, and generated data must not be installed as Python packages. Runtime package data must be owned by the package that consumes it.Migration phases
Phase 0 — architecture foundation
cacheroutesrc namespace #158.AGENTS.mdanddoc/architecture.Phase 1 — packaging and entrypoints
cacheroute <scheduler|proxy|instance|kdn|dev>.Phase 2 — contracts and dependency-light domains
kdn_server/contractstocacheroute.contracts.v1.Phase 3 — external integrations
cacheroute.integrations.vllm.cacheroute.integrations.lmcacheimplementing Cache Runtime ports.cacheroute.integrations.redis.cacheroute.integrations.embeddings.Phase 4 — services
Migrate in separate reviewable PRs:
Each migration must audit and update normal and dynamic imports, module strings, Uvicorn targets, subprocess commands, Docker/CI/config paths, tests and monkeypatch targets, packaging, README links, and operational entrypoints.
Phase 5 — UI, development orchestration, and native components
cacheroute.entrypoints.devorexamples.crates/.Phase 6 — compatibility cleanup
cacheroute_compatat its documented milestone.Coordination
src/cacheroute/observability, resolve its existing review findings, and avoid introducing a permanent root package.Required validation
Each migration PR must report exact results for its applicable commands and include:
git diff --check.Completion criteria
This Epic may close only when:
cacherouteand explicitly approved temporary shims enter the wheel;cacheroute.observability.Refs #159
Refs #141