Skip to content

Share GitHub credential client endpoint settings - #5437

Merged
freeqaz-openai merged 1 commit into
mainfrom
refactor/share-github-client-endpoint
Nov 11, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
refactor/share-github-client-endpoint

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

Summary

  • Share the five client endpoint fields between the development GitHub grant resolver and the prepared registry factory.
  • Keep grant selection and push-ref policy in their owning factories. Preserve each client's serialized field order.

Verification

  • Workspace audit, TypeScript type-check, ESLint, and focused formatting passed.
  • GitHub conformance reported 87 passing test records. Native cutover and configuration reported 16, and the detached service and client package suite reported 12. The selected runs had zero skips.
  • A paired local probe matched serialized client settings across both source variants and exercised refusal order and one-use prepared selection. It checked the loaded source hash of each producer.
  • The package build includes the helper in the service artifact. The standalone client artifact retains its separate module closure.

Hosted verification is pending.

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 08:39
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 08:39
@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR shares five GitHub client endpoint fields between the development grant resolver and prepared registry factory.

Example: Generate client settings for example/project through https://credentials.example.test.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is small and source-verifiable; reported harness validation supports equivalence, with limited independently inspectable execution evidence.
Proof confidence 🦐 gold shrimp (3/6) The body reports source-identified factory probes and focused suites without an inspectable runtime artifact; this collaborator-authored refactor is outside the ordinary contributor-proof gate and materially changes no authority boundary.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
Reason: A small shared projection removes duplicate endpoint construction without expanding the Driver contract or moving policy ownership; collaborator authorship supplies direction approval.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is a focused, behavior-preserving refactor with no actionable defect found, and collaborator-authored work remains for maintainer disposition.

Priority: P3
Reviewed head: 52ee1a3ba1df7bbd09004a4af36d32aa63b4912f

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The reported paired probe exercises factory outputs rather than a shipped entry point.
Agent review details

How this fits together

The GitHub repository credential factories combine validated gateway origins and repository names with grant-specific policy to produce client connection settings.

flowchart TB
  A[Validated gateway origin and repository] --> B[Shared endpoint helper]
  B --> C[Development grant resolver]
  B --> D[Prepared registry factory]
  C --> E[Client connection settings]
  D --> E
Loading

Technical review

Best possible solution:

Retain the shared endpoint projection while keeping grant identity, repository selection, validation, and push policy in their existing factories.

Do we have a high-confidence way to reproduce the issue?

No user-facing bug is claimed; source comparison verifies that both factories currently duplicate the endpoint projection.

Is this the best way to solve the issue?

The extraction is appropriately narrow and preserves field values, serialization order, freezing, validation order, and existing policy ownership.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6e5f756eefb5.

Provenance checked

  • Development grant client settings keeps the original intent (f284d34: The original credential core supplied bounded repository client settings; later development-token work retained separate authority and push policy.)
  • Prepared registry client settings keeps the original intent (3115679: Prepared credential delivery separated provider issuance from sending while retaining exact repository grants and bounded policy.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The complete patch extracts the same five fields into a dependency-free helper; repository placement, object freezing, push policy, grant identity, and selection logic remain with their existing owners. (apps/controller/src/drivers/repo/github/access/client-endpoint.ts:1, 52ee1a3ba1df)
  • Validation and authorization boundaries preserved: Both production factories validate gatewayOrigin before constructing endpoint settings; the prepared factory retains binding matching, duration checks, one-use selection, and send authorization unchanged. (apps/controller/src/drivers/repo/github/access/warm-registry-factory.ts:36, 52ee1a3ba1df)
  • Current main still has separate projections: Fetched main retains the inline endpoint fields in both factories, so this extraction is distinct work rather than an already-landed change. (apps/controller/src/drivers/repo/github/access/grants.ts:45, 6e5f756eefb5)
  • Packaging follows runtime imports: The service packaging script recursively follows relative module imports, admitting the new helper without a hand-maintained file-list change; the standalone client has separate entry points. (scripts/build-repository-credentials.ts:145, 52ee1a3ba1df)
  • Discussion and review status: The full REST body reports paired source probes and focused suites; both comments are review-status messages and there are no submitted reviews. The reviewed head remains open, non-draft, and reported cleanly mergeable. (52ee1a3ba1df)
  • Feature history across prior paths: Path-scoped history follows the grant implementation through its original backend location and credentials-to-access move, showing sustained contributions by Free Wortley. One older commit metadata read encountered a missing promisor object; supplied provenance and available history cover the changed behavior. (apps/controller/src/drivers/repo/github/access/grants.ts:45, 6e5f756eefb5)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is a small internal deduplication with no intended user-visible behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a small internal deduplication with no intended user-visible behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 11, 2026, 3:53 AM ET / 08:53 UTC.

@freeqaz-openai
freeqaz-openai merged commit 6a61029 into main Nov 11, 2026
68 checks passed
@freeqaz-openai
freeqaz-openai deleted the refactor/share-github-client-endpoint branch November 11, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant