The cost of a shared foundation: assessing changes without invented savings percentages

An executed integration rehearsal of prepared versions: unchanged R1 calls, selective R2 opt-in, Git diffs, and command timings without invented development time.

A shared foundation, distinct structures, and individual change pieces: a conceptual illustration of accounting for work.
A shared foundation, distinct structures, and individual change pieces: a conceptual illustration of accounting for work.

A shared foundation removes the need to fix the same behavior independently in every product. That does not establish that the next change will cost half as much. The capability owner spends time investigating and implementing, consumers spend time adopting the change, and verification covers both sides. Counting only the central diff makes some work disappear from the report, even though it never disappeared from the team's calendar.

This discussion needs a small unit of observation: a specific task, a known starting version, two defined consumers, and accounting rules written before work starts. Here, prepared V0/V1/V2 snapshots underwent an independent synthetic integration rehearsal in one Demo. This was not development from scratch: the prepared solutions were read before execution. Actual command elapsed times were recorded, but active work was not tracked continuously, so its fields remain null.

What counts as cost

The first question should be “what work are we counting?” before asking about a percentage saved. For one change, I separate the capability owner's active work, adaptation by each consumer, and verification. The owner investigates the cause, clarifies expected behavior, and changes the implementation. A consumer selects the required version, agrees on how to call it, and adjusts its composition if necessary. Verification establishes whether the agreement holds in every required scenario.

Command elapsed time and waiting have separate fields. A dependency installation delayed by the network matters to the progress of the change, but it does not equal active programming time. If the operator investigates another task while a test runs, the entire interval cannot be assigned to both activities. For each operator, only one active category applies at any instant.

This model describes time costs; it does not automatically establish a monetary cost. Converting to money requires further assumptions about rates, infrastructure, and support. Assessing benefit requires the change's consequences for the product. Lines of code, person-minutes, and value to a reader are different quantities; the first cannot quietly replace the last.

Two tasks in one application

The teaching capability produces an English label for the number of available seats. Two synthetic consumers show different offers: A has one available seat out of eight, and B has two out of five. The data is invented; there is no real booking or external service. Both consumers live in the same teaching Symfony application, with fixtures supplying different inputs. These are two call compositions, rather than two separately deployed sites.

The first task, R1, fixes the singular form: the starting version returns 1 seats, while the candidate must return 1 seat. The existing call signature remains unchanged. B must retain the response 2 seats. The owner changes the labeling rule; both consumers must be checked against the candidate without adapting their calls. Before execution, we do not yet know how long this verification will take.

The second task, R2, adds a separate way to show total capacity: 1 seat of 8. A explicitly chooses the new call, while B continues using the old one and sees 2 seats. The old method must preserve its previous behavior. V0, V1, and V2 name prepared versions of the teaching code; they are not published packages. In this setup, “release” means only a local rehearsal with recorded versions, without a package registry, remote tags, or delivery to a server.

Freeze the conditions before the first change

Before work, the operator records both task definitions, the application's starting revision, the lock file checksum, the environment, and acceptance criteria. The protocol itself must also be frozen. Changing a metric's definition after an unsuccessful run creates a new protocol; previous observations retain their previous definition. Otherwise, a result can quietly be adjusted to fit the desired conclusion.

R1 criteria include a correct singular, preserved plural, and rejection of invalid capacity. R2 adds the new call's result and preservation of the old one. Checking A does not replace checking B: the unchanged consumer reveals whether adding a new capability affected the previous way of using it. Record the specific adopted revision for each consumer, even when they use the same candidate.

A prepared solution introduces another boundary. Reading completed V1 and V2 is not a measurement of the time required to create them independently. If a future run aims to assess development, the operator must work from the starting version using the frozen tasks, and prior familiarity with the prepared answer must be recorded. If the operator only integrates prepared code, the measurement describes integration. The metric's name must match the work actually performed.

A journal with pauses and missing values

Active work requires start, pause, resume, and end events. Record a brief reason for a pause: waiting, interruption, or unrelated work. Durations should come from a monotonic clock. PHP provides hrtime for this; the clock itself, however, does not determine what work a person was doing. The protocol defines the category and interval boundaries.

Commit times and file modification dates are unsuitable for this purpose. Between two commits, a person may have worked on something else, while a single change may have taken several short sessions. Exact working time should not be reconstructed from these indirect traces. If an interval was not recorded, its field remains unknown. A retrospective estimate can be a separate note, but it does not become a measured duration.

Zero is particularly easy to misuse. R1 does not plan call adaptation, but that does not yet mean a measured zero seconds. First, check the consumer and record the decision that no edit is needed. Until that stage is visited, the value is null. Even after confirmed zero editing, verification time remains separate, real work. A skipped check does not become successful, free adoption.

A diff describes change volume, not speed

The protocol should include a method for counting changed files and added or removed lines. Git diff provides the machine-readable --numstat format. Define both revisions and the path list in advance: first-party code, configuration, tests, and fixtures. Otherwise, counts from different runs may cover different surfaces.

Lock file changes, generated code, and formatting-only churn should be counted separately. They may require review, but extra lock file lines do not imply extra business logic. A short diff may follow a difficult investigation, while a large one may result from a mechanical change. It is a useful description of the review surface, rather than an operator productivity score.

The journal needs every validation attempt: command, exact input revision, exit status, duration, and a brief result. An unsuccessful attempt is part of the run's cost. Keeping only the last green result removes the work that led to it. Unresolved compatibility work also needs an explicit entry; completing the central fix does not close it automatically.

Before starting the next run, consider the environment's boundaries too. This example has no network delivery, independent installations, or several teams working concurrently. Local verification of two fixtures therefore does not assess organizational coordination between site owners or the delay of a real deployment. If those costs matter to a future decision, add them as separate stages in a new protocol and observe them where they actually occur. Expanding the table after the local experiment ends will not create the missing data.

What these observations can establish

A useful run result is a matrix with two rows, R1/R2, and separate fields for the owner, adaptation A, adaptation B, and verification. Keep command durations, waiting, revisions, diffs, and open questions alongside it. Populated values represent observations; null represents missing data. Summing active intervals is appropriate only for an explicitly defined scope of work; it does not describe the calendar path of several parallel operators.

R1 and R2 have different content: a defect repair and a new capability with selective adoption. If the second run is shorter, that alone does not establish acceleration from a shared foundation. The operator already knows the code, the environment may be warm, and the tasks have different complexity. Two observations can reveal the composition of work, but cannot establish a universal pattern for dozens of sites.

A claim of savings compared with duplication requires a separately executed, comparable alternative. Its conditions, tasks, and metrics must also be defined before work. Without that run, there is no factual denominator for a savings percentage. Imaginary time for two independent implementations cannot be subtracted from a real journal and presented as an experimental result.

The practical benefit of this accounting appears before impressive numbers do. It shows which part of a change belongs to the owner, where a consumer needs adaptation, and which verification remains incomplete. That is already enough to plan the next step and ask precise questions about expensive areas. A shared foundation becomes a subject for a verifiable discussion when the central change is accompanied by the entire path of its adoption.

In the executed run, six distinct test methods produced 17 executions and 20 assertions: one method covers 12 negative datasets. R1 fixed A to “1 seat”, preserved B as “2 seats”, and changed neither caller. In R2 the candidate preserved the old API; adoption changed only A to the “1 seat of 8” opt-in, while B stayed unchanged. Local Git object revisions and allowlisted numstat recorded R1 owner +1/−1 with no adoption diff; R2 owner +7/−0 and A adoption +1/−1. This describes changes to prepared snapshots, not productivity. No comparable alternative was executed, so these results establish neither savings nor ROI.

  1. Conformance How one fix to a shared foundation reaches sites
  2. Architecture When a shared capability is ready to leave the project
  3. Vendors & Packages Upgrading a shared capability in two sites one at a time
  4. Platform Engineering Consumer contract tests: catch a break before upgrading the site

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