feat(engine): add isPlanEmpty - #3447
Conversation
Expose a pure plan-DAG emptiness check for miner and dashboard flows that gate on whether a plan has steps. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 07:24:12 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 3 non-blocking
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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3447 +/- ##
=======================================
Coverage 92.99% 92.99%
=======================================
Files 295 296 +1
Lines 30970 30971 +1
Branches 11293 11293
=======================================
+ Hits 28801 28802 +1
Misses 1514 1514
Partials 655 655
🚀 New features to boost your workflow:
|
Summary
isPlanEmptyin@jsonbored/gittensory-engine— returns whether a plan DAG has no steps.countPlanStepsandisPlanFullyCompletedfor miner and dashboard gating.Test plan
COVERAGE_NO_THRESHOLDS=1 npx vitest run test/unit/plan-empty.test.ts --coveragenpx diff-cover coverage/lcov.info --compare-branch=main --fail-under=99→ 100%npm run build --workspace @jsonbored/gittensory-engine && npm run build:minerMade with Cursor