Repository navigation
ws-055: the work kind's ready/blockedBy vs. chud's ready queue - #2752
Merged
Merged
Conversation
) 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
force-pushed
the
feat/2734-readiness
branch
from
September 25, 2026 22:03
856217d to
cc69706
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2734.
ws-055: compares chud's ready queue (
packages/runtime/src/ready.mjsat jhgaylor/chud 43afcf1) with the work kind'sready/blockedBy(work.ts). The full rule-by-rule table is on the issue: #2734 (comment)Summary:
depends_onclosedneeds— direct mapping, done once the target'sstateisdonestate(readyrequiresstate === "open")needson adroppeditem — never turnsdoneimplements, notneeds(see the open question below)needsrelationshipNo work-kind field is warranted by this comparison. Filed #2751 as a follow-up: should
readyalso require a decidedimplements? (Today it's only thework-implements-undecidedwarning.)Change
packages/core/src/workspace/work-readiness-chud.test.ts: a small fixture provingready/blockedBymatches 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.