Repository navigation
refactor(config): share documentation wildcard traversal - #149094
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. |
|
Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 3:58 PM ET / 19:58 UTC (Revision 6). ClawSweeper reviewWhat this changesThe branch extracts a private wildcard visitor for configuration documentation and expands renderer coverage for map, array, and tuple metadata. Merge readiness✅ Ready for maintainer review Keep open. Current main still has the repeated traversal, and the maintainer-sponsored PR remains a distinct, well-supported cleanup with no identified blocking defect. Priority: P3 Review scores
Verification
How this fits togetherThe configuration documentation generator reads assembled core, channel, and plugin schemas with UI hints. It turns their fields into sorted baseline artifacts used by documentation drift checks. flowchart LR
A[Core and bundled plugin schemas] --> C[Config schema metadata]
B[UI hints] --> C
C --> D[Documentation traversal]
D --> E[Sorted baseline entries]
E --> F[JSON and hash artifacts]
F --> G[Docs drift check]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -5, Tests +86. Total +81 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep schema-to-document output byte-stable, with one private owner for wildcard recursion and renderer-level coverage of optionality and merged metadata. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR addresses duplication rather than a reported bug; the renderer fixture and submitted output comparison check behavior preservation. Is this the best way to solve the issue? Yes. A private visitor within the JSON-schema documentation owner is narrower than reusing the separate Zod-schema walker. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 510d72b2efec. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Integrate the frozen main baseline while preserving the documentation wildcard extraction and its public renderer coverage.
|
@clawsweeper re-review Resuming the maintainer landing at 029d2d2. The refresh preserved the reviewed two-file patch, the touched main files are unchanged, and exact-head CI is green. Focused owner and renderer evidence remains in the PR description. Please refresh the completed review against current main; no repair or additional test run is requested. |
|
🦞👀 Re-review progress:
|
* commit '926bb1e1d75c6b102bcbf93114c690312c23cf18': (2027 commits) refactor(matrix): reuse startup verification account key (#157310) perf(config): avoid repeated environment scans during publication (#156457) chore(i18n): refresh native locales (#157495) fix(update): show quiet step progress and date recorded outcomes (#153407) feat(gateway): preserve browser sign-in requirements before connecting (#157454) test(scripts): await CLI admission fixture lifetimes (#157424) fix(ci): preserve consumer selection across core type stripes (#157373) fix(wizard): preserve typed plugin enum values (#127577) (#138090) fix(qa): title mock Code Mode fixture calls refactor: simplify SQLite worker lifecycle and test fixtures (#157458) test: prebuild run-node signal fixture (#157478) refactor(exec): reuse approval policy rule keys (#157198) fix(ci): reuse prepared runtime for changed-target E2E shards (#157365) fix(config): apply Gateway writes without waiting for file events (#157372) fix: count recorded nested tool operations once (#157438) fix(telegram): stop leaking raw file:// markdown links in messages (#137810) refactor(claws): share resource capability changes (#154680) improve(channels): reduce redundant preparation for button messages (#157050) fix(build): package preparation fails on unrelated test types (#157318) refactor(claws): share bounded document reading (#157436) ...
|
Merged via squash.
|
* refactor(config): share config doc wildcard traversal * refactor(config): refresh wildcard traversal on frozen main Integrate the frozen main baseline while preserving the documentation wildcard extraction and its public renderer coverage. * chore: merge main for config doc validation * commit 'e0f58a77476acbe382bff5e55cd520e9d228d478': (2027 commits) refactor(matrix): reuse startup verification account key (openclaw#157310) perf(config): avoid repeated environment scans during publication (openclaw#156457) chore(i18n): refresh native locales (openclaw#157495) fix(update): show quiet step progress and date recorded outcomes (openclaw#153407) feat(gateway): preserve browser sign-in requirements before connecting (openclaw#157454) test(scripts): await CLI admission fixture lifetimes (openclaw#157424) fix(ci): preserve consumer selection across core type stripes (openclaw#157373) fix(wizard): preserve typed plugin enum values (openclaw#127577) (openclaw#138090) fix(qa): title mock Code Mode fixture calls refactor: simplify SQLite worker lifecycle and test fixtures (openclaw#157458) test: prebuild run-node signal fixture (openclaw#157478) refactor(exec): reuse approval policy rule keys (openclaw#157198) fix(ci): reuse prepared runtime for changed-target E2E shards (openclaw#157365) fix(config): apply Gateway writes without waiting for file events (openclaw#157372) fix: count recorded nested tool operations once (openclaw#157438) fix(telegram): stop leaking raw file:// markdown links in messages (openclaw#137810) refactor(claws): share resource capability changes (openclaw#154680) improve(channels): reduce redundant preparation for button messages (openclaw#157050) fix(build): package preparation fails on unrelated test types (openclaw#157318) refactor(claws): share bounded document reading (openclaw#157436) ... Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Configuration-document generation repeats the same wildcard traversal policy in map, single-item array, and tuple branches.
User Impact
No user-visible change. Generated configuration documentation, ordering, optionality, and metadata stay unchanged. There are no config/default, stored-data, schema, migration, or upgrade-contract changes and no required operator action.
Why This Change Was Made
One private visitor now owns that repeated recursion; the existing schema guards, caller order, shared visited set, and metadata merging stay in place. A broader exported walker would mix different schema responsibilities. Production code: +10/-15, net -5. Tests: +87/-1, net +86.
I confirm that this specific config-document wildcard cleanup is requested work in my active maintainer cleanup campaign, and I accept its standalone scope.
The signed main integration preserves the earlier PR head and this two-file proposal. It incorporates the already-landed dependency and Windows-test fixes needed by current CI composition. New-head validation below replaces reliance on the older head's CI.
Evidence
Candidate
8645eb134dbbe78c3770a36954bcc89145b82bb6, frozen comparison main926bb1e1d75c6b102bcbf93114c690312c23cf18:pnpm check:changed --base origin/main --timedpassed, including formatting, lint, config-document baseline validation, core production types, the config-cli test graph, and the remaining selected guards.Timing: Linux x64, Node 24.19.0, pnpm 12.4.2, one worker. Baseline expanded-unit command: 16.657s wall. Candidate unit-plus-integration command: 17.746s wall, covering both files together. Setup/transforms are included; provisioning and dependency installation are excluded. These sequential samples do not establish a speedup, isolated candidate-unit cost, or incremental hosted-CI cost.
Remote proof: delegated Testbox run. Its backing Actions step may show cancellation during normal delegated lease cleanup; the actual proof command and lease closeout are the evidence above.
Pending: fresh exact-head hosted CI, required status projections, and ClawSweeper review. Local/remote focused proof and a pending publication receipt do not satisfy those landing gates. The wrapper retained an unavailable staging-discovery cursor; no broader staging-cleanup claim is made.