cd /news/ai-agents/notes-to-self-the-interview-between-… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-96753] src=dev.to β†— pub= topic=ai-agents verified=true sentiment=Β· neutral

Notes to Self: The Interview Between an Issue and a Spec

A developer opened a three-sentence issue on 1 August and had the feature merged 101 minutes later, with a 457-line specification generated in between. The engineer did not write the spec; instead, an AI agent (Claude) read the repository and produced a detailed document, asking the developer to make decisions rather than describe requirements. The process highlights a workflow where agents bridge the gap between terse issue notes and full implementation context.

read9 min views1 publishedAug 14, 2026

On 1 August I opened an issue that was three sentences long. A hundred and one minutes later

the feature was merged, and the document that got it there ran to

457 lines.

I didn't write those 457 lines. In fact, I didn't have to write any more documentation, and not because I simply allowed Claude to run amok.

Here is the issue in full β€” control-api#265

, 225 characters:

control-api#265 β€” Manifest-backed dashboard feeds

For each dashboard, auto create a manifest keyed by dashboard_id.

For each sensor the dashboard uses, tag it to be included in the manifest.
When a dashboard definition is updated, add / remove tags from sensors accordingly.

From that genesis moment, this is the lifecycle of the issue all the way through to landing:

Time (UTC) Event
14:25 Issue #265 opened β€” 225 characters
14:54
FEAT-0007 spec committed β€” 457 lines
15:35 Spec merged (PR #266)
15:51 Implementation committed
16:06 Implementation merged (PR #267, 15 files), issue closed

The interesting part isn't the speed. It's the step at 14:54 that landed a previously non-existent spec document, and what happened in the twenty-nine minutes before it.

I often write issues like this one...the way most people write shopping lists. Actuator address is not ensured?

Baseline the trace correctly. With the pre-rolls, the frame-rate looks out. They're abbreviated to

the point of being cryptic to everyone else. I write them this way deliberately: I'm usually mid-something

else when I notice a problem, or have an idea for a better route to the solution. The cost of a full write-up right at that moment would be a fractured sense of flow. As most engineers will tell you, the transitions into and out of flow are the most disruptive parts of their working day.

This terse form of issue-writing can be all you need, and it's worth being precise about why it works and the trade-offs it includes. It is not because "the issues are good enough".

They aren't. When you pick one of these up later, you can reconstruct everything missing from memory.

In my case with control-api#265, it was a particular panel type I was thinking about, a constraint I hit last week with it, the reason the

obvious approach was off the table, etc... That reconstruction was free and, more importantly, it was

invisible to any external observer. When you are the issue filer and its eventual closer, you never experience this rehydration as filling a gap. You see the issue's sparse wording as an aide-memoire for the fuller context that is still cached in your head.

What bites here is when you work in a team (of other engineers or coding agents): something has to bridge this gap or the issue will get resolved using a foundation of well intentioned misinterpretation and apparently sensible assumptions.

An agent has something both better and worse than an engineer's recall β€” it can read

every file in the repository, including ones you have forgotten, and it can read exactly nothing

of your latent intentions.

Fortunately, the fix is not to write longer issues. Capture is working; it's the handoff that's broken, the context sync.

The obvious version of this step β€” "the agent asks clarifying questions" β€” undersells it, and

would be annoying in practice. Being interrogated about your own bug report is worse than

writing the report properly in the first place.

What makes it worth doing is the ordering. The agent goes and reads first, then comes back

with what it found and asks you to decide β€” not to describe.

You can see the split in the spec that grew out of my dashboard issue. Its reference list is entirely material the

agent uncovered on its own:

FEAT-0007 Β§2 β€” References (excerpt)

- `app/repositories/sensor_repo.py:123-126` (`get_sensors_with_tag`, the JSONB
  `.contains()` query pattern this spec's reconciliation reuses)
- `app/services/sensor_service.py:42-84,131-174` (`upsert_sensor` /
  `_fan_out_upsert` β€” precedent for both the reserved-tag-prefix guard and the
  "best-effort, must never fail the primary write" fan-out posture this spec copies)

Nobody asked me where the JSONB containment query lived, or which existing service had already

settled the question of what a fan-out failure should do to the primary write. Those are

enrichment lookups, and lookups are the agent's half of the job.

What came back to me as decisions to make were the things no amount of reading resolves: whether one SSE stream per

dashboard was actually the point, whether a second repository was allowed to be changed for

this, where the boundary of the work sat. The spec's Out of Scope section is five such

rulings written down.

That's the trade that makes the interview cheap enough to bother with. The expensive half is

already done by the time it reaches you.

Read my second sentence again: for each sensor the dashboard uses, tag it.

There's an assumption buried in there β€” that the control-api server can tell which sensors a dashboard

uses. It can't, and the spec says so at length:

FEAT-0007 β€” Design Decision (excerpt)

The obvious-looking alternative β€” have control-api decode `layout` itself and derive
the sensor set β€” does not actually work cleanly, for one panel type specifically.
`chart`/` gauge` panels store `series[].{deviceId,sensorRef}` plus a panel-level
`dataType`, which *would* parse cleanly. But a `health_stats` panel stores only
`healthStats: {bodyDeviceId?, heartRateDeviceId?}` (confirmed in
`serializeDashboardLayout`) β€” its 7 `sensor_ref` s are frontend constants
(`BODY_SENSOR_REFS`, `HR_SENSOR_REF` in `useHealthStatsPanel.ts`), and each role's
`data_type` is discovered at render time from `listDeviceSensors`, not stored anywhere.

When I wrote the issue I was picturing chart panels, where my sentence is true. Health-stats

panels store two device IDs and resolve the rest at render time in a different repository.

A server-side parser would have to duplicate a list of constants that already lives in the frontend,

with no shared source of truth and no error when it happens to drift.

So the spec proposes the opposite: the client sends an explicit sensors

list alongside the

layout, and the server never parses the layout at all. That decision brings a new API rule

with it β€” a PATCH

supplying layout

without sensors

is rejected with a 422

, so a layout

change can't silently leave the tag set stale.

None of that is in my three sentences. One line of it directly contradicts them.

This is the part I want to defend hardest. An interview process that only elaborated what I wrote would be

formatting. This one went and checked, found my premise didn't hold, and brought back a

reversal β€” before any code existed to be wrong.

Something else survives in the finished document. Its requirements run FR-1 through FR-10 β€”

but there's also an FR-6a, an FR-10a, an NFR-3a, an AC-8a and an AC-8b.

A list written straight through numbers 1 to n. Letters mean insertion into a list that had

already been numbered. Each one marks a place where a later question forced something in

between.

FR-6a

is the one I'd point at. FR-6

had established that dashboard tags are reserved, so a

caller's tag edit must preserve them. Then:

FEAT-0007 β€” FR-6a (excerpt)

The prior-tags read [...] is already wrapped in `try/except Exception:
logfire.exception(...)` so it can never break the upsert β€” but under FR-6, silently
treating a failed read as `old_tags = []` would mean `preserved` comes back empty and
the caller's list wins outright, wiping every `dashboard-*` tag on that sensor: the
exact outcome FR-6 exists to prevent.

An existing try

/except

in unrelated code turns the new requirement into precisely the

failure it was written to stop. Follow FR-6 faithfully and you ship the bug. That is not a

question anyone thinks to ask about a three-sentence issue, and it was answered in a spec document

before any code was written rather than in a post-mortem.

The whole document is published alongside this article β€” FEAT-0007: Manifest-Backed Dashboard Feeds β€” so the excerpts above can be read in context.

Implementation merged thirty-one minutes after the spec did, across 15 files. What I want to

draw out isn't the speed β€” it's this line from the implementation PR's test plan:

AC-8b (migration's

server_default

behaving correctly against a pre-populated table) has no

automated test β€” this repo has no migration-test harness (integration tests use

metadata.create_all

, not Alembic). Verified by construction: [...]

One acceptance criterion, honestly marked unmet, with the reason. That's only possible because

AC-8b existed to be unmet. Without the spec there'd be no gap β€” just a migration nobody had

thought to test, and no record that anyone noticed.

A spec's most underrated property is that it gives the work something to fail against.

The shape I'd suggest, in the order that matters:

docs/specs/FEAT-NNNN-<slug>.md

, and get their own PR ahead of the implementation.FEAT-0007

survives because it was committed; plenty of equally good reasoning hasn't.And the honest limits. This costs about half an hour of agent time and a handful of real

decisions from you, which is absurd overhead for a typo and roughly break-even for a

one-file fix. It leans hard on the agent being able to read everything relevant β€” the

insight that reversed my issue came out of a sibling repository, and an agent without that

repository would have cheerfully specified the parser. And it can't manufacture intent: if

you genuinely don't know what you wanted, the interview surfaces that rather than solving it.

Which is still better than finding out from the diff.

None of this is a claim that issues should be specifications. Mine aren't and won't be. The

issue is a pointer, written in the two minutes I could spare, and it's the right artifact for

that job.

The interview is just the step that dereferences it β€” the one I used to run silently, in my

own head, without ever noticing I was running it at all.

None of the above is specific to working with coding agents. The agent-led interview that spawned the spec doc is recognisably a tech review with a peer, team lead or stakeholder.

AI assisted software development is not so much about learning entirely new paradigms as it is about having the immediate opportunity to enlist the expertise you need to do a job well.

── more in #ai-agents 4 stories Β· sorted by recency
── more on @claude 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/notes-to-self-the-in…] indexed:0 read:9min 2026-08-14 Β· β€”