Skip to content

fix(update): log config fallback diagnostics as warnings - #165539

Merged
Patrick-Erichsen merged 2 commits into
mainfrom
codex/fix-update-warning-severity
Oct 6, 2026
Merged

Patrick-Erichsen merged 2 commits into
mainfrom
codex/fix-update-warning-severity

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • route candidate config fallback diagnostics through console.warn
  • preserve the exact shipped 2026.9.8 alias fingerprint used by update-compatibility inventory generation
  • keep changed delegation, binding, and target aliases rejected

What Problem This Solves

The generated compatibility reader labeled these conditions as [update:warning:*] but emitted them with console.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

  • Live reproduction: the 2026-10-05 and 2026-10-06 Work updates succeeded, but their restart windows recorded [update:warning:candidate-config-read-failed] at ERROR severity in real operator-visible logs.
  • Warning severity before/after: test/scripts/update-config-runtime-compat.test.ts failed 2/2 before the fix and passes 2/2 after it, with exact warnings and zero errors.
  • Shipped-alias reproduction before/after: the frozen 2026.9.8 alias failed with Cannot trace io.runtime.js export createConfigIO to its release source before the follow-up and passes afterward.
  • Provenance guard: 11 focused cases pass, including exact 2026.9.8 acceptance plus rejection of changed delegation, binding, and target aliases.
  • check-changed: every changed-file lane passed except the unrelated repository-wide dead-export scan, which reports existing unused exports outside this diff.
  • AutoReview: scoped clean at P2 after the provenance repair.
  • Codex contract checked directly: ../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.

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper autofix

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🔧
ClawSweeper autofix is enabled.

This is fix-only; I will not merge this PR.

@clawsweeper clawsweeper Bot added the clawsweeper:autofix Maintainer opted this PR into bounded ClawSweeper-reviewed autofix without merge label Oct 5, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 5, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 5, 2026
@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed. Reviewed October 6, 2026, 7:24 AM ET / 11:24 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 8154cd2000618768383eb5f2d536fa7496f759c2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with the prior blocker addressed and meaningful boundary coverage; runtime tests were not independently executed.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository State identifies a MEMBER author, so the external-contributor proof gate does not apply. Source and inspected regressions cover generated warning calls and published-alias tracing; the body’s live observations concern before-fix logging. No authority or stored-data contract changes are introduced.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository State identifies a MEMBER author, so the external-contributor proof gate does not apply. Source and inspected regressions cover generated warning calls and published-alias tracing; the body’s live observations concern before-fix logging. No authority or stored-data contract changes are introduced.
Evidence reviewed 9 items Introduced change: Read the pinned merge-base-to-head diff. Production changes are confined to two console severity calls and exact historical alias recognition; process execution, error codes, thrown failures, and fallback behavior are unchanged.
Previous finding resolved: The recognizer retains the previous historical fingerprint and adds dc8d98455b7518b7eb4f4777dee6c089d2524a7e8f9dba4b5866ec551ec03931. Independently hashing the frozen fixture after normalizing the target and excluding generated bindings produced exactly that new fingerprint. Exact target and generated-binding checks remain mandatory.
Inventory boundary coverage: The added cases pass the frozen alias through the production compatibility inventory recorder, checking source attribution for the exact alias and rejection of changed delegation, binding, and target variants. These tests were inspected, not executed.
Findings None None.
Security None None.

How this fits together

During 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +155, Other 0. Total +155 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 159 4 +155
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 8 8 0
Total 4 167 12 +155

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository State identifies a MEMBER author, so the external-contributor proof gate does not apply. Source and inspected regressions cover generated warning calls and published-alias tracing; the body’s live observations concern before-fix logging. No authority or stored-data contract changes are introduced.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Misleading error severity during successful updates is a bounded operator-diagnostics bug.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository State identifies a MEMBER author, so the external-contributor proof gate does not apply. Source and inspected regressions cover generated warning calls and published-alias tracing; the body’s live observations concern before-fix logging. No authority or stored-data contract changes are introduced.

Evidence

What I checked:

  • Introduced change: Read the pinned merge-base-to-head diff. Production changes are confined to two console severity calls and exact historical alias recognition; process execution, error codes, thrown failures, and fallback behavior are unchanged. (scripts/lib/update-config-runtime-compat.mts:123, 8154cd200061)
  • Previous finding resolved: The recognizer retains the previous historical fingerprint and adds dc8d98455b7518b7eb4f4777dee6c089d2524a7e8f9dba4b5866ec551ec03931. Independently hashing the frozen fixture after normalizing the target and excluding generated bindings produced exactly that new fingerprint. Exact target and generated-binding checks remain mandatory. (scripts/lib/update-config-runtime-compat.mts:55, 8154cd200061)
  • Inventory boundary coverage: The added cases pass the frozen alias through the production compatibility inventory recorder, checking source attribution for the exact alias and rejection of changed delegation, binding, and target variants. These tests were inspected, not executed. (test/scripts/runtime-postbuild.test.ts:1351, 8154cd200061)
  • Logging owner confirms severity effect: OpenClaw’s console capture forwards console.warn to the warning logger and console.error to the error logger. Its special error-to-warning normalization concerns native Node process warnings, so it does not already solve these update diagnostics. (src/logging/console.ts:323, 8154cd200061)
  • Still necessary on main and release: Inspected this module at fetched main ba41a18 and latest release commit fc23bc8. Both retain console.error for the two warning-coded conditions; the requested severity repair is therefore not already present in either inspected revision. (scripts/lib/update-config-runtime-compat.mts:123, ba41a1833754)
  • Discussion and validation claims: The captured PR body and re-review comment report before/after severity regressions, successful frozen-alias provenance coverage, and scoped checks. The live operator observations describe the original severity problem; they do not independently demonstrate after-fix production logging. No tests or target-bundled review helpers were executed during this review. (8154cd200061)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-05T11:14:32.653Z sha 5314278 :: blocked before merge. :: [P2] Preserve recognition of the previously shipped alias template

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🔧
ClawSweeper picked up the repair feedback.

Source: clawsweeper[bot]
Feedback: structured ClawSweeper needs-human verdict with repairable P-severity findings (sha=531427859a2702555b7cc6619c73b1e1018f19f2)
Action: repair worker queued. Run: https://github.com/openclaw/clawsweeper/actions/runs/37310791107

I will update this PR branch, or open a safe credited replacement, if the repair worker finds a narrow fix.

Automerge progress:

  • 2026-10-05 11:15:33 UTC review requested repair 531427859a27 (structured ClawSweeper needs-human verdict with repairable P-severity finding...)

@chessing234 chessing234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@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.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper assist is taking a look at your question.

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.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the P2 finding at head 8154cd2000618768383eb5f2d536fa7496f759c2: 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

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 6, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit 78e8de2 into main Oct 6, 2026
136 of 142 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/fix-update-warning-severity branch October 6, 2026 11:27
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
…5539)

* fix(update): log config fallback diagnostics as warnings

* fix(update): preserve 2026.9.8 alias provenance
RomneyDa pushed a commit that referenced this pull request Oct 11, 2026
[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)
RomneyDa added a commit that referenced this pull request Oct 11, 2026
…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.
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Oct 22, 2026
…#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]>
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Oct 22, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:autofix Maintainer opted this PR into bounded ClawSweeper-reviewed autofix without merge P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants