Repository navigation
fix: check package assets for every installed client - #5883
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Check current package assets independently for every installed agent client. A selective reinstall leaves unreconciled clients visibly stale in status, doctor and plain/JSON CLI output.
Problem
The installer already stores each client's content version and package digest, but status compared only the top-level record. After installing assets A, upgrading to B and reinstalling one client, that aggregate record became current while the remaining clients still retained A. This implements bounded 56.F091 through
polylogue-45jrw, preserving the original finding and discovered-from custody in openpolylogue-43ltz.Solution
Compare every installed client's recorded digest and content version with the current package once per status observation. Aggregate readiness derives from those client comparisons. Preserve
native_okas independent native operation integrity, expose clientasset_current, name stale clients in diagnostics and render their rows as attention. Doctor consumes the same status verdict. Top-level recorded metadata remains observable and supplies no installation currency authority.Empty/uninstalled status preserves its informational behavior; doctor still reports no installed clients. Selective removal derives currency from only remaining installations. The existing reference renderer and both packaged/docs mirrors describe current behavior. No schema, registry or native mutation path is introduced.
Verification
Exact final clean head:
5c2b0feae86ba6bc8744451b3e64141332ff0909, tree39958b36c6d19b05330877be9822656d26d0aafc.Complete owning selection job 6270:
64 passed, exit 0, receipt20261002T054400Z-focused-test-2990298-11235a85. Quick job 6271: all 12 gates passed, exit 0, receipt20261002T054405Z-quick-2990300-52364ab3. Both receipts start and end clean on the exact final head; no rerun or earlier-head reuse. Earlier quick 6268 failed solely on two test constant export references; the canonical version correction was verified in the complete final selection.Eight upgrade variants reinstall each of the four clients independently after either actual packaged resource byte changes or a declared content-version change. Production status/doctor and both command formats identify the three remaining stale clients, preserve their original native records and keep the updated client current. Additional controls cover stale aggregate/current clients, empty state and selective uninstall. Existing native drift, interrupted install/uninstall, idempotency, rollback, asset parity and command contracts are included.
Self-review
Hosted Code Review is disabled by the operator. The author reread the whole seven-path diff and both required checklists; the final pass was clean after the test version correction. Root reviewed the main and correction deltas with no finding.
Author final whole-diff pass on 5c2b0fe against c09a858. Reread target AGENTS, nested devtools rules, docs/review/codex-review-guide.md and generic worker checklist. Two passes, final pass clean after the canonical-version test correction. Root reviewed the full seven-path main delta without a finding.
Project checklist:
Generic worker checklist:
Residuals
Normal push job 6276 passed all 12 pre-push quick gates on the exact head, receipt
20261002T054634Z-quick-2995425-7c53177d. Protected delivery awaits required hosted checks, fresh exact-head thread readback and merge. This is the bounded F091 implementation; parentpolylogue-43ltzand its other residuals remain open. Historical review threads retain their original custody. All installations are neutral test homes. No live client install, host activation, corpus/whale run, provider/default change or private archive action occurred.