Skip to content

refactor: use authored configuration metadata without field badges - #149162

Merged
Patrick-Erichsen merged 4 commits into
mainfrom
codex/claw-877-authored-config-metadata
Sep 16, 2026
Merged

Patrick-Erichsen merged 4 commits into
mainfrom
codex/claw-877-authored-config-metadata

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Configuration fields currently show category badges inferred from their names. This change carries authored metadata directly and removes those field badges while retaining authored-tag search. Configuration values, defaults, validation, sensitivity and advanced hints are unchanged.

The shared security consumer still recognizes whitespace-padded and mixed-case URL-secret tags. The inferred-tag module and unused form styles are removed: production +29/−270 (net −241). There is no persistent data-model, storage, configuration-value or migration change.

Validation

  • Schema, snapshot redaction/restoration and documentation-baseline suites: 103 tests passed after rebasing onto b2a9dc036c3e.
  • Schema and hint suites: 99 tests passed after moving the complete authored-metadata regression into the existing hint suite. The line-cap ratchet now passes without losing assertions.
  • Canonical documentation-baseline generator/check and formatting/diff checks pass.
  • Fresh scoped P0 reviews of the rebased change and final test relocation are clean. Exact-head hosted CI is complete and green, including required openclaw/ci-gate.
  • Original paired schema proof preserves the complete JSON schema and non-tag metadata; the UI comparison uses the same synthetic Gateway, values and theme. Both embedded images were re-opened and verified to render on GitHub.
Before After
Before: inferred field badges After: authored metadata without field badges

Review disposition

The ClawSweeper URL-secret finding and rank-up move are addressed at the shared security consumer, with schema→redaction→restoration regression coverage. Authored presentation metadata changes; value/default/validation and persistence contracts do not. Rebase conflicts were resolved against current owners, and an obsolete, unrelated subprocess-fixture cleanup was dropped because main now owns that implementation.

Tracks CLAW-877, within CLAW-860.

The requested ClawSweeper refresh failed in its input scanner before review. The older URL-secret finding and rank-up are addressed above; fresh independent source review and scoped autoreview passed. No new ClawSweeper verdict is claimed.

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

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

ClawSweeper will not retry this unchanged revision.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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: blocked before merge. Reviewed September 15, 2026, 1:13 PM ET / 17:13 UTC (Revision 5).

ClawSweeper review

What this changes

The PR removes inferred configuration tags and field badges, preserves authored-tag search, updates documentation and regression expectations, and switches a QA subprocess fixture to its lightweight test API.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 7 items remain

Keep open: the visual cleanup is useful and demonstrated, but the previously reported credential-redaction regression remains unresolved. Current main still retains tag normalization, so this work is not already implemented.

Priority: P2
Reviewed head: 081ee3d8b2e54e5f30d6044a46c103a00e07c8e4

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Convincing visual proof supports a focused cleanup, but an unresolved security regression prevents merge readiness.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after captures demonstrate the changed Settings renderer removing badges while preserving displayed values in the running Control UI with a synthetic Gateway. This remains sufficient visual evidence; it does not resolve the independently source-proven redaction defect.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after captures demonstrate the changed Settings renderer removing badges while preserving displayed values in the running Control UI with a synthetic Gateway. This remains sufficient visual evidence; it does not resolve the independently source-proven redaction defect.
Evidence reviewed 8 items Introduced normalization removal: The verified merge-base-to-head diff removes applyDerivedTags from schema construction, including its trimming and lowercasing of authored tags.
Security consumer still requires exact spelling: hasSensitiveUrlHintTag uses exact includes("url-secret"); isSensitiveUrlConfigPath does not recognize an arbitrary endpoint field. These consumers are unchanged by the introduced patch.
Reachable configuration-response path: Manifest hint normalization preserves tag spelling, plugin metadata collection passes those hints through, and config.get supplies the runtime schema hints to redactConfigSnapshot. A custom endpoint with sensitive:false therefore depends on recognition of its URL-secret tag.
Findings 1 actionable finding [P1] [P1] Preserve normalized recognition of URL-secret tags
Security Needs attention Authored URL-secret tags can lose credential protection: Mixed-case or padded tags stop matching the exact security marker after schema normalization is removed, allowing custom endpoint credentials into configuration responses.

How this fits together

The configuration schema combines core and plugin metadata for Settings rendering and configuration-response redaction. Tags therefore feed both presentation and credential protection.

flowchart TD
 A[Core schema metadata] --> C[Configuration schema builder]
 B[Plugin authored hints] --> C
 C --> D[Settings forms and tag search]
 C --> E[Configuration redaction]
 F[Stored configuration] --> E
 E --> G[Gateway configuration response]
Loading

Before merge

  • [P1] Preserve normalized recognition of URL-secret tags (P1) - Removing applyDerivedTags also removes trimming and lowercasing of authored tags. A plugin's custom endpoint hint with sensitive: false and tags: [" URL-SECRET "] previously emitted url-secret; it now retains the original spelling. hasSensitiveUrlHintTag still uses exact matching, and endpoint is outside URL-path inference, so config.get can return its embedded credentials unredacted. This previously reported blocker remains: preserve normalized recognition at the shared security consumer and cover schema construction through response redaction and restoration.
  • Resolve security concern: Authored URL-secret tags can lose credential protection - Mixed-case or padded tags stop matching the exact security marker after schema normalization is removed, allowing custom endpoint credentials into configuration responses.
  • Resolve merge risk (P1) - Existing plugins using whitespace or mixed-case URL-secret tags could expose embedded credentials through configuration responses after this change.
  • Resolve merge risk (P1) - The supplied GitHub context reports merge conflicts; no pinned test-merge result is available to assess the resolved integration.
  • Complete next step (P2) - Repair URL-secret recognition and verify configuration-response redaction and restoration; resolve the reported merge conflict before landing.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P1] [P1] Preserve normalized recognition of URL-secret tags — src/config/schema.ts:509-512
  • [high] Authored URL-secret tags can lose credential protection — src/config/schema.ts:509
Agent review details

Security

Needs attention: The metadata cleanup retains a concrete credential-redaction regression; no separate supply-chain concern was found.

PR surface

Source -246, Tests +4, Docs 0, Generated 0. Total -242 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 11 23 269 -246
Tests 4 54 50 +4
Docs 1 1 1 0
Config 0 0 0 0
Generated 1 4 4 0
Other 0 0 0 0
Total 17 82 324 -242

Review metrics

None.

Stored data model

Persistent data-model change detected: unknown-data-model-change: src/config/schema.tags.ts, unknown-data-model-change: src/config/schema.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Preserve security-tag recognition (recommended)
    Repair normalized recognition in the shared security consumer and verify that custom endpoint credentials remain absent from configuration responses.

Technical review

Best possible solution:

Keep authored presentation metadata intact while making the shared URL-secret consumer recognize normalized tags, with schema-to-response redaction and restoration coverage.

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

Yes, source establishes a precise PR-head trigger: a custom endpoint marked sensitive:false with tags:[" URL-SECRET "] bypasses exact tag recognition after schema construction. No runtime reproduction or tests were executed in this read-only review.

Is this the best way to solve the issue?

No, removing presentation inference also removes normalization needed by a security consumer. Normalizing recognition at that shared consumer preserves the intended authored metadata without restoring inferred badges.

Full review comments:

  • [P1] [P1] Preserve normalized recognition of URL-secret tags — src/config/schema.ts:509-512
    Removing applyDerivedTags also removes trimming and lowercasing of authored tags. A plugin's custom endpoint hint with sensitive: false and tags: [" URL-SECRET "] previously emitted url-secret; it now retains the original spelling. hasSensitiveUrlHintTag still uses exact matching, and endpoint is outside URL-path inference, so config.get can return its embedded credentials unredacted. This previously reported blocker remains: preserve normalized recognition at the shared security consumer and cover schema construction through response redaction and restoration.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded Settings cleanup; its redaction defect is a merge blocker without evidence of an already-deployed urgent regression.
  • merge-risk: 🚨 security-boundary: Removing authored-tag normalization can prevent URL credential redaction for existing plugin hints.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): Inspected before/after captures demonstrate the changed Settings renderer removing badges while preserving displayed values in the running Control UI with a synthetic Gateway. This remains sufficient visual evidence; it does not resolve the independently source-proven redaction defect.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after captures demonstrate the changed Settings renderer removing badges while preserving displayed values in the running Control UI with a synthetic Gateway. This remains sufficient visual evidence; it does not resolve the independently source-proven redaction defect.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after captures demonstrate the changed Settings renderer removing badges while preserving displayed values in the running Control UI with a synthetic Gateway. This remains sufficient visual evidence; it does not resolve the independently source-proven redaction defect.

Evidence

Security concerns:

  • [high] Authored URL-secret tags can lose credential protection — src/config/schema.ts:509
    Mixed-case or padded tags stop matching the exact security marker after schema normalization is removed, allowing custom endpoint credentials into configuration responses.
    Confidence: 0.99

What I checked:

  • Introduced normalization removal: The verified merge-base-to-head diff removes applyDerivedTags from schema construction, including its trimming and lowercasing of authored tags. (src/config/schema.ts:509, 081ee3d8b2e5)
  • Security consumer still requires exact spelling: hasSensitiveUrlHintTag uses exact includes("url-secret"); isSensitiveUrlConfigPath does not recognize an arbitrary endpoint field. These consumers are unchanged by the introduced patch. (packages/net-policy/src/redact-sensitive-url.ts:142, 081ee3d8b2e5)
  • Reachable configuration-response path: Manifest hint normalization preserves tag spelling, plugin metadata collection passes those hints through, and config.get supplies the runtime schema hints to redactConfigSnapshot. A custom endpoint with sensitive:false therefore depends on recognition of its URL-secret tag. (src/gateway/config-get-response.ts:25, 081ee3d8b2e5)
  • Current-main necessity check: Fetched main still calls applyDerivedTags during schema construction and still uses exact URL-secret recognition. No verified merged replacement was established. (src/config/schema.ts:454, 3fc1d89b80b8)
  • Latest-release contract: The v2026.9.4 source contains applyDerivedTags and normalizes existing custom tags before emitting metadata; removing this normalization changes shipped behavior. (src/config/schema.tags.ts, 3a9d69db306c)
  • Inspected visual proof: Both prepared screenshots were inspected. The same Infrastructure settings show network badges before and no badges afterward, while retaining the displayed bind value and port 18789. This supports presentation behavior, not credential-redaction correctness.

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Preserve trimmed, case-insensitive URL-secret recognition and add schema-to-response redaction and restoration coverage for a custom endpoint.

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 (4 earlier review cycles)
  • reviewed 2026-09-15T14:30:00.391Z sha efeb7ee :: blocked before merge. :: none
  • reviewed 2026-09-15T14:48:07.588Z sha efeb7ee :: blocked before merge. :: none
  • reviewed 2026-09-15T15:08:21.708Z sha 8570beb :: blocked before merge. :: [P1] [P1] Preserve normalized recognition of URL-secret tags
  • reviewed 2026-09-15T16:06:01.044Z sha 4b4fe3d :: blocked before merge. :: [P1] [P1] Preserve normalized recognition of URL-secret tags

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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. and removed 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
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-877-authored-config-metadata branch from 4b4fe3d to 081ee3d Compare September 15, 2026 17:05
@Patrick-Erichsen Patrick-Erichsen changed the title refactor: use authored configuration tags without field badges refactor: use authored configuration metadata without field badges Sep 15, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-877-authored-config-metadata branch from 081ee3d to f5e244b Compare September 15, 2026 18:30
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Addressed the URL-secret finding and matching rank-up move in f5e244b. The shared security consumer trims and normalizes the authored tag when recognizing it; presentation metadata remains authored. The regression runs schema construction → public snapshot redaction → restoration with a custom endpoint and padded/mixed-case tag. It fails before the repair; all 170 related cases pass afterward.

The stack is rebased onto 3fc1d89, which already contains the separate QA fixture repair from #149243. This PR no longer duplicates that patch. No persistent data model, stored configuration shape, default, or migration changes: the flagged schema files build UI/protocol metadata.

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-877-authored-config-metadata branch from f5e244b to efd7eb2 Compare September 15, 2026 20:02
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-877-authored-config-metadata branch from af36ccb to 3176c52 Compare September 15, 2026 21:38
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-877-authored-config-metadata branch from 3176c52 to 83d66c9 Compare September 16, 2026 17:52
Punchcard-Session: crisp-summit-lantern-qk
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Refreshed onto current main and addressed the reported URL-secret concern at the shared consumer: padded/mixed-case tags retain redaction and restoration protection. Schema/redaction/docs tests passed (103); schema/hints tests passed after the final test-only relocation (99), and the line-cap ratchet passes. No value/default/validation or persistence contract change. Fresh scoped P0 review is clean. Hosted CI is running on e166098462c2dd8f21dc7ec026b86cf27b9c972a; updated evidence and before/after images are in the PR body.

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

@Patrick-Erichsen
Patrick-Erichsen merged commit 50c36a2 into main Sep 16, 2026
211 checks passed
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@Patrick-Erichsen
Patrick-Erichsen deleted the codex/claw-877-authored-config-metadata branch September 16, 2026 18:46
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…penclaw#149162)

* refactor: use authored configuration tags without field badges

Punchcard-Session: crisp-summit-lantern-qk

* test: align documentation metadata with authored tags

Punchcard-Session: crisp-summit-lantern-qk

* fix: preserve URL-secret tag recognition during redaction

Punchcard-Session: crisp-summit-lantern-qk

* test(config): keep authored metadata coverage with schema hints

Punchcard-Session: crisp-summit-lantern-qk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant