Skip to content

Two workflows read one border

Every other example follows one change through workflows that want the same thing. This one is written to break that. Two workflows own the set the change lands in, read the same diff through different spans, and derive intents whose remedies exclude each other. It tests whether the model settles that by construction or by timing.

A product team with a design system its application draws from.

Artifact-set Holds
{design language} The written principles: what carries emphasis, what hierarchy means
{design tokens} The named values the product draws from, including one border width
{mockups} The screens as drawn, referencing tokens
{component code} The component implementations and their tests, one unit of change

Connections:

  • {design language} to {design tokens}
  • {design language} to {mockups}
  • {design tokens} to {mockups}
  • {design tokens} to {component code}
  • {mockups} to {component code}
{design language}{design tokens}{mockups}{component code}

{design tokens} connects to {component code} directly because a component draws values the mockups never depict, such as the border of a state no screen was drawn for. On that edge the tokens are the specification of the code.

Workflow Input Owned Output Shape
Design update {design language} {mockups} none one link
Design implementation {mockups} {component code} none one link
Token governance {design language} {design tokens}, {component code} none chain

Token governance is the design system team’s own loop. It keeps the values the product draws and the values the product declares in one set, which is why it owns both the token set and the code: it revises a component to reference a token, and it names a token for a value the product has started to use. Two workflows therefore own {component code}, as feature delivery and design implementation both own the code in the pagination example.

Every set is revisable in place, so every write is to an owned set and nothing is an output.

Standing specifications, as they stand before the run:

  • {design language}: one primary action per screen, and it must be findable at a glance. Emphasis is carried by fill and by type weight, never by border weight. Borders read as containers, and a product that emphasises with them loses the distinction.
  • {design tokens}: every value the product draws is named here. Border width has one name, border-default, at 1px, because the language gives border weight no work to do.
  • {mockups}: screens draw only token values.
  • {component code}: components reference tokens rather than literals, and they match the mockups where a mockup depicts them.

Every set keeps the default leash. The approver for {design language} and {design tokens} is the design lead. Design update declares the default strain policy: owned writes proceed, and it does not wait on a pending writer of its input.

Support reports that the primary button gets lost on dense screens. A developer opens the component, sets border-width: 2px on it, and commits. One literal, one component, no token touched. The tests never covered border width.

Variant A: the language rules out border emphasis

Section titled “Variant A: the language rules out border emphasis”
  1. Lift. The change touches {component code}, which is the source.

  2. Look up the workflows. Two workflows declare a role for the source: design implementation owns it and derives it from the mockups, and token governance owns it and derives it from the tokens. Both pick the change up. No workflow reads {component code} as an input, so nothing runs forward from it.

  3. Distill. Each reads the change within its own span, and the two intents are not the same statement.

    • Design implementation reads it against {mockups}, where the primary button is drawn on a sparse example screen. Intent: the primary action has to hold its place on a dense screen.
    • Token governance reads it against {design tokens}, where border width has one name. Intent: this control sets a border width as a value of its own.

    Neither abstains. Design implementation’s statement is an intent: it says what the change is for and it holds however the change is expressed. Token governance’s is not. It states a fact about the diff, and it is a criterion of {design tokens} wearing intent’s label, true of whatever the settled state turns out to draw. Nothing in the model refuses it, so the run below is what follows from admitting it.

  4. Ask the controllers above, nearest first. Each answers for its own set and never sees the diff.

    • Design implementation asks the {mockups} controller. The intent implies that the primary button is drawn so it stays findable against dense content. The screens were drawn sparse and hold no such criterion, so the mockups are affected. They are design implementation’s input, so the job is routed to their owner, design update.
    • Design update’s job asks the {design language} controller. The intent implies that the primary action stays findable at a glance, which the language already states, and the language names the means: fill and type weight. It holds. Design update replays from {mockups}.
    • Token governance asks the {design tokens} controller. The intent implies that every border width the product draws is named in the set. 2px is not named, so the set lacks a criterion the intent implies, which is missing strain. The tokens are affected. Token governance asks the {design language} controller above them, which derives border width is an axis this product varies and finds its set states the opposite. Affected. Nothing sits above the language, so the highest affected set is {design language}.
  5. Schedule. The run ledger holds four jobs: token governance’s replay at {design language}, design update’s replay at {mockups}, and a reconciliation at {component code} for each workflow. {design language} is design update’s input and now has a pending writer, so design update may wait, as its strain policy says. It declares the default, so it does not.

  6. The two replays run against each other. Token governance replays from {design language}. Writing border width is an emphasis axis removes never by border weight from the language’s standing specification, which is a replacement rather than a join, so the leash stops it for the design lead. Design update does not wait. It redraws the primary button with the stronger fill the language’s stated means allow, which reverses no criterion and proceeds.

  7. Reconcile at the source. Design implementation’s reconciliation reads the redrawn mockups and joins them with the developer’s change. The drawing carries a stronger fill and the default border, so reconciliation keeps the fill and drops the literal. Token governance’s reconciliation is still waiting on {design tokens}, which is waiting on the stop at {design language}.

  8. The stop is answered in its own time. The design lead is asked whether border weight becomes an emphasis axis. The question is about {design language} and its standing specification, so the redraw that has already happened is not an input to it. The branch takes as long as the lead takes, and nothing else in the run waits. The answer is a write inside the same run, so the run settles on it whenever it arrives.

The lead’s answer decides it, and both answers settle.

Refused. {design language} and {design tokens} are unchanged. {mockups} draw the primary button with a stronger fill. {component code} matches the drawing and holds no literal. The refusal is recorded at {design language}.

Accepted. {design language} gains border weight as an emphasis axis and {design tokens} gains border-emphasis: 2px. That write is a change like any other and propagates: design update picks it up, and the mockups it already redrew meet findability through the fill. The product ends with a stronger fill, an emphasis axis, and a token the drawings do not use, for one support report.

The same run under the other strain policy

Section titled “The same run under the other strain policy”

Give design update the other policy, waiting on a pending writer of its input, and change nothing else.

Design update holds, so the stop at {design language} is the first thing that happens rather than the last. It is the same question, put to the same lead, against the same standing specification, and the redraw is pending rather than done. On a refusal the run reaches the state above exactly: design update then redraws with the fill. On an acceptance it reaches the axis and the token, and design update draws the heavier border rather than the fill, so {component code} keeps the developer’s value behind a token name.

The strain policy changes when the question is asked and how much strain the run carries while it is open. It does not change which criteria the run settles under.

This was first written as a confluence failure, on the reading that the lead refuses a question the other branch has already made moot. That reading gave the run’s order a say over which criteria it settled under, which would be the most load-bearing open question answered badly. It is the wrong reading. An approver is asked about a write to one set, branches resolve at different speeds, and a run is not settled while a stop is pending. Take the answer as the lead’s judgement on the design language and both orders settle under the same criteria. Where they differ in state is the difference order is allowed to make.

The join never failed either. Criteria combine by union and the union does not depend on order, and the two intents were never compared to each other, which is correct: nothing in the model takes two intents and reconciles them. They were only ever going to meet as criteria, at the source’s controller.

What survives is a layer violation at step 3, and everything the run does after it follows correctly from admitting it. A criterion of {design tokens} was promoted to an intent, so the run pursued a condition that the other branch was in the middle of removing. On the acceptance branch one report about one button produces a stronger fill, a new axis in the design language, and a token nothing draws, and every write met its criteria on the way.

The model has no bar on what a workflow may return as an intent, which is why this passes. Abstention is the answer the model already has for a workflow with nothing to distill, and the open part is what makes a statement admissible in the first place. See what notices two intents answering one need.

Variant B: the language says nothing about emphasis

Section titled “Variant B: the language says nothing about emphasis”

The language states that the primary action must be findable at a glance and names no means. Everything else is unchanged.

Steps 1 to 3 are the same. From step 4 the answers differ.

  • Design update’s job asks the {design language} controller, which holds the findability criterion and states no means. It holds, and design update replays from {mockups}. With nothing stated above it, the means is the mockups’ controller’s own judgement, and it draws a stronger fill.
  • Token governance asks the {design tokens} controller, which is missing a name for 2px and is affected, then asks the {design language} controller. Border width is an axis this product varies is a criterion the language does not hold and does not contradict, so it is affected by missing strain. The replay writes the axis into the language, which adds and reverses nothing, so no stop is reached. {design tokens} gains border-emphasis: 2px, and reconciliation at the source keeps the developer’s value behind that name.
  • Design implementation’s reconciliation keeps the fill from the redrawn mockups.

The primary button carries a stronger fill and a heavier border. Both writes met their criteria, no criterion was reversed, nobody was asked anything, and the button is emphasised twice for one report.

The run settles and every order settles the same way, so this variant does not fail confluence. The button carries two remedies for one report, and the cause is the same promoted criterion as in variant A. Had token governance abstained, nothing here would have proposed a border at all: the fill is the only remedy, the literal is dropped at reconciliation, and {design tokens} has nothing to name.

What the variant adds is the reason variant A looked like a different failure. There, the language’s never by border weight turned the second remedy into a contradiction and raised a stop. Here the language is silent, so nothing objects. That difference is worth keeping in view, because it means a specification’s silence is the whole of the model’s tolerance for duplication, and two intents that were both admissible would meet the same silence. Nothing in the run would notice. Whether that is a defect or the implicit-criteria limit the model already accepts is the part this example cannot settle on its own.

  • How workflows are selected, step 2. Two workflows derive different intents from one diff, and the difference is their spans rather than a disagreement about the change.
  • The intent layer with no bar on it. One of the two statements at step 3 is a criterion of the workflow’s own set, and the model admits it as an intent.
  • Branches that resolve at different speeds. One branch reaches a person and the other does not, and the run settles on its final resolution rather than on what the fast branch reached first.
  • The run ledger and the claim that it never makes a run correct. Here it holds the run open across a stop without choosing the criteria the run settles under.
  • Strain policy at a stop. It moves the question to the front or the back of the run and decides how much strain is carried meanwhile. Both orders settle under the same criteria.
  • Missing strain reached from below in both variants, and the difference between a set that lacks a criterion and a set that states its opposite. Only the second raises a stop, and the contradiction question is the same one.
  • The leash against a standing specification frozen before the run. The verdict on token governance’s write is the same whenever it runs, which is why the order-dependence is in the question’s timing rather than in the leash.
  • Confluence tested by entry point, inverted. Here one entry point reaches two topologies, which is the same failure the acceptance test looks for and a cheaper way to find it.