Skip to content

fix(cli): bind deployment acceptance to serving processes - #4497

Merged
yannickmonney merged 2 commits into
mainfrom
fix/deployment-serving-identity
Oct 7, 2026
Merged

yannickmonney merged 2 commits into
mainfrom
fix/deployment-serving-identity

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

deploy accept previously accepted another installation at the same release version. Bind both canonical frontend and API health responses to fresh process identities observed inside the exact captured containers, then repeat origin and local observations before returning. All four public servers publish the same additive header for the maintained Ops reader; existing health JSON stays compatible.

Use a direct bounded HTTPS reader with mandatory certificate verification, and document the separate filesystem preparation/cleanup limits accurately. Addresses the two findings in #4492 (comment).

Checklist

  • bun run check passes: 49/49 tasks, 45 cached/four executed; CLI 2,518 pass, 29 existing skips, 0 fail.
  • bun run lint:sast passes (Opengrep): 0 findings; existing parse/exclusion limits retained. Knip also passes.
  • Translations: EN/DE/FR operator docs updated; no product message keys changed.
  • Docs updated in docs/{en,de,fr}/; desktop and mobile rendering verified.
  • CLI and UI package READMEs updated; root README translations are unaffected.

Test plan

  • Actual independent same-version servers fail the old proof and are distinguished by the new producer/consumer. Cover initial and late frontend/API substitution, process rollover, legacy missing identity and unchanged health bodies.
  • Actual HTTP/TLS fixtures cover proxy bypass, untrusted certificates even with NODE_TLS_REJECT_UNAUTHORIZED=0, trusted extra CA, duplicate/oversized/stalled responses, redirects and owned cancellation.
  • Focused CLI/cache guards: 72 cases passed; shared real-process producer: 2 passed; platform server/readiness: 105 passed. The HTTP/TLS and serving probes also pass alongside the suite-global mocks and other real HTTP fixtures (126 cases). Every real socket probe now runs in its own bounded process, retaining Windows coverage. Independent reviewer approved the exact source after reproducing and fixing the TLS environment boundary.
  • Final head df8b8c07fe682f45bdcf484b16e92ec18af23a5c: all seven hosted workflows pass. Native Windows executes every supported isolated socket case and the two-server identity proof (1,851 pass, 696 existing platform skips); all five CLI operating systems pass. Public container checks 62/62, image validation 50/50, native stack smoke 29/29, backend integration 1,674/1,674 across 235 lanes.
  • Actual E2E logs: platform shards 17/17/17/15, web 105 plus 830 prerender cases, docs 45; every test passed its first attempt, with no flaky-test diagnostics. Checks and E2E each needed one authorized failed-job retry after APT dependency installation timed out before tests. Original setup failures and unrun-case evidence are retained. Build, CLI, SAST, Security and Commitlint passed workflow attempt 1.
  • The earlier head's Windows shell-fixture timeout and subsequent Bun socket-lifecycle crash remain recorded. The final fixture isolation preserves all Windows cases and observed native Windows success; it does not establish the exact Bun crash mechanism.

The receipt is point-in-time correlation, not authentication or a promise of later routing stability. External observations share the checked 120-second budget; bounded bundle copy/cleanup is not a cancellable whole-command deadline. No live deployment, migration, credential or release action is part of this change.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

REQUEST CHANGES — reviewed head 2f84e8b25f8b76535831eb086cda372161dc859d (base 0bc2cca3854278cf982c80e98fcb032b70861f40). I did not write this PR; GitHub attributes implementation to the shared push account.

  1. CICD (blocking): CI ready (CLI) is failure at this exact head. It must be repaired and rerun to a settled success before merge. The other six aggregators are settled success: E2E, Build, Checks, SAST, Security, Commitlint.
  2. CODE/DATA/DEPLOYMENT: The two health routes are bound to identities captured from exactly one platform and one backend-api container, checked at the canonical origin, and reread after the final runtime observation. A process rollover, missing/legacy header, duplicate/malformed header, wrong service, redirect, non-200, oversized/stalled body, or version mismatch is rejected. The receipt records both process identities and the canonical origin.
  3. SECURITY: The public header is a random per-bootstrap UUID correlation token, explicitly not authentication; local probes clear proxy variables, use loopback, omit credentials, reject redirects, and HTTPS uses normal certificate/hostname verification. No secret or response body is exported by the local projection.
  4. RESOURCES/RECOVERY: response and subprocess reads are bounded and response/body cleanup is attempted; the implementation documents that filesystem waits and whole-command cleanup lack a cancellable deadline, so an external supervisor remains required.
  5. DOCS/LOCALE: EN/DE/FR acceptance wording, README, and manual automation text describe both endpoints, identity requirements, legacy-server behavior, budgets, limits, and point-in-time semantics consistently.
  6. Overlap: fix(cli): bind deployment acceptance to serving processes #4497 closes the two fix(cli): narrow acceptance origin claim and bound bundle I/O #4494 P2 concerns (exact-origin/process correlation and bounded direct observation) and is the more complete repair, subject to the CI fix. fix(cli): narrow acceptance origin claim and bound bundle I/O #4494 should be dropped after this repair lands.

Disposition: SECURITY PASS; DATA PASS; CODE PASS pending CI; DOCS PASS; LOCALE PASS; CICD FAIL (item 1); DEPLOYMENT PASS; PERFORMANCE/RECOVERY/PROVIDERS/OBSERVABILITY NOT_APPLICABLE beyond the bounded checks above because this coordination-only API review cannot run deployment or runtime validation.

@yannickmonney
yannickmonney merged commit 644ebef into main Oct 7, 2026
@yannickmonney
yannickmonney deleted the fix/deployment-serving-identity branch October 7, 2026 19:00
@yannickmonney

Copy link
Copy Markdown
Contributor Author

POST-MERGE ACCEPT — reviewed merged head df8b8c07fe682f45bdcf484b16e92ec18af23a5c against prior reviewed head 2f84e8b25f8b76535831eb086cda372161dc859d and base 0bc2cca3854278cf982c80e98fcb032b70861f40.

Part B: the delta isolates each native socket lifecycle in a bounded child process; identity, HTTPS direct-reader certificate/proxy behavior, response/output bounds, cancellation, and cleanup are covered. The merged implementation binds both canonical frontend and API responses to identities read from the captured containers, repeats the origin and local observations, and preserves lock/custody cleanup. The shared producer is included in the package exports and all maintained servers; docs are updated in EN/DE/FR and CLI/UI README/manual references.

The merged-head check-runs show all seven CI ready (…) aggregators successful, with the Windows build successful; the prior Windows Bun socket-lifecycle crash did not recur in the final head evidence. The squash commit 644ebef59a1ee19474b4d73f16a15a462896e22d has separate main-branch checks still pending (Windows build pending at read time), so that is recorded as pending rather than treated as a failure. The squash tree differs from the PR-head tree because its parent is a later main snapshot; the PR head/base diff contains the reviewed change set. No follow-up repair is needed.

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