Skip to content

docs(plans): plan the auth/provider credential refactor (ENG-1066) - #341

Merged
lg2m merged 8 commits into
mainfrom
docs/eng-1066-auth-provider-plan
Oct 18, 2026
Merged

lg2m merged 8 commits into
mainfrom
docs/eng-1066-auth-provider-plan

Conversation

@lg2m

@lg2m lg2m commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

AP0: plan the auth/provider credential refactor

Spec: docs/plans/auth-providers.md Linear: ENG-1066

Base of a stacked series. Each later PR (AP1–AP4) targets the previous branch and is behaviour-preserving.

What changed

  • New plan docs/plans/auth-providers.md: current shape, vendor constraints (fetched 2026-10-16), slices AP0–AP7 and later phases.
  • New ledger docs/plans/progress/auth-providers.md; index rows in both READMEs.

How verified

cargo xtask check

Head 9463cc997b17 vs origin/main; 4 changed file(s); scope: no Rust package affected.

Gate Result Tests Time Command
fmt pass 1.5s cargo fmt --all -- --check
lint pass 1.9s cargo xtask lint

All gates passed in 3.4s.

Compatibility

  • Docs only.

Decisions needed

  • Subscription OAuth for Anthropic, Google and Meta is out of scope because their published terms prohibit third-party use (sources in the plan).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-17T09:59:37.009526Z fe1fa5c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9463cc997b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
@lg2m

lg2m commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 9463cc997b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lg2m
lg2m added this pull request to stack #344 October 16, 2026 16:31
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review
Addressed all eight findings in d785392: vendor sources and clauses cited; AP2 lock-path/cross-store test required; AP3 owned paths include qq-auth with the dependency flow stated; AP5 gets a qq-auth request-credential bench; AP6 requires per-value redaction and request-shape identity coverage; AP7 widened to ProviderKind/ProviderEntryPatch; new AP8 provides the shared OAuth grant contract before Phase D.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d785392743

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
@lg2m

lg2m commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review
Addressed the four findings on d785392 in 3205e59: AP3 owns and amends docs/design/providers.md (and keeps root stored-name literals until AP7, avoiding new error paths); AP7 owns crates/qq-harness/src/plan.rs with its estimate test; AP8 lets fakes migrate while every scenario and assertion is kept; the loopback PKCE callback stays Codex-local.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3205e59701

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
lg2m added 4 commits October 17, 2026 01:45
Cite each vendor source and clause; give AP2 a lock-path and cross-store
serialisation test; include qq-auth in AP3 and state the dependency flow;
add a qq-auth request-credential bench for AP5; require per-value
redaction and request-shape identity coverage in AP6; widen AP7 to the
qq-config ProviderKind and patch variants; add AP8 for provider-neutral
OAuth grants before Phase D.
…G-1066)

Review of d785392: AP3 amends docs/design/providers.md; AP7 owns the
qq-harness plan-size match on HttpCredential; AP8 lets test fakes migrate
to the shared grant contract while keeping every scenario and assertion,
and leaves the loopback PKCE callback Codex-local.
Review of 3205e59: AP7 names qq-config as the provider table's owner with
no new dependency edge, and makes the login-method table drive CLI
validation and grant dispatch; AP6 bounds the credential header set and
rejects the request-controlled and protocol-owned names static headers
already may not use; AP5 requires xAI epoch, expiry and cross-store
invalidation regressions; Phase C excludes the Z.ai GLM Coding Plan and
the Alibaba Coding Plan on their terms; Vertex ADC leaves Phase D.
Also describe AP4 as built and state AP2's direction of waiting.
@lg2m
lg2m force-pushed the docs/eng-1066-auth-provider-plan branch from 3205e59 to 9085846 Compare October 17, 2026 09:19
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review
Rebased onto main a9bff3e. 9085846 addresses all eight third-pass findings (AP7 table owner and login dispatch; AP6 header bounds and name classes; AP5 xAI invalidation regressions; Z.ai and Alibaba Coding Plans excluded; Vertex ADC removed from Phase D); every thread has a reply naming its fix.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9085846b29

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
…066)

Review of 9085846: AP6 separates credential-owned header names, which a
request-time credential may set per its recipe, from immutable ones, and
moves the output_token_control capability onto the explicit body-shape
field with regressions for both independent combinations; AP7 keeps OAuth
audiences only in qq-auth; new AP4b lands both perf fixtures (credential
resolution and per-attempt request authorization) before AP5/AP6 so their
baseline and candidate share a metric inventory and fixture version.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review
847e146 addresses all five fourth-pass findings (AP6 credential-owned vs immutable header names and output_token_control; AP4b perf fixtures before AP5/AP6; AP7 OAuth audiences only in qq-auth); each thread has a reply.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 847e146753

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Review of 847e146: the outcome separates API-key rows from OAuth
providers, whose audience and protocol data stay in qq-auth; AP6 keeps
Codex's dynamic x-openai-fedramp header (set and cleared per credential)
with a transport regression; AP7 rows declare their accepted patch
fields and keep per-row negative parse tests.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review
bb11e86 addresses the three fifth-pass findings (outcome vs OAuth audience ownership; Codex x-openai-fedramp kept as a dynamic credential header; per-row patch-field rejection in AP7).

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb11e868be

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Comment thread docs/plans/auth-providers.md Resolved
Review of bb11e86: AP7 keeps the sensitive-section trust digest
byte-identical for existing built-in patches, with fixtures; AP6 sends
non-secret credential metadata (x-openai-fedramp) without registering it
for redaction; AP4b/AP5 add a parallel warm-cache gate so warm xAI
resolutions do not serialise behind the cache lock; AP8 derives
{provider}.lock, reproducing both legacy names, with a cross-store test
for a provider with no legacy file.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m
lg2m merged commit cdbe4a5 into main Oct 18, 2026
6 checks passed
@lg2m
lg2m deleted the docs/eng-1066-auth-provider-plan branch October 18, 2026 02:20
lg2m added a commit that referenced this pull request Oct 18, 2026
…350)

* docs(plans): mark AP0–AP4 shipped and map qq-auth modules (ENG-1066)

The ledger records the merge commits for #341 and #343–#347 with their
receipt; the plan's pre-AP1 shape section says what AP1–AP4 removed; the
architecture source map lists qq-auth's modules (lib, state, backend,
oauth, codex, xai) instead of lib.rs alone.

* docs(plans): state exactly what AP1–AP4 consolidated (ENG-1066)

Review of c183af0: the plan claimed AP1–AP4 removed the per-provider
storage duplication, but token clients, stored formats, request-credential
providers and error mappings remain for AP5/AP8. The architecture map
assigned operation locks to oauth.rs; lib.rs acquires them and state.rs
defines the guard.
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