How one fix to a shared foundation reaches sites

How to find the owner of a defect, fix shared behavior, and deliver a verified revision to each relevant consumer.

One shared part in different structures: a metaphor for delivering a fix to sites.

One hypothetical defect, one owner, and a separate update for each consumer.

Code reuse is best assessed when something changes. Imagine two sites showing headlines in the wrong order after the same editorial action. Both use a shared capability for reading data. We need to find the cause, fix it, and demonstrate that both consumers receive the intended result.

In the Solution200 approach, a shared fix has one responsible owner. Delivering it to sites remains a separate part of the work. This distinguishes the correctness of the capability itself from the correctness of its use in a product.

Find the owner of the problem first

An investigation can begin on the page where a symptom is visible. But the place where we observe a problem is not always where its cause belongs.

Suppose a query returns the correct order, but one site's template changes it before display. The problem then belongs to that presentation. If the shared reading capability produces the wrong order, that is where the change should happen. If the result is stale, cache invalidation needs investigation.

This is an important decision to make before writing a fix. A workaround on the page can hide the symptom and leave the cause for the next consumer. Changing the shared foundation to accommodate a local detail can, in turn, impose that detail on every other product.

One change does not mean one set of checks

Once the owner is identified, its behavior needs checking. In our teaching example, this means establishing the ordering promised by the contract, the data it accepts, and what happens in edge cases.

In particular, a list with equal primary values needs a clear secondary order. An empty list should remain a valid result if the contract allows it. An unknown or invalid request should have a defined response.

Checking a shared capability does not replace checking its consumer. A journal may show selected articles, while another site shows a category's material. They use the same behavior in different compositions. We need to make sure that the result retains its intended meaning on each page.

Delivery goes through a pinned dependency

A shared library changes in its own source. A consumer receives the required revision through the accepted dependency mechanism. In a Symfony project, the dependency declaration and the locked package set are important parts of that connection.

A manual fix in an installed library creates a local difference that is absent from the dependency's pinned revision. A clean installation can reproduce the previous code and bring back the old behavior.

In Solution200, the source of a shared change and the place where it is used therefore remain distinct roles. The consumer adopts a specific revision and checks it in its own composition.

Stage of the hypothetical changeWhat needs to become clear
Investigating the pageExactly which result is wrong
Identifying the ownerWhich capability produces that behavior
Fixing the foundationWhich contract is preserved or changed
Delivering the revisionWhich code the consumer now uses
Checking the siteWhether its final scenario works correctly

Where the benefit appears and where work remains

With this model, there is no need to maintain several independent implementations of the same behavior. Behavior and its verification have one home. This gives the next product a clear starting point and a known dependency.

Delivering a change still has a cost: choosing a revision, checking compatibility and installation, and verifying the result in the consumer. If the contract changes, the impact on other products needs assessment before they are updated.

Claims about time savings therefore require measurement of a specific case. The architectural model explains which repetitive work can be removed. It does not establish a universal speedup percentage or guarantee cheaper development.

After any shared change, two questions are useful: is the behavior correct at its owner, and does each relevant product use the verified revision? Answering the first successfully does not make the second disappear.

  1. Repository governance Rules that survive the next development session
  2. PHP PHP and Composer: what to check beyond the version number
  3. Platform Engineering First Symfony site on a prepared stack: Composer and file permissions
  4. Vendors & Packages Upgrading a shared capability in two sites one at a time
  5. Symfony Core Independent sites with a shared Symfony foundation