You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/signals/redaction.ts is the canonical public/private boundary (#542), and it already redacts /Users/, /home/, /root/, and /tmp/ (plus Windows …\Users\…). Several other public surfaces still carry their own copy of the local-path denylist and have drifted — most miss /root/, and most miss /var/ (which miner-dashboard-recommendations.ts already treats as local).
A contributor or operator running from /root/... or /var/... paths can leak absolute local paths through these surfaces even though the canonical boundary blocks them.
Summary
src/signals/redaction.tsis the canonical public/private boundary (#542), and it already redacts/Users/,/home/,/root/, and/tmp/(plus Windows…\Users\…). Several other public surfaces still carry their own copy of the local-path denylist and have drifted — most miss/root/, and most miss/var/(whichminer-dashboard-recommendations.tsalready treats as local).A contributor or operator running from
/root/...or/var/...paths can leak absolute local paths through these surfaces even though the canonical boundary blocks them.Drifted surfaces (this issue's scope)
focus-manifest.tsisFocusManifestPublicSafe/root/,/var/control-panel-roles.tssanitizeRoleText/root/,/var/weekly-value-report.tssanitizeReportText/root/,/var/db/repositories.tsproduct-usage metadata scrubber/root/,/var/agent-action-explanation-card.tstoken/path scrubber/root/,/var/local-branch.tssafeRepoPath/var/miner-dashboard-recommendations.ts/var/but uses a one-off regexProposed fix
src/signals/redaction.ts(PUBLIC_LOCAL_PATH_INLINE, prefix/scrub patterns, and small helpers).PUBLIC_UNSAFE_PATTERNfrom the shared export so the canonical boundary cannot drift again./var/consistently (matching the established intent inminer-dashboard-recommendations.ts).Out of scope
pr-body-draft.tskeeps its richer generic local-path matcher (by design — it scrubs arbitrary/segment/...paths, not just known roots).agent-action-explanation-card.tsandminer-dashboard-recommendations.tsstay local (per refactor(signals): shared public-safe redaction module #542).