Skip to content

ws-055: the work kind's ready/blockedBy vs. chud's ready queue - #2752

Merged
lex00 merged 1 commit into
mainfrom
feat/2734-readiness
Sep 25, 2026
Merged

lex00 merged 1 commit into
mainfrom
feat/2734-readiness

Conversation

@lex00

@lex00 lex00 commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Closes #2734.

ws-055: compares chud's ready queue (packages/runtime/src/ready.mjs at jhgaylor/chud 43afcf1) with the work kind's ready/blockedBy (work.ts). The full rule-by-rule table is on the issue: #2734 (comment)

Summary:

ready.mjs rule Home
depends_on closed work-item needs — direct mapping, done once the target's state is done
a met/already-running item leaves the queue the work item's own state (ready requires state === "open")
a dependency that never reaches met blocks forever needs on a dropped item — never turns done
dependency/self must be approved first the decision a work item implements, not needs (see the open question below)
dependency/self must be the newest version of its chain not applicable — work items don't revise through a draft → approved chain
met also needs no newer failing evidence, re-checked on read the runner
no unit open against the target the runner — the ws-055 lease (#2717/#2721), not a needs relationship

No work-kind field is warranted by this comparison. Filed #2751 as a follow-up: should ready also require a decided implements? (Today it's only the work-implements-undecided warning.)

Change

  • packages/core/src/workspace/work-readiness-chud.test.ts: a small fixture proving ready/blockedBy matches the expressible subset of chud's rule (dependencies closed, a met/running item leaving the queue, a dropped dependency blocking forever), against a local, minimal re-implementation of that subset of ready.mjs's logic.

Check

npx vitest run packages/core/src/workspace/work-readiness-chud.test.ts packages/core/src/workspace/work.test.ts, npx tsx scripts/typecheck.ts, npx eslint packages/core/src/workspace/work-readiness-chud.test.ts.

)

ws-055: compares chud's readyQueue rule (ready.mjs, drivers.mjs's
memberState) against the work kind's ready/blockedBy. Dependencies closed
and a met/running item leaving the queue are expressible directly as
work-item needs; the fixture proves parity for those. The rest (approval
before a dependency counts, evidence re-checked on every read, no unit open
against the target) each have a home outside a needs link -- the decision a
work item implements, the runner, or the ws-055 lease -- with none of them
needing a new work-kind field.
@lex00
lex00 force-pushed the feat/2734-readiness branch from 856217d to cc69706 Compare September 25, 2026 22:03
@lex00
lex00 merged commit cd558bd into main Sep 25, 2026
10 checks passed
@lex00
lex00 deleted the feat/2734-readiness branch September 25, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ws-055: the factory's readiness rules checked against the work kind's ready and blockedBy

1 participant