fix: avoid public manifest cache poisoning - #922
Conversation
|
Important Gittensory found maintainer review notesPublic GitHub metadata was checked for review readiness. Gittensor-specific context appears only when confirmed. Readiness score: 93/100
Signal definitions
Review context
Maintainer notes
Contributor next steps
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
gittensory · advisory review Reviewed 2 changed file(s) — two independent AI reviewers. Changed files: Suggested action: ✅ Safe to merge — both reviewers found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Worth double-checking
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #922 +/- ##
=======================================
Coverage 96.62% 96.62%
=======================================
Files 109 109
Lines 14885 14886 +1
Branches 5381 5382 +1
=======================================
+ Hits 14382 14383 +1
Misses 104 104
Partials 399 399 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Motivation
repo-focus-manifestsignal cache, which could shadow existing maintainerapi_recordsnapshots and weaken private gate enforcement.Description
loadRepoFocusManifestWithCachePolicyto skip persisting fetched or negative-cache snapshots whencachePolicy.publicOnlyis true by wrappingpersistRepoFocusManifestinif (!cachePolicy.publicOnly) { ... }insrc/signals/focus-manifest-loader.ts.does not let public-only loads overwrite API-backed private manifeststotest/unit/focus-manifest-loader.test.tsthat seeds an API-backed manifest, performs a public-only load, and asserts the private loader still returns theapi_recordsnapshot.Testing
npm test -- --run test/unit/focus-manifest-loader.test.ts, and the suite passed with all tests succeeding (23 passed).Codex Task