Tag: software engineering

  • Seeing the bottlenecks in the software factory

    The baseline of the software factory is output. Ours runs at about 2 PRs an hour, which adds up to daily releases of around 50 PRs (Mondays are often bigger, given it also works weekends).

    This is nice, but over the past couple of months I’ve been taking that output as a given, and trying to improve the impact. It’s working: progress on big features has gone up without slowing down the small fixes, and November is on track for roughly double the output of September and October.

    From buckets to a river

    The challenge is a little bit of non-determinism. It’s not straightforward to know exactly which 2 PRs it will be. That’s a function of priority and what else is in flight, plus some randomness that occasionally results in things just… stalling at 80% for too long.

    If software development used to be like carrying buckets of water, now it’s more like a river. The job is still finding the bottlenecks, and making sure the flow is going in the right direction overall.

    Recently, that’s meant three changes, each for a different place the flow gets stuck.

    1. Stuck at 80%

    The first bottleneck I took on was getting it to finish things. That meant building a new habit: finding the things that had stalled at nearly done, and pushing them through to the end.

    I went through the GitHub board, and became more stringent about board hygiene. I also completely cleared out the ready column. I was travelling and not generating new work, so it became much clearer what was stuck.

    2. Too big to move

    Then, for bigger work, we adopted a spec-driven development approach that I think is pretty standard. Large features now live in a “needs spec” section on the board, and get:

    • A spec for human review, ideally with wireframes
    • A designated Claude as product owner (a pinned Claude chat, separate from the orchestrator)
    • A feature flag
    • Slicing into pieces for orchestration
    • A rollout checklist

    This made large chunks of work much easier to move through. Rather than trying to keep it all in my head, or worse, unravel Claude talking to itself across a dozen GitHub issues, I have an abstraction over all of that.

    The product-owner Claude owns the overall feature and has the context about it. That means I can query where things are, and it has clear asks of me. It’s also where a more expensive model, Fable, earns its keep.

    3. Out of sight

    What was still missing was an easy view of what is where, and what is blocked on whom. The higher the volume, the harder this gets. I post release notes every day, but at 50 PRs a day, that isn’t always easy to follow.

    So, two new views:

    • Mine is what I care about: moving my big initiatives along, and keeping the orchestrator unblocked.
    • The team’s is their point of view on what matters: the monthly goals, and all the little requests.

    My view

    Priority work on one side, questions on the other. Each question comes with options to tap, and the orchestrator acts on my pick the next time it checks in. Decided questions move to a log, with a line on what was done about each.

    Before, its questions came floating in the chat without context and often got lost. This way, it’s easier to batch, answer the quick ones quickly, and have time to think about the others.

    The orchestrator view: priority work tracks with their status and pieces of work on the left; questions waiting on me, with options to pick, and a log of decisions on the right.

    The team view

    The goals we committed to in the monthly board update, the smaller work people asked for, and questions grouped by who needs to answer them. It refreshes at 14:00, 18:00 and 22:00 my time, through the US working day, and answers go back onto the GitHub issue at the next refresh. Anything built goes to “Check on staging” first, so the person who asked for it can try it before it’s turned on in prod.

    It also shows how many of their requests we get through. People are inclined to fixate on the thing they want that we haven’t built (yet); this puts it next to everything we have.

    The team view, in three columns: monthly goals with progress bars, work people asked for grouped by status, and questions for each team with options to answer.

    Both screenshots are anonymised and compressed versions of the real thing.

    A day in the software factory

    The best way to illustrate all this is to outline a day in a software factory, as a European working mainly with Americans. I don’t work on this full time, but when I do a full day, this is what it looks like. It’s also only a partial view: the other engineer has her own, works more on bigger features, and validates DB changes before they reach staging.

    The orchestrator runs all the time. Between every block, I check in on it for 10 minutes, tops, to make sure its questions are answered and it has work to dispatch. (Honestly, I also check in on it out of hours – like right before I go to bed 🙈.)

    A timeline of a day from 7am to 6pm Cork time: the orchestrator running throughout, Claude preparing the release from 7am, release from 10am taking 30 minutes to 2 hours, short orchestrator check-ins between blocks, large features and triage late morning, lunch, a proactive block from 2pm, and time with the US team from 4pm.

    Every morning starts with a release, which Claude starts preparing at 7am: it checks and dispatches any must-fixes, and runs all the checks. The release itself takes 30 minutes to 2 hours, depending on how big it is. That covers reviewing Chromatic diffs, a final check on DB changes before prod, checking everything goes live as we expect, final validation and switching on anything due to go live in prod, and editing and posting the release notes to the team.

    Then it’s the large features in flight: what is unblocked, what the next steps are, what needs to be validated and what decisions can be made. After that, the team’s feedback from their day (my overnight) gets filed into the ready column for the orchestrator, or needs spec for everything else.

    After lunch is a proactive work block, for things like:

    • Working through the needs-human column
    • Putting together specs for other features
    • Iterating on and refining large in-flight features
    • Going through the large in-flights, and figuring out what will move them forward
    • CTO work (strategy or being the IT department, mainly)

    Then from 4pm, the team is online: meetings, ideas coming in, filing issues and technical support.

    What’s next

    My current unsolved problem is how many epics we can really have in flight. Or perhaps the real problem: I got so excited by this system that I dispatched too many epics. More generally, now that we have a new baseline, I’m working out how to iterate as we build larger features.

    I don’t know exactly what the next blocker will be. The system is still settling, and I’m sure it will emerge. Part of it will likely be CI speed – the increased output already made speeding up CI necessary, so we moved to 8 cores and cut our CI time.

  • The role of engineers in the software factory

    The other week, I found a menu button in the wrong place on mobile. Floating around the middle of the page when it should have been anchored to the side. Two things went through my head. First, the disappointment of finding a bug on the weekend. Second, we had things in place to prevent exactly this: a full design system and snapshot tests.

    I dispatched the bug fix. It shipped the next day.

    Then I dug into why the design system and snapshot tests had let it through. The first answer was simple: Chromatic only snapshotted at desktop width.

    Awkward given I spent most of my career working on mobile. But I’d been heads down on my computer, aggressively pushing a replatform, and somewhere along the way I forgot about this part of the system.

    There’s an open question about what engineers do in the software factory and whether we’re needed at all. This is where the analogy works for me. The engineer doesn’t fix the widget. They fix the system that produced the faulty widget and let it make it all the way to the user without being flagged.

    I turned on snapshots for every story at 390px, internal pages included. Even the internal views I’m pretty sure no one is ever looking at on mobile.

    The first build turned up more than a menu button. A few of the portals and internal tools needed proper mobile navigation, and there were nine smaller layout bugs, found one at a time by eye: squeezed save buttons, pills overlapping names, filters running off the edge of the screen.

    Looking at things myself gave me a sense of the scope of the problem and the extent to which our current system wasn’t working. So the next step was a detector that measures every story at 390px for elements escaping their container or overlapping each other. It recorded the existing problems as a baseline, and the baseline can only go down. We burned through 80 entries in about two weeks. Mobile CI now fails on horizontal overflow. That’s what stops the next menu button shipping.

    Then the design system, which is supposed to stop us building things that don’t work on mobile. I did a full audit with Claude (Fable), which found assorted deficiencies, including two invite flows that were 93% identical and slowly drifting apart. Those are fixed, along with a lot of smaller duplication, and each fix came with a guard: a ratchet against hand-built cards, a lint rule for mobile classes, a check that every component has a story.

    In our first month CLAUDE.md said “use the design system”, but these rules always break eventually. An instruction is a suggestion. A guard fails the build. Standards that used to be inconsistently applied in code review are now enforced automatically.

    Which is all very tidy, but the process often isn’t. I went from under-snapshotting to over-snapshotting before finding (I hope; still TBD) a middle ground. I spent hours reviewing Chromatic diffs. Phone-width checks flaked because fonts hadn’t loaded yet. Browsers disconnected mid-run. I cut snapshots that added nothing, and found a few stories that weren’t capturing what we thought they were.

    This is where the real learning curve is. It’s also where the work is. Turning on mobile snapshots was one decision; making them catch the right things without failing on fonts or burying me in diffs has taken two weeks and is still in progress. It’s why I think software engineers will still be employed despite how good Claude is at writing code: maintaining systems of this size is just hard.

    Even when the bug is fixed, the system still needs work. Which is, I guess, why some people find AI so wasteful: what a vast amount of work to not have a button in the wrong place. But the point isn’t the button; it’s a system that ships product to your standards.