Repository navigation
fix(doctor): keep standing Codex parameter advice out of retirement blockers - #193650
Conversation
Classify native Codex parameter warnings by their existing removable fact. Preserve repairable tier widening and all narrow-pass predicates, report every fixed config blocker, and retain diagnostics through updater compaction.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review Summary: ✅ CompletedThis 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. |
|
Codex review: needs changes before merge. What this changesThe PR keeps non-removable Codex parameter advice from widening retirement-only Doctor runs and retains all recognized blocker diagnostics. Example: A converged update has deferred model retirement and a Codex model with responsesServerCompaction=true and responsesCompactThreshold=80000.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it addresses a remaining update inefficiency, but an introduced assertion fails in Linux CI. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherDoctor prepares configuration and repair facts, selects full or retirement-only contributions, and sends fixed blocker labels to updater diagnostics and history. flowchart TD
A[Authored configuration] --> B[Codex route diagnostics]
B --> C[Doctor repair sequencing]
C --> D[Config eligibility blockers]
D --> E[Doctor contribution selection]
E --> F[Updater diagnostics]
F --> G[Update history]
Technical reviewBest possible solution: Keep classification in the existing Codex diagnostics owner, retain every repair predicate, and scope the regression assertion to widening diagnostics. Do we have a high-confidence way to reproduce the issue? Current-main source traces non-removable parameter warnings into the retirement blocker; exact-head CI independently reproduces the introduced Linux assertion failure. Is this the best way to solve the issue? The production approach uses the existing removable fact and advisory channel, with one blocker list replacing duplicated eligibility state and no unnecessary production machinery. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 23ab9d305b8e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +21, Tests 0, Docs +4, Other +4. Total +29 across 15 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 5, 2026, 1:33 PM ET / 18:33 UTC. |
…lockers (openclaw#193650) fix(doctor): keep standing Codex parameter advice out of retirement blockers (openclaw#193650) Route non-removable authored Codex parameter warnings through the existing advisory channel while keeping removable service-tier findings blocking. Report all fixed-label retirement-only blockers and retain them through updater parsing and compaction. Preserve warning text and fix hints, all eligibility predicates, and older-candidate diagnostics. Synthetic cold/warm update proof completes deferred retirement and real Gateway transport. The coordinator accepted the cold Gateway request increase as deferred background work; no speedup is claimed.
…aw#194058) Failed-update triage now captures the operator's environment before managed candidate admission, so a coding agent installed only on the operator's PATH is still offered when the Gateway service's PATH differs. Restores the operator-environment contract from openclaw#134490 and keeps the launch confirmation from openclaw#143139. Proof: shipped CLI on isolated Linux (Crabbox) with a running systemd Gateway: accept launches the operator-only agent, decline starts nothing, base 18bee8e reports no agent found; published 2026.11.1 upgrades to the fix with settings intact. Co-authored-by: TorstenW <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: steipete <[email protected]> (cherry picked from commit 7c702c3) Release adaptation: Capture invoking operator env before candidate admission, forward to interactive triage only; preserve latest target selectors, confirmation and lease cleanup ordering. Exact three authorized production paths plus real lifecycle regression. Follow-up dispositions: ad4863d fix: preserve the running installation when an agent updates its Gateway (openclaw#201570); dc73ec0 fix: let updates finish when another tool briefly reads OpenClaw's databases (openclaw#202541); d07b530 fix: clarify PostgreSQL schema upgrades for Git installs (openclaw#202098); e60ea9f test(update): add a Git release upgrade-survivor scenario (openclaw#201956); 2ef6f7b fix(update): build and serve Git releases outside node_modules (openclaw#201917); dbc1aa0 fix: keep the openclaw command and Gateway working after updating a pnpm install (openclaw#201735); f5e7641 fix: Git checkout updates across a schema change no longer end as post-update-failed after the new release starts (openclaw#201600); 2183caf fix: Git checkout updates no longer fail before the new release starts on a schema change or a busy database (openclaw#201463); 47e8649 fix: explain why Doctor cannot restore a scheduled job’s account (openclaw#201550); 8f2cfd4 fix: remove updater-only restrictions from agent maintenance guidance; cb5cfb2 fix: keep a doubtful killed-update recovery on the repair path (openclaw#201361); 24cb734 fix: keep carried-over scheduled jobs running after updates (openclaw#200653); d1276e1 feat(doctor): check OpenClaw ID member roles and honor an optional roles default (openclaw#197785); 0a39956 fix: finish updates when another tool reads OpenClaw's databases during the update (openclaw#201330); ea1c9d5 fix(update): settle remounted package publications before admission (openclaw#201336); 66b5212 fix(update): isolate malformed retained-install markers (openclaw#201199); 7e79c83 fix: let the next update finish a killed source checkout update (openclaw#201009); d905d8a fix: let the next update finish a killed update after the machine restarted (openclaw#200994); fdf0c95 fix: let the next update finish a killed update that had already installed the new version (openclaw#200866); 0c19bcd chore(release): close out 2026.11.5 on main (openclaw#200577); a1940e0 fix(matrix): keep explicit recovery available during deferred migration (openclaw#200805); 18b4776 improve: explain package baseline drift during updates (openclaw#200802); 1ad4cad fix(doctor): reclaim macOS updater runtimes blocked by non-updater processes (openclaw#200732); 427c857 fix: keep one missing archived transcript from blocking every update (openclaw#200733); 802e3f7 fix(update): keep valid cold archives from blocking updates (openclaw#200659); 23fca1a fix: let the next update continue after a killed update when nothing is left to repair (openclaw#200680); 3afe212 fix: let Doctor publish unchanged plugin migrations in any order (openclaw#200658); f65e4db fix(doctor): reclaim runtimes blocked by unrelated Linux processes (openclaw#200657); dab086c fix(update): let candidate Doctor read plugin dependencies from the staged package (openclaw#200595); 3447bee fix(update): keep updates going when the predecessor writes during its stop (openclaw#200569); 0ce9c77 fix: let the next update settle a package publication that a killed update left behind (openclaw#200550); ae31ea3 fix(update): repair handoffs in the journal-pinned lease store (openclaw#200532); 74020ea fix: continue updates when initial SQLite capture is stale (openclaw#200328); 6747b1e feat(update): run Git checkout installs from releases behind the release link (openclaw#199706); e3f8a67 fix(state): keep completed retained agent stores out of startup upgrade (openclaw#200284); 3c512c5 fix(gateway): move managed update lease operations off the main thread (openclaw#200169); ea69fcb chore(release): close out 2026.11.4 on main (openclaw#199956); 618bf31 fix(state): bound startup upgrade copies and pruning to owned state (openclaw#199929); e4a3093 perf(update): replace the candidate canary with a runtime contract check (openclaw#198268); 5dbf569 fix(update): plugin failures never fail an update or Gateway health; 764761e fix(update): refuse missing host prerequisites in one line and record a cause per attempt; 4c4fef4 fix(ui): update dialog claims installation before progress is confirmed (openclaw#199254); 136e1f6 fix(update): retrying an update from a dev checkout is refused after a killed update (openclaw#198673); 3bd03da fix(update): avoid duplicate database copies while the Gateway is stopped (openclaw#198148); 68a839b fix: isolate held agent databases until explicit restoration (openclaw#198180); e333f7e chore(ci): drop retired test-lines allocation records (3/3) (openclaw#197657); fd6fa47 fix: converge Gateway updates with environment-only service overrides (openclaw#196371); 7cf5e75 fix: clarify split-install updates and blocked Doctor repairs (openclaw#196342); 6ff8c86 fix(update): retain lazy sqlite catalog generation (openclaw#197095); 930e1f7 fix: keep stable updates and recovery free of premature migrations (openclaw#196474); a15f737 fix: preserve external plugin data during update rehearsal (openclaw#196301); 92798ae fix: updates survive interrupted heartbeat runs (openclaw#195656); c1e55e2 fix(update): restore LaunchAgent registration after repair contention (openclaw#195406); 715c610 fix(doctor): repair retained ISO session end timestamps (openclaw#194685); 689cfc8 fix(update): reclaim dead closing triage repair leases (openclaw#194503); 86bc89e fix(doctor): keep standing Codex parameter advice out of retirement blockers (openclaw#193650); 691bc8d fix(backup): read the backup engine without copying the live database (openclaw#194234); 000542f fix(backup): backups and updates fail on slow storage when a header probe batch misses its deadline (openclaw#194239); 31a65d5 fix(update): skip --no-lazy-fetch on Git versions without it (openclaw#194198); e45e99d fix(update): preserve dev update sources in tag-only Git clones (openclaw#193109) Validation: Baseline2 intended operator-agent failures/32 controls passed; candidate34/34passed (194058-green.log). Accept launches synthetic operator-only CLI with expected env, decline starts nothing. Isolated updater flow, not live systemd/upgrade qualification. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 6689fd575ada8fe40a9593784deac18ec73041cd) (cherry picked from commit 92e7a9fa223b0dc35801f25f70be90b472d9a6b7)
What Problem This Solves
Fixes updates unnecessarily running the full second Doctor pass when a native Codex model has authored request parameters that Doctor cannot migrate automatically. Also reports every fixed-label config blocker instead of making each update reveal only the first one.
The coordinator accepted the adverse cold final-Gateway requests cell 124 → 149 (+20.16%) on 2026-11-06. This is moved background startup work, not noise, and no speedup is claimed. The lane stopped at the threshold without rerunning; the disposition below authorizes this one cell. Current main was merged once at
4171997ed8852f7fd7802ec3f7b639f261500cc0; the complete PR patch is unchanged apart from documentation hunk offsets and upstream blob IDs. Production, tests, and workload bytes are identical to the prior head. Normal pull_request CI on this new head passed (50 successful jobs, 27 skipped), including all three PostgreSQL shards. The coordinator posted exact-headREVIEW-OKcarrying the earlier production review.User Impact
Standing parameter advice stays visible, including its manual fix hint, in Doctor output and update warnings. Redundant service-tier parameters that Doctor can remove still prevent the retirement-only pass. All eligibility checks remain; older candidate diagnostic labels remain supported.
Why This Change Was Made
The parameter scanner already records whether each hit is removable. Its owner now sends all-non-removable results through the existing advisory channel. The six retained contributions preserve authored request parameters; the skipped Codex compatibility check only detects them and has no repair. Both isolated reviews specifically considered repairs that could be hidden by skipping contributions and found none.
The blocker list replaces a derived boolean and records every failed condition, including the specific model-retirement term and Codex warning source. The updater retains all distinct allowlisted labels through compaction. Labels contain no configuration values. No schema, SQL shape, cross-store commit order, cache, generation, or thread-routing change. All 23 config-flow predicates and the no-retirement-ran condition remain. Production delta +29 lines is needed for all-blocker reporting; net test delta −1 line.
Evidence
Acceptance and completed native proof
Acceptance rule, recorded before native measurement: use
scripts/perf/doctor-retirement-measure.mts --retained-wal --custom-codex-commandwith the same synthetic authoredresponsesServerCompactionandresponsesCompactThresholdparameters on baseline and candidate. Both arms use the same fixed source driver and macOS platform, with independent cold/warm roots. At host load >=24, run one baseline/candidate count pair, keeping cold and warm separate; make no latency claim. Baseline must name the model-retirement blocker. Candidate must run exactly the six retained contributions, complete deferred model retirement, preserve the warning and fix hint in both Doctor output and update warnings, pass final real Gateway transport and cleanup, reduce total SQL and requests, and never increase runtime MAIN work. A new eligibility blocker stops this lane. Timing, if attempted on a quiet host, requires the shared timing lock and at least five alternating samples per arm, medians/p95/spread; no cell may worsen by 20%.Fixed driver
44a6171ae58ae12c8859d1e40d16301d38c57087; baseline50cfa7d2eb8416492867d6b1d679c814357b932a; candidatecb3876a6aa76de928e8af2f753e0f95bf9f699fa; same macOS/arm64 and Node 26.12.1. Frozen observer hashes verified. One count sample per arm and temperature, all descendant processes and worker threads included. Baseline started at load about 63; candidate started at 19.42. No latency or CPU improvement is claimed and no timing comparison was made.Both baseline post-plugin Doctors reproduce
Retirement-only Doctor widened: config.model-retirement. Both candidate passes select exactlywrite-config-migrations,auth-profile-migration,session-transcripts,codex-session-routes,write-config, andfinal-config-validation, with zero widening labels. All six Doctor outputs and both structured update results in each arm retain the full authored-param warning and manual fix hint. Both arms complete actual deferred retirement, final real Gateway transport assertions, and confirmed process cleanup with no errors. The removable service-tier regression still widens throughpending-changes.Total SQL fell by 17,915 and requests by 268. Process-main SQL fell 574,820 → 557,737; worker SQL fell 12,444 → 11,612. Runtime MAIN did not increase. The cold final-Gateway requests cell nevertheless rose 25/124 = 20.1613%, crossing the stop threshold by 0.16 percentage points in this one sample. The corresponding process-main SQL rose 129 → 134; total cold Gateway SQL fell 581 → 578. Request-owner deltas include deletion snapshots (+5), session-target inventory (+4), store topology (+2), generic execute (+5)/task (+4), and smaller readers.
Accepted adverse cell: the coordinator identifies the same moved background work accepted in #193476 (138 → 165, +19.6%) and #193559 (+13). The narrow pass leaves deferred startup work, including the integrity child and its inventory, deletion-snapshot and topology reads, to Gateway background startup. In this run cold Gateway SQL fell 581 → 578, runtime MAIN fell 59 → 53, warm requests fell 147 → 144, and the whole workload fell 17,915 SQL and 268 requests. This acceptance does not characterize the increase as noise or claim a speedup.
Review and validation
Two isolated Codex production reviews are scoped-clean. All 197 affected owner cases are covered by passing runs; final focused fixture cases, typed lint, format, diff checks and hooks passed. The only subsequent changes are two test-only corrections: the removable service-tier expectation now names
pending-changes, and the synthetic update fixture explicitly uses noninteractive mode. Production/docs/workload bytes remain identical to the reviewed and PG-approved production commitbd5b4d17e5d98b27c72d43befdef7a2bfa19ba69.All three PostgreSQL shards passed on the final head in both workflows. Required types, lint, source contracts, architecture, baseline ratchets and prompt snapshots passed. The published-driver job passed both candidate-update and native-systemd steps.
Final-head normal pull_request CI 42337704600 passed: 50 successful jobs, 27 skipped, including all three PostgreSQL conformance shards, security-fast, types, lint, source contracts, architecture, ratchets and changed tests. Separate security checks are verified before protected squash. The initial PR-context check rejected the missing literal
Evidenceheading; that body-only correction passed on the unchanged head. No local install, native run or large fixture was repeated.Earlier supplemental full-CI failures were in untouched UI/i18n/Swift/Gateway tests and interrupted/setup jobs; that run was not green. Its Knip findings exactly matched main run 42074515176/job127411457048: four pre-existing unused exports, zero new findings. Other earlier supplemental failures were recorded without claiming main equivalence. They are prior-head evidence, not failures of this final normal PR run.
The coordinator explicitly carried the earlier REVIEW-OK through the two test-only commits and then posted
REVIEW-OK NARROWPARAM 4171997ed8852f7fd7802ec3f7b639f261500cc0. The merge preserves production/test/workload bytes and the complete patch, so the native proof and published-driver result are carried. Landing uses the protected head-pinned REST squash withbypass_rules: false, through ci-gate.Open-PR overlap
Shared prindex refresh: 31 other main-targeted PRs. Paired merge-tree comparisons against current main
2ab781210c6f2cf90c92043e6bfc2cb6283a4bceand merge head4171997ed8852f7fd7802ec3f7b639f261500cc0found zero new conflict paths. 28 peers already had conflicts; added blocks in already-conflicted files need no disposition under this lane’s order. Checked: #194376 (2904 → 2904), #194242 (0 → 0), #194234 (0 → 0), #194166 (1 → 1), #192698 (2784 → 2784), #192576 (0 → 0), #192350 (109 → 109), #192349 (46 → 46), #192228 (9 → 9), #191754 (7 → 7), #188577 (1 → 1), #181395 (4 → 4), #181393 (1 → 1), #176264 (2 → 2), #167219 (23 → 23), #166166 (137 → 137), #163964 (581 → 581), #162160 (580 → 580), #162144 (579 → 579), #162132 (579 → 579), #162126 (579 → 579), #161344 (583 → 583), #158723 (33 → 33), #157542 (7 → 7), #152205 (610 → 610), #151441 (584 → 584), #150246 (582 → 582), #149882 (92 → 92), #148581 (582 → 582), #142668 (6 → 6), #106998 (40 → 40).Follows #193559. No live state or logs were read; fixtures and report data are synthetic. Ready for the protected head-pinned squash after final gate verification.