fix: preserve safe pristine gateway startup#106282
Conversation
ce21d55 to
b2cb61f
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 13, 2026, 7:42 AM ET / 11:42 UTC. Summary PR surface: Source +10, Tests +14. Total +24 across 4 files. Reproducibility: no. live current-main reproduction is documented, but the two affected branches are high-confidence source-reproducible through the focused planner and pre-action tests. Review metrics: 2 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the narrow shared-planner and prepared-fact approach, but land it only after redacted terminal or runtime-log proof shows the full-CLI pristine fast path and the nested-include migration-safe path on the exact rebased head. Do we have a high-confidence way to reproduce the issue? No live current-main reproduction is documented, but the two affected branches are high-confidence source-reproducible through the focused planner and pre-action tests. Is this the best way to solve the issue? Yes—the patch reuses the existing bootstrap facts and central migration planner rather than adding a new cache, fallback, or configuration surface; runtime proof remains the missing merge gate. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d262cad41fb1. Label changesLabel justifications:
Evidence reviewedPR surface: Source +10, Tests +14. Total +24 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
46d60dd to
943f547
Compare
943f547 to
ffee18c
Compare
|
Land-ready at
Known proof gaps: none. |
|
Merged via squash.
|
Related: #106194
Follow-up to #106195 and its two late review threads:
AI-assisted: yes.
What Problem This Solves
Fixes an issue where pristine Gateway startup could skip required core migration discovery when config used a nested include, while full-CLI Gateway invocations such as
openclaw --log-level debug gateway runmissed the intended pristine-startup speedup.Why This Change Was Made
Nested include directives now conservatively keep the full migration path. The full Commander pre-action path also forwards the same pre-bootstrap pristine-state facts already used by the dedicated Gateway fast path.
User Impact
Gateway startup remains migration-safe for included config and avoids redundant migration discovery on pristine full-CLI launches.
Evidence
tbx_01kxdq278e3xx9j17h85t4cvbm(run)pnpm test src/commands/doctor/shared/pristine-startup-state.test.ts src/cli/program/preaction.test.ts src/cli/command-execution-startup.test.ts src/cli/command-bootstrap.test.ts— 47 tests passedpnpm check:changed— passed onffee18c0445af63a6b848cf1a572801387797dc9pnpm deadcode:dependencies,pnpm deadcode:unused-files,pnpm deadcode:exports— passed; 25 unused-file and 3,234 unused-export baseline entries matchedpnpm check:test-types,pnpm tsgo:scripts,pnpm tsgo:test:root— passed.agents/skills/autoreview/scripts/autoreview --mode commit --commit HEAD --no-web-search— clean, no actionable findings (0.98 confidence)No changelog entry: internal startup optimization and regression coverage follow-up.