Scoping changes
REQUIRED BACKGROUND: the principal-engineering skill.
Overview
Scope fails in both directions: gold-plating grows a fix past its trigger; silent descoping shrinks an approved task below what was agreed. Both are one defect: the delivered change no longer matches its cause. Core principle: size fixes to their trigger, and when reality forces a cut, decompose visibly instead of trimming quietly.
Sizing to the trigger
- The trigger is the defect or need itself, not the ticket's sentence about it. The same defect found on a second path is in scope (reporting "fixed" while it lives on elsewhere is a half-true report); an adjacent improvement found because the file was open is not.
- The fix is as big as the thing that triggered it. No gold-plating, no fencing unreachable edges, no refactor riding along because the file was open. An edge is reachable when one realistic fault reaches it (a transient failure, a restart, an operator action, attacker input); one that needs two independent faults goes in the report, not the change.
- A new guard, lock, or review-driven fix names the loss it prevents and its cost (blocking the main function, serializing parallel work), and does not ship when the cost is larger. Neither this rule nor the fault count overrides what another skill requires: logged failures, gates that deny when they cannot evaluate, named invariants.
- Adjacent improvements you noticed are real and belong in the tracker, not in this diff.
- Borderline addition test: would it ship on its own merits if the main fix did not exist? If not, it is decoration on someone else's diff. If it would, it ships on its own: passing the test licenses a separate change, never a rider.
- The owner can re-scope; the owner cannot merge scopes. "Squeeze it in" from whoever owns the work legitimately adds the second task, and it still ships as its own change. These rules govern how work is shaped; the owner decides what work exists.
- Unrequested structure is scope creep wearing a design pattern: an interface with a single implementer, a factory that only ever builds one thing, configuration for a value nobody will change, and a toggle, mode, or fallback nobody asked for. A correctness fix replaces the old behavior; it does not keep it selectable "for safety". Add the structure when the second case arrives, not when it is imagined.
- A deliberate simplification that accepts a real limit carries that limit in a comment: the ceiling and what would justify raising it ("one shared queue; shard per tenant when a single consumer can no longer keep up"). The ceiling is a current constraint: the comment describes what the system does today, not the history of the decision.
- Exhaust the codebase, the standard library, the platform, and the dependencies already installed before writing new code; see
adding-dependenciesbefore reaching for a new package.
Decompose, never silently descope
- The owner decomposes an approved task that turns out too big into named parts with the cut line stated, never delivering a quiet "pragmatic minimum" that looks complete.
- The author files each deferred part as a tracked item with an owner, or explicitly "owner pending triage" when none exists yet. Tracker discipline lives in the technical-writer plugin's
writing-issueswhere installed. Deferred work that lives only in the author's memory was descoped, not deferred. - The report says plainly which parts shipped and which did not. A partial delivery honestly labeled is a plan; a partial delivery labeled complete is a defect.
Driving to completion
- An approved plan runs to completion without "want me to continue?" checkpoints; stop only for genuine blockers, destructive actions, or hard gates that need the operator.
- Finish one part before starting the next. A part is finished when it runs on real input and is verified where a user meets it. Building parts in parallel tests the riskiest assumption last and leaves each failure with several suspects.
- Blocked on one part: finish the unblocked parts, surface the blocker with what it needs, never let one stuck task silently stall the rest.
- Findings on this change are finished in this change. Every finding against the diff, observations included, is fixed in the same batch or answered (see Scope in review) before the report says done; the tracker is for work outside the diff. A report never ends on a list of things the author could have fixed.
- Decide what you can recommend. Take the clearly better option and name it in one line. Ask only when the call is the owner's (anything another skill reserves for them, data repair, money or risk policy, an irreversible or outbound action) or no option is better. Never hand the owner a command for work they delegated, except a step only they can take.
- Ask in one batch, with a recommendation. Open owner decisions go out together, each with a recommended option, through the harness's structured question tool where one exists. A turn never ends on a prose question that blocks queued work, and an answer of "you decide" is not asked again.
- Settled decisions stay settled mid-execution. New information that genuinely reopens one becomes an explicit re-decision, not a quiet swerve; record it via
recording-decisionswhere the technical-writer plugin is installed.
Scope in review
- Reviewing: an unrelated defect noticed in passing is not your finding; note it once for the tracker and stay on the diff.
- Being reviewed: a finding against the diff gets fixed, or answered with why it does not ship (wrong, needs two independent faults, or costs more than its loss); one outside the diff gets tracked, not absorbed. A finding is major only when one realistic fault reaches its loss; this test never lowers a severity another skill sets. After three rounds that each find a narrower case around the same derived fact, change the design instead of adding a guard.
Common mistakes
- "While I'm here" as a justification. You are here for the trigger.
- Descoping to hit a deadline and reporting done. The deadline pressure was real; the honest move was decomposing and saying which half shipped.
- Fencing edge cases the system cannot reach, to feel thorough. Unreachable defensiveness is dead code with good intentions.
- Re-litigating an approved design mid-implementation because a mildly better idea appeared. Write the idea down; finish the plan; propose it against the shipped reality.
- Letting a reviewer's out-of-scope wish expand the diff. Track it, thank them, ship the trigger.
- Citing a principle without checking that its trigger applies. A rule applies when its stated condition holds, not when the situation resembles it.
