feat(engine): add countPlanReadySteps plan DAG helper - #3749
Conversation
Expose the runnable-step count companion to hasPlanReadySteps with hosted nextReadySteps parity tests and README documentation. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3749 +/- ##
=======================================
Coverage 93.37% 93.38%
=======================================
Files 316 316
Lines 32296 32297 +1
Branches 11841 11841
=======================================
+ Hits 30158 30159 +1
Misses 1507 1507
Partials 631 631
🚀 New features to boost your workflow:
|
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-06 07:30:55 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 6 non-blocking
Why this is blocked
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
|
Gittensory is closing this pull request on the maintainer's behalf (No linked issue detected; Maintainer requires a linked issue; AI reviewers agree on a likely critical defect: No open issue is linked or referenced anywhere in the PR description; per this repo's contribution policy, unsolicited new engine exports must close/link an eligible issue before being merge-ready — confirm an issue number or this should be rejected as scope-creep.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
countPlanReadySteps(plan)— returns how many steps are runnable now (pendingwith satisfied dependencies).nextReadySteps(plan).length; includes a parity assertion againstsrc/services/plan-dag.Conflict avoidance
Touches only
packages/gittensory-engine/src/plan-ready.ts, one export line inindex.ts, one README bullet, andtest/unit/plan-ready-count.test.ts. No overlap with open PRs #3698, #3702, #3704, or #3712.Test plan
test/unit/plan-ready-count.test.ts— counts, edge cases, hosted parity, barrel exportnpm run typechecknpm run build --workspace @jsonbored/gittensory-engine && npm run build:minerMade with Cursor