Skip to content

fix(workboard): diagnose archived cards still in an active status (#116359) - #117290

Merged
steipete merged 3 commits into
openclaw:mainfrom
ruel225:fix/workboard-archived-but-active-diagnostic
Aug 2, 2026
Merged

steipete merged 3 commits into
openclaw:mainfrom
ruel225:fix/workboard-archived-but-active-diagnostic

Conversation

@ruel225

@ruel225 ruel225 commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Archived nonterminal Workboard cards are correctly excluded from dispatch, but current behavior gives operators no reason for the skip: dispatch starts nothing, diagnostics are empty, and text detail output does not mark the card as archived.

Fixes #116359

Root Cause

The archive safety change in ee9bc9a added the correct dispatch exclusion and an unconditional archived-card early return in computeCardDiagnostics. That commit is present in v2026.7.2-beta.5 and v2026.7.2-beta.6. The exclusion was recorded nowhere operators could see.

Canonical Fix

  • Emit transient archived_but_active diagnostics for every archived non-done card.
  • Mark archived cards in openclaw workboard show and list --include-archived text output.
  • Show archived: yes (excluded from dispatch) in /workboard show.
  • Keep refreshDiagnostics from rewriting archived metadata.
  • Keep diagnostic actions: []; this PR does not invent an unsupported unarchive action contract.
  • Add the shared diagnostic kind, docs, all-status coverage, lifecycle coverage, and CLI/chat output regressions.

This is the best owner-boundary repair: diagnostics record the exclusion reason where it occurs, while direct text surfaces expose the authoritative archive fact. It does not misclassify a non-attempt as startFailures, add storage/config/schema changes, or create a second recovery path.

Evidence

Reviewed head: b552c068c70a18adfe363b0a7e7361a5f1f0aafc, rebased onto main 98c0d9deca5dff8346677c2a5ae5824301cb3516.

This base includes PTY observability fix #117405 (deabae48d3375dfb426e29e19ca625ba9cf2fcdc). git range-diff reports both Workboard commits unchanged from the previously reviewed stack. Fresh exact-head evidence:

  • Sanitized AWS focused Workboard lane: 3 files, 150/150 tests passed (run_ecdd749592a9).
  • Sanitized AWS operator proof: CLI shows (archived), /workboard show reports archived: yes (excluded from dispatch), and diagnostics emit archived_but_active with actions: [] (run_519928b1e73e).
  • Hosted real-behavior proof passed on the exact head.
  • ClawSweeper reviewed the exact head at diamond 5/6 with sufficient proof and no findings.
  • The first PR CI event hit GitHub’s zero-job merge-ref startup race; the repository’s bounded close/reopen recovery re-fired exact-head CI as run 30737788192. All selected jobs passed except the unrelated checks-node-compact-large-2 gateway startup timing test, which exceeded its 120-second timeout after printing the expected proof sequence on both the initial attempt and the single failed-job retry. This PR does not touch src/gateway; the test is identical to current main, and the same shard passed on main run 30736871812. The required CI gate therefore remains red pending CI-owner resolution.

Scope And Compatibility

Source: +22/-1 across four production files. Tests: +81. Docs: +1. The sole public contract change is one additive diagnostic kind. Built-in persistence and UI normalizers consume the same shared kind list in this change. There is no SQLite schema, persisted-shape, config, default, protocol-version, migration, or changelog change.

The contributor commit remains authored by @ruel225. The missing renderer idea from #116524 is credited here via @sloptop-the-terrible; that sibling PR should remain open until this canonical fix lands.

@ruel225
ruel225 marked this pull request as ready for review August 1, 2026 07:56
@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. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 7:06 AM ET / 11:06 UTC.

ClawSweeper review

What this changes

Adds an archived_but_active Workboard diagnostic for archived non-done cards and marks archived cards in CLI and chat detail output.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

This PR remains necessary: current main still silently omits archived cards from diagnostics and text detail, while the proposed repair records the exclusion at the diagnostic owner and exposes it in operator-facing text. No patch defect was found; maintainer review should confirm acceptance of the one new shared diagnostic kind and wait for the exact-head required checks to complete.

Priority: P1
Reviewed head: 1c9abc17cdcb4fb30b8b1b4f47cb8f675a5d5325
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused owner-boundary repair with strong reported operator proof, relevant regression coverage, and no source-level correctness finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The supplied exact-head operator proof and linked artifact report the new CLI marker, chat detail text, and diagnostic with an empty action list; repository context also marks proof sufficient.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The supplied exact-head operator proof and linked artifact report the new CLI marker, chat detail text, and diagnostic with an empty action list; repository context also marks proof sufficient.
Evidence reviewed 5 items Current-main behavior remains missing: Current main returns no diagnostic for any archived card before evaluating its lifecycle status, and its CLI/chat detail renderers do not display archive state; the central operator-visible problem is therefore not implemented on main.
Patch records the authoritative exclusion reason: The branch emits a warning only for archived cards that are not done, retains an empty action list, and deliberately leaves archived metadata transient rather than rewriting it during refresh.
Shared contract and built-in consumers: The added kind is included in the shared Workboard contract; built-in store and UI normalizers validate kinds through that same list, and the gateway diagnostics method returns the computed rows directly.
Findings None None.
Security None None.

How this fits together

The Workboard plugin stores cards and dispatches eligible work through its gateway and operator commands. Archived cards are intentionally excluded from dispatch; diagnostics and CLI/chat renderers are the surfaces that tell operators why a card will not run.

flowchart LR
  A[Stored Workboard card] --> B[Archive metadata]
  B --> C[Dispatch eligibility]
  B --> D[Diagnostic computation]
  D --> E[Gateway diagnostics]
  B --> F[CLI and chat card details]
  C --> G[Skipped from dispatch]
  E --> H[Operator explanation]
  F --> H
Loading

Decision needed

Question Recommendation
Should OpenClaw accept archived_but_active as an additive value in the shared Workboard diagnostic contract returned by gateway diagnostics? Accept the additive diagnostic kind: Confirm that downstream Workboard diagnostic consumers must tolerate the new warning value, then merge after exact-head checks pass.

Why: The implementation is a focused repair, but the diagnostic-kind union is shared between the bundled plugin, Control UI, and gateway consumers; maintainer intent is needed to accept that public-facing additive contract.

Before merge

  • Resolve merge risk (P1) - The new archived_but_active value is emitted through the shared Workboard diagnostic contract; strict non-repository gateway consumers could require an explicit additive-contract acceptance.
  • Resolve merge risk (P1) - GitHub reports this branch as behind main and required exact-head checks are still running, so merge should wait for the final merge result and required-check completion.
  • Complete next step (P2) - No mechanical repair is outstanding; a maintainer must accept the shared diagnostic-kind contract and let the exact-head checks finish before deciding to merge.
Agent review details

Security

None.

PR surface

Source +21, Tests +81, Docs +1. Total +103 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 4 22 1 +21
Tests 3 81 0 +81
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 104 1 +103

Review metrics

Metric Value Why it matters
Diagnostic contract 1 additive diagnostic kind The new value is shared by Workboard storage normalization, UI normalization, and gateway diagnostic output, so its compatibility boundary merits explicit review.

Stored data model

Persistent data-model change detected: vector/embedding metadata: extensions/workboard/src/cli.ts, vector/embedding metadata: extensions/workboard/src/command.ts, vector/embedding metadata: extensions/workboard/src/store.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Accept the additive diagnostic contract (recommended)
    Confirm strict gateway or integration consumers tolerate archived_but_active, then merge once the exact-head required checks are green.
  2. Pause for a narrower contract decision
    Keep this PR open and request a text-only presentation path if maintainers do not want diagnostics clients to receive a new kind.

Technical review

Best possible solution:

Keep the transient diagnostic at the Workboard diagnostic owner, retain the direct archive markers in CLI/chat output, and merge only after a maintainer accepts the additive diagnostic contract and required checks are green.

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

Yes—current main has a clear source path: an archived non-done card is excluded by dispatch while computeCardDiagnostics returns early with no diagnostic or archive marker in the reviewed text renderers.

Is this the best way to solve the issue?

Yes, conditionally—the patch records the skipped state where diagnostics are computed and exposes the same authoritative archive fact in direct text surfaces without changing dispatch semantics or persisted metadata.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: Archived active cards can silently stop a Workboard item from being dispatched while operators receive no visible reason.
  • merge-risk: 🚨 compatibility: The branch adds one value to the shared diagnostic-kind union emitted through Workboard gateway diagnostics.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The supplied exact-head operator proof and linked artifact report the new CLI marker, chat detail text, and diagnostic with an empty action list; repository context also marks proof sufficient.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied exact-head operator proof and linked artifact report the new CLI marker, chat detail text, and diagnostic with an empty action list; repository context also marks proof sufficient.

Evidence

What I checked:

  • Current-main behavior remains missing: Current main returns no diagnostic for any archived card before evaluating its lifecycle status, and its CLI/chat detail renderers do not display archive state; the central operator-visible problem is therefore not implemented on main. (extensions/workboard/src/store-card-helpers.ts:396, 92c7400a54a3)
  • Patch records the authoritative exclusion reason: The branch emits a warning only for archived cards that are not done, retains an empty action list, and deliberately leaves archived metadata transient rather than rewriting it during refresh. (extensions/workboard/src/store-card-helpers.ts:396, 1c9abc17cdcb)
  • Shared contract and built-in consumers: The added kind is included in the shared Workboard contract; built-in store and UI normalizers validate kinds through that same list, and the gateway diagnostics method returns the computed rows directly. (packages/workboard-contract/src/index.ts:67, 1c9abc17cdcb)
  • Feature-history provenance: The archive-safety behavior appears related to the Workboard scheduling hardening commit authored by Peter Steinberger; the exact historical blob could not be read from the partial clone, but current source independently confirms the archived-card early-return behavior. (extensions/workboard/src/store-card-helpers.ts:396, ee9bc9a502c4)
  • Not implemented on current main: The Workboard repair commit is not an ancestor of the checked-out current main, so neither current main nor the stated latest release provenance establishes this fix as landed. (extensions/workboard/src/store-card-helpers.ts:396, b552c068c70a)

Likely related people:

  • Peter Steinberger: The archive-safety behavior is associated with the Workboard scheduling hardening commit, and the current archived-card diagnostic boundary remains in that feature area. (role: feature-history contributor; confidence: medium; commits: ee9bc9a502c4; files: extensions/workboard/src/store-card-helpers.ts, extensions/workboard/src/dispatcher.ts)

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 (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-01T09:50:59.639Z sha b3b4186328b22f460db0080781a10f196d3d48bf :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T10:04:19.900Z sha b3b4186328b22f460db0080781a10f196d3d48bf :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T10:15:36.238Z sha b3b4186328b22f460db0080781a10f196d3d48bf :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T04:43:58.375Z sha a6d1639b208f119635029fe4974c1ff2eed6217c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T07:22:11.667Z sha b552c06 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T07:31:16.316Z sha b552c06 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T08:00:03.522Z sha b552c06 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-02T11:00:07.567Z sha 1c9abc1 :: needs maintainer review before merge. :: none

@vincentkoc vincentkoc self-assigned this Aug 1, 2026
@vincentkoc
vincentkoc force-pushed the fix/workboard-archived-but-active-diagnostic branch from 977f4d2 to b216e4a Compare August 1, 2026 08:40
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Aug 1, 2026
@vincentkoc
vincentkoc force-pushed the fix/workboard-archived-but-active-diagnostic branch from b216e4a to 4085056 Compare August 1, 2026 08:54
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added triage: blank-template Candidate: PR template appears mostly untouched. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Aug 1, 2026
@vincentkoc
vincentkoc force-pushed the fix/workboard-archived-but-active-diagnostic branch 2 times, most recently from 744c4cf to a54422f Compare August 1, 2026 09:23
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 1, 2026
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Aug 1, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed 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. labels Aug 1, 2026
@vincentkoc
vincentkoc force-pushed the fix/workboard-archived-but-active-diagnostic branch from a54422f to b3b4186 Compare August 1, 2026 09:44
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

ruel225 and others added 2 commits August 2, 2026 15:16
An archived card with an active status (ready/running/blocked/etc.) was
silently excluded from dispatch with no signal on any surface —
workboard show rendered it normally, dispatch returned count:0 with empty
startFailures, and computeCardDiagnostics returned [] for archived cards.
Operators could only find it by reading the database directly.

Add an archived_but_active diagnostic kind to WORKBOARD_DIAGNOSTIC_KINDS
and an unarchive action. In computeCardDiagnostics, when a card has
archivedAt set but status is not done, emit the warning so workboard show
and store.diagnostics report it. Done+archived cards stay silent (no
diagnostic) as before. The diagnostic is transient — refreshDiagnostics
still skips archived cards, so their stored metadata is not rewritten.

Fixes openclaw#116359

Co-Authored-By: Claude <[email protected]>
@vincentkoc
vincentkoc force-pushed the fix/workboard-archived-but-active-diagnostic branch from a6d1639 to b552c06 Compare August 2, 2026 07:17
@vincentkoc vincentkoc closed this Aug 2, 2026
@vincentkoc vincentkoc reopened this Aug 2, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Aug 2, 2026
Unrelated to workboard diagnostic changes; sqlite session/transcript
flip-proof e2e failed with array mismatch on an untouched path.

Co-Authored-By: Claude <[email protected]>
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 2, 2026
@steipete

steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Maintainer decision: accepted. archived_but_active is an additive Workboard-only diagnostic; it changes no public SDK/protocol, configuration, defaults, persisted shape, or SQLite schema. Built-in consumers share the same diagnostic-kind list, required CI passed, and operator proof covers CLI/chat visibility, dispatch exclusion, and lifecycle safety.

@steipete
steipete merged commit f2b3d15 into openclaw:main Aug 2, 2026
129 of 133 checks passed
vincentkoc added a commit that referenced this pull request Aug 2, 2026
* origin/main:
  fix(sqlite): skip slow-lock diagnostic when busyTimeoutMs is zero (#115990)
  fix(canvas): serve Content-Length on Canvas document HEAD responses (#117964)
  fix(workboard): diagnose archived cards still in an active status (#116359) (#117290)
  feat(diagnostics): configure OTEL metric name prefixes (#116687)
  fix(ui): respect UTC when filtering pending usage sessions (#118004)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 3, 2026
…enclaw#116359) (openclaw#117290)

* fix(workboard): diagnose archived cards still in an active status

An archived card with an active status (ready/running/blocked/etc.) was
silently excluded from dispatch with no signal on any surface —
workboard show rendered it normally, dispatch returned count:0 with empty
startFailures, and computeCardDiagnostics returned [] for archived cards.
Operators could only find it by reading the database directly.

Add an archived_but_active diagnostic kind to WORKBOARD_DIAGNOSTIC_KINDS
and an unarchive action. In computeCardDiagnostics, when a card has
archivedAt set but status is not done, emit the warning so workboard show
and store.diagnostics report it. Done+archived cards stay silent (no
diagnostic) as before. The diagnostic is transient — refreshDiagnostics
still skips archived cards, so their stored metadata is not rewritten.

Fixes openclaw#116359

Co-Authored-By: Claude <[email protected]>

* fix(workboard): expose archived active cards

* ci: re-trigger after sqlite flip-proof e2e flake

Unrelated to workboard diagnostic changes; sqlite session/transcript
flip-proof e2e failed with array mismatch on an untouched path.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: ruel225 <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 3, 2026
* origin/main:
  fix(sqlite): skip slow-lock diagnostic when busyTimeoutMs is zero (openclaw#115990)
  fix(canvas): serve Content-Length on Canvas document HEAD responses (openclaw#117964)
  fix(workboard): diagnose archived cards still in an active status (openclaw#116359) (openclaw#117290)
  feat(diagnostics): configure OTEL metric name prefixes (openclaw#116687)
  fix(ui): respect UTC when filtering pending usage sessions (openclaw#118004)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. plugin: workboard proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. triage: blank-template Candidate: PR template appears mostly untouched.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

workboard: archived card with active status is silently undispatchable - no diagnostic, no archive marker in show/list, not reported in dispatch result

3 participants