perf: reuse schemas during artifact validation - #23
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughSchema loading now uses a shared per-invocation cache. Contract validation and frontend plan resolution pass this cache through all schema lookup paths. ChangesSchema cache propagation
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to Contract validation now reuses schemas within a single validation call, reducing repeated reads while preserving validation behavior and isolation between calls. No current merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
Reuse the five JSON Schema objects already validated during one
validate_contract_artifacts(root)call.Verification
ede51bb: one production file; tests unchanged.{0.1: 4, 0.2: 26}, Frontend declared{0.1: 13, 0.2: 44, 0.3: 35}, Frontend effective{0.1: 13, 0.2: 44, 0.3: 90}, Binding{0.1: 6, 0.2: 11}.tests/test_contract_artifacts.py+tests/test_dolt_declarations.py: 57 passed; full pytest: 57 passed.tools/validate_repository.py: passed;git diff --check: passed.5600394104had no actionable comments/minimal risk; its generic docstring-coverage warning was not added as boilerplate. Codex was requested at5600393133, but usage-limit messages5600392086/5600395111prevented a review; no Codex result is claimed. No auto-merge.Scope proof
The map is created inside each public validation call and no object escapes into
ArtifactInventory. Repeated references return the already checked mapping only after its initial registration point, so Plan validation and all frontend schema registration still occur in the original order. Between-call file changes remain observable.The earlier PHP journal/catalogue-preparation candidate was explicitly stopped: its duplicate ownership check is coupled to failure ordering, migration states, and MySQL implicit-DDL behavior, so it remains unchanged.