Sub topic 4
Mark milestones
This chapter assumes you can list tasks with durations and dependencies, read a calendar, and run a short Python script. You should know that a finish-to-start dependency means a task cannot begin until its predecessor ends. The chapter covers what a milestone is, how to choose good ones, how they behave in a forward pass, and how to draw them in Mermaid.
What a milestone is
A milestone is a point in the schedule with zero duration. It marks that something has been reached: a decision made, a deliverable accepted, or a handoff completed. A task takes time and consumes effort. A milestone only records that a condition became true.
On a Gantt chart a milestone usually appears as a diamond on a single date, not as a bar. Because it has no length, it adds nothing to the project's total duration. It can still move, because its date depends on the tasks that lead into it.
Three terms are easy to confuse:
| Term | What it is | Example |
|---|---|---|
| Task | Work with a duration and effort | Build the frontend (10 days) |
| Deliverable | A thing the project produces | Approved mockups |
| Milestone | A moment when a condition is met | Design approved |
A deliverable and a milestone often go together. The mockups are the deliverable, and "Design approved" is the milestone that records the approval. The task "Mockups" ends when the work is done. The milestone sits after it and says the work was accepted.
Choose milestones that can be checked
A useful milestone is binary. On any given day, someone can answer "has it happened?" with yes or no, and two people will give the same answer.
Compare these pairs:
| Weak milestone | Why it fails | Better milestone |
|---|---|---|
| Development 80% complete | No agreed way to measure 80% | All planned features merged to main |
| Design nearly done | Open to opinion | Design approved by the product owner |
| Testing phase | A span of time, so a task | Test sign-off received |
| Good progress on launch | Not an event | Site live in production |
Good milestones tend to fall into four groups:
- Approvals and gates, such as a budget sign-off or a design review.
- Deliveries, such as a vendor handing over hardware or a build being released to testers.
- Phase boundaries, such as "Design complete" before the build starts.
- External dates you do not control, such as a trade show, a legal deadline, or a contract date.
Keep the count small. A project with 20 tasks usually needs three to six milestones. If every task ends in a milestone, the diamonds stop carrying information and the chart becomes harder to read.
Milestones in the dependency network
A milestone is a node in the dependency network like any task, with a duration of 0. The forward pass treats it the same way: its start is the latest finish among its predecessors, and its finish equals its start. Its successors then start from that date.
This makes a milestone act as a gate. If "Frontend" depends on the milestone "Design approved" and not directly on "Mockups", the frontend work cannot begin until the approval is recorded. Linking to the gate makes the rule explicit.
The script below extends the forward pass from the previous chapters. It adds a "Design approved" gate after Mockups and a "Launch" milestone after Integration. Tasks are listed with predecessors first, so each lookup in finish already exists.
tasks = {
"Wireframes": (5, []),
"Mockups": (7, ["Wireframes"]),
"Design approved": (0, ["Mockups"]),
"Backend": (12, ["Wireframes"]),
"Frontend": (10, ["Design approved"]),
"Integration": (4, ["Frontend", "Backend"]),
"Launch": (0, ["Integration"]),
}
start, finish = {}, {}
for name, (duration, preds) in tasks.items():
start[name] = max((finish[p] for p in preds), default=0)
finish[name] = start[name] + duration
for name, (duration, _) in tasks.items():
if duration == 0:
print(f"{name}: day {start[name]}")
print("Project length:", max(finish.values()))The output is:
Design approved: day 12
Launch: day 26
Project length: 26Adding the two milestones did not change the project length. Both have zero duration, and "Design approved" sits on a path that was already critical. Wireframes, Mockups, Frontend, and Integration still make up the 26-day critical path.
Check a fixed-date milestone
Some milestones have a date you cannot change. Compare that date with the earliest date the network allows. The difference is the margin, which the later chapter on slack covers in detail.
tasks = {
"Wireframes": (5, []),
"Mockups": (7, ["Wireframes"]),
"Frontend": (10, ["Mockups"]),
"Integration": (4, ["Frontend"]),
"Launch": (0, ["Integration"]),
}
start, finish = {}, {}
for name, (duration, preds) in tasks.items():
start[name] = max((finish[p] for p in preds), default=0)
finish[name] = start[name] + duration
deadline = 24 # the trade show opens on day 24
margin = deadline - finish["Launch"]
print("Margin:", margin)
if margin < 0:
print(f"Launch is {-margin} day(s) too late")The earliest launch is day 22 for this shortened network, so the margin is 2 days. A negative margin means the plan cannot meet the date as written. You would then shorten a critical task, run tasks in parallel, or negotiate the date.
Draw milestones in Mermaid
Mermaid marks a task as a milestone with the milestone tag, followed by an id, a start, and a duration. You can use after to place the diamond right after another task, or give an absolute date. Use 0d for the duration.
Points to note about this definition:
Design approvedhas the idm1, andFrontendstartsafter m1. This makes the gate a real dependency and not just a decoration.- The milestone has
0dduration. Mermaid places the diamond at the start date plus half the duration, so a nonzero duration would shift the diamond away from the date you intended. Launchis placedafter dev1, so it moves automatically if Frontend changes length.- Milestones can sit in any section. Put a milestone in the section whose work it closes, so the reader finds it next to the related bars.
To pin a milestone to an external date, replace after with a date:
Here the gap between the two diamonds is visible: Launch lands on 19 January and the trade show opens on 23 January. Keeping the fixed date in its own section signals to readers that it is a constraint, not something the team schedules.
Edge cases and common errors
- A milestone with no predecessor. It has no tasks feeding it, so the forward pass places it at day 0 and it never moves. This is only right for a real fixed event. Otherwise you forgot a dependency.
- A milestone with no successor. This is normal for the final milestone, such as "Launch". For a mid-project milestone, it means nothing depends on it, so check whether it is a gate or only a label.
- Waiting time hidden in a milestone. Approvals often take days. Do not give the milestone a duration. Add a task such as "Stakeholder review (3 days)" and put the milestone after it.
- Milestones that drift without notice. A milestone moves when its predecessors slip. Compare the current date with the original one, as the baseline chapter describes, so the movement is visible.
- Wrong diamond position in Mermaid. If a diamond looks shifted, check that the duration is
0d.
Summary of the working model
A milestone is a zero-duration node. It takes its date from the latest finish among its predecessors. It passes that date to its successors, so it works as a gate. It adds no length to the project. It is worth drawing only when it can be verified, and a fixed-date milestone must be compared with the forward-pass result, never trusted as drawn.
Exercise
A team's plan has these tasks: Spec (3 days), Build (8 days, after Spec), Review (2 days, after Build). They add a milestone "Code complete" after Build and a fixed milestone "Customer demo" on day 12. Compute the earliest day of "Code complete", the earliest finish of Review, and the margin against the demo if Review must finish before the demo. Then say whether "Review in progress" would be a good milestone name.
Show answer
Spec runs days 0 to 3. Build runs days 3 to 11. "Code complete" is a zero-duration node after Build, so it falls on day 11. Review runs days 11 to 13, so its earliest finish is day 13. The margin against the demo on day 12 is 12 - 13 = -1, so the plan is one day late. "Review in progress" is a poor milestone name because it describes a span of time, not an event that can be answered yes or no. "Review complete" would be better.
Exercise
In the Mermaid chart, you write Launch :milestone, m2, after dev1, 6d. What is wrong, and how do you fix it?
Show answer
A milestone should have zero duration. Mermaid places the diamond at the start date plus half the duration, so with 6d the diamond appears three days after the end of dev1, which does not match the real date. Change the duration to 0d. If six days of work follow Frontend, add them as a task and place the milestone after that task.