Skip to content

fix(decisions): redact private blocker codes in public comments - #500

Merged
JSONbored merged 1 commit into
mainfrom
codex/fix-public-command-private-information-leak
Jun 10, 2026
Merged

fix(decisions): redact private blocker codes in public comments#500
JSONbored merged 1 commit into
mainfrom
codex/fix-public-command-private-information-leak

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Motivation

  • Prevent disclosure of private decision-pack blocker codes (e.g. open_pr_pressure, closed_pr_credibility, low_credibility) and related credibility/scoreability hints in public GitHub command comments.
  • The existing sanitizer did not cover underscore-form blocker codes or rerun/credibility phrases, allowing private scoring context to be emitted.

Description

  • Map known private decision-pack blocker codes to a generic, non-sensitive label in public lists by returning a short authenticated-view pointer from publicBlockerLabel in src/github/commands.ts instead of emitting the raw code.
  • Replace occurrences of those private blocker codes in action details via publicBlockerDetail so they render as "private readiness context" rather than exposing internal codes.
  • Extend sanitizePublicComment to redact underscore-form blocker codes and credibility/open-PR-pressure language and normalize other private phrases so public output no longer contains private scoring indicators.
  • Update unit expectations in test/unit/github-commands.test.ts to assert private blocker codes and credibility details are not published and to expect the new generic pointer text.

Testing

  • Ran npx vitest run test/unit/github-commands.test.ts --reporter verbose and all tests passed (16 passed).
  • Ran npm run typecheck (tsc --noEmit) and the typecheck completed successfully.
  • Verified formatting and diff checks with git diff --check which reported no issues.

Codex Task

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 9, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
gittensory-ui 70f9e96 Commit Preview URL

Branch Preview URL
Jun 10 2026, 07:12 AM

@dosubot dosubot Bot added the size:S label Jun 9, 2026
@github-actions github-actions Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jun 9, 2026
@ghost

ghost commented Jun 9, 2026

Copy link
Copy Markdown

Note

Gittensory Gate skipped

PR closed before full evaluation. No late first comment was created.

Signal Result Evidence Action
Gate result ⚠️ Skipped #500 is no longer open. No action.

Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.

@ghost ghost added the gittensory:reviewed label Jun 9, 2026
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@JSONbored JSONbored self-assigned this Jun 10, 2026
@JSONbored JSONbored changed the title fix: redact private blocker codes in public comments fix(decisions): redact private blocker codes in public comments Jun 10, 2026
@JSONbored
JSONbored force-pushed the codex/fix-public-command-private-information-leak branch from 55e5e84 to 0740632 Compare June 10, 2026 07:08
@JSONbored
JSONbored force-pushed the codex/fix-public-command-private-information-leak branch from 0740632 to 70f9e96 Compare June 10, 2026 07:11
@JSONbored
JSONbored merged commit bdfe12d into main Jun 10, 2026
10 checks passed
@JSONbored
JSONbored deleted the codex/fix-public-command-private-information-leak branch June 10, 2026 07:14
@github-project-automation github-project-automation Bot moved this from Todo to Done in gittensory - v1 roadmap Jun 10, 2026
@JSONbored JSONbored added the gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier. label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant