From a feature list to a site plan: what a blueprint should contain

An independent model turns a questionnaire into a plan of components, dependencies, and open requirements. Check stable selection and separate plan review from execution permission.

A plan shows the selected parts and decisions that still need to be made.

Listing the features of a future site is easy: a catalogue, search, several languages, editorial approval, and emails to readers. It is harder to explain what must be combined, which decisions have already been made, and where work cannot yet begin. Ticking “search” does not define its source, update mechanism, or the person responsible for configuring it.

A separate artifact can help between that questionnaire and application creation: a blueprint. Here, the term means a reviewable plan of selected capabilities, their dependencies, and open requirements. It does not imply a universal standard or a finished generator. We will use a small, independent Python model of a fictional journal that produces a plan and stops there.

A plan has its own outcome

The successful outcome of a questionnaire is a set of saved answers. The successful outcome of a planner is a clear description of the proposed solution. A directory of generated files, an installed package, and a running service are different outcomes that need their own checks. Combining these steps turns a simple form selection into an implicit command to change the environment.

Our plan contains a normalized questionnaire, selected components, reasons for including them, dependency order, and unresolved requirements. It records separate versions for the format, selection rules, and catalogue. This makes the source of a change visible: a person's answer, the document structure, or the model of available capabilities itself.

Components are abstract roles here. public_read means reading the catalogue, while delivery_outbox expresses the need to retain a delivery intent. The exercise does not need to implement these mechanisms to check their selection. Equally, putting their names in JSON does not prove that corresponding libraries exist or are compatible with one another.

The questionnaire keeps unknowns explicit

The model supports one product type, a journal, and four capabilities. The catalogue is the required foundation; approval, search, and an email digest are added explicitly. Languages come from a finite list. Their order in this questionnaire does not establish a primary language or translation priority.

Here is the complete input for one teaching case:

{
  "schema_version": 1,
  "product": "journal",
  "features": ["catalogue", "site_search", "email_digest"],
  "locales": ["uk", "en"],
  "decisions": {
    "search_backend": "local",
    "mail_adapter": null
  }
}

This selects a local search option, but the approach to email has not yet been chosen. null has a precise meaning: the decision is open. The planner does not insert a popular provider, read an arbitrary environment variable, or treat an empty value as permission to disable a requested capability.

An unknown capability name is a different situation. The model rejects it because it has no rules for that selection. It also rejects duplicates and a search adapter decision without search being selected. This distinguishes an incomplete but understandable intention from contradictory input that should not be silently repaired.

The catalogue defines dependencies; rules select roots

The example catalogue contains 12 abstract components. It stores their dependencies, while separate rules select the initial roots from the answers. This separation makes both parts explainable: why a capability is needed, and why another role appears alongside it.

Questionnaire choiceInitial componentAdditional condition
Cataloguepublic_readRequires content_store
Editorial approvalreview_queueRequires editorial_write
Several languageslocale_routingRequires public_read
Searchsearch_projectionThe search approach is selected separately
Email digestdigest_scheduleRequires reading and an outbox

Dependency names are neither Composer packages nor names of operational services. This is a deliberately small vocabulary for a teaching model. A real catalogue would need contract owners, supported versions, and compatibility evidence. Copying a list of every available library into it would not be enough: the availability of code does not explain its purpose.

Selection follows dependencies all the way down. If a digest requires an outbox and the outbox requires storage, storage must appear in the plan without its own questionnaire checkbox. A shared dependency appears once but retains every reason for its inclusion. Removing one capability must therefore not remove a component that another capability still needs.

Dependency order is not a deployment plan

Showing dependencies before their consumers helps explain the composition. A topological ordering provides such a sequence for an acyclic graph; Python offers the graphlib module for this purpose. That is a property of the graph, not a promise that components can be installed or started in that order.

The example validates the entire catalogue first. A reference to a missing component or a cycle stops planning even when the problematic part was not selected. The catalogue owner must resolve the inconsistency instead of receiving a partly plausible document. Unknown nodes are not automatically added with empty dependency lists.

Independent nodes can have several valid orderings. Each ready group is therefore sorted by identifier. This is an explicit rule of our model: an ordinary topological order can depend on node insertion order, as the Python documentation also explains. Alphabetical order provides document stability here; it does not express a feature's importance to the product.

An unresolved requirement has a subject and an owner

For the input above, the plan contains 7 components and one open requirement: choose_mail_adapter. Its subject is the email digest, and the product is identified as the decision owner. This is more useful than a general “configuration incomplete” message because the reader can see exactly what remains to be decided.

Selecting external search adds an external adapter and leaves a requirement to configure an endpoint. External email similarly requires provider parameters. Choosing an integration category does not settle addresses, access, or operating conditions. Secrets are outside this teaching document, and their values cannot be inferred from a capability name.

A plan with open requirements has the state needs_decisions. Once the modeled questions are resolved, it becomes ready_for_review. This means ready for examination within the limits of this particular catalogue. Both states retain execution_authorized=false; neither a complete questionnaire nor the absence of errors grants permission to deploy anything.

Determinism needs a precise definition

The same intention can be written with a different order of keys or capabilities. Under RFC 8259, a JSON object does not impose an order on its fields, whereas an array is ordered. The model therefore explicitly identifies which lists behave as sets: selected capabilities and languages are normalized, while dependency order is computed using its own rule.

The output uses Python JSON serialization settings: sorted keys, fixed indentation, and a final newline. Combined with ordered lists, these produce identical bytes for this restricted model. This is neither universal canonicalization of arbitrary JSON nor a guarantee that results remain unchanged when the rules change.

A reproducible plan requires the same answers, rules, and catalogue. A version label alone is insufficient if someone changes a file while retaining the old label. The provenance of a particular check is therefore stored separately from the public explanation. Random values, current time, and local paths are absent from the blueprint itself: they should not alter a product decision.

What the local exercise checked

All 22 scenarios produced their expected outcomes in the local run. They covered a minimal journal, optional approval, local and external choices, shared dependencies, catalogue changes, open requirements, and refusal of invalid input. Output bytes were also compared after reordering answers and catalogue entries, and across fresh Python processes with different hash settings.

The writing boundary was checked as well: a new plan can be saved to a new file, while an existing file, directory, or symbolic link is not overwritten. An invalid questionnaire creates no output document. The reader limits input JSON to 65536 bytes and rejects ambiguous duplicate keys. These are constraints of the local exercise, not a replacement for protecting a public service.

The experiment created no sites, called no providers, and made no CMS changes. It checked the planner's behavior on defined synthetic cases. Real integration, performance, budget, access, and the correctness of a future architecture remain separate questions.

The next change should be clear in the plan difference

A useful blueprint lets people compare two decisions before execution. Adding approval should explain the appearance of editorial writing; changing the search option should explain the adapter replacement and a new integration requirement. If a difference cannot be connected to an answer or catalogue change, the selection rules still contain an implicit dependency.

A small questionnaire also has a practical cost: it covers only the chosen class of needs. Availability, data retention, or funding requirements may need other plan sections. Those should be added with a clear owner and verification method when a concrete need appears, rather than hidden behind a universal “done” checkbox.

Before moving on to generation, review the plan itself: does it serve the reader's need, are all necessary dependencies named, who resolves open questions, and which actions are actually authorized? The next tool then receives a concrete object of work. It does not have to infer the intention again from a collection of checkboxes.

  1. Architecture Configuration or a new implementation: when to stop adding settings
  2. Products Incompatible configurator options: explaining rejection to the user
  3. Products A generated project after a clean clone: what “works immediately” means
  4. Platform Engineering From an engineering task to a bounded execution plan