Skip to content

test(coordinator): cover code-identity serving paths - #1053

Closed
Gajesh2007 wants to merge 3 commits into
refactor/coordinator-codeidentity-ownerfrom
refactor/codeidentity-test-surface
Closed

Gajesh2007 wants to merge 3 commits into
refactor/coordinator-codeidentity-ownerfrom
refactor/codeidentity-test-surface

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Some APNs cooldown and nonce tests exercised unused alternate helpers, allowing faults in the serving operations to pass. The existing tests now exercise codeidentity reservation, token rotation and identity-bound challenge operations. Six unused helpers are removed; two unchanged reservation adapters live in push_fixture_test.go.

This carries the remaining source and regression changes from #971 onto the code-identity owner in #1023. Serving algorithms, interfaces, locks, durable reservations and all 3,511 existing test/benchmark entry points are preserved. The branch inherits the reviewed parent at 15a59eb69; all nine changed source files retain their tested bytes, and the parent's three Go changes update comments only.

Before:

flowchart LR
    request["Provider code challenge"] --> manager["codeidentity.Manager"]
    manager --> serving["reservePush and identity-bound nonce operations"]
    serving --> outcome["APNs admit/refuse; nonce accept/reject"]
    tests["Cooldown and nonce fixtures"] --> legacy["Unused allowance and unbound nonce helpers"]
    legacy --> checks["Assertions can miss serving-path faults"]
Loading

After:

flowchart LR
    request["Provider code challenge"] --> manager["codeidentity.Manager"]
    manager --> serving["Same reservation, rotation and bound nonce operations"]
    serving --> outcome["Same APNs and nonce outcomes"]
    tests["Existing fixtures"] --> adapters["Test-only reservation adapters"]
    adapters --> serving
    tests --> serving
    serving --> checks["Cooldown boundary and earlier valid nonce assertions"]
Loading

Validation:

  • All eight retargeted tests passed against the original owner before helper removal: 10 results, -race, 1.266s.
  • Full code-identity owner: 49 top-level tests / 69 results passed under -race, 6.833s. Focused owner/APNs/API checks: 52 top-level / 74 results passed; the existing live APNs test was explicitly skipped. API package: 11.688s.
  • Two Go-overlay faults changed the actual serving code: extend the reservation cooldown by one nanosecond, and discard earlier in-flight nonces. Both old tests passed with these faults; the retargeted tests failed at the intended cooldown and nonce assertions.
  • Actual-Git preservation checks verified 10,048 unchanged declarations, the two unchanged adapter bodies, all existing entry points and the complete parent tree composition. Seven test bodies match refactor(api): exercise production attestation paths in tests #971 under the owner constructor rename; the eighth applies the same three identity-bound call changes to the current test harness.
  • Coordinator build, pinned golangci-lint v2.1.6 (zero issues), and documentation checks (281 pages) passed. Go 1.25.0; database environment variables were unset. No live Apple, native provider, model or production run was used for this change.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 14, 2026 7:05pm UTC
d-inference-console-ui-dev Ready Ready Preview Sep 14, 2026 7:05pm UTC
d-inference-landing Ready Ready Preview Sep 14, 2026 7:05pm UTC

Request Review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Gajesh2007

Copy link
Copy Markdown
Member Author

Consolidated into #1056 for review and merge after #1094, #1095 and #1096. #1056 contains this branch's exact head (ae71d5604c83e2da4ea80bda8bd5227397e73c71), including its reviewed fixes, with implementations and regressions reconciled into the coordinator subsystem owners. Closing the component PR to collapse the stack; its branch, commits and review history are retained. Follow #1056 for combined validation and merge status.

@Gajesh2007 Gajesh2007 closed this Sep 16, 2026

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference — ae71d560 Deployed Sep 14, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — ae71d560 Deployed Sep 14, 2026 by vercel[bot]
Preview – d-inference-landing — ae71d560 Deployed Sep 14, 2026 by vercel[bot]
benchmarks — ae71d560 Deployed Sep 14, 2026 by Gajesh2007 via E2E Benchmarks #1320
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