Skip to content

fix(scheduling): correct critical path for terminal nodes#492

Merged
steilerDev merged 3 commits intobetafrom
fix/cpm-terminal-node-float
Mar 6, 2026
Merged

fix(scheduling): correct critical path for terminal nodes#492
steilerDev merged 3 commits intobetafrom
fix/cpm-terminal-node-float

Conversation

@steilerDev
Copy link
Owner

Summary

  • Fixed CPM backward pass using each terminal node's own EF as its LF, which gave every terminal node zero float and incorrectly marked them all as critical
  • Now computes a shared project finish date (max EF across all terminal nodes) so only the longest path through the project has zero float

Test plan

  • All 88 scheduling engine unit tests pass
  • Typecheck passes across all workspaces
  • CI quality gates

🤖 Generated with Claude Code

claude added 3 commits March 6, 2026 11:30
Remove unused imports, variables, and functions. Prefix intentionally
unused parameters with underscore. Replace `any` types with proper
types. Fix React hook dependency arrays. Add justified eslint-disable
comments for mock types in tests.

Resolves 57 warnings across 23 files in client/, server/, and shared/.

Co-Authored-By: Claude backend-developer (Haiku) <noreply@anthropic.com>
Co-Authored-By: Claude frontend-developer (Haiku) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix destructured interface props that were incorrectly prefixed with
underscore. Remove unused `milestones` from GanttSidebar destructuring
(optional prop). Add eslint-disable for `activeTouchId` in
CalendarHouseholdItem (required by interface but unused in component).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…al nodes

Terminal nodes in the CPM backward pass were each using their own EF as
their LF, giving every terminal node zero float and incorrectly marking
them all as critical. Now computes a shared project finish date (max EF
across all terminal nodes) so only the longest path has zero float.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@steilerDev steilerDev merged commit 05de66e into beta Mar 6, 2026
13 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

🎉 This PR is included in version 1.12.0-beta.51 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants