Sub topic 14
Keeping the critical path current during execution
This chapter assumes you can run the forward and backward passes, compute total float, and read a critical path from zero-float activities. The code example uses basic Python (dictionaries, loops). The critical path you calculated at planning time is a forecast. Once work starts, durations change, tasks slip, and the longest path can move to a different chain of activities. This chapter explains how to update the analysis so it keeps describing the project you are running.
Baseline versus current schedule
Keep two versions of the schedule apart:
- The baseline is the approved plan. It does not change when work slips. You compare against it to measure variance.
- The current schedule is the forecast. You recalculate it at each update using actual progress and your best estimate of the remaining work.
The critical path you manage during execution is the one in the current schedule. A baseline critical path of A, C, D tells you where the risk was at approval. It does not tell you where the risk is on day 40.
What to record at each update
Pick a status date, the day to which progress is reported (many tools call it the data date). Everything before it is history. Everything after it is forecast. For each activity, record one of three states:
| State | What you record | How it enters the recalculation |
|---|---|---|
| Finished | Actual start and actual finish | Fixed. Its dates no longer move. |
| In progress | Actual start and remaining duration | Finish = status date + remaining duration |
| Not started | Nothing new | Earliest start = max(status date, latest predecessor finish) |
Two points trip people up.
First, use remaining duration, not percent complete. A task that is "50% done" may still need more than half its original duration, for example after rework. Ask the person doing the work how many days are left.
Second, an unstarted task cannot be scheduled before the status date. Without that rule, a task whose predecessors finished early would be forecast in the past.
The update cycle
The backward pass needs a target date
At planning time, the backward pass starts from the project's earliest possible finish, so the critical path has zero float. During execution, you should start the backward pass from a target finish, usually the baseline end date or a committed delivery date. This choice gives you a useful signal:
- If the forecast finish is later than the target, activities on the longest path show negative float.
- If the forecast finish equals the target, the longest path has zero float.
- If the forecast finish is earlier than the target, the longest path has positive float, and so does everything else.
Negative float is a warning: the schedule as forecast misses the date by that many days. The most negative float marks the path to attack first.
If you restart the backward pass from the forecast finish instead, the longest path always shows zero float. You still find the path, but you lose the size of the miss.
Worked example
Take the network from earlier chapters. Activity A takes 3 days, B takes 2, C takes 4, and D takes 3. B and C both follow A, and D follows both B and C. The baseline finish is day 10, and the critical path is A, C, D.
At the status date, day 4:
- A finished on day 3, as planned.
- C started on day 3. The team found a defect and now estimates 5 days remaining, so C will finish on day 9.
- B has not started.
Recalculate:
- B cannot start before the status date, so B runs day 4 to day 6.
- D must wait for the later of B (day 6) and C (day 9), so D runs day 9 to day 12.
- The forecast finish is day 12, two days after the target of day 10.
- Backward pass from day 10: D must finish by 10 and start by 7. B and C must finish by 7. B has 1 day of float (7 − 6). C has −2 days (7 − 9). D has −2 days (10 − 12).
The critical path is still C then D, but with a different meaning. It is now 2 days behind. B's float fell from 2 days to 1 day, because starting B at the status date used up a day of its slack. B is now near-critical, so a further one-day slip there puts it on the critical path.
The path can move
In this example the critical path stayed the same, but that is not guaranteed. Suppose the defect had delayed B by 4 days instead of C. B's chain would then be the longest, and the critical path would switch from A, C, D to A, B, D. Nobody would have changed the plan, yet the activities that deserve attention would be different.
This is why you recompute the whole network at each update. Adjusting only the activity that slipped is not enough, because the slip can promote a neighbouring path.
Watch for these patterns across updates:
- Float erosion. A non-critical activity's float shrinks each update. It is heading toward the critical path, even if it has not arrived yet.
- Path switching. The set of zero-float (or most negative float) activities changes between updates.
- Growing negative float. The forecast finish drifts later with each update. This is a trend you should escalate, not just record.
- Float that appears from nowhere. A sudden increase usually means a logic link was deleted or a duration was cut. Check that the change was intended.
Code: recalculating with actuals
This script applies the update rules above. It runs the forward pass from the status date, the backward pass from the target, and reports float.
plan = {
# name: (planned duration in days, predecessors); predecessors listed first
"A": (3, []),
"B": (2, ["A"]),
"C": (4, ["A"]),
"D": (3, ["B", "C"]),
}
STATUS = 4 # status date (data date)
TARGET = 10 # baseline finish, used as the backward-pass start
actual_start = {"A": 0, "C": 3}
actual_finish = {"A": 3}
remaining = {"C": 5} # remaining days for activities in progress
# Forward pass with actuals
es, ef = {}, {}
for t, (dur, preds) in plan.items():
if t in actual_finish:
es[t], ef[t] = actual_start[t], actual_finish[t]
elif t in actual_start:
es[t] = actual_start[t]
ef[t] = STATUS + remaining[t]
else:
es[t] = max([STATUS] + [ef[p] for p in preds])
ef[t] = es[t] + dur
forecast_end = max(ef.values())
# Successor lookup
succs = {t: [] for t in plan}
for t, (dur, preds) in plan.items():
for p in preds:
succs[p].append(t)
# Backward pass from the target; remaining work only
lf, ls = {}, {}
for t in reversed(list(plan)):
left = remaining.get(t, plan[t][0])
lf[t] = min((ls[s] for s in succs[t]), default=TARGET)
ls[t] = lf[t] - left
# Float for activities that are not finished
total_float = {t: lf[t] - ef[t] for t in plan if t not in actual_finish}
worst = min(total_float.values())
critical = [t for t, f in total_float.items() if f == worst]
print(forecast_end) # 12
print(total_float) # {'B': 1, 'C': -2, 'D': -2}
print(critical) # ['C', 'D']The script treats the activities with the lowest float as critical, which works whether the lowest float is zero or negative. Finished activities are excluded from the float report because their dates can no longer change.
Practical rules for updates
- Update on a fixed cadence. Weekly is common. A schedule updated only at milestones will show problems too late.
- Never overwrite the baseline. Save the baseline separately and compare each update against it.
- Do not hide negative float. Forcing dates or adding constraints to make float look positive removes the information you need.
- Re-check the logic when the network changes. New tasks, removed tasks, and changed links can create cycles or open ends. Run the validation checks from the earlier chapter again.
- Report the path, not just the date. Tell stakeholders which activities drive the forecast and which near-critical ones to watch.
Deciding what to do with the result
When an update shows negative float, you have three broad responses:
- Accept the slip and tell the sponsor the new forecast date.
- Compress the remaining critical path with crashing or fast-tracking, as covered in the earlier chapter. Compress only activities on the path with the most negative float, and recheck near-critical paths afterwards, because shortening one path can make another the longest.
- Re-plan the logic, for example by splitting a task so part of it can start earlier, or removing a dependency that turns out to be unnecessary.
Whichever you choose, recalculate before announcing the result.
Exercise
Using the network above (A = 3 days, B = 2, C = 4, D = 3; B and C follow A; D follows B and C; target finish day 10), suppose the status date is day 4, A finished on day 3, C started on day 3 and has 3 days remaining, and B has not started. What is the forecast finish, the total float of B, C, and D, and which activities are on the critical path? Explain why B's float differs from the baseline.
Show answer
C finishes on day 7 (4 + 3). B starts at the status date, day 4, and finishes on day 6. D starts at max(6, 7) = 7 and finishes on day 10, so the forecast finish is day 10, which matches the target. Backward pass from day 10: D must start by 7, so B and C must finish by 7. B's float is 7 − 6 = 1, C's float is 7 − 7 = 0, and D's float is 10 − 10 = 0. The critical path is C, D (A is finished). B's float is 1 instead of the baseline 2 because B cannot start before the status date, day 4, rather than day 3 when A finished, so it has already used a day of slack.