Skip to content

fix(release): distinguish CSS colors from issue references - #132075

Merged
steipete merged 1 commit into
mainfrom
steipete/release-notes-parser-20260828
Aug 28, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/release-notes-parser-20260828

Conversation

@steipete

@steipete steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where release-note verification treated CSS hex colors in commit messages as issue references, causing false unresolved-reference and contributor-credit errors. The actual palette-change commit a868258 produced seven references instead of its single PR reference.

Why This Change Was Made

Use one canonical scanner for reference numbers, labels, and editorial checks. Exclude only immediate CSS custom-property hex values and explicit color transitions; retain genuine references later on the same line, qualified references, and references inside Markdown/code. This replaces duplicated scanners and editorial regexes. The release-only workaround discarded legitimate later references and is superseded by this repair.

No dependencies, configuration, versions, tags, release selectors, publication, or changelog generation changes. This is a bounded maintainer-requested release-tooling repair. AI-assisted.

User Impact

Maintainers can verify release history containing CSS color descriptions without losing actual issue references or attributing colors to contributors. Unmarked positive numeric hashes remain issue references; this deliberately does not attempt to parse arbitrary CSS.

Evidence

Before the repair, the actual commit body returned [130239,262624,1,0,80808,262624,1]; now it returns [130239]. --bg #262624 (fixes #123) now returns [123]; the earlier release-only workaround returned no references. A separate complete-module probe compares frozen main, the release workaround, and this source across the real commit body and same-line, qualified, numeric-length, and inline/fenced-code preservation scenarios; all five fixed-source scenarios pass.

node scripts/run-vitest.mjs test/scripts/verify-release-notes.test.ts test/scripts/release-notes-ledger.test.ts

54 tests passed (41 verifier, 13 ledger), including four real CLI subprocess cases. The new scanner regressions failed on unchanged production; the new editorial regression separately reproduced false eligibility/credit errors before repair. Scoped formatting, lint, syntax, and test type checks passed. Fresh complete-diff Codex autoreview reported no accepted/actionable findings at its default P0 threshold; no source changes followed review.

Local full changed-gate proof is not claimed: the inherited dependency installation is stale and its pinned pnpm launcher is missing. Hosted CI must provide the dependency-correct gates before native landing. No dependencies were patched to accommodate the host.

Production tooling: +26/-32 (net -6). Tests: +90/-0. Removed one duplicate extraction loop, two editorial regex checks, and one duplicate line loop. CSS hex lengths follow the CSS Color specification.

Provenance: the decimal-prefix scanner originates in f684527 (Vincent Koc, June 17); later repository qualification and entity handling retained it. The duplicate label scanner was added in #103222. Existing malformed closing-keyword tokenization is a named follow-up: closingReferencesIn can truncate fixes #123abc before canonical scanning. This repair covers color/reference ownership without changing closing-keyword syntax.

Exact-head hosted CI completed successfully on f0239cdddb64a911a7b61df7a7b787d19fa00100: CI33206642775, attempt 1. The draft-skipped run is excluded. Native maintainer review artifacts validated; hosted prepare/merge gates remain mandatory.

Use one token-aware scanner for release history, contribution labels, and editorial checks. Keep legitimate issue references after CSS custom-property colors instead of discarding the rest of their line.
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 28, 2026
@steipete
steipete marked this pull request as ready for review August 28, 2026 20:04
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 4:13 PM ET / 20:13 UTC.

ClawSweeper review

What this changes

The PR makes release-note reference parsing ignore CSS custom-property hex colors while retaining real issue and pull-request references.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open. The focused repair remains necessary: fetched current main still uses the duplicate permissive scanners, while this branch centralizes parsing and covers the CSS-color false-reference case without a blocking defect found.

Priority: P2
Reviewed head: f0239cdddb64a911a7b61df7a7b787d19fa00100

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-negative production repair with behavior-oriented coverage and no blocking source finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored release-tooling PR is exempt from the external-contributor proof gate; its supplied focused test evidence aligns with the reviewed scanner and ledger paths.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored release-tooling PR is exempt from the external-contributor proof gate; its supplied focused test evidence aligns with the reviewed scanner and ledger paths.
Evidence reviewed 7 items Introduced canonical scanner: The PR masks only custom-property color values, then routes local references through one token-aware scanner.
Owner and callers checked: The scanner supplies reference collection for source commits and the CLI entry point invokes ledger validation after assembling the release data.
Ledger paths use the same semantics: Editorial eligibility and contributor-credit checks now derive their references from the canonical parser rather than separate permissive regular expressions.
Findings None None.
Security None None.

How this fits together

Release tooling scans changelog and commit text to build contribution records and validate editorial credits before publication. This scanner feeds reference resolution, generated records, and credit checks.

flowchart LR
A[Commit and changelog text] --> B[Release reference scanner]
B --> C{Custom-property hex color?}
C -->|yes| D[Mask color token]
C -->|no| E[Retain source text]
D --> F[Parse issue references]
E --> F
F --> G[Ledger and credit validation]
Loading

Before merge

  • Complete next step (P2) - This maintainer-owned PR already contains the focused repair; no separate repair job is appropriate.
Agent review details

Security

None.

PR surface

Tests +90, Other -6. Total +84 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 90 0 +90
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 26 32 -6
Total 2 116 32 +84

Review metrics

Metric Value Why it matters
Production versus tests production +26/-32 (net -6); tests +90/-0 The repair removes duplicated production scanning and ledger loops while adding focused regression cases.

Technical review

Best possible solution:

Land the single canonical scanner and its focused behavioral tests after the exact-head required checks complete.

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

Yes—at source level: current main’s scanner accepts decimal prefixes inside CSS hex values, and the changed parser masks those custom-property values before reference collection. This read-only review did not execute the repository test command.

Is this the best way to solve the issue?

Yes. Routing extraction and editorial checks through one parser removes the duplicate policy that caused the false references while preserving legitimate references later on the same line.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded release-tooling correctness repair with limited operator blast radius.
  • 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-authored release-tooling PR is exempt from the external-contributor proof gate; its supplied focused test evidence aligns with the reviewed scanner and ledger paths.

Label justifications:

  • P2: This is a bounded release-tooling correctness repair with limited operator blast radius.
  • 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-authored release-tooling PR is exempt from the external-contributor proof gate; its supplied focused test evidence aligns with the reviewed scanner and ledger paths.

Evidence

What I checked:

Likely related people:

  • steipete: Authored this repair and the earlier merged verifier work in fix(release): validate GitHub notes before publish #103222. (role: recent release-tooling contributor; confidence: high; commits: f0239cdddb64, 31f76b97923e; files: .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs)
  • Vincent Koc: The earlier complete-contribution verification feature dates to the scanner-origin commit. (role: feature introducer; confidence: medium; commits: f684527085eb; files: .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs)
  • Patrick Erichsen: Blame attributes the retained scanner and ledger structure surrounding this change to the preceding current-path revision. (role: recent current-path contributor; confidence: medium; commits: 3a84b9fa3cc7; files: .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs)

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.

@steipete steipete self-assigned this Aug 28, 2026
@steipete
steipete merged commit 02a162b into main Aug 28, 2026
271 checks passed
@steipete
steipete deleted the steipete/release-notes-parser-20260828 branch August 28, 2026 20:40
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
…132075)

Use one token-aware scanner for release history, contribution labels, and editorial checks. Keep legitimate issue references after CSS custom-property colors instead of discarding the rest of their line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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