Skip to content

feat(extension): add public-safe packet copy and private blocker actions in GitHub overlay - #202

Merged
JSONbored merged 11 commits into
JSONbored:mainfrom
jonathanchang31:feat/public-safe-packet-private-blocker-actions
Jun 2, 2026
Merged

feat(extension): add public-safe packet copy and private blocker actions in GitHub overlay#202
JSONbored merged 11 commits into
JSONbored:mainfrom
jonathanchang31:feat/public-safe-packet-private-blocker-actions

Conversation

@jonathanchang31

Copy link
Copy Markdown
Contributor

Summary

This change implements issue #147 by extending the browser extension and API to support:

  • Copyable public-safe PR packet content from the GitHub overlay
  • Authenticated private blocker details in the same overlay

The implementation reuses existing public-safety sanitization behavior and keeps extension output within public/private boundaries.

Related issue

Closes: #147

Change Type

  • Feature
  • Security hardening (public/private output boundary enforcement)
  • API enhancement
  • Extension UI enhancement
  • Tests added/updated
  • Breaking change

Real Behavior Proof

1) Extension context now includes action payloads

GET /v1/extension/pull-context?... returns:

  • actions[] containing:
    • id: "copy_public_safe_packet"
    • id: "view_private_blockers"

2) Public-safe packet output is sanitized

Integration checks confirm packet content excludes sensitive terms such as:

  • wallet / hotkey / coldkey
  • reward estimate / payout / farming
  • raw trust score / estimated score / score estimate
  • private reviewability

3) Private blockers remain auth-scoped

Extension context remains accessible only through extension-scoped session flow; private blocker details are surfaced only in that authenticated context.

4) Extension UI behavior

Overlay now renders:

  • “Copy public-safe packet” button (clipboard copy)
  • “Private blockers” expandable panel

Checklist

  • Implemented API support for extension packet/blocker actions
  • Implemented extension UI actions
  • Enforced public-safe text boundaries
  • Kept private blocker data behind authenticated extension session
  • Added/updated automated tests
  • Verified local typecheck and tests pass

@JSONbored JSONbored left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonathanchang31 failing CI, please resolve.

@jonathanchang31
jonathanchang31 force-pushed the feat/public-safe-packet-private-blocker-actions branch from 6cd1bd9 to e66fec5 Compare June 1, 2026 20:33
@superagent-security superagent-security Bot added the pr:flagged PR flagged for review by security analysis. label Jun 1, 2026

@superagent-security superagent-security Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superagent found 1 security concern(s).

Comment thread src/api/routes.ts
@superagent-security superagent-security Bot removed the pr:flagged PR flagged for review by security analysis. label Jun 1, 2026
@jonathanchang31

Copy link
Copy Markdown
Contributor Author

@JSONbored Could you plz review my PR again? Thanks! && I Love Gittensory!

@JSONbored
JSONbored dismissed their stale review June 2, 2026 04:41

@jonathanchang31 current head looks ready from this pass.

A few notes:

  • The extension-scoped route boundary is preserved: private pull context stays behind the extension session path.
  • The public-safe packet path fails closed instead of trying to partially redact unsafe content.
  • I checked the current fetched head and did not find the conflict markers called out by the active scanner thread, so that thread looks stale.
  • No code changes requested.

Validation expected:

  • Current GitHub checks are green.
  • Maintainer should resolve the stale review/thread state before landing this.
@JSONbored
JSONbored merged commit 26df7b7 into JSONbored:main Jun 2, 2026
3 checks passed
@JSONbored JSONbored added 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. and removed feature gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. labels Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(extension): add public-safe packet and private blocker actions

2 participants