# The work I did instead of leading

> I became a team lead at 23 and assumed my own effort and enthusiasm were the motivation. When the team was not committed, I finished their tasks myself. An itemised account of what that cost.

- Author: Deyan Peev (https://deyanpeev.com)
- Published: 2018-02-25
- Tags: Leadership, Teams, VMware, Automation, PowerShell
- URL: https://deyanpeev.com/posts/the-work-i-did-instead-of-leading

It's twenty past one on a Sunday morning and I'm finishing a synchronisation
task that isn't mine. It was assigned three weeks ago, it's on the board for
Monday's demo, and it is about seventy percent done. I'll have it working by
three, I'll merge it myself, and on Monday the demo will go fine and nobody
will mention it.

That was the second time that month. I'm twenty-three, I've been leading a
small automation team for the better part of a year, and I have convinced myself
that this is what commitment looks like from the front.

The weekend was a symptom. The mistake was the theory behind it. I had never
said it out loud, and it took me a year to see that it was wrong.

# The theory I actually held

If you had asked me what motivates engineers, I would have given you a
reasonable-sounding answer about interesting problems and autonomy. But the
theory I was *running* was simpler than that. The lead cares the most, works
the hardest, and talks about the product with real enthusiasm, and the team
catches it.

Nobody taught me that. I got it from myself. I had been motivated that way as
an engineer. Put me next to a hard problem and someone visibly excited about it
and I would work through a Saturday for the pleasure of it. So I generalised
from a sample of one, and my management technique amounted to *be the most
committed person in the room and wait.*

For about three weeks at a time, it looks like it's working.

# Seventy percent on Thursday

Then it stops working, and what I told myself was that the team wasn't
committed.

It wasn't true, or it was true only in the uninteresting sense that people who
aren't engaged don't stay late. Nobody on that team was lazy. What was
happening had a mechanism, and the mechanism was me.

A task is at seventy percent on Thursday. The demo is Monday. I take it. The
demo goes fine. The following sprint the same kind of task comes around, and
it's at sixty percent on Thursday, because last time, at seventy percent on
Thursday, nothing bad or good happened. The date arrived and someone else met
it.

I had made myself the buffer between the team and every consequence of missing
a date, and so every commitment the team made became a suggestion.

# The code I wrote at one in the morning

This is roughly what I wrote that Sunday. It reconciles the state
of provisioned deployments in one product with the workflow layer in the other,
by reading changes since a watermark and publishing them onto an exchange.

```powershell
# 01:20 on a Sunday, in the demo branch by 03:00, and mine forever.
foreach ($item in Get-VraResource -Type 'Deployment' -Since $watermark) {
    $payload = @{
        id    = $item.id
        state = $item.state
        at    = (Get-Date).ToString('o')
    }

    Publish-AmqpMessage -Exchange 'sync.deployments' `
        -RoutingKey "deployment.$($item.state.ToLower())" `
        -Body ($payload | ConvertTo-Json -Compress)

    # Advanced per item, so a mid-loop failure re-publishes everything after
    # the last success. Found that out in March, in production, on a Tuesday.
    Set-Watermark -Name 'vra-deployments' -Value $item.updatedAt
}
```

There are three things wrong with that loop and only one of them is the
watermark. It also had no test and no note explaining the ordering assumption,
because it was written at one in the morning by someone who was going to
remember. And the one that mattered is that it belonged to an engineer who was
now further behind than when the sprint started, and who had learned nothing
from the hardest two hours in it. I did that, in small pieces, for a year.

# What it cost, itemised

Nobody else grew, and the bus factor was one. I didn't set out to hoard the
interesting work. I hoarded it anyway, because what was late on a Thursday was
always the hard stuff. By the end of the year the ownership table looked like
this, and I had written it one late night at a time:

```text
component                        primary owner   others who had touched it
AMQP sync between the two tiers  me              nobody
request lifecycle extensions     me              one person, once
SOAP integration to billing      me              nobody
the migration runbook            me              nobody
scheduled reporting              engineer 3      me
```

Everyone above me got a false reading. The team hit its dates, so there was no
case for more people or for cutting scope, and no reason for anyone to look
closely at how the automation work was staffed. The picture of my team that
existed one level up was put together partly out of my Saturdays, and I was the
only person who knew that. When I eventually did raise it, I had a year of
evidence that the team could do this, and I'd produced all of it myself.

I also stopped doing my own job. This is the expensive one and it took me
longest to see. I was there to collect the client's use cases, work out which
manual steps could be automated and in what order, define the procedure the
tool would follow, and clear the blockers in front of four other people. That
work has no visible deadline, so it's the first thing that gets squeezed. When
I spent Thursday night finishing someone's task, the requirements for the next
phase got written in forty minutes on Friday morning, and two of them were
wrong, and being wrong about requirements costs more than any task on that
board.

# The conversations I had not had

I never asked any of them what they wanted. I assumed my motivations were the
general case, so there was nothing to ask about.

What I found out later, in three seperate conversations that I should have had
in the first month:

One of them wanted to be in the room with the client, designing the migration
and arguing about what the sequence should be, and not scripting the result of
a decision someone else had made. Another was tired of PowerShell glue and
wanted to be on the Node and Angular side of the internal tool. That was the
side I found least interesting, so I had treated it as a reward and not as
somebody's career. The third had spent three weeks on something that was never
demoed and never mentioned again, and had drawn the obvious conclusion about
whether it mattered.

Not one of those three is helped by watching me work a weekend. Two of them
are made worse by it, because the work I was taking was the work they wanted.

# The master's degree

I was finishing a master's in IT project management at the time. I could draw
you a responsibility matrix. If I'd drawn one for my own team, I would have
been accountable for everything and responsible for most of it. I had the
vocabulary for my own failure and never applied it to my own team, because I
thought of the weekends as character and not as a management decision.

# Three weeks of doing it differently

I'm three weeks into this, so treat it as intent and not as results.

## Let things be late, visibly

This is much harder than it sounds. A date that slips with a reason attached is
information everybody can act on (the client, the people above me, the person
who missed it). A date I rescued at three in the morning tells them nothing.
Last week a task shipped four days late for the first time, and the Monday
conversation was uncomfortable and more useful than anything I did last year.

## Hand over the hardest piece, not the safest one

I used to delegate what I was confident would go fine. The sync bridge now has a
second owner who is finding out how bad the watermark logic is, and I'd rather
that than be the only one who knows.

## Ask, roughly monthly, what each of them wants to be doing in six months

Then route work that way where I can. This costs me nothing and I can't explain
why it took me a year.

## Do my own job first

Requirements, the plan, the blockers. When I unblock someone now I write down
what the blocker was, because half of them repeat, and the note is worth more
than me being available.

# The sentence I would have needed

I don't know yet whether the four things above work. I do know what the other
way did.

I thought I was a committed lead with an uncommitted team. What I had done was
make commitment unnecessary, one Sunday at a time, and then read the result as
a fact about other people. Being twenty-three is not the reason. I mistook my
own motivation for a management strategy, and what it mostly produced was a
tired lead and a team that had learned the deadline wasn't real.
