Fix predicted gate public manifest loading - #903
Conversation
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #903 +/- ##
==========================================
- Coverage 96.71% 96.70% -0.01%
==========================================
Files 108 108
Lines 14641 14648 +7
Branches 5298 5302 +4
==========================================
+ Hits 14160 14166 +6
Misses 102 102
- Partials 379 380 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
gittensory · advisory review Reviewed 3 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 · Suggestions
Worth double-checking
|
Motivation
predictedGateused a cached focus manifest that could be anapi_record(maintainer-supplied) snapshot, potentially exposing maintainer-only gate policy to contributors..gittensory.yml) when predicting gate behavior so private overrides cannot be inferred.Description
loadPublicRepoFocusManifestand an internalloadRepoFocusManifestWithCachePolicywrapper to load manifests with a cache policy that can exclude non-repo_filesnapshots.readCachedManifestto accept apublicOnlyoption and returnnullwhen the cached snapshot is notrepo_fileand public-only is requested.POST /v1/local/branch-analysisand/v1/local/remediation-plan) to callloadPublicRepoFocusManifestsopredictedGateis computed from public repo files only, while maintainer paths keep using the original loader.confirmedContributor: Boolean(context.gittensorSnapshot)intobuildPredictedGateVerdict.test/unit/focus-manifest-loader.test.ts).Testing
npx vitest run test/unit/focus-manifest-loader.test.ts test/unit/predicted-gate.test.ts, and all tests passed.npm run typecheckand it succeeded.git diff --check(local verification command run as part of development).Codex Task