Skip to content

refactor(line): remove dead card helpers - #117729

Merged
steipete merged 1 commit into
mainfrom
codex/goal100k-line-private-card-prune
Aug 2, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/goal100k-line-private-card-prune

Conversation

@steipete

@steipete steipete commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The LINE plugin carried private rich-card convenience builders that had no production callers. They expanded the runtime barrel, package output, and test surface even though supported LINE commands and reply delivery used different canonical builders.

Why This Change Was Made

This removes the zero-caller image-carousel, product/menu/confirmation, generic Flex-carousel, and notification helpers at the LINE plugin owner. The documented public api.ts contract is unchanged, as are /card behavior and the canonical confirm/buttons/carousel ReplyPayload conversion path.

Removed paths are the dead helper implementations, their internal barrel exports, the orphaned FlexCarousel alias, and tests that existed only for those private wrappers. Production delta is +1/-263 (net -262); tests are +12/-116 (net -104); total is net -366.

User Impact

No user-visible behavior changes. Existing LINE card commands, transport behavior, native SDK payloads, and supported reply-template families remain available and tested.

Evidence

  • Full LINE suite on Blacksmith Testbox: 31 files and 499 tests passed.
  • pnpm check:changed on the final six-file diff: passed, including extension production/test typechecks, lint, dead-export scans, API baseline, plugin boundaries, runtime sidecar loaders, and import-cycle checks.
  • LINE npm runtime build: 1 publishable plugin built with all 8 runtime entries.
  • LINE npm --pack-dry-run: passed with the generated runtime/package metadata and bundled dependencies.
  • Full pnpm build: passed, including Plugin SDK export verification and Control UI performance checks.
  • git diff --check: clean.
  • Exact current-main merge tree: clean.
  • Two independent xhigh reviews checked callers/callees, tagged behavior, package publication, docs, tests, and pinned @line/bot-sdk 11.2.0 types; no remaining behavior or contract finding.

Contract evidence: plugin docs define runtime-api.ts as internal-only and api.ts as the external contract; the LINE entry point resolves only setLineRuntime from the runtime barrel. Full repository and tagged-release searches found no production reader for any deleted name.

Maintainer Proof Decision

Maintainer proof override: the available proof is sufficient for this deletion-only cleanup. A credentialed live LINE send would exercise only the retained paths and cannot exercise the removed zero-caller helpers. The final branch instead ran every retained /card family and all supported confirm/buttons/carousel template families through the real @line/bot-sdk client against a mock LINE API endpoint, covering authenticated push and reply requests, in addition to the complete LINE suite, package build/pack, changed gate, and full repository build above.

@openclaw-barnacle openclaw-barnacle Bot added channel: line Channel integration: line size: M maintainer Maintainer-authored PR labels Aug 2, 2026
@steipete steipete self-assigned this Aug 2, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 9:35 PM ET / August 2, 2026, 01:35 UTC.

ClawSweeper review

What this changes

The PR removes private, unused LINE rich-card helper implementations, runtime-barrel exports, a Flex type alias, and tests dedicated solely to those wrappers.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 4 items remain

Keep this PR open for protected-label human merge handling. The deletion is consistent with the private LINE plugin boundary and the inspected source shows no production caller for the removed helpers; no patch correctness finding remains. The contributor’s evidence is CI/test-only rather than after-fix real behavior proof, so a maintainer should decide whether to request a redacted LINE-path run or apply an explicit proof override.

Likely related people: Vincent Koc (high confidence, introduced the current helper block) and steipete (medium confidence, recent contributor across the affected LINE files).

Priority: P3
Reviewed head: 2b07715d76a3ec4c4223518ab7f08e4cb3cf75b0
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The source cleanup is well bounded and appears correct, but the external-PR real-behavior proof gate is currently supported only by tests and CI claims.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR body reports suites, builds, packaging checks, and CI, but it contains no after-fix real LINE runtime output or redacted live delivery evidence; add a redacted LINE-path run or obtain a maintainer proof override before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body reports suites, builds, packaging checks, and CI, but it contains no after-fix real LINE runtime output or redacted live delivery evidence; add a redacted LINE-path run or obtain a maintainer proof override before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 7 items Public plugin boundary: The PR-head public API exports only the LINE plugin and setup plugin; none of the deleted card helpers are promoted through that contract. The scoped extension policy also defines local helpers as private unless deliberately exported via api.ts.
Narrow runtime entrypoint: The LINE bundled entrypoint asks the runtime barrel only for setLineRuntime and lazily imports the card command; it has no direct dependency on the removed helper exports.
No production filesystem callers: A full working-tree symbol search found every deleted helper only in its defining private module, the runtime barrel, or wrapper-specific tests; active LINE paths use buildTemplateMessageFromPayload and the retained template/Flex builders.
Findings None None.
Security None None.

How this fits together

The LINE channel plugin turns OpenClaw card commands and portable reply payloads into LINE template or Flex messages before sending them through the LINE transport. The bundled entrypoint consumes a narrow runtime API, while the plugin’s public API is exported separately through api.ts.

flowchart LR
  A[OpenClaw command or reply payload] --> B[LINE plugin entrypoint]
  B --> C[Card command and reply conversion]
  C --> D[Supported template and Flex builders]
  D --> E[LINE Messaging API payload]
  E --> F[LINE chat delivery]
Loading

Decision needed

Question Recommendation
Should this protected, behavior-neutral LINE cleanup require a redacted after-fix LINE-path run, or may a maintainer explicitly override that proof gate based on the caller, contract, and CI evidence? Request a narrow LINE run: Ask for redacted terminal or live output showing a supported /card or ReplyPayload template/Flex message after this deletion.

Why: The patch appears correct, but the external-PR proof gate is not met and the protected maintainer label prevents an automated cleanup or merge decision.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body reports suites, builds, packaging checks, and CI, but it contains no after-fix real LINE runtime output or redacted live delivery evidence; add a redacted LINE-path run or obtain a maintainer proof override before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The PR is authored as an external contributor submission and supplies only CI/test claims in its body, not after-fix real behavior proof; merging should wait for a redacted LINE-path run or an explicit maintainer proof override.
  • Resolve merge risk (P1) - The maintainer protected label requires explicit human merge handling even though the source review found no patch defect.
Agent review details

Security

None.

PR surface

Source -262, Tests -104. Total -366 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 5 1 263 -262
Tests 1 12 116 -104
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 13 379 -366

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the focused removal, then add a redacted after-fix LINE /card or portable reply-payload run showing the supported template/Flex paths still deliver correctly, or record an explicit maintainer proof override before merge.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the focused removal, then add a redacted after-fix LINE /card or portable reply-payload run showing the supported template/Flex paths still deliver correctly, or record an explicit maintainer proof override before merge.

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

Not applicable: this PR removes unreachable private wrappers rather than fixing a reported user failure. The relevant verification is caller reachability plus preservation of the supported LINE conversion paths, both of which were inspected from source.

Is this the best way to solve the issue?

Yes: removing the unused private wrappers is the narrowest maintainable solution because the public api.ts contract and active template/Flex conversion paths stay intact. A new compatibility export or replacement helper would create unnecessary parallel behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: The PR is a focused, behavior-neutral cleanup of private LINE plugin helpers with no identified user-facing regression.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports suites, builds, packaging checks, and CI, but it contains no after-fix real LINE runtime output or redacted live delivery evidence; add a redacted LINE-path run or obtain a maintainer proof override before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P3: The PR is a focused, behavior-neutral cleanup of private LINE plugin helpers with no identified user-facing regression.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports suites, builds, packaging checks, and CI, but it contains no after-fix real LINE runtime output or redacted live delivery evidence; add a redacted LINE-path run or obtain a maintainer proof override before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Public plugin boundary: The PR-head public API exports only the LINE plugin and setup plugin; none of the deleted card helpers are promoted through that contract. The scoped extension policy also defines local helpers as private unless deliberately exported via api.ts. (extensions/line/api.ts:1, 2b07715d76a3)
  • Narrow runtime entrypoint: The LINE bundled entrypoint asks the runtime barrel only for setLineRuntime and lazily imports the card command; it has no direct dependency on the removed helper exports. (extensions/line/index.ts:38, 846a454d9219)
  • No production filesystem callers: A full working-tree symbol search found every deleted helper only in its defining private module, the runtime barrel, or wrapper-specific tests; active LINE paths use buildTemplateMessageFromPayload and the retained template/Flex builders. (extensions/line/runtime-api.ts:94, 846a454d9219)
  • Canonical conversion survives: The PR head retains ReplyPayload conversion for confirm, button, and carousel templates, preserving the active portable reply-template route rather than replacing it with a parallel path. (extensions/line/src/template-messages.ts:220, 2b07715d76a3)
  • Wrapper-only test removal: The test diff removes image-carousel, product-carousel, generic Flex-carousel, and notification-wrapper assertions while retaining coverage for supported template carousels and card command paths. (extensions/line/src/message-cards.test.ts:73, 2b07715d76a3)
  • Feature provenance: Blame attributes the current helper block and runtime-barrel area to the recent LINE work in commit 47bb037; repository history also shows Peter Steinberger among the most frequent contributors to these files. (extensions/line/src/template-messages.ts:232, 47bb0378eb1c)

Likely related people:

  • Vincent Koc: Git blame attributes the current LINE helper block, including the deleted template-wrapper code, to the recent feature commit. (role: feature introducer; confidence: high; commits: 47bb0378eb1c; files: extensions/line/src/template-messages.ts, extensions/line/src/flex-templates/basic-cards.ts)
  • steipete: Current-file history identifies Peter Steinberger as a frequent contributor to the affected LINE files, and this PR continues that cleanup work. (role: recent area contributor; confidence: medium; commits: 3856b4fa1b35, 2b07715d76a3; files: extensions/line/runtime-api.ts, extensions/line/src/template-messages.ts, extensions/line/src/flex-templates/basic-cards.ts)

Rank-up moves

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

  • Post redacted terminal, logs, or live output from a supported LINE /card or ReplyPayload delivery on the PR head.
  • If a live LINE run is disproportionate for this deletion-only change, obtain an explicit maintainer proof override.

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 merged commit eda7cab into main Aug 2, 2026
106 of 112 checks passed
@steipete
steipete deleted the codex/goal100k-line-private-card-prune branch August 2, 2026 01:48
@steipete

steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
llwijvbw123 pushed a commit to llwijvbw123/openclaw that referenced this pull request Aug 28, 2026
…elf-release

* commit '10a390ed7fa88d09da0d4523c3ed1e3550ece5c6': (4646 commits)
  fix(release): allow larger npm plugin artifacts (openclaw#117745)
  refactor(macos): consolidate gateway process fixtures (openclaw#117740)
  fix(ui): preserve complete persisted log messages (openclaw#117666)
  fix(ui): decode artifact previews as UTF-8 (openclaw#117657)
  fix(control-ui): restore sandbox media previews (openclaw#117689)
  fix(plugins): link host declared as direct dependency (openclaw#117738)
  fix(macos): avoid self-named defaults suite (openclaw#117690)
  fix(inference): preserve run ownership and completion delivery (openclaw#117731)
  test(talk): align browser E2E tool completion
  test: consolidate OpenClaw E2E fixtures (openclaw#117701)
  fix(release): ignore bundle fields in npm locks (openclaw#117730)
  fix(meeting-bot): keep configured host options internal
  refactor(line): remove dead card helpers (openclaw#117729)
  perf(cli): attribute command startup stages (openclaw#117720)
  refactor(whatsapp): deduplicate reply delivery test fixtures (openclaw#117710)
  docs(changelog): note bounded WebRTC tool calls
  docs(changelog): note meeting audio bounds
  fix(meeting-bot): preserve node host SDK surface
  test(talk): split WebRTC tool lifecycle coverage
  fix(meeting-bot): break node host import cycle
  ...

# Conflicts:
#	package.json
#	src/agents/model-auth.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: line Channel integration: line maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant