perf(registry): cache resolved component info - #1553
Merged
ricardo-devis-agullo merged 1 commit intoAug 18, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Caches immutable component manifests to reduce registry storage reads while preserving request-specific metadata and publication consistency.
Changes:
- Adds repository-scoped LRU caching, single-flight loading, freezing, and invalidation.
- Removes route-level manifest mutation and strengthens burst assertions.
- Adds comprehensive cache, race, isolation, and mutation tests.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
plans/README.md |
Marks Plan 005 complete. |
packages/oc/src/registry/domain/repository.ts |
Implements manifest and local-version caching. |
packages/oc/src/registry/routes/index.ts |
Avoids mutating manifests during view mapping. |
packages/oc/src/registry/routes/component-info.ts |
Builds JSON responses immutably. |
packages/oc/src/registry/routes/component-preview.ts |
Builds preview responses immutably. |
packages/oc/tasks/benchmarks/single-flight-burst.js |
Requires exactly one manifest read per burst. |
packages/oc/test/unit/registry-domain-repository-manifest-cache.js |
Covers cache and publication behavior. |
packages/oc/test/unit/registry-routes-manifest-mutation.js |
Verifies frozen manifests work across routes. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ricardo-devis-agullo
force-pushed
the
advisor/005-component-manifest-cache
branch
from
August 18, 2026 14:35
329aa57 to
f40fd59
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
package.jsonin a repository-scoped 1000-entry LRU with per-key single-flight loadingallVersionsrequest-currentVerification
npm --workspace packages/oc run buildnpx mocha "test/unit/**/*.js" --reporter dot --timeout 20000(936 passing)npm --workspace packages/oc run bench:burst(onepackage.json, env, provider, and template read for N=50 and N=200)1,0,0, 100% success, RPS +172%, p95 -62% against the same-machine baseline0,0,0, 100% success, RPS +282%, p95 -73% against the same-machine baselineThe full
test-silentcommand reached 939 passing tests, but six integration lifecycle hooks could not bind ports 3030/3031 because a pre-existingoc devprocess from another workspace owns those ports. All unit tests pass independently.