Repository navigation
fix(update): log config fallback diagnostics as warnings - #165539
Conversation
|
🦞👀 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. |
|
@clawsweeper autofix |
|
🦞🔧
This is fix-only; I will not merge this PR. |
|
Codex review: passed. Reviewed October 6, 2026, 7:24 AM ET / 11:24 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR emits update config-reader fallback diagnostics as warnings and preserves exact recognition of the alias shipped in 2026.9.8, with severity and provenance regression coverage. Merge readiness✅ Ready for maintainer review The previous provenance finding is resolved, and no new blocking defect was found. The PR remains useful because current main and the latest release still emit these warning-coded diagnostics at error severity. Priority: P2 Review scores
Verification
How this fits togetherDuring an update, a stable config entrypoint lets the installed updater read configuration using the candidate installation’s dependencies. Build tooling generates that entrypoint, while compatibility inventory tooling traces its exports back to their source. flowchart TD
A[Installed updater] --> B[Stable config entrypoint]
C[Candidate installation] --> B
B --> D[Candidate config reader]
D --> E[Config result or warning]
F[Published package alias] --> G[Exact fingerprint and binding checks]
G --> H[Compatibility inventory]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +155, Other 0. Total +155 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep warning severity at the diagnostic producer while retaining exact published-alias recognition and unchanged update recovery behavior. Do we have a high-confidence way to reproduce the issue? Yes, from source: the generated alias calls console.error for warning-coded failures, and OpenClaw’s console bridge records that method at error severity. No live reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. Changing the producer’s console method is narrow, and retaining exact historical fingerprints avoids breaking published-package provenance tracing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ba41a1833754. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
chessing234
left a comment
There was a problem hiding this comment.
Reviewed commit 531427859a2702555b7cc6619c73b1e1018f19f2.
Inspected diagnostic warning logging and child-reader framing/failure behavior. No actionable correctness issue found.
Validation: static source review only; runtime tests were not run. This review makes no assertion that CI or platform tests pass.
|
@clawsweeper re-review\n\nAddressed the P2 finding at head 8154cd2: exact shipped 2026.9.8 alias recognition is retained, with frozen acceptance plus changed delegation/binding/target rejection coverage. Targeted tests and AutoReview P2 are clean; check-changed passes all scoped lanes except unrelated pre-existing dead exports. |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: re-review\n\nAddressed the P2 finding at head 8154cd2: exact shipped 2026.9.8 alias recognition is retained, with frozen acceptance plus changed delegation/binding/target rejection coverage. Targeted tests and AutoReview P2 are clean; check-changed passes all scoped lanes except unrelated pre-existing dead exports. |
|
@clawsweeper re-review Addressed the P2 finding at head |
|
🦞👀 Re-review progress:
|
…5539) * fix(update): log config fallback diagnostics as warnings * fix(update): preserve 2026.9.8 alias provenance
[email protected] is now published, so 2026.10.2 must satisfy that updater's post-swap imports (update:compat:check refuses to pack otherwise). The release-line tracer could not recognize 10.5-beta.1's stable io.runtime.js config alias, which logs fallback diagnostics with console.warn after #165539, and failed with "Cannot trace io.runtime.js export createConfigIO to its release source". Backport of 78e8de2 (#165539) unchanged: the alias recognizer accepts the retained console.error template hash and the generator emits the current console.warn template, with its 2026.9.8 provenance fixture and tests. Then regenerate the inventory from all 13 integrity-verified npm tarballs; the 12 existing entries are byte-identical and 2026.10.5-beta.1 (f283c3c, 57 chunks) is appended. Backport of 78e8de2 (#165539) adapted for 2026.10.2 (adds the 2026.10.5-beta.1 inventory record). (cherry picked from commit 78e8de2)
…e is test-only A newer train's beta cannot update to 2026.10.2 (that would be a downgrade), so recording it only scheduled a first-hop lane that exercises 10.5-beta.1's own install path. #168836's backport removed the prepack registry-coverage gate that made the entry necessary; the #165539 tracer improvement stays.
…#165539) [email protected] is now published, so 2026.10.2 must satisfy that updater's post-swap imports (update:compat:check refuses to pack otherwise). The release-line tracer could not recognize 10.5-beta.1's stable io.runtime.js config alias, which logs fallback diagnostics with console.warn after openclaw#165539, and failed with "Cannot trace io.runtime.js export createConfigIO to its release source". Backport of 78e8de2 (openclaw#165539) unchanged: the alias recognizer accepts the retained console.error template hash and the generator emits the current console.warn template, with its 2026.9.8 provenance fixture and tests. Then regenerate the inventory from all 13 integrity-verified npm tarballs; the 12 existing entries are byte-identical and 2026.10.5-beta.1 (f283c3c, 57 chunks) is appended. Backport of 78e8de2 (openclaw#165539) adapted for 2026.10.2 (adds the 2026.10.5-beta.1 inventory record). (cherry picked from commit 78e8de2) (cherry picked from commit 8cc1e8a) Co-authored-by: RomneyDa <[email protected]>
…e is test-only A newer train's beta cannot update to 2026.10.2 (that would be a downgrade), so recording it only scheduled a first-hop lane that exercises 10.5-beta.1's own install path. openclaw#168836's backport removed the prepack registry-coverage gate that made the entry necessary; the openclaw#165539 tracer improvement stays. (cherry picked from commit 64cec48) Co-authored-by: RomneyDa <[email protected]>
Summary
console.warnWhat Problem This Solves
The generated compatibility reader labeled these conditions as
[update:warning:*]but emitted them withconsole.error. The logging bridge therefore recorded an ERROR during a successful native update. Changing the generated template also displaced the exact alias shipped in 2026.9.8, so the compatibility recognizer must retain that published fingerprint.Evidence
[update:warning:candidate-config-read-failed]at ERROR severity in real operator-visible logs.test/scripts/update-config-runtime-compat.test.tsfailed 2/2 before the fix and passes 2/2 after it, with exact warnings and zero errors.Cannot trace io.runtime.js export createConfigIO to its release sourcebefore the follow-up and passes afterward.check-changed: every changed-file lane passed except the unrelated repository-wide dead-export scan, which reports existing unused exports outside this diff.../codex/codex-rs/exec/src/cli.rs:67,../codex/codex-rs/exec/src/lib.rs:818, and../codex/codex-rs/exec/src/event_processor.rs:31.Production LOC
Net zero production lines (+8/-8). Test and frozen-fixture coverage: +159/-4.
Operator-visible before/after
Before: a warning-coded optional config fallback appeared as an ERROR even when the update later succeeded.
After: the same diagnostic remains visible as a warning, while the error codes, thrown failures, fallback behavior, and exact historical ownership guard remain unchanged.