Skip to content

Separate testbed lifecycle ownership and capability admission - #900

Closed
Gajesh2007 wants to merge 2 commits into
masterfrom
refactor/codebase-operations
Closed

Gajesh2007 wants to merge 2 commits into
masterfrom
refactor/codebase-operations

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

The E2E Suite mixed lifecycle sequencing, coordinator/store construction, provider credentials, registration trust mutation and HTTP/process details in one 723-line file. The suite now sequences operations in 186 lines, with focused owners for store/coordinator setup, provider launch and capability admission.

providerCapabilityMismatch checks the original signed evidence with ordered early returns, preserving the existing first-error precedence and set semantics. Admission captures privacy evidence before synthetic test trust, and hardware promotion still waits for the entire fleet to pass. One-use listener and command wrappers are removed. Startup/cleanup order, launch pacing, credential ownership, timeout values, configuration, and serving behavior stay unchanged.

This is a decomposition of responsibilities; total testbed source is approximately unchanged after module headers. The added tests and repository audit are additional verification, not removed behavior.

flowchart LR
  subgraph Before
    A[Suite.Start] --> B[suite.go: store, users, HTTP coordinator]
    B --> C[suite.go: credentials and provider launch]
    C --> D[suite.go: nested signed-capability checks and synthetic trust]
    D --> E[Verify actual KV backend then run requests]
    E --> F[Suite.StopAndWait: owned cleanup]
  end
  subgraph After
    G[Suite.Start: lifecycle sequence] --> H[coordinator.go: startStore, users, HTTP lifecycle]
    H --> I[suite_providers.go: credentials and launch attempts]
    I --> J[suite_registration.go: capture evidence and admit]
    J --> K[providerCapabilityMismatch: pure ordered checks]
    K --> L[Same trust promotion and actual KV verification]
    L --> M[Same requests and owned cleanup order]
  end
Loading

Validation:

  • GOTOOLCHAIN=go1.25.0 go test -race -short ./e2e/testbed/... passes.
  • Targeted E2E CPU tests for connected fixtures, release defaults and benchmark configuration pass with the race detector.
  • New tests cover missing/invalid signatures, chip/library/capability mismatch, first-error precedence, capability set equality, original privacy snapshots, ownership fallback and refusal before hardware promotion.
  • Independent agent control-flow review found no change in startup, cleanup, launch ownership or admission semantics.
  • Docs lint passes (279 files); git diff --check passes. Live integration runs through PR CI.

The committed operation inventory and refactor decisions map the broader repository and explain the sibling provider (#897), coordinator (#898) and web (#899) refactors. This inventory is not a claim that every repository line was individually audited or rewritten.

Based on feat/gpt-oss-20b-prefix-cache (#894). These four refactor branches are independent siblings. No merge, deployment, release, artifact publication or pin update is included.

@vercel

vercel Bot commented Sep 11, 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 11, 2026 11:32pm UTC
d-inference-console-ui-dev Ready Ready Preview Sep 11, 2026 11:32pm UTC
d-inference-landing Ready Ready Preview Sep 11, 2026 11:32pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 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 ✅ Completed 2026-09-11T23:35:08.051115Z da8c4b1 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.

@Gajesh2007

Copy link
Copy Markdown
Member Author

Final validation for c0f763f7627a8959ca570a4b5d292400b90691e4:

Individual validation details and limitations are in each PR description, including the dedicated-M5 provider/live GPT-OSS checks and the unchanged baseline TypeScript diagnostics in #899. No merge or deployment was performed.

Base automatically changed from feat/gpt-oss-20b-prefix-cache to master September 11, 2026 22:46
@Gajesh2007

Copy link
Copy Markdown
Member Author

Consolidated into #1096, the combined tooling, benchmark and E2E refactor PR. Your latest head da8c4b12766688af188cc574d43b74d89fe7899b is preserved in aggregate 9d2160bb370e8a0dbf3810e61a5e48fe66345651, along with the relevant review fixes. Continue review and merge at #1096 (after provider #1094 and web #1095). Closing this duplicate merge path; the source branch and review history are retained.

@Gajesh2007 Gajesh2007 closed this Sep 16, 2026

This branch had an error being deployed

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