Skip to content
This repository was archived by the owner on Sep 15, 2026. It is now read-only.

Separate installation and provider health checks - #50

Merged
VdustR merged 1 commit into
mainfrom
codex/issue-49-installation-health-gate
Sep 2, 2026
Merged

VdustR merged 1 commit into
mainfrom
codex/issue-49-installation-health-gate

Conversation

@VdustR

@VdustR VdustR commented Sep 2, 2026

Copy link
Copy Markdown
Owner

TL;DR

Let transactional updates validate the installed services and state contract without rolling back on a temporary external CodexBar timeout. The regular doctor command remains a strict full provider-health check.

Closes #49

Problem

A valid local update reached the final doctor step, but codexbar usage --provider codex --format json exceeded the fixed 20-second collection timeout. The installer rolled back the working update even though the bridge, renderer, and state endpoint were healthy. Direct provider calls took 21.89 seconds and more than 34.60 seconds.

Change

  • Add doctor --installation-only for LaunchAgent, bridge identity, native renderer heartbeat, CodexBar executable, and /api/v1/state schema validation.
  • Keep the regular doctor mode strict about sessions and required Codex usage.
  • Use installation-only doctor as the transactional installer gate.
  • Report the selected doctor mode in JSON output.
  • Document the distinction between installation and provider health.

Verification

  • Before: the installed prior version rejects doctor --installation-only, and a slow Codex provider forces installer rollback.
  • After: failure-injection coverage proves installation mode never creates StateStore or starts provider collection.
  • PYTHONPATH=src python3 -m unittest discover -s tests -v — 74 tests passed
  • pyright src tests — 0 errors
  • python3 -m compileall -q src tests
  • swift test --package-path native — 9 tests passed
  • shell syntax checks for build, install, uninstall, and setup scripts
  • git diff --check

Validation boundary

Unit and contract tests verify the split health gates. The real transactional update and process-cadence readback will run on the affected Mac after merge.

@changeset-bot

changeset-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: dbbc7de

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@VdustR
VdustR marked this pull request as ready for review September 2, 2026 03:17
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 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-02T03:20:23.347334Z dbbc7de Draft marked ready
ℹ️ 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.

@VdustR
VdustR merged commit 245d52d into main Sep 2, 2026
1 check passed
@VdustR
VdustR deleted the codex/issue-49-installation-health-gate branch September 2, 2026 03:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make installation resilient to slow CodexBar usage collection

1 participant