Skip to content

fix: dashboard Recent lists a planned task once, not as row + draft - #654

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/dashboard-recent-planned-dedupe
Nov 16, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/dashboard-recent-planned-dedupe

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

The Mind dashboard's Recent feed listed a planned task twice: once as its planned.md row and once as the draft prompt its - prompt: names. recent_events promises one row per task on its latest date, and three of the 50 rows were duplicates on live Mind. Now only the later-dated of the pair is listed. A tie keeps the planned row, which is the more specific event and has its own copy payload. An undated planned row is not in the feed, so it hides nothing.

Closes #652

API Changes

None. Internal renderer behaviour only (agents/conductors/intake/_intake.py recent_events).

Test Plan

  • 3 new tests in tests/test_intake_dashboard.py: one row per pair; later date wins in both orders, and a tie keeps the planned row; an undated planned row keeps its draft. The first two fail on main; the third is a guard and passes on main.
  • tests/test_intake_dashboard.py: 104 passed.
  • Census check against live PyAutoMind (c0c33214d): main prints ['hpc-keep-off-home-phase-b', 'interferometer-primary-beam-persistence-mirror', 'delaunay-nn-numba-remeasure'], the branch prints []. The feed stays at 50 rows; the 3 freed slots go to the next drafts.

Validation checklist (--auto run — plan was not pre-approved)

  • Effective level: supervised (header: safe, cap: bug → supervised). Under --auto the ship sign-off is decide-and-flag, hence decision-taken: the human merges.
  • Plan: on the issue (fix: dashboard Recent lists a planned task twice (row + its draft) #652), written at start, unmodified since. The plan settled the one design choice ("keep the later of the pair; a tie keeps the planned row").
  • Gate:
    • Tests: full Brain suite 2197 passed, 1 skipped, with the shift's PYAUTO_MIND/PYAUTO_BRAIN/PYAUTO_SHIFT_* env unset. With that env set it leaks into hermetic tests: 6 failures and 10 errors, pre-existing. Two test_prompt_budget.py node cases fail identically on main 678dba7: pre-existing, not touched by this diff.
    • Smoke: n/a (organism renderer, no workspace script surface).
    • Review: CLEAN (independent Opus; claims basis-cited).
    • Adversary (leg 5): CLEAN (Sonnet; witness holds, the new tests fail on main, no task lost from the feed).
    • Heart: scoped --dev --repos PyAutoBrain GREEN (organism RED on local-checkout rows, acknowledged in the shift brief).
  • Human: plan sound in hindsight?
  • Human: diff matches plan (no scope creep)?
  • Human: merge, amend, or reject — then log the outcome

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

recent_events promises one row per task, but a planned.md row and the
draft its `prompt:` names were both listed. Keep the later-dated of the
pair (a tie keeps the planned row); an undated planned row hides nothing.

Closes #652

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the decision-taken Autonomous run took a flagged decision label Nov 16, 2026
@Jammy2211
Jammy2211 merged commit 4b96e81 into main Nov 16, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/dashboard-recent-planned-dedupe branch November 16, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

decision-taken Autonomous run took a flagged decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: dashboard Recent lists a planned task twice (row + its draft)

1 participant