Skip to content

Fix TaskFlow stale audit for ended blocked flows - #96855

Closed
teamadams wants to merge 1 commit into
openclaw:mainfrom
teamadams:fix/taskflow-audit-ended-blocked
Closed

teamadams wants to merge 1 commit into
openclaw:mainfrom
teamadams:fix/taskflow-audit-ended-blocked

Conversation

@teamadams

Copy link
Copy Markdown

Summary

  • Treat blocked TaskFlows with endedAt as terminal history for stale-blocked audit purposes
  • Keep stale-blocked warnings for non-ended blocked flows
  • Add a regression covering ended blocked flows

Test

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.tasks.config.ts

@openclaw-barnacle openclaw-barnacle Bot added size: XS triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jun 25, 2026
@clawsweeper

clawsweeper Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed June 25, 2026, 5:03 PM ET / 21:03 UTC.

Summary
The PR changes stale_blocked TaskFlow audit logic to ignore blocked flows that have endedAt and adds a regression test for ended versus live blocked flows.

PR surface: Source 0, Tests +43. Total +43 across 2 files.

Reproducibility: yes. at source level: current main warns on stale blocked flows without checking endedAt, while current TaskFlow code can produce terminal blocked records with endedAt. I did not run the regression because the review was read-only.

Review metrics: 1 noteworthy metric.

  • Required PR context sections: 0 of 2 present. The external PR body has Summary/Test sections but lacks the expected problem and evidence sections, which keeps the real-behavior-proof gate unresolved.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🐚 platinum hermit
Result: blocked until real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Add What Problem This Solves and Evidence sections to the PR body.
  • [P1] Include redacted after-fix terminal output, logs, screenshot, recording, or linked artifact showing stale_blocked is suppressed for an ended blocked flow and preserved for a live blocked flow.

Proof guidance:

  • [P1] Needs real behavior proof before merge: No after-fix real audit output or media proof is present; the contributor should add redacted terminal output, logs, screenshot, recording, or a linked artifact to the PR body, redacting IPs, keys, phone numbers, private endpoints, and other private details. 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.

Risk before merge

  • [P1] The external PR still has no contributor-provided real behavior proof; tests and CI are supplemental and do not show the author ran the changed audit path after the fix.
  • [P1] I did not execute the regression locally because this review was required to keep the checkout read-only.

Maintainer options:

  1. Decide the mitigation before merge
    Land the narrow audit guard with the regression test after the PR body includes required problem/evidence context and redacted after-fix audit proof, or after an explicit maintainer proof override.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] Contributor action is needed for required PR context and real behavior proof; there is no narrow code defect for a repair worker to fix.

Security
Cleared: The diff only changes internal TaskFlow audit logic and a colocated test; it introduces no dependency, workflow, secret, package, artifact, or code-execution surface.

Review details

Best possible solution:

Land the narrow audit guard with the regression test after the PR body includes required problem/evidence context and redacted after-fix audit proof, or after an explicit maintainer proof override.

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

Yes at source level: current main warns on stale blocked flows without checking endedAt, while current TaskFlow code can produce terminal blocked records with endedAt. I did not run the regression because the review was read-only.

Is this the best way to solve the issue?

Yes: the audit function owns this warning, live blocked flows clear endedAt, and terminal blocked history sets endedAt, so the one-condition guard is the narrow maintainable fix. The implementation still needs real behavior proof before merge.

AGENTS.md: found and applied where relevant.

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

Label changes

Label justifications:

  • P2: This is a normal-priority TaskFlow audit false-positive fix with limited runtime blast radius.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab 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: No after-fix real audit output or media proof is present; the contributor should add redacted terminal output, logs, screenshot, recording, or a linked artifact to the PR body, redacting IPs, keys, phone numbers, private endpoints, and other private details. 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

PR surface:

Source 0, Tests +43. Total +43 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 43 0 +43
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 44 1 +43

What I checked:

Likely related people:

  • vincentkoc: Introduced and expanded TaskFlow audit and maintenance through the April TaskFlow audit/maintenance commits and merged PRs. (role: task-flow audit feature contributor; confidence: high; commits: 0f45630d1937, 12bd6b7bb944, d46240090acb; files: src/tasks/task-flow-registry.audit.ts, src/tasks/task-flow-registry.audit.test.ts, src/tasks/task-flow-registry.maintenance.ts)
  • rosenlo: Current blame for listTaskFlowAuditFindings and the stale_blocked branch points to the current-main commit associated with this author, though the original TaskFlow audit feature history predates that snapshot-like commit. (role: recent current-main carrier; confidence: medium; commits: f9e0dce73109; files: src/tasks/task-flow-registry.audit.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Jun 25, 2026
@clawsweeper

clawsweeper Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

@teamadams thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward.

Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive.

Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jul 23, 2026
@clawsweeper

clawsweeper Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: Fix TaskFlow stale audit for ended blocked flows This is item 1/1 in the current shard. Shard 1/4.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete

Copy link
Copy Markdown
Contributor

Closing per ClawSweeper review verdict stalled_unproven_pr (decision packet 2026-07-24T07:55:07.764Z). This item was part of the audited close backlog (openclaw/clawsweeper#920) stranded by an apply-lane defect, drained manually after re-verification. If this is wrong, reopen and ClawSweeper will re-review.

@steipete steipete closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants