Sub topic 11
Recording dependencies and constraints
This chapter assumes you can already write rules, edge cases, and acceptance criteria for a feature, and that you know how a game team splits into design, engineering, art, audio, and QA. It covers the part of the spec that says what the feature needs from other work and what limits it must respect.
Why this section exists
A feature rarely ships alone. A dash needs an animation, a sound, and a way for the character controller to change speed. It may also need a camera that follows the player without jitter. If the spec lists none of this, each discipline finds out late, usually in the middle of a sprint.
The dependencies and constraints section answers two questions:
- What must exist, or be decided, before this feature can be built or tested?
- What limits does the feature have to stay inside, whatever the design asks for?
Writing these down lets the team schedule work in the right order. It also makes risks visible while the feature is still cheap to change.
Dependencies and constraints are different things
The two terms are easy to mix up, so keep them in separate lists.
| Term | Meaning | Example for the dash |
|---|---|---|
| Dependency | Something the feature needs from another feature, system, team, or decision | The character controller must support a velocity override |
| Constraint | A limit the feature must obey | The dash must not add more than 0.2 ms to frame time on the minimum-spec console |
| Assumption | Something you believe is true but have not confirmed | Level geometry already has wall collision tags |
A dependency can be satisfied, or it can be late. A constraint is never satisfied once and then forgotten, because the feature has to keep respecting it. An assumption is a risk until someone confirms it, so label it as one.
Kinds of dependencies
Group dependencies by what they are. This makes it easier for each owner to find their items.
- Feature dependencies. Another gameplay feature must exist first. The air dash depends on the jump state machine.
- Technical dependencies. An engine system, tool, or library must support something. Examples are a physics query for wall checks or a new field in the save format.
- Content dependencies. Assets must be made. Examples are a dash animation, a trail effect, and a whoosh sound. The next chapters of a typical spec treat these in detail, so here you only record that they block the feature.
- Decision dependencies. A question someone must answer. "Can the player dash while carrying an object?" is an open question that blocks rules, so link it to the open questions section.
- External dependencies. Something outside the team, such as a platform certification rule, a middleware license, or a vendor delivery.
For each dependency, record four things: what is needed, who owns it, when the feature needs it, and its current status. Without an owner and a date, a dependency list is only a wish list.
Kinds of constraints
Constraints come from the platform, the project, and the design.
- Performance. Frame time, memory, and draw-call budgets. State a number and the hardware it applies to.
- Platform. Input differences between controller, keyboard, and touch. Certification rules for each console.
- Network. For multiplayer, the maximum latency the feature must tolerate and how much data it may send per second.
- Schedule and team. A fixed milestone date, or a rule that no new engine work is allowed this quarter.
- Design. Rules from the wider game. For example, "No ability may make the player invulnerable for more than 0.3 seconds."
- Accessibility and legal. Rules such as "Nothing may flash more than three times per second" or age-rating limits.
A constraint is useful only if someone can check it. "The dash should be fast" is a wish. "The dash must start within 3 frames of the button press at 60 fps" can be measured, so it can become an acceptance criterion.
A worked example
Here is a dependencies and constraints section for the dash spec from earlier chapters. It follows the same template and uses a table so owners and status stay visible.
## Dependencies
| ID | Needs | Type | Owner | Needed by | Status |
| --- | --- | --- | --- | --- | --- |
| D1 | Character controller supports a velocity override | Technical | Engineering | Sprint 4 | In progress |
| D2 | Jump state machine exposes an "airborne" state | Feature | Gameplay Eng | Sprint 3 | Done |
| D3 | Dash animation (ground and air) | Content | Animation | Sprint 5 | Not started |
| D4 | Decision: dash while carrying an object | Decision | Gameplay Design | Sprint 3 | Open |
## Constraints
| ID | Limit | Applies to | How to check |
| --- | --- | --- | --- |
| C1 | Dash starts within 3 frames of input at 60 fps | All platforms | Frame-count test in QA build |
| C2 | Dash logic costs under 0.2 ms per frame | Minimum-spec console | Profiler capture |
| C3 | No invulnerability longer than 0.3 s | Design rule | Design review |
## Assumptions
- A1: Level walls already carry collision tags. Confirm with Level Design.The IDs matter. You can refer to "D1" from a task, a risk list, or a review comment, and everyone knows which item you mean. The "How to check" column forces you to think about verification at the time you write the constraint.
Showing how dependencies connect
When several dependencies chain together, a diagram shows the order better than a list.
The diagram shows that the open decision (D4) blocks the final rules, which in turn block the logic. That makes D4 more urgent than D3, even though D3 is a bigger piece of work.
Connecting this section to prioritization
Dependencies drive scope. If D1 slips, the team has to choose between delaying the dash and shipping a reduced version. Mark which parts of the feature each dependency blocks. The next steps in a spec, such as must, should, and could, rely on this. A "must" item that depends on a risky "not started" item is a schedule risk, and you should call it out.
Edge cases and common errors
- Hidden dependencies. The most common failure is a dependency nobody listed. Ask each discipline lead to read the section and add what is missing before sign-off.
- No owner. An item owned by "the team" is owned by nobody. Name one person or one role.
- Stale status. Statuses that are not updated mislead readers. Either keep them current or link to the task tracker and let the tracker hold the status.
- Constraints without numbers. Words such as "fast" or "light" cannot be tested.
- Duplicating the tracker. If your tracker already lists the tasks, link them in the spec instead of copying each one. The spec records the reason for the dependency, and the tracker records the work.
- Mixing assumptions in. An unconfirmed claim written as a fact becomes a surprise later. Put it in the assumptions list.
- Cyclic dependencies. Feature A needs B, and B needs A. Find the smallest piece that can ship first and break the cycle there.
Checklist
- Every dependency has a type, an owner, a needed-by date, and a status.
- Every constraint has a number or a clear pass/fail check.
- Unconfirmed beliefs are labeled as assumptions.
- Open decisions link to the open questions section.
- Each discipline lead has read their items.
Exercise
Your spec for a grappling hook says "The hook must feel smooth and not hurt performance," and it lists "needs rope art" without further detail. Rewrite these two lines as one constraint and one dependency, including the fields that make each one usable.
Show answer
Constraint: "The hook update costs under 0.3 ms per frame on the minimum-spec console, checked with a profiler capture." This replaces "smooth and not hurt performance" with a number, a platform, and a check. Dependency: "Rope art (rope segment mesh and attach-point effect). Type: Content. Owner: Environment Art lead. Needed by: Sprint 6. Status: Not started." This adds the missing type, owner, date, and status, so the work can be scheduled and tracked.
Exercise
The dash spec assumes "level walls already carry collision tags," and the dash rules depend on this. What should you do with that line, and why?
Show answer
List it under assumptions with an ID, and ask Level Design to confirm it before sign-off. If it is false, the wall edge case ("dashing into a wall ends the dash") cannot be built as written, so you would then add a real dependency with an owner and date for adding the tags.