Skip to content

feat(workboard): link boards to owning automations - #125076

Merged
steipete merged 2 commits into
mainfrom
steipete/workboard-automation-link
Aug 17, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/workboard-automation-link

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #125023

What Problem This Solves

The AI-categorization design makes a cron automation job own a board's prompt, model, schedule, and run history. Boards had no way to reference that job, so operators could not see or reach the automation from the board.

Why This Change Was Made

Add automationJobId to persisted board metadata and board summaries, accepting only a non-empty validated string of at most 128 characters. Cron jobs remain operator-owned: dangling references render as-is, and deleting a board never deletes or mutates the referenced job. When a board has a reference, its toolbar shows an Automation chip that opens the Automations page.

User Impact

Operators can see that a Workboard is automation-backed and reach the cron surface that owns its categorization prompt, model, schedule, and run history directly from the board. The ownership and deletion boundaries are documented in docs/plugins/workboard.md.

Evidence

Focused tests after replaying the single branch commit onto current main:

Test Files  1 passed (1)
Tests       1 passed (1)

Test Files  639 passed | 10 skipped (649)
Tests       9168 passed | 50 skipped (9218)

Test Files  1 passed (1)
Tests       97 passed (97)

Test Files  14 passed (14)
Tests       269 passed (269)

[test] passed 4 Vitest shards in 177.50s

Command: pnpm test extensions/workboard packages/workboard-contract ui/src/pages/workboard ui/src/lib/workboard

Live classifier proof from an isolated dev Gateway:

An automation job on openai/gpt-5.6-luna moved a triage card to todo in 13.9 seconds. The run finished ok, and the UI showed the renamed card in todo.

The full live report recorded job a2cf2fd6-8d2d-48d6-a911-b9030ede6b99, Gateway events specified and triage -> todo, and a 13,883 ms successful run. #125023 is the landed gateway-lifecycle prerequisite for this series.

Workboard toolbar with Automation chip

AI-assisted: yes. The branch was independently reviewed with the repository autoreview workflow; no accepted or actionable findings remained.

Boards can now record automationJobId, linking a board to the cron
automation whose prompt/model/schedule categorize its cards. The cron
job remains the single owner of that configuration; workboard stores
only the reference. The board toolbar shows an Automation chip linking
to the cron page when set. Deleting a board never deletes the job.

Proof: pnpm test extensions/workboard packages/workboard-contract
ui/src/pages/workboard ui/src/lib/workboard (9,492 passed), autoreview
clean (codex/gpt-5.6-sol). check:changed blocked by remote capacity
(Blacksmith down, Daytona lease cap); local fallback lanes green except
a parent-branch lint finding fixed on that branch.
@clawsweeper

clawsweeper Bot commented Aug 17, 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 docs Improvements or additions to documentation app: web-ui App: web-ui plugin: workboard size: S maintainer Maintainer-authored PR labels Aug 17, 2026
@steipete steipete self-assigned this Aug 17, 2026
@steipete
steipete marked this pull request as ready for review August 17, 2026 05:26
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 17, 2026, 1:49 AM ET / 05:49 UTC.

ClawSweeper review

What this changes

Adds an optional persisted automation-job reference to Workboards and shows a chip that opens the Automations page when that reference exists.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open: the previous destination-label finding is resolved, but a board automation reference can be added or replaced but not removed, leaving a stale Automation chip after a job is no longer applicable.

Priority: P2
Reviewed head: 530e38b9147e21148cde1c6d87a17cddc12bb61f

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The feature is coherently scoped and the previous wording issue is fixed, but the missing detach operation blocks merge readiness.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is not subject to the external-contributor proof gate; its attached screenshot directly supports the visible chip, while the remaining clear-path defect needs focused regression proof.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is not subject to the external-contributor proof gate; its attached screenshot directly supports the visible chip, while the remaining clear-path defect needs focused regression proof.
Evidence reviewed 5 items Current-main gap: Current main has no automationJobId in board metadata or summaries and renders no automation chip, so the PR is not superseded.
Sticky reference: A present automationJobId must normalize to a non-empty string; omission preserves the existing value, leaving no accepted clear value.
No supported detach path: The exposed board tool accepts only a non-empty string, while the default board cannot be deleted and other boards must first be empty before deletion.
Findings 1 actionable finding [P2] Add a supported way to clear an automation reference
Security None None.

How this fits together

Workboard stores board metadata in its plugin SQLite database and publishes board summaries to the Control UI. The new reference flows from the board tool and Gateway update path through persistence into the selected board’s toolbar.

flowchart LR
  A[Board tool or Gateway update] --> B[Board metadata normalization]
  B --> C[Workboard SQLite state]
  C --> D[Board summary]
  D --> E[Workboard toolbar]
  E --> F[Automations page]
Loading

Before merge

  • Add a supported way to clear an automation reference (P2) - This new association is write-only: omission preserves the old value, while every supplied empty or null value is rejected. The default board cannot be deleted, so a mistaken or deleted job leaves a permanent Automation chip. Add an explicit clear state and cover the tool, Gateway, SQLite reopen, and toolbar disappearance. This is a late finding: the affected code is unchanged since the earlier reviewed head, whose follow-up changed only UI copy and its test.
  • Resolve merge risk (P1) - Without an explicit detach operation, a deleted or mistaken automation association remains persisted and continues to advertise Automations for that board.
  • Complete next step (P2) - A narrow, source-proven repair can add clear semantics without changing the generic Automations navigation that the follow-up correctly established.

Findings

  • [P2] Add a supported way to clear an automation reference — extensions/workboard/src/store-normalizers.ts:104-112
Agent review details

Security

None.

PR surface

Source +59, Tests +118, Docs +5. Total +182 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 10 62 3 +59
Tests 6 124 6 +118
Docs 1 5 0 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 17 191 9 +182

Review metrics

Metric Value Why it matters
Production versus test LOC production +62/-3; tests +124/-6; docs +5/-0 Feature growth is concentrated in board persistence, contracts, and the Control UI, with focused owner-boundary coverage.
Persisted board field 1 nullable SQLite column and 1 optional board metadata field added The additive reference reaches stored plugin state and must remain reversible for operators.

Stored data model

Persistent data-model change detected: vector/embedding metadata: packages/workboard-contract/src/index.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Make automation references detachable (recommended)
    Add an explicit clear state that preserves omitted-as-unchanged behavior, then prove clearing survives SQLite reopen and removes the toolbar chip.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Add an explicit automation-reference clear operation while preserving omitted-as-unchanged semantics; cover tool/Gateway, SQLite reopen, and chip disappearance.

Technical review

Best possible solution:

Make the association reversible: retain omission as unchanged, add one explicit clear operation, and prove that persistence and the toolbar both lose the reference.

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

Yes—source inspection shows that setting a reference and then supplying null or an empty value fails, while omission retains it and no deletion path works for the default board.

Is this the best way to solve the issue?

No—the generic Automations destination is now correct, but the new optional association needs an explicit clear operation before it is a complete operator-facing feature.

Full review comments:

  • [P2] Add a supported way to clear an automation reference — extensions/workboard/src/store-normalizers.ts:104-112
    This new association is write-only: omission preserves the old value, while every supplied empty or null value is rejected. The default board cannot be deleted, so a mistaken or deleted job leaves a permanent Automation chip. Add an explicit clear state and cover the tool, Gateway, SQLite reopen, and toolbar disappearance. This is a late finding: the affected code is unchanged since the earlier reviewed head, whose follow-up changed only UI copy and its test.
    Confidence: 0.96
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.92

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The patch has a bounded correctness gap in optional Workboard metadata that affects boards using the new feature.
  • add merge-risk: 🚨 other: Merging would introduce a persisted association that cannot be removed through a supported operator path.
  • remove P3: Current review triage priority is P2, so this older priority label is no longer current.

Label justifications:

  • P2: The patch has a bounded correctness gap in optional Workboard metadata that affects boards using the new feature.
  • merge-risk: 🚨 other: Merging would introduce a persisted association that cannot be removed through a supported operator path.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored PR is not subject to the external-contributor proof gate; its attached screenshot directly supports the visible chip, while the remaining clear-path defect needs focused regression proof.

Evidence

Acceptance criteria:

  • [P1] pnpm test extensions/workboard packages/workboard-contract ui/src/pages/workboard ui/src/lib/workboard.
  • [P1] pnpm lint.

What I checked:

Likely related people:

  • steipete: Authored the PR commits and the merged adjacent Workboard lifecycle work. (role: feature owner and recent area contributor; confidence: high; commits: a25e96d7805c, 530e38b9147e, d0b1b6d0ec3e; files: extensions/workboard/src/store-normalizers.ts, extensions/workboard/src/store-core.ts, ui/src/pages/workboard/workboard-page.ts)
  • Patrick Erichsen: Introduced the current Workboard SQLite store that this PR extends with a nullable board column. (role: storage-surface introducer; confidence: medium; commits: 305e38f5d9ce; files: extensions/workboard/src/sqlite-store.ts)

Rank-up moves

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

  • Add an explicit clear operation and regressions for persistence and chip removal.

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 (1 earlier review cycle)
  • reviewed 2026-08-17T05:35:29.659Z sha a25e96d :: found issues before merge. :: [P2] Describe the generic Automations destination accurately

@steipete

Copy link
Copy Markdown
Contributor Author

ClawSweeper disposition for the review at #125076 (comment):

  • Applied the destination-copy move in 530e38b. The title and accessible name now say Open Automations, matching the generic /automations route. Focused coverage now asserts the href, title, aria-label, and visible label.
  • Kept the scoped generic navigation instead of inventing an unsupported job-id deep-link contract. The persisted reference still tells operators that the board is automation-backed; the Automations page remains the supported destination.
  • Exact-head CI is green for 530e38b9147e21148cde1c6d87a17cddc12bb61f: https://github.com/openclaw/openclaw/actions/runs/31998845088.
  • Clear/unset semantics for automationJobId are an accepted follow-up shared with existing board icon/color metadata. This PR intentionally supports validated set/replace only; adding null or another clearing sentinel here would broaden the metadata mutation contract beyond this link-and-navigation change.

Additional proof after the review fix:

node scripts/run-vitest.mjs ui/src/pages/workboard/workboard-page.test.ts
Test Files  1 passed (1)
Tests       12 passed (12)

pnpm ui:i18n:verify
control-ui-i18n: source: keys=5184 literal_references=5877 template_prefix_references=51

Fresh autoreview on the review-fix diff completed with no accepted or actionable findings.

@steipete
steipete merged commit c4eb907 into main Aug 17, 2026
170 checks passed
@steipete
steipete deleted the steipete/workboard-automation-link branch August 17, 2026 05:52
@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 18, 2026
* feat(workboard): reference the automation job that owns a board's prompt

Boards can now record automationJobId, linking a board to the cron
automation whose prompt/model/schedule categorize its cards. The cron
job remains the single owner of that configuration; workboard stores
only the reference. The board toolbar shows an Automation chip linking
to the cron page when set. Deleting a board never deletes the job.

Proof: pnpm test extensions/workboard packages/workboard-contract
ui/src/pages/workboard ui/src/lib/workboard (9,492 passed), autoreview
clean (codex/gpt-5.6-sol). check:changed blocked by remote capacity
(Blacksmith down, Daytona lease cap); local fallback lanes green except
a parent-branch lint finding fixed on that branch.

* fix(ui): describe workboard automation destination
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: workboard rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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