Skip to content

Move shared credential JSON parsing to the Controller driver layer - #5441

Merged
freeqaz-openai merged 3 commits into
mainfrom
refactor/move-shared-credential-json-parser
Nov 11, 2026
Merged

freeqaz-openai merged 3 commits into
mainfrom
refactor/move-shared-credential-json-parser

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

Summary

  • Move the existing JSON member parser to the shared Controller driver directory and retarget seven production callers and the conformance test.
  • Keep a temporary forwarding export for the existing OpenAI provider import. Remove that export after the provider imports the shared parser directly and the old path has no callers.
  • Add the relocated file to the existing credential source scan. The conformance suite covers a missing parser and an unreviewed file-read import in the parser.

Verification

  • Workspace audit, TypeScript type-check, ESLint, and focused formatting passed.
  • The source-boundary suite reported 182 passing test records. GitHub conformance, issuer, egress, and detached packaging reported 241 in total. The selected suites had zero skips.
  • A paired probe matched duplicate-member behavior, token identification, and original numeric draft IDs across the two source variants. The Controller forwarding export resolves to the same two functions as the shared module.
  • The detached service contains the shared parser, and the standalone client artifact contains neither parser path.
  • Workspace, source-boundary, and detached-package checks passed again on a local composition with current main.

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.

@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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 relocates the unchanged JSON parser to the shared Controller driver directory and preserves credential source-boundary coverage.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, behavior-preserving refactor with the prior finding resolved, useful boundary coverage, and successful current-head checks; proof remains at harness level.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored internal refactor is outside the ordinary contributor proof gate; supplied paired probes and packaging checks support relocation correctness without establishing a live application scenario.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Several Driver consumers depend on shared parsing code located inside the repository credential implementation.
Reason: The collaborator-authored direction gives existing shared behavior a shared home without changing Driver contracts, configuration, or runtime semantics.

Merge readiness

✅ Ready for maintainer review

The previous TODO finding is resolved, and no new actionable defects were found; keep this PR open for normal landing.

Priority: P3
Reviewed head: f74c573d31b41248948b7b1491ba831dc06517ce

Before merge

None.

Findings

None.

Agent review details

How this fits together

Repository credentials, provider egress, and Google Workspace request policy pass JSON text to this parser and receive parsed values or duplicate-member rejection.

flowchart LR
  A[Repository credentials] --> D[Shared JSON parser]
  B[Provider egress] --> D
  C[Google Workspace policy] --> D
  D --> E[Parsed value or rejection]
  F[Credential source verifier] --> D
Loading

Technical review

Best possible solution:

Land the unchanged shared implementation with its source-boundary coverage and documented forwarding-export removal condition.

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

This PR addresses internal ownership rather than a runtime bug; source comparison verifies the unchanged parser, and no target code was executed.

Is this the best way to solve the issue?

Moving the existing implementation and extending its existing boundary guard is focused, while the forwarding export preserves a verified production caller.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

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 status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a focused internal ownership refactor with unchanged runtime parsing behavior.
  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-11T09:21:32.484Z sha d5aea0f :: needs changes before merge. :: [P3] Add the required removal TODO beside the temporary export

Reviewed November 11, 2026, 5:13 AM ET / 10:13 UTC (Revision 2).

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 09:44
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 09:44
@freeqaz-openai

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Commit f74c573 adds the requested TODO above the forwarding export. It names the provider's direct import and the absence of remaining callers as the conditions for removal. CI and CodeQL passed on this head.

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 11, 2026
@freeqaz-openai
freeqaz-openai merged commit 829f235 into main Nov 11, 2026
56 checks passed
@freeqaz-openai
freeqaz-openai deleted the refactor/move-shared-credential-json-parser branch November 11, 2026 10:22
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