Skip to content

refactor(config): split schema help metadata - #110218

Merged
steipete merged 1 commit into
mainfrom
maint/max-lines-schema-help
Jul 17, 2026
Merged

steipete merged 1 commit into
mainfrom
maint/max-lines-schema-help

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The grandfathered max-lines suppression on config field-help metadata hides an oversized, frequently edited module and makes unrelated config-help changes harder to review and merge.

Why This Change Was Made

This maintainer-requested cleanup splits the existing field-help entries into five cohesive metadata maps, then recomposes them in their original order through the existing FIELD_HELP export. It removes the file suppression and ratchet baseline entry without changing config keys, help text, or runtime behavior.

User Impact

No user-visible behavior changes. Maintainers get smaller ownership units for config help text and one fewer grandfathered max-lines exception.

Evidence

  • node scripts/run-vitest.mjs src/config/schema.help.quality.test.ts src/config/plugins-runtime-boundary.test.ts src/config/talk-defaults.test.ts test/scripts/check-max-lines-ratchet.test.ts — 4 files, 40 tests passed across 2 shards.
  • node scripts/check-changed.mjs -- config/max-lines-baseline.txt src/config/schema.help.ts src/config/schema.help.core.ts src/config/schema.help.runtime.ts src/config/schema.help.models.ts src/config/schema.help.agents.ts src/config/schema.help.automation.ts — max-lines ratchet, conflict checks, dependency guards, and formatting passed. The wrapper later stopped at unrelated Plugin SDK API baseline drift; this PR does not touch that surface.
  • git diff --check — passed.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted — clean; no accepted/actionable findings.

AI-assisted; maintainer reviewed the complete moved metadata and surrounding consumers/tests.

@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Jul 17, 2026
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 17, 2026
@clawsweeper

clawsweeper Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 6:56 PM ET / 22:56 UTC.

Summary
The branch splits FIELD_HELP metadata into five cohesive config-help modules, recomposes the existing export, and removes its max-lines baseline exemption.

PR surface: Source +27, Other -1. Total +26 across 7 files.

Reproducibility: not applicable. This PR addresses module size and reviewability rather than a reported runtime failure. The relevant verification is source-level equivalence of the recomposed help metadata.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: database schema: src/config/schema.help.core.ts, migration/backfill/repair: src/config/schema.help.core.ts, unknown-data-model-change: src/config/schema.help.agents.ts, unknown-data-model-change: src/config/schema.help.automation.ts, unknown-data-model-change: src/config/schema.help.core.ts, unknown-data-model-change: src/config/schema.help.models.ts, and 4 more. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Confirm the recomposed FIELD_HELP export matches the prior keys, strings, and insertion order against the current merge base.

Risk before merge

  • [P1] The refactor is safe only if the aggregate preserves every prior key, help string, and insertion order; the supplied summary and focused checks are positive, but a complete current-head equivalence review was not available here.

Maintainer options:

  1. Decide the mitigation before merge
    Land only after a maintainer confirms that the aggregate export preserves the former metadata map exactly and that the final current-base diff remains behavior-neutral.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] The protected maintainer label and required exact-equivalence confirmation make this a human merge-review item rather than an automated repair candidate.

Maintainer decision needed

  • Question: Should the maintainer accept this behavior-preserving schema-help split after confirming exact aggregate equivalence against the current base?
  • Rationale: The protected maintainer label requires explicit human handling, and the review environment could not complete the required full source and history comparison.
  • Likely owner: steipete — They authored the stated maintainer-requested refactor and are the clearest available routing candidate from the supplied context.
  • Options:
    • Confirm equivalence and merge (recommended): Verify that all help keys, strings, and aggregate ordering match the previous export, then merge the scoped cleanup.
    • Request an explicit equivalence guard: Keep the split but add a focused assertion that the recomposed map remains identical to the prior canonical metadata before merging.

Security
Cleared: The supplied diff is limited to config-help metadata relocation and a max-lines baseline entry; it shows no dependency, credential, workflow, permission, or code-execution change.

Review details

Best possible solution:

Land only after a maintainer confirms that the aggregate export preserves the former metadata map exactly and that the final current-base diff remains behavior-neutral.

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

Not applicable: this PR addresses module size and reviewability rather than a reported runtime failure. The relevant verification is source-level equivalence of the recomposed help metadata.

Is this the best way to solve the issue?

Unclear pending full equivalence inspection; splitting cohesive metadata maps is a maintainable direction if it retains the exact aggregate contract and order.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against ccaaa42f5265.

Label changes

Label changes:

  • add P3: This is a behavior-neutral maintainability cleanup with no reported user-facing regression.
  • 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: This maintainer-labeled behavior-neutral refactor is not subject to the external-contributor real-runtime-proof gate; focused automated equivalence and boundary evidence is the relevant proof.

Label justifications:

  • P3: This is a behavior-neutral maintainability cleanup with no reported user-facing regression.
  • 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: This maintainer-labeled behavior-neutral refactor is not subject to the external-contributor real-runtime-proof gate; focused automated equivalence and boundary evidence is the relevant proof.
Evidence reviewed

PR surface:

Source +27, Other -1. Total +26 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 6 2120 2093 +27
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 7 2120 2094 +26

What I checked:

  • Protected maintainer workflow: The provided live PR context includes the protected maintainer label, so this item requires explicit maintainer handling rather than automated cleanup. (3f04dc4f593d)
  • Refactor scope: The supplied PR diff moves schema-help entries from the aggregate module into five new metadata maps while retaining src/config/schema.help.ts as the aggregate surface. (src/config/schema.help.ts:1, 3f04dc4f593d)
  • Focused validation evidence: The PR body reports 40 focused tests passing, max-lines/boundary/formatting checks passing for the changed files, and a clean diff check; the supplied CI context also shows config-boundary, max-lines, dependency, production-type, and real-behavior-proof checks succeeding. (src/config/schema.help.quality.test.ts:1, 3f04dc4f593d)
  • Review-policy read status: A full local read of the target AGENTS.md and required review skills was attempted, but the read-only execution sandbox failed before command execution; this prevents a high-confidence source/history verdict. (AGENTS.md:1, ccaaa42f5265)

Likely related people:

  • steipete: Authored the sole branch commit and describes the change as maintainer-requested; full feature-history attribution was unavailable in this review environment. (role: refactor author and likely follow-up owner; confidence: low; commits: 3f04dc4f593d; files: src/config/schema.help.ts, src/config/schema.help.core.ts, src/config/schema.help.runtime.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head 3f04dc4f593d82b90d37b9f06bdf0458e5f6aa43:

  • node scripts/run-vitest.mjs src/config/schema.help.quality.test.ts src/config/plugins-runtime-boundary.test.ts src/config/talk-defaults.test.ts test/scripts/check-max-lines-ratchet.test.ts — 4 files, 40 tests passed across 2 shards.
  • node scripts/check-changed.mjs -- config/max-lines-baseline.txt src/config/schema.help.ts src/config/schema.help.core.ts src/config/schema.help.runtime.ts src/config/schema.help.models.ts src/config/schema.help.agents.ts src/config/schema.help.automation.ts — max-lines ratchet, conflict, dependency, and format checks passed on Testbox run 29618953518; the wrapper then stopped at unrelated Plugin SDK API baseline drift on an untouched surface.
  • git diff --check — passed.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted — clean; no accepted/actionable findings.
  • Exact-head CI run 29619174721 — green, including max-lines ratchet, config boundary, types, lint, build, and test shards.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 110218 — hosted exact/recent-parent gates passed; changelog correctly not required.

No remaining proof gaps for this behavior-neutral refactor.

@steipete
steipete merged commit efd76b7 into main Jul 17, 2026
154 of 158 checks passed
@steipete
steipete deleted the maint/max-lines-schema-help branch July 17, 2026 23:02
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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: XL 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