Incompatible configurator options: explaining rejection to the user

A teaching configurator preserves the original selection, explains conflicts, and offers validated alternatives. Ten combinations show why fewer changes do not automatically make a better solution.

An assembled form and separate pieces suggest different ways to combine them.
An assembled form and separate pieces suggest different ways to combine them.

A person selects a static site, moderated comments, and updates without rebuilding. The configurator removes comments, keeps its “ready” label, and generates a project. It may have produced a valid set of files, but the product intent has already changed without the user's decision. The mistake began before code generation, in the way the system resolved a conflict between options.

A useful configurator explains which selected requirements it can combine, what prevents other combinations, and which changes would help. We will build a separate teaching model for a fictional journal. It handles five choices, returns reasons and alternatives, and stops before creating any application.

Constraints belong to a specific catalogue

First, define the vocabulary. Otherwise, “incompatible options” can hide different things: an unavailable implementation, a deliberate product policy, or a feature name the system does not know at all.

Choice Options in the teaching model
Runtime A static build or an application on its own server
Search None, local, or external
Comments Off or moderated
Updates At build time or live
External services Forbidden or allowed by policy

This catalogue has three rules. Moderated comments are implemented in its own server application. Live updates also require the server option. External search is available only when the external services policy allows it.

These are decisions for our fictional product. A static site with a separate comment service could be a different architecture, but this catalogue does not include that option. The message should name the support boundary. A general statement that “static sites cannot have comments” would give a local rule more authority than it has.

The original selection stays visible

The request preserves the answers and a list of fields whose values must remain unchanged in alternative proposals. Here is the complete teaching input:

{
  "schema_version": 1,
  "rules_version": "journal-compat-v1",
  "selection": {
    "runtime": "static",
    "search": "local",
    "comments": "moderated",
    "updates": "live",
    "external_services": "forbidden"
  },
  "pinned": ["comments", "updates", "external_services"]
}

Comments, live updates, and the ban on external services are pinned here. A proposal must preserve them. The static runtime can still be reconsidered. This distinction separates a required outcome from an implementation approach that the person currently considers suitable.

pinned is not an access control system. It is an agreement within one request. In a real product, permission to change an organisational policy must be checked separately; it cannot be inferred from a field being absent from this list.

The rules version is explicit too. The model rejects a request with a different version so that an old selection does not silently acquire a new meaning. For a real configurator, migrating the questionnaire or reviewing a changed catalogue would be another separate decision.

An explanation contains a reason and a specific change

For every rule, the model returns the observed values, condition, required consequence, and state: the rule does not apply, is satisfied, or is violated. The example request has two conflicts: comments and live updates require server, while static is selected. The external search rule does not apply because search is local.

The person should see a concrete message: “In this catalogue, moderated comments run in a server application. You selected a static build. To retain comments, you can switch to the server option.” A rule identifier links the message to the decision, but it does not explain the problem on its own.

W3C separately describes identifying an error in text and suggesting known corrections. These are useful guides for configurator messages. Our JSON example is not an accessibility assessment of a finished interface.

The reason should remain alongside the selection when alternatives appear. Otherwise, the person sees several new configurations without understanding why they were proposed. A complete evaluation trace also helps reveal a rule that accidentally stopped applying after a catalogue change.

An alternative is checked as a whole

The five choices produce 48 possible combinations. For a model this small, we can enumerate them with itertools.product, rejecting rule violations and changes to pinned fields. Of the remaining candidates, we retain every proposal with the smallest number of changed fields.

Our input has one nearest proposal: change runtime from static to server. One change resolves both conflicts while retaining comments, live updates, and the external services policy. The result explicitly records the original value, proposed value, and resolved reasons.

Fixing each error separately might suggest disabling comments and then switching to build-time updates. That would change two requirements and violate our pins. Evaluating the complete configuration again ensures that a local suggestion does not introduce another conflict.

Enumeration does not automatically scale to an arbitrary catalogue: the number of combinations grows with every additional choice. It is convenient here because the domain is small and visible. A larger system can use a different algorithm while retaining the requirements for explanations and validation of the final proposal.

Fewer changes do not determine a solution's value

If external search is selected while external services are forbidden and both fields may be reconsidered, the model finds three alternatives requiring one change: local search, no search, or a permissive policy. They have the same mathematical distance but very different consequences for the product.

The number of changed fields is therefore named as a selection rule, not a quality score. It does not account for cost, response latency, loss of a needed feature, or the person's authority. The result does not automatically declare a “best” option; stable sorting serves document comparison.

If external search and the ban on external services are both pinned, this catalogue has no valid alternative. A correct result states that boundary. It does not remove the pin, add an unknown integration, or conceal rejection behind successful generation.

Ten combinations make the rules concrete

The exercise includes ten cases defined by hand. Options omitted from the table have the ordinary values for their respective example; the complete inputs are stored in combinations.json.

Case Defining selection Expected response
Minimal site Static build, no search or comments Compatible
Local search Static build with local search Compatible
Server comments Server, moderated comments Compatible
Live updates Server and live updates Compatible
Allowed integration Server, external search, external services allowed Compatible
Comments in the static option Static build and moderated comments Explain the server requirement and offer alternatives
Live static option Static build and live updates Explain the server requirement and offer alternatives
Forbidden integration External search, external services forbidden Explain the policy conflict and offer alternatives
Three conflicts Static build, comments, live updates, forbidden external search Three reasons and validated combined alternatives
Pinned conflict Static runtime and moderated comments both pinned No valid alternatives

These cases distinguish a normal selection, a rejection that permits reconsideration, and the absence of a solution under the current pins. Returning an empty list of alternatives without that explanation would lose a meaningful distinction.

An unknown value does not become a new feature

The model checks the request's shape before checking compatibility. An unknown field, missing answer, wrong type, or a search option named magic is rejected as invalid input. A conflict cannot honestly be calculated for these cases: the catalogue does not define the value being considered.

The local reader also rejects duplicate JSON keys, nonfinite numeric constants, and documents larger than 65536 bytes. The Python JSON documentation describes the relevant hooks and recommends limiting untrusted input size. These are boundaries of this particular command-line exercise; it does not create a network service.

Another review still ends before execution

In the local run, 28 scenarios produced the expected result. They include the ten combinations in the table and 18 boundary checks, including preservation of the original request, complete explanations, minimal alternatives, and identical results in fresh Python processes. Within one scenario, all 48 combinations are examined separately: 25 satisfy the three rules, and 23 contain conflicts.

After explicitly choosing a proposal, it can be submitted as a new request and checked again. Even a compatible result retains execution_authorized=false. The model creates no sites, installs no packages, calls no providers, and changes no CMS data. Its output is an explainable decision within the declared catalogue.

Moving to generation requires a further step with its own scope: an accepted selection, concrete implementations, and verified execution conditions. A well-explained rejection helps reach that step with the intent the person wanted to realise, or with a change they explicitly accepted.

  1. Architecture Configuration or a new implementation: when to stop adding settings
  2. Products From a feature list to a site plan: what a blueprint should contain
  3. Products A generated project after a clean clone: what “works immediately” means

A project by the author · Weather Solution200

After reading, a look outside.

Temperature, rain and wind in your city. Check the forecast and plan the hours ahead.

Check the forecast
Next article