Solve low-degree-of-freedom subproblems first to avoid blocking better designs

Type: types/note.md · Tags: computational-model

When a flexible design choice could consume the few viable options for another subproblem, committing the least flexible decision first can preserve those options. Christopher Alexander's kitchen example illustrates the mechanism: window placement has very few viable positions, table placement depends on the window's light, and stove placement is comparatively flexible. If you place the stove first, you can accidentally consume the only strong position for the window or table.

This is not domain-specific advice about kitchens; it is a general sequencing rule for constrained search:

  1. Identify subproblems by the size of their feasible set ("degrees of freedom").
  2. Commit low-degree-of-freedom choices first.
  3. Recompute feasible sets for remaining choices.
  4. Defer high-flexibility choices until constrained decisions are fixed.

The reason this works is optionality preservation. Early decisions with many alternatives should not be allowed to block decisions with very few alternatives.

Constraint-satisfaction search tests the same rule under exact conditions. Bacchus and van Run study minimum remaining values (MRV): at each branch, commit next the variable with the fewest values still consistent with earlier commitments, then prune the remaining domains, which is step 3 above. On their binary benchmarks, MRV ordering beat static orders in every reported test except enumerating all n-Queens solutions. Their explanation differs from this note's. MRV is fail-first: it makes a dead end surface at the next step instead of after exponential work. The two explanations agree when a commitment is cheap to undo. When a commitment is hard to reverse, as many design decisions are, only optionality preservation argues for the order, and the CSP evidence does not cover that case. The paper also names where the ordering stops paying: large, easy problems with many solutions, and the cost of computing the ordering itself.

SAT solving shows what replaces the rule when option counts cannot rank candidates, since every Boolean variable has two values. Chaff treats a variable with one admissible value as no decision at all: propagation assigns it before the next decision. It ranks the rest by VSIDS, a decayed count of each literal's appearances in recently learned conflict clauses. Reading that count as a substitute measure of how constrained a choice is belongs to this note, not the paper, and the paper does not isolate VSIDS's contribution. The agent-side analogue is a conjecture: when feasible-set sizes cannot be estimated, prioritise the decisions that recently caused failures.

In agent workflows, low-degree-of-freedom choices usually correspond to hard constraints: required output schema, tool contracts, file locations, deterministic validation requirements, or precedence rules. High-degree choices are often rhetorical or representational: phrasing, narrative order, or which equivalent summary format to use. This matches decomposition rules for bounded-context scheduling: selection and constraint-setting happen first; expensive synthesis calls happen after the constrained frame is established.

The rule also applies when commitments are split across an authoring/execution divide — an orchestrator and its subagents, or a plan and the agent that runs it. Role can assign a decision to another actor, while later evidence can defer its timing; those choices may coincide, but they are independent. An author should fix what the executor can't determine, not what it will applies that distinction to which facts and choices belong upstream or at execution.

Scope

Designing a new artifact and revising an existing one have different starting points. New design selects choices to build around; revision also asks which existing commitments warrant reopening. This rule orders choices that are open, not whether every existing commitment should be reopened. Option preservation can matter in either situation, just as new design can accumulate drafts or prototypes exposed to later rework.

This rule orders choices by their remaining options to avoid blocking feasible designs. It does not rank choices by how much completed work their resolution could discard; unresolved revision choices put dependent polish at risk of rework develops that separate mechanism. In revision, a claim with many viable revisions can still require discarding much prose that depends on it. Conversely, a required metadata value can have only one valid answer without requiring any prose to be discarded. These are local reasoning examples: option count and the amount of dependent work at risk are distinct considerations. The option-preservation argument alone does not establish which ordering best avoids discarded revision work.

Open Questions

  • Can degree-of-freedom estimates be made explicit enough for deterministic scheduler heuristics? In exact constraint search they can, since MRV maintains a count of remaining values, but that count depends on cheap, exact consistency checks that design choices lack.
  • Which "apparently flexible" choices become low-degree once downstream validation is considered?

Relevant Notes: