Skip to content

Consolidate web, account, privacy and operator refactors - #1095

Merged
Gajesh2007 merged 88 commits into
masterfrom
refactor/web-consolidated
Sep 21, 2026
Merged

Gajesh2007 merged 88 commits into
masterfrom
refactor/web-consolidated

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Consolidate nine web/account/privacy/operator refactors against current master, after provider #1094. The diff is 62 files: account and Stripe adapters, chat state/SSE parsing, clipboard feedback, admin tables, landing calculator orchestration, privacy explanations and operator helpers.

Account/Stripe wire contracts, payment calculations and inference behavior remain unchanged. Intentional behavior changes are safe JSON encoding for OTP/admin fields, nonzero fleet-update exit status after any host failure, and owned smoke-response files. Public privacy wording and the web console's injected system prompt now describe encrypted hops and plaintext endpoints; that prompt change affects console request bytes and can change token counts, outputs and prefix reuse.

Merge order remaining: #1095 → #1096 → #1056. This PR now targets master. Use a merge commit to preserve ancestry for the remaining stack, then update/retarget #1096. No merge or production deployment is performed here.

Included PRs

All nine exact component heads remain ancestors of this branch for audit.

Source Included head Change
#899 7e4d4e5422 Shared account and Stripe proxies with preserved wire/auth contracts.
#905 25f4baebd9 Typed JSON for Privy OTP fields.
#906 6537c6bc1a Landing calculator orchestration and DOM coverage.
#908 1e6a2d6452 Shared admin table rendering and immutable sorting/filtering.
#911 ec70980bd7 Shared chat-message updates and latest-image selection.
#912 2e1f1c5da1 Accurate privacy boundaries and qualified verification claims.
#913 96b4355ebb Safe operator JSON, fleet failure status and owned smoke files.
#958 db624a67fe Encryption comments and root-safe build/test commands.
#989 ac9f403adc Shared clipboard feedback and one parse per SSE payload.

Integration with current master

  • Signed merge e5b9d8d40 integrates master 76a8f03d9. Consolidate provider operations, cache lifecycle and regression fixtures #1094 was squash-merged, so its original provider ancestry was absent from master; reconciliation retains the landed provider source and dependency trees byte-for-byte. The final diff remains within the original 62 web/operator paths.
  • Preserves current console-key adoption and self-route restrictions, Bonsai UI state, App Attest onboarding/dashboard behavior, and durable release-qualification changes.
  • Updates stale MDM-only explanations in README, landing copy, the trust explainer, the console prompt and the canonical encryption doc. Qualified App Attest authorization is independent of complete legacy verification and never implies legacy MDA/APNs flags. This changes explanations, not serving policy.
  • Retains both current-master and refactor changelog/build/test guidance. No dependency upgrades, schema changes, pricing/payout changes, provider-version bumps or release-default changes occur in this review diff.

Before

flowchart TD
  Browser[Account, billing, chat and copy actions] --> Repeated[Repeated route, state and clipboard logic]
  Repeated --> Upstream[Coordinator responses and streamed output]
  Operator[Admin input and fleet update] --> Scripts[Interpolated JSON and remote pipeline]
  Scripts --> Risk[Escaped input or hidden partial failure]
  Tables[Admin rows] --> Copies[Duplicate rendering and sorting]
  Landing[Calculator input] --> Handlers[Repeated event handlers]
  Reader[Privacy explanations] --> Claims[Absolute E2E and operator-blind claims]
Loading

After

flowchart TD
  Browser[Same account, billing, chat and copy actions] --> Helpers[proxyAccount, proxyStripe, mapMessage, useClipboard]
  Helpers --> Upstream[Preserved auth, bodies, statuses and ordered output]
  SSE[SSE payload] --> Parse[One JSON parse] --> Dispatch[Receipt or token delta]
  Operator[Admin input and fleet update] --> Scripts[Typed JSON, pipefail, owned temporary file]
  Scripts --> Outcome[Literal fields and nonzero partial failure]
  Tables[Admin rows] --> Shared[DataTable and tableRows]
  Landing[Calculator input] --> Bindings[Shared input and event binding]
  Reader[Privacy explanations] --> Facts[Plaintext endpoints and separate legacy or qualified App Attest paths]
Loading

Validation

On Node 22.23.1 and Go 1.25.0:

  • Console: 784 tests / 100 files pass; lint has 0 errors, 85 warnings; production build and TypeScript validation pass.
  • Admin: 16 tests pass; 2 existing App Attest database integration tests remain skipped without a disposable database. Lint and production build pass. Build uses a loopback placeholder ADMIN_DB_URL; no live dashboard/database validation is claimed.
  • Landing: 8 tests pass. Operator script fixtures: 4 tests pass, using stub transports without OTP sends, token writes or fleet updates. Shell syntax checks pass.
  • go test -race ./auth ./internal/e2e: pass. The normal pre-push hook also passes full coordinator tests, Go formatting, console lint and production build.
  • make docs-impact-check BASE=origin/master: pass for 62 files; make docs-check: 311 files pass. git diff --check origin/master: pass.
  • Provider/SDK trees match master exactly; native code is not requalified by these web tests. Prior source reviews remain attached to their exact component heads. Fresh hosted checks apply to this updated aggregate.

This was referenced Sep 16, 2026
Base automatically changed from refactor/provider-consolidated to master September 21, 2026 00:26

@jonathan308 jonathan308 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the 62-file diff against master 76a8f03 at head e5b9d8d. No blocking findings.

Checked account and Stripe proxy contracts, typed OTP JSON encoding, chat state/SSE and clipboard extraction, admin tables, landing calculator behavior, operator failure propagation/temp-file ownership, and the privacy-description corrections. Provider sources, dependency pins and .gitmodules are unchanged against the base. The revised console system prompt intentionally changes request bytes and is correctly called out in the description.

Independent local validation: console 784/784 tests; admin 16 passed with 2 DB integration tests skipped; landing 8/8; operator stub-transport fixtures 4/4; go test -race ./coordinator/auth ./coordinator/internal/e2e; docs impact coverage for all 62 paths; docs lint for 311 files; git diff --check. Local toolchains: Node 24.15.0 and Go 1.27.1. The head also has successful CI coordinator/provider/integration, security/signature, docs, and console lint/build checks.

Limits: E2E Benchmarks is still WAITING. No live payment/fleet operations or DB integration checks were performed in this review, and no environment gate was approved or bypassed. This is code-review approval, not a merge or deployment action.

@Gajesh2007
Gajesh2007 merged commit ce809b7 into master Sep 21, 2026
21 of 22 checks passed
@Gajesh2007
Gajesh2007 deleted the refactor/web-consolidated branch September 21, 2026 20:46

This branch is waiting to be deployed

3 active and 1 waiting deployments
Preview – d-inference — e5b9d8d4 Deployed Sep 21, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — e5b9d8d4 Deployed Sep 21, 2026 by vercel[bot]
Preview – d-inference-landing — e5b9d8d4 Deployed Sep 21, 2026 by vercel[bot]
benchmarks — e5b9d8d4 Waiting Sep 21, 2026 by Gajesh2007 via E2E Benchmarks #1515
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.

2 participants