Skip to content

test(dispatcher): drop tests left behind by the #217 label retirement - #235

Merged
Ardnived merged 2 commits into
mainfrom
claude/chore-test-cleanup
Nov 2, 2026
Merged

Ardnived merged 2 commits into
mainfrom
claude/chore-test-cleanup

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Removes dispatcher test code that stopped meaning anything when #217 retired the awaiting, blocked and stuck labels. Test-only; no skill, hook, config or dispatcher source changes, so nothing the next run reads moves.

Failure this prevents: assertions that cannot fail read as coverage. A reader trusts !add.includes('awaiting') as a guard when nothing can add that label any more, and the stale fixture keys suggest the dispatcher still reads labels.awaiting.

  • decide.test.mjs, roadmap.test.mjs: drop one vacuous awaiting assertion each. The rest of both tests stays.
  • roadmap.test.mjs: rename the test that assertion was named for, to the one thing it still checks — a goal created with its type is locked by one leg, and the other fires nothing. A name advertising a dropped assertion is the same failure as the assertion. The SahajAtlasWeb#256 comment above it stays: history, not a claim.
  • contracts.test.mjs, rerun.test.mjs: drop the awaiting/stuck/blocked config keys. grep finds no reader in dispatcher/*.mjs.
  • journal-day.test.mjs: drop "a journal that cannot be created…", a strict subset of journal.test.mjs's same case, and the fake's now-unused failCreate option.
  • Kept: item fixtures carrying an awaiting label (old items still wear it).

Part of a test audit across all five repos. No migration tests exist here: SCHEMA_VERSION has never moved past 1, and the one-shot docs/rollback/migrate-to-lifecycle.mjs has no test.

Checked: node --test dispatcher/test/*.test.mjs workflow/lib/*.test.mjs — 451 pass on main, 450 pass on the branch (one test removed). claude plugin validate ./workflow --strict && node --test workflow/lib/*.test.mjs passes from the checkout and from a .claude/worktrees/ worktree.

🤖 Generated with Claude Code

#217 replaced the awaiting, blocked and stuck labels with a derived
Status, but the dispatcher tests still carried them:

- Two assertions that the plan never adds the `awaiting` label
  (decide, roadmap). No code writes that label any more, so they
  could never fail.
- `awaiting`/`stuck`/`blocked` keys in the contracts and rerun config
  fixtures. No source reads `labels.awaiting|stuck|blocked`.
- journal-day's "cannot be created" test, a strict subset of the
  same case in journal.test.mjs, plus the fake's now-unused
  failCreate option.

Item fixtures that carry an `awaiting` label stay: old items still
wear it in the wild.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 2, 2026
@sydevs-bot

sydevs-bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 00:31Z address-review · attempt 1 · session · done
  • 00:31Z address-review · attempt 1 · session
  • 00:25Z review-pr · attempt 1 · session · done
  • 00:25Z review-pr · attempt 1 · session

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Adversarial review

Test-only, 5 files, +3/-13, and the diff is no bigger than the case the body makes: every removal is a reference to the labels #217 retired. I re-derived each claim instead of trusting it, and all four hold. Nothing under workflow/, loop-config.json or dispatcher/*.mjs moves, so no version bump is owed and the next run reads nothing new. One leftover: the PR deletes the stale assertions but keeps the test name that advertised one.

Findings

  • should-fix — dispatcher/test/roadmap.test.mjs:330: the name still promises never marked awaiting, which nothing now checks. See the thread.
  • consider — the **Checked:** line says 450 pass before. origin/main is 451 and the branch is 450, so "one test removed" only adds up from 451.

What was checked

  • git diff origin/main...origin/claude/chore-test-cleanup; all 5 files read whole on the branch with git show.
  • Vacuity: after #217, config.labels is {journal, lock, proposal}, and no path plans a label add beyond L.proposal and L.lock (decide.mjs:908,996,1015,1025, apply.mjs:503,541). Both dropped assertions were unfalsifiable.
  • Dead keys: grepped dispatcher/*.mjs and workflow/lib/ for labels.awaiting|stuck|blocked and for the const L = config.labels aliases. No reader survives.
  • Subset claim: journal.test.mjs:30 asserts the same number === 0 and /cannot create/, plus postAnomaly and refreshTally. failCreate had no other caller.
  • Kept fixtures: act.test.mjs:94 and decide.test.mjs:229,666. At 666, types(p) is asserted whole, so "leaves awaiting on" is still checked.
  • node --test dispatcher/test/*.test.mjs workflow/lib/*.test.mjs from a detached worktree: 450 pass on the branch, 451 on origin/main.
  • Reviewer profile read. No CI in this repo, and the body carries no preview links.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread dispatcher/test/roadmap.test.mjs Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 2, 2026
The name promised `never marked awaiting by the other`, and the
assertion backing that promise went with the #217 label retirement in
the previous commit. A name that advertises a dropped assertion is the
same failure this branch set out to remove: a reader counts it as
coverage when nothing can fail. The name now states the one thing left
under test — one leg holds the lock, the other fires nothing. The
SahajAtlasWeb#256 comment above stays; it is history, not a claim.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYAGuKHbV8X2qhfFBf
@sydevs-bot

Copy link
Copy Markdown
Contributor

Addressed the adversarial review. Pushed 4d346d2.

Adopted — the test name still promised the assertion this branch dropped. Renamed to a goal created with its type is locked by one leg, and the other fires nothing. Thread resolved.

Fixed in the body — the consider finding was right: **Checked:** said 450 pass before. main is 451, the branch is 450, so the body now gives both numbers. The bullet list also names the rename.

Branch was already on the current base, so nothing was merged. Lean gate passes from the checkout and from a .claude/worktrees/ worktree. The diff matches securityReview.triggerPattern via ^dispatcher/, so the security sweep ran: no findings, the five files are tests only.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 2, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 2, 2026
@Ardnived
Ardnived merged commit 35f438e into main Nov 2, 2026
24 checks passed
@Ardnived
Ardnived deleted the claude/chore-test-cleanup branch November 2, 2026 01:04
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants