Skip to content

feat: assess private repository issues across their lifecycle - #23

Merged
yyeret merged 5 commits into
mainfrom
codex/private-repo-issue-value
Oct 26, 2026
Merged

yyeret merged 5 commits into
mainfrom
codex/private-repo-issue-value

Conversation

@yyeret

@yyeret yyeret commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Assess intended value in private repositories and issues using the caller’s GitHub identity, including refinement, learning, and work that needs a human decision. The authenticated API and local CLI make these audits available without depending on the dashboard or merged PRs.

This extends the existing PR value-intent analysis. Human calibration of the rankings remains ongoing; the scores do not establish realized value or grant permission to execute work.

Decisions that matter

  • Private access requires a verified caller credential and explicit processing consent. Deployment credentials cannot grant it. Private PR snapshots are isolated by identity, and chat rechecks current repository access.
  • Issue selection accepts explicit IDs across open/closed states and PR linkage. Default discovery remains bounded to open issues without closing-reference links. Classification uses the title and first 1,500 description characters.
  • Bounded owner evidence can supply a reusable strategic profile. A supplied profile skips Gemini research but still uses Jev for the four Fibonacci dimensions and summed cost of delay. Unknown items stay unscored.
  • Browser GitHub OAuth uses state, PKCE, server-side sessions, and hourly production credential cleanup. Bearer API access works without OAuth registration.

Related: #22

Validation and deployment limits

  • 386 Python tests passed with 92.84% coverage; Ruff, five frontend checks, and all six security-gate stages passed on the committed source.
  • A live private-repository study exercised the local authenticated API with the current GitHub identity and Jev. Automatic Gemini research hit its bounded deadlines; the successful study used an explicitly supplied researched profile. Private study data is excluded from this PR.
  • Review fixes cover credential retention, visibility transitions, dual-provider sessions/snapshots, OAuth state abuse limits, private receipt permissions, and cancellation of failed issue selections.
  • Public content collection deliberately remains anonymous to prevent a visibility transition from leaking private text into public processing/cache paths. This limits fresh scans under GitHub’s anonymous quota; Yuval accepted this limitation for this PR and deferred consented caller-authenticated collection with identity-scoped caching to follow-up work.
  • Browser OAuth and the deployed Worker runtime have not been live-tested. Apply D1 migration 0002 and configure OAuth secrets before enabling browser sign-in. Do not enable browser OAuth on Cloudflare Previews without independent credential cleanup, because Preview cron triggers do not run.

This PR does not configure accounts, merge, or deploy production.

…ecycles

Use verified caller GitHub access, isolated snapshots and bounded source-linked
owner context. Rank issue intent with Jev and retain private API study receipts.

Address review findings #1-8: isolate public content reads, remove both connected
accounts, expire stored credentials, bound access checks, preserve interrupted
studies and cover lifecycle-independent selection and unequal-score ranking.
Close the advisory from review 20261026-100111-fa52a64b and cover
private-consent denials through both analysis endpoints.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://codex-private-repo-issue-value-github-flow-analytics.yuval-yeret.workers.dev (commit 2c57ead)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://cac56060-github-flow-analytics.yuval-yeret.workers.dev 2c57ead 2026-10-26T17:45:45.157Z Visit the dashboard ↗
  • Build: Failed ❌

View logs ↗
ca60114 2026-10-26T17:39:43.152Z View logs ↗

@tessl-reviewer tessl-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tessl Reviewer

Advisory findings (7)

The change adds authenticated private-repository analysis, lifecycle-independent issue selection, OAuth sessions, and a local evidence-producing CLI. Verification found seven distinct concerns: local evidence permissions, unbounded OAuth-state writes, reduced public GitHub collection capacity, authentication-provider interference, snapshot lookup after connecting another provider, session deletion on throttling, and unfinished issue-selection work after failure.

Severity Findings
Major 3
Minor 4

Advisory findings (7)

  • Major · Advisory · Non-blocking · Private CLI evidence inherits world-readable filesystem permissions
    scripts/analyze_issue_value.py:49
  • Major · Advisory · Non-blocking · OAuth start permits unbounded unauthenticated database writes
    github_auth.py:134
  • Major · Advisory · Non-blocking · Public collection discards the configured authenticated GitHub budget
    cloudflare_app.py:286
  • Minor · Advisory · Non-blocking · A failed GitHub cookie blocks an independently valid Google session
    cloudflare_app.py:274
  • Minor · Advisory · Non-blocking · Connecting GitHub makes an existing Google-owned snapshot unreadable to chat
    cloudflare_app.py:435
  • Minor · Advisory · Non-blocking · GitHub throttling permanently deletes an otherwise valid session
    github_auth.py:63
  • Minor · Advisory · Non-blocking · Failed explicit issue selection leaves sibling fetches running
    issue_candidates.py:27

Reviews are incremental. The first review shows every valid finding. A later round checks the latest changes and earlier findings, and adds a fresh finding when it still applies. It never repeats one you refuted or declined. Ask for a full review to inspect the whole change and show earlier findings again.

Mention @tessl-reviewer to run another review.

Comment thread scripts/analyze_issue_value.py Resolved
Comment thread github_auth.py Resolved
Comment thread cloudflare_app.py Resolved
Comment thread cloudflare_app.py Resolved
Comment thread cloudflare_app.py Resolved
Comment thread github_auth.py Resolved
Comment thread issue_candidates.py Resolved
Restrict private evidence traversal, bound OAuth state writes, preserve independent provider access and throttled sessions, and cancel failed issue selection work.

@tessl-reviewer tessl-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tessl Reviewer

No advisory concerns

The current code addresses the evidence-permission, OAuth-write-bound, dual-provider access, snapshot lookup, session-retention, and issue-fetch cleanup concerns. Public collection still uses GitHub’s shared anonymous quota; the author explicitly accepts that capacity limitation here to preserve the visibility-transition privacy boundary and defers authenticated public collection.

Earlier findings: 6 addressed · 1 declined

About this review

These findings are AI-generated and not authoritative. Check each one against the code before acting on it. See the guidance on working with this review.

Mention @tessl-reviewer to run another review.

@yyeret
yyeret merged commit 08cc01d into main Oct 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant