Skip to content

refactor(config): share issue-location container scanning - #149099

Merged
vincentkoc merged 2 commits into
mainfrom
refactor/config-issue-container-scan-20260915
Sep 18, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
refactor/config-issue-container-scan-20260915

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Maintainer-requested internal cleanup removes duplicated object and array traversal from the configuration issue-location scanner.

User Impact

No user-visible behavior change. Nested values, comments, quoted strings, cursor positions, and malformed-input stopping rules keep their existing behavior.

Why This Change Was Made

Share the container loop while retaining object-only key and colon handling and the matching closing delimiter. Production changes by −15 lines; tests add 33 lines.

Evidence

  • Full source and independent peer review passed; autoreview reported no findings. Targeted formatting and diff checks passed on the exact signed changes.
  • Existing scanner coverage and the added public cases are pending runtime validation. Hosted CI is pending.
  • Fixed-scope static score: 32.79453005944482 → 30.991159779008974; duplicate lines 18 → 12. The high-complexity function count is unchanged. This is code-structure evidence, not a runtime or performance result.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 12:40
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 7:05 PM ET / 23:05 UTC (Revision 4).

ClawSweeper review

What this changes

Shares object and array scanning in configuration error diagnostics and adds coverage for locating errors after mixed nested containers.

Merge readiness

✅ Ready for maintainer review

The cleanup remains useful: current main retains duplicated traversal, and no introduced correctness defect was found. This maintainer-authored, protected PR should remain open for normal landing.

Priority: P3
Reviewed head: 586b3886e94b6b3e3be7a18872205f0735f57256

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving simplification with useful public-output coverage and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored internal scanner refactor is exempt from the external-contributor proof gate and changes no authority boundary. Public-renderer tests cover mixed nesting, but runtime validation was not executed during this read-only review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored internal scanner refactor is exempt from the external-contributor proof gate and changes no authority boundary. Public-renderer tests cover mixed nesting, but runtime validation was not executed during this read-only review.
Evidence reviewed 6 items Introduced behavior preserves traversal: The shared loop retains matching closing delimiters, object-only key and colon parsing, recursive value scanning, trivia handling, and comma advancement. No new parsing or authorization policy is introduced.
Current main still contains separate loops: The fetched main revision still handles objects and arrays in separate branches; this structural cleanup has not already landed there.
Latest release comparison: The supplied latest release, v2026.9.4, also retains separate object and array loops. Its source was inspected through GitHub after the local release-blob read failed.
Findings None None.
Security None None.

How this fits together

Configuration diagnostics combine validation paths with raw configuration text to identify source lines. CLI and startup error reporting consume the resulting messages, including safely filtered received values.

flowchart LR
  A[Raw configuration text] --> C[Source location scanner]
  B[Validation issue paths] --> C
  C --> D[Shared container traversal]
  D --> E[Source line]
  E --> F[Diagnostic renderer]
  F --> G[CLI and startup errors]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -15, Tests +33. Total +18 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 4 19 -15
Tests 1 33 0 +33
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 37 19 +18

Review metrics

None.

Technical review

Best possible solution:

Keep one private container traversal loop while preserving source locations, malformed-input behavior, and received-value filtering.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR removes duplication rather than reporting a behavior defect; source inspection confirms the duplication on current main.

Is this the best way to solve the issue?

Yes. Sharing the existing loop preserves container-specific decisions without adding another scanner or changing the public diagnostic contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against aa6d12cc1041.

Labels

Label justifications:

  • P3: This is a bounded internal cleanup with no intended user-visible behavior change.
  • 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: The MEMBER-authored internal scanner refactor is exempt from the external-contributor proof gate and changes no authority boundary. Public-renderer tests cover mixed nesting, but runtime validation was not executed during this read-only review.

Evidence

What I checked:

  • Introduced behavior preserves traversal: The shared loop retains matching closing delimiters, object-only key and colon parsing, recursive value scanning, trivia handling, and comma advancement. No new parsing or authorization policy is introduced. (src/config/issue-location.ts:97, 586b3886e94b)
  • Current main still contains separate loops: The fetched main revision still handles objects and arrays in separate branches; this structural cleanup has not already landed there. (src/config/issue-location.ts:97, aa6d12cc1041)
  • Latest release comparison: The supplied latest release, v2026.9.4, also retains separate object and array loops. Its source was inspected through GitHub after the local release-blob read failed. (src/config/issue-location.ts:97, 3a9d69db306c)
  • Public diagnostic coverage: Both added cases exercise the exported renderer and require the target value to appear on line 6 after nested objects, arrays, comments, and delimiter-containing strings. Existing coverage also checks literal keys and received-value suppression. Tests were inspected, not executed. (src/config/issue-location.test.ts:323, 586b3886e94b)
  • Review continuity: Neither reviewed file changed from the previous reviewed head. The supplied completed review contains no findings or published rank-up moves; the retrieved human comments request re-review without additional behavioral requirements. (586b3886e94b)
  • Relevant merged history: File history identifies prior diagnostic work by Peter Steinberger and Erick Kinnee. The supplied merged PRs fix(config): render actionable validation errors #124763 and fix(config): preserve literal keys in validation diagnostics #145724 establish surrounding renderer and literal-key behavior, but neither supersedes this container-loop cleanup. Detailed local blame was unavailable, so routing does not claim verified line introduction. (src/config/issue-location.ts, aa6d12cc1041)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • ekinnee: 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 (3 earlier review cycles)
  • reviewed 2026-09-15T13:00:00.892Z sha 9666207 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-16T03:13:54.015Z sha 9666207 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T22:25:39.680Z sha 9666207 :: needs maintainer review before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

…pr-149099-main-20260918

* commit '795e460278d4f8f41545dc8b4a66da1d12defd90': (1902 commits)
  refactor(slack): share Markdown preparation (#149129)
  fix(tooling): release completed PR operations with exited loaders (#152209)
  fix(release): allow stable npm bootstrap under an operator soak waiver (#152206)
  fix(daemon): avoid false restart timeouts during slow startup (#151387)
  feat: read agent documents from a host-owned workspace (#150584)
  improve(startup): skip redundant single-agent directory checks (#152192)
  test(ui): await board widget readiness before size reports (#152198)
  perf(browser): move dashboard event discovery to SQLite worker (#151952)
  improve(auth): reduce pauses during concurrent credential reads (#152140)
  improve(ui): load older chat history in smaller pages (#152093)
  fix(release): reject incomplete legacy npm install trees (#152186)
  refactor: share current-conversation binding row serialization (#152134)
  test(tooling): preserve Node and terminal fixture ownership under Bun (#152187)
  fix(sqlite): service worker admission through retained path aliases (#152190)
  improve: reduce CPU work for long CLI reasoning streams (#152191)
  chore(ui): refresh control ui locales (#152196)
  test(subagents): align lifecycle retries with durable completion owners (#152184)
  perf(gateway): defer participant maps for owned sessions (#152097)
  refactor(stream): share auxiliary queue overflow handling (#149282)
  fix(test): execute CLI fixture preloads on Node and Bun (#152076)
  ...
@vincentkoc
vincentkoc merged commit 5a44108 into main Sep 18, 2026
406 of 408 checks passed
@vincentkoc
vincentkoc deleted the refactor/config-issue-container-scan-20260915 branch September 18, 2026 23:29
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 18, 2026
…rent-main-20260918

* origin/main: (1925 commits)
  fix(ui): preserve person picker selection and profile photos (#152194)
  feat(meetings): summarize meetings during live capture (#151957)
  refactor(watch): share delivery status text formatting (#152228)
  fix(skills): detach idle reviews from foreground plugin scope (#152235)
  fix(mcp): stop cancelled question tests leaking into later cases (#152215)
  fix: show pasted text as compact chat chips (#151618)
  refactor(config): share diagnostic container scanning (#149099)
  fix(whatsapp): admit debounce candidates independently (#112001)
  fix(release): qualify 2026.7.34 frozen SDK (#152230)
  fix(sessions): notify Home about new sessions by default (#152068)
  fix(ui): open workspace links with spaces and emoji (#152179)
  fix(update): reconcile completed updates after interrupted verification (#152202)
  fix: reduce repeated update validation for large agent fleets (#151678)
  docs: clarify WebChat commentary attachment compatibility (#152225)
  fix(worktrees): keep provisioning inspection under the Git output cap (#150532)
  fix(ui): unify fullscreen widget menu typography (#152223)
  test(gateway): synchronize unstable task registry scans (#152213)
  fix: restore automation creation for remote administrators (#151291)
  improve: defer internal agent-turn execution imports until use (#151935)
  fix(agents): resume private child results in channel conversations (#152207)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant