fix(signals): filter public-unsafe wantedPaths/preferredLabels from manifest findings - #5967
Conversation
…anifest findings manifest_off_focus and manifest_missing_preferred_label interpolated manifest.wantedPaths/preferredLabels directly into contributor-facing finding details without the isFocusManifestPublicSafe filter already applied to testExpectations, letting a maintainer-authored public-unsafe term leak through localFindings to contributors via the /v1 API and MCP tools. Closes JSONbored#5945
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-15 04:57:42 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 4 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, 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 #5967 +/- ##
=======================================
Coverage 95.15% 95.15%
=======================================
Files 589 589
Lines 46695 46699 +4
Branches 14902 14904 +2
=======================================
+ Hits 44434 44438 +4
Misses 1511 1511
Partials 750 750
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Summary
manifest_off_focusandmanifest_missing_preferred_labelinterpolatedmanifest.wantedPaths/manifest.preferredLabelsdirectly into contributor-facing findingdetailtext without theisFocusManifestPublicSafefilter already applied totestExpectationsin the siblingmanifest_missing_testsfinding, letting a maintainer-authored public-unsafe term leak throughLocalBranchAnalysis.localFindings(the/v1API + MCP exposure path) to contributors.isFocusManifestPublicSafebefore interpolation, mirroring the existingsafeExpectationspattern.manifest_off_focusdrops the parenthetical when nothing is safe to show;manifest_missing_preferred_labelfalls back to a static "No maintainer-preferred label applied." sentence since its entire detail is built from the label list.publicNextSteps.push(...)in both blocks is left unchanged since it is already protected by the downstream.filter(isFocusManifestPublicSafe)applied whensafeNextStepsis constructed.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
wrangler(cf-typegen:checkfails with a pre-existing, change-unrelatedspawnSync wrangler ENOENT), which blocks the chainednpm run test:cifrom reaching later steps locally. Each step was therefore run individually:git diff --check,actionlint,db:migrations:check,db:schema-drift:check,selfhost:env-reference:check,miner:env-reference:check,selfhost:validate-observability, engine build,typecheck,test:engine-parity,test:live-gate-parity, andtest:driver-parityall pass clean on this branch.test:coveragewas verified scoped to every test file that exercises the two changed source files (focus-manifest.ts,local-branch.ts), showing 100% coverage on every changed line/branch — the full unsharded run also hits unrelated pre-existing local flakiness (missingsqlite3CLI on PATH, subprocess-timing tests) in ~51 files outside this diff's scope, none of which touchfocus-manifest.ts/local-branch.ts.Safety
UI Evidencesection below — N/A, no UI change.UI Evidence
N/A — backend-only fix, no visible UI change.
Notes