<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aylon Armstrong</title>
    <description>The latest articles on DEV Community by Aylon Armstrong (@aylonarchdocs).</description>
    <link>https://dev.to/aylonarchdocs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4221585%2Fa3799d8b-621f-446a-96f2-d3cb7c428a18.png</url>
      <title>DEV Community: Aylon Armstrong</title>
      <link>https://dev.to/aylonarchdocs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aylonarchdocs"/>
    <language>en</language>
    <item>
      <title>Your next coding session shouldn't start with an investigation</title>
      <dc:creator>Aylon Armstrong</dc:creator>
      <pubDate>Thu, 05 Nov 2026 03:32:53 +0000</pubDate>
      <link>https://dev.to/aylonarchdocs/a-reasonable-refactor-can-bring-back-a-bug-you-already-fixed-1494</link>
      <guid>https://dev.to/aylonarchdocs/a-reasonable-refactor-can-bring-back-a-bug-you-already-fixed-1494</guid>
      <description>&lt;p&gt;I don't want to have to explain why we stopped at a particular point every time I start a new coding session.&lt;/p&gt;

&lt;p&gt;Take a database migration. The code supports an old column and a new column, and the next agent sees an opportunity to clean up the old path.&lt;/p&gt;

&lt;p&gt;But the previous session stopped there for a reason. An older worker still writes to the old column, and the updated worker hasn't been deployed yet. Removing the compatibility code would break that worker.&lt;/p&gt;

&lt;p&gt;That's something I want the next session to find before it starts making changes. If the explanation only exists in the previous conversation, I still have to remember to pass it along.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd want the previous session to leave behind
&lt;/h2&gt;

&lt;p&gt;“Migration mostly complete, cleanup remaining” would be a bad handoff here. It makes removing the old code sound like the next thing to do.&lt;/p&gt;

&lt;p&gt;For this example, I'd want something closer to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Goal:
Move readers and writers to the replacement customer ID column.

Current state:
The application supports both columns.
The older worker still writes to the legacy column.

Why we stopped:
We need to deploy the updated worker before removing compatibility.
Removing it now would break writes from the older worker.

Checked:
The targeted compatibility tests passed locally.
Record the commit, command, and result with this entry.

Still needs checking:
Mixed-version behavior in staging.
Whether any other deployed writer uses the old column.

Next:
Check which versions of the writers are deployed.
Use that to decide whether we can continue the migration.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the next agent has a reason to keep the compatibility code and something specific to check before removing it. It also knows that passing local tests didn't establish what was running in staging.&lt;/p&gt;

&lt;p&gt;Anthropic's &lt;a href="https://www.anthropic.com/research/effective-harnesses-for-long-running-agents" rel="noopener noreferrer"&gt;write-up on long-running agent harnesses&lt;/a&gt; describes using progress files alongside Git history to help later sessions understand the work.&lt;/p&gt;

&lt;p&gt;The part I want to get right is what we put in that record. I don't need every search or every command the agent ran. I want the things that would affect what someone does next:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What changed from the original plan, and why.&lt;/li&gt;
&lt;li&gt;Which assumptions turned out to be wrong.&lt;/li&gt;
&lt;li&gt;What we tried that failed, and what happened.&lt;/li&gt;
&lt;li&gt;What we're waiting on.&lt;/li&gt;
&lt;li&gt;What still needs to be checked.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The failed attempts are useful too. If we tried an approach and found a problem with it, I'd like the next agent to know about that before it spends another session trying the same thing.&lt;/p&gt;

&lt;p&gt;This is why I want a work log alongside the design doc. The plan can change while we're building, and I want to keep the explanation for those changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The next agent still needs to check the current state
&lt;/h2&gt;

&lt;p&gt;The worker might have been deployed since that note was written. Someone else might have changed the compatibility code.&lt;/p&gt;

&lt;p&gt;I'd want the next agent to read the handoff, compare the recorded commit with the current code, and check the deployment state before deciding what to do.&lt;/p&gt;

&lt;p&gt;If the worker has now been deployed, add an update with the evidence for that. Keep the earlier entry so someone can still understand why we stopped and what allowed us to continue.&lt;/p&gt;

&lt;p&gt;A short current summary would help too. The agent should be able to find where things stand without reading every entry from the start of the project.&lt;/p&gt;

&lt;h2&gt;
  
  
  A way to see whether your handoff is useful
&lt;/h2&gt;

&lt;p&gt;Take a change that needed more than one session. Give a fresh agent the original task, the repository, and whatever handoff you normally leave.&lt;/p&gt;

&lt;p&gt;Before it edits anything, ask it to explain what it would do next, what it would keep in place, and what it needs to check first.&lt;/p&gt;

&lt;p&gt;For the migration example, I'd expect it to identify the worker deployment as something that needs checking. If it jumps straight to removing the old column, the handoff hasn't done what we needed.&lt;/p&gt;

&lt;p&gt;I'm curious what people are keeping between sessions. Is it enough for the next agent to pick up the work, or do you still have to explain why the previous session made those decisions?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Your AI agent wrote the tests too</title>
      <dc:creator>Aylon Armstrong</dc:creator>
      <pubDate>Wed, 04 Nov 2026 20:19:55 +0000</pubDate>
      <link>https://dev.to/aylonarchdocs/your-ai-agent-wrote-the-tests-too-3k1p</link>
      <guid>https://dev.to/aylonarchdocs/your-ai-agent-wrote-the-tests-too-3k1p</guid>
      <description>&lt;p&gt;An agent builds a feature, writes the tests, and tells you they all passed. The thing I want to know is whether those tests checked what we actually asked it to build.&lt;/p&gt;

&lt;p&gt;If the agent misunderstood a requirement, that misunderstanding can end up in both the code and the tests. They agree with each other, but we still have a problem.&lt;/p&gt;

&lt;p&gt;I think this needs more attention as we hand more work to coding agents. I want to be able to look at a requirement and see what was checked, what the result was, and what we still don't know.&lt;/p&gt;

&lt;h2&gt;
  
  
  Take a CSV export
&lt;/h2&gt;

&lt;p&gt;Let's say you're adding a CSV export to a product with multiple workspaces. Members should be able to export reports from their own workspace.&lt;/p&gt;

&lt;p&gt;The agent builds the endpoint and adds a test that creates a member, creates a report, and checks the CSV response. That test passes, but we haven't checked what happens if the member requests a report from a different workspace.&lt;/p&gt;

&lt;p&gt;Now make the export large enough that it needs a background job. You've got an endpoint to request it, another to check its status, and a way to download the file.&lt;/p&gt;

&lt;p&gt;I'd want the agent to follow that whole flow. Checking permissions when someone requests an export doesn't tell us whether another user can download the result.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP's authorization guidance&lt;/a&gt; calls for checking permissions on every request. In this example, that means looking at all the ways someone can get to the exported data.&lt;/p&gt;

&lt;p&gt;The CSV can contain exactly the right columns and still be available to the wrong person.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd want to see before calling it done
&lt;/h2&gt;

&lt;p&gt;For this example, a review could look like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What needs to work&lt;/th&gt;
&lt;th&gt;What was checked&lt;/th&gt;
&lt;th&gt;What's still missing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A member can export a report from their workspace&lt;/td&gt;
&lt;td&gt;An integration test requests the export and checks the CSV&lt;/td&gt;
&lt;td&gt;We haven't tried a large export&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A member can't request another workspace's export&lt;/td&gt;
&lt;td&gt;A test tries the request using a member from a different workspace&lt;/td&gt;
&lt;td&gt;We haven't checked access to the job status or download&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Removing a member prevents future downloads&lt;/td&gt;
&lt;td&gt;Nothing yet&lt;/td&gt;
&lt;td&gt;We haven't decided what should happen to links that were already issued&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That last one is something I'd want worked out before the agent picks an implementation. If I remove someone from a workspace, should a download link they already have keep working? For how long?&lt;/p&gt;

&lt;p&gt;Those answers affect what we build and how we test it. A passing test can't settle a product decision we haven't made.&lt;/p&gt;

&lt;p&gt;This gives me enough information to decide what still needs work. A single “verified” label would hide most of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about having another agent review it?
&lt;/h2&gt;

&lt;p&gt;I'd want the reviewing agent to read the requirements and check the work against them. If we only give it the first agent's summary, we're asking it to find problems using an explanation that may have already left those problems out.&lt;/p&gt;

&lt;p&gt;Running the tests in CI is useful too. We get a recorded run in a particular environment, but an authorization case we never tested is still missing.&lt;/p&gt;

&lt;p&gt;I'd give the reviewer a prompt like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Go through the requirements and show me what was checked for each one.

Read the actual tests and results. Explain what they cover
and which important cases are still missing.

If a requirement is unclear, explain the situation we need
to decide on. Don't choose an interpretation and then
report that the requirement passed.

Include the commit and environment each result applies to.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I wouldn't do the same amount of review for a wording change as I would for a feature that exports customer data. But for the latter, I want to know that someone checked the access rules across the whole flow.&lt;/p&gt;

&lt;p&gt;How are you doing this with your agents? Can you get from a requirement to the result of a check, or are you reconstructing that while reviewing the PR?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>testing</category>
      <category>programming</category>
    </item>
    <item>
      <title>How I spec out features with Superpowers</title>
      <dc:creator>Aylon Armstrong</dc:creator>
      <pubDate>Wed, 04 Nov 2026 07:09:04 +0000</pubDate>
      <link>https://dev.to/aylonarchdocs/how-i-spec-out-features-with-superpowers-2i42</link>
      <guid>https://dev.to/aylonarchdocs/how-i-spec-out-features-with-superpowers-2i42</guid>
      <description>&lt;h2&gt;
  
  
  How I spec out features with Superpowers
&lt;/h2&gt;

&lt;p&gt;I use &lt;a href="https://github.com/obra/superpowers" rel="noopener noreferrer"&gt;Superpowers&lt;/a&gt; to work through features before handing them to a coding agent to implement. I want the agent to help me figure out what I'm asking for, including the decisions I haven't thought through yet.&lt;/p&gt;

&lt;p&gt;One feature I've been thinking about is letting a design doc contain additional documents. Take a Redis migration: you've got the spec and implementation plan, but now you want to rehearse it in staging and need a runbook.&lt;/p&gt;

&lt;p&gt;The initial request is pretty simple: let someone create that runbook inside the design doc.&lt;/p&gt;

&lt;p&gt;But if they follow the runbook, record a failed rehearsal, and then change the instructions, what happens to the record of that first attempt? Someone looking at it later needs to see the instructions that were actually used.&lt;/p&gt;

&lt;p&gt;That's already more specific than “let people add documents.” It's also something I'd want decided before an agent starts building it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the problem
&lt;/h2&gt;

&lt;p&gt;For this feature, I'd give the agent the migration example and work through what the team needs to do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep the staging runbook with the migration it belongs to.&lt;/li&gt;
&lt;li&gt;Have a separate runbook for production.&lt;/li&gt;
&lt;li&gt;Record what happened during each rehearsal.&lt;/li&gt;
&lt;li&gt;Be able to look back at the instructions used for an earlier attempt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That brings up questions about ownership, permissions, and revisions. Can a runbook be shared across unrelated changes? Does it inherit the design doc's permissions? What happens to old references if someone renames or archives it?&lt;/p&gt;

&lt;p&gt;For the first version, I'd keep each supporting document attached to one change and use that change's permissions. Sharing a runbook across migrations and automatically executing its commands would be separate work.&lt;/p&gt;

&lt;p&gt;I want those decisions written down so the agent has a clear scope to work within.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Superpowers helps
&lt;/h2&gt;

&lt;p&gt;Superpowers has a brainstorming skill that works through the request and possible approaches before moving into a design and implementation plan. It also tells the agent to inspect the project before asking questions the code or existing docs already answer.&lt;/p&gt;

&lt;p&gt;That last part matters to me. I don't want to point the agent at every relevant document or explain something it could find in the codebase. I want it to look first, then ask about what's still unresolved.&lt;/p&gt;

&lt;p&gt;With the runbook example, an agent could ask whether I want version history. I'd probably say yes, but that answer leaves a lot unspecified.&lt;/p&gt;

&lt;p&gt;A more useful question would be:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Someone follows revision 1 in staging and records a failed attempt. They change the instructions and try again using revision 2. What should someone reviewing the first attempt be able to see?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That question puts me in the position of someone actually using the product. I can think about the engineer reviewing the failed rehearsal, what they're trying to understand, and what they'd need to see. Just asking “Do you want version history?” makes it easy to say yes without thinking through how anyone will use it.&lt;/p&gt;

&lt;p&gt;From that answer, we can get to a specific requirement: the first attempt has to keep a reference to revision 1. Editing the document can't change what that reference opens.&lt;/p&gt;

&lt;p&gt;Permissions need the same attention. Inheriting the parent's permissions should cover old revisions, search results, and access through the agent, as well as the page someone opens in their browser.&lt;/p&gt;

&lt;p&gt;These are the details I want to work through in the conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  One thing I don't like
&lt;/h2&gt;

&lt;p&gt;One of my big gripes with using Superpowers is that I still have to tell the agent to do outside research. I mean searching the web, reading current documentation, and looking at how other people have approached the problem.&lt;/p&gt;

&lt;p&gt;I think an informed decision needs more than what the model learned during training. Reading my codebase gives it context about the project. I also want it to look for information outside the project that could change its recommendation.&lt;/p&gt;

&lt;p&gt;For the runbook example, I'd want it to investigate how other systems handle changes to a procedure after someone has used it. What tradeoffs did they make? What problems did they run into? That gives us more to consider when deciding how our version should work.&lt;/p&gt;

&lt;p&gt;I want the agent to recognize when that research would help and do it without me having to ask. Then show me the sources, explain how they apply to this feature, and make it clear which conclusions are its own. Having to remember to add “go research this” is a part of the workflow I'd like to improve.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the spec and implementation plan separate
&lt;/h2&gt;

&lt;p&gt;In my workflow, the spec describes what the change needs to accomplish. The implementation plan covers how to build it.&lt;/p&gt;

&lt;p&gt;Part of the spec for this feature could be:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A supporting document belongs to one design doc and inherits its access permissions.&lt;/p&gt;

&lt;p&gt;A recorded rehearsal can reference the exact document revision used.&lt;/p&gt;

&lt;p&gt;Editing, renaming, or archiving the document preserves that reference for authorized readers.&lt;/p&gt;

&lt;p&gt;Creating a runbook doesn't establish that the migration succeeded.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The implementation plan can then work out how to store those references, which UI and agent operations need updating, and how to test them.&lt;/p&gt;

&lt;p&gt;The agent should also check what it can reuse. If the project already has revision history, I want the plan to explain how this feature fits into it. Introducing another versioning system would need a reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the requirements testable
&lt;/h2&gt;

&lt;p&gt;I'd take the revision requirement and turn it into a scenario:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a staging runbook.&lt;/li&gt;
&lt;li&gt;Record a failed rehearsal against revision 1.&lt;/li&gt;
&lt;li&gt;Edit the runbook, producing revision 2.&lt;/li&gt;
&lt;li&gt;Record another rehearsal against revision 2.&lt;/li&gt;
&lt;li&gt;Open the first rehearsal's reference and confirm it still shows revision 1.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An implementation could have a history page and still get this wrong. The scenario tells the agent exactly which behavior needs to hold up.&lt;/p&gt;

&lt;p&gt;The runbook describes the procedure. The rehearsal record says what happened when someone followed it. Both need to stay understandable after the instructions change.&lt;/p&gt;

&lt;p&gt;The same issue comes up elsewhere. If a pricing rule changes after an invoice is issued, you still need to know which rule produced that invoice. Thinking through a sequence like that helps me get more specific about what the feature needs to preserve.&lt;/p&gt;

&lt;h2&gt;
  
  
  A starting prompt
&lt;/h2&gt;

&lt;p&gt;If you have Superpowers installed, you could adapt this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Use Superpowers to help me work through this feature before implementation.

Problem:
[Describe a specific situation and what someone needs to accomplish.]

Look through the relevant code, docs, and previous decisions first.
Tell me what already exists that affects this change.

Identify decisions that would benefit from outside research and
research them before recommending an approach. Look for current
documentation and relevant examples of how others solved similar problems.
Link the sources and explain how they affect your recommendation.
Distinguish what the sources establish from your own conclusions.

Ask about decisions we still need to make. Explain what the options
would mean for the feature and recommend an approach.

Make it clear when something is an assumption or your proposal.

Write a spec covering the intended behavior, what's in and out of scope,
unresolved questions, and concrete acceptance scenarios.

Once we've agreed on the spec, create an implementation plan based on
the codebase. Include how we'll check that the important behavior works.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Give it an actual situation to work through. For a notification feature, for example, explain who needs to be notified, what happened, and what they need to do next.&lt;/p&gt;

&lt;h2&gt;
  
  
  How are other people doing this?
&lt;/h2&gt;

&lt;p&gt;Superpowers is what I use, but I'd like to hear from people using other tools. Their docs describe a few approaches:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Documented workflow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/github/spec-kit" rel="noopener noreferrer"&gt;GitHub Spec Kit&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Takes a feature specification through a technical plan, tasks, and implementation, with project principles captured separately.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/Fission-AI/OpenSpec" rel="noopener noreferrer"&gt;OpenSpec&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Keeps a proposal, requirements and scenarios, technical design, and tasks together for a change. The workflow includes archiving changes and updating specs.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://kiro.dev/docs/specs/" rel="noopener noreferrer"&gt;Kiro&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Uses requirements, design, and task documents. Feature specs can start from requirements or from a technical design.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I'm also interested in people using their agent's planning mode and a Markdown file. Sometimes I just want to work through a problem without going through a full feature workflow.&lt;/p&gt;

&lt;p&gt;One thing I'm still thinking about is how to handle changes once implementation starts. The agent finds that an assumption was wrong, the plan changes, and the next session needs to know why. I keep a work log alongside the design doc to record what changed and why.&lt;/p&gt;

&lt;p&gt;How do you handle that in your setup? Do you update the spec, keep a separate record, or rely on the PR and conversation history?&lt;/p&gt;

&lt;p&gt;I'd also like to hear about a recent change where planning helped, or where it became more work than it was worth. Which tool were you using, and what did you end up keeping or skipping?&lt;/p&gt;

</description>
      <category>agents</category>
      <category>github</category>
      <category>productivity</category>
      <category>ai</category>
    </item>
    <item>
      <title>My coding agents keep running into problems we’ve already found</title>
      <dc:creator>Aylon Armstrong</dc:creator>
      <pubDate>Tue, 03 Nov 2026 02:23:51 +0000</pubDate>
      <link>https://dev.to/aylonarchdocs/my-coding-agents-keep-running-into-problems-weve-already-found-3k6j</link>
      <guid>https://dev.to/aylonarchdocs/my-coding-agents-keep-running-into-problems-weve-already-found-3k6j</guid>
      <description>&lt;h2&gt;
  
  
  My coding agents keep running into problems we’ve already found
&lt;/h2&gt;

&lt;p&gt;On November 1, my coding agent ran into an error while writing a design doc. It tried to put inline code inside bold text, and our editor rejected it:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Invalid collection of marks for node text: bold,code&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The agent told me the write failed "because I nested code inside bold text", removed the bold and tried again. That worked. A few minutes later, it saved a note to a memory file on my machine saying this was a product bug we should fix.&lt;/p&gt;

&lt;p&gt;About an hour later, the same agent tried importing 127 of our own design documents. 102 failed with that same error.&lt;/p&gt;

&lt;p&gt;I can't tell from the session whether the agent deliberately put the bug aside. It was still writing the spec, nothing had been built yet, and the design doc's Work Log was empty. The first entry came twenty minutes later.&lt;/p&gt;

&lt;p&gt;What I can see is that it treated the error as a problem with what it had written, changed its input and moved on. The bug ended up in a local memory file, with no way to reliably bring it to whoever worked on the editor next.&lt;/p&gt;

&lt;p&gt;It had actually happened earlier that morning too. Another session hit the same error while writing a different design doc and worked around it the same way.&lt;/p&gt;

&lt;p&gt;When the bulk import failed, the agent finally recorded it in the design doc. Within fifteen minutes, the Work Log had the blocker, the fix, why the fix went outside the plan, and a finding for whoever worked on that code next.&lt;/p&gt;

&lt;p&gt;I'm Aylon, and I'm building ArchDocs. Most of the implementation is done by coding agents, and this is one of the problems I'm trying to solve with it. I want to know what we intended to build, what actually happened, how we checked it, and what the next person or agent needs to know.&lt;/p&gt;

&lt;p&gt;We use ArchDocs to build ArchDocs. This is one of those changes, including the things that went wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  One record per change
&lt;/h2&gt;

&lt;p&gt;A design doc in ArchDocs has a few parts. The spec describes the problem and the decisions we've made. The implementation plan describes how we'll do the work, what we expect to touch and how we'll check it.&lt;/p&gt;

&lt;p&gt;While the work happens, the agent records progress, decisions, deviations and findings in the Work Log. At the end, it submits evidence of work covering what was done, how it was verified, what changed from the plan and what wasn't finished.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq177agezghxqhai103il.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq177agezghxqhai103il.png" alt="ArchDocs design doc DD-0022 marked Shipped, showing its lifecycle, document tabs and a notice that no verification was configured." width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This is the design doc used throughout the post. The header shows that I decided it shipped, my agent relayed that decision, and no acceptance criteria were configured.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The spec and plan give us something to compare the actual work against. Shipping freezes them, and changing them afterward requires an amendment with a reason. The Work Log and evidence keep the history of what happened during implementation.&lt;/p&gt;

&lt;p&gt;We don't create a design doc for every change. Our skills tell agents to propose one when work crosses components, needs someone else's sign-off, will take multiple pull requests or sessions, or introduces a dependency, data store or new personal data. A small change inside one component, a dependency bump or a copy or config edit doesn't need that process.&lt;/p&gt;

&lt;h2&gt;
  
  
  The change, and the decisions I made
&lt;/h2&gt;

&lt;p&gt;The change was DD-0022, which added importing for existing design docs, RFCs and ADRs.&lt;/p&gt;

&lt;p&gt;Before this, documents had to be brought in individually as fresh drafts. We didn't preserve their original author, date or identifier, and importing the same document twice created two copies.&lt;/p&gt;

&lt;p&gt;That also meant a team adopting ArchDocs started with an empty history. There was nothing for search or task context to find until someone wrote new documents. In our own repository, we already had 110 specs and 176 implementation plans.&lt;/p&gt;

&lt;p&gt;The agent drafted the spec and raised four questions for me to answer.&lt;/p&gt;

&lt;p&gt;One was whether imported historical documents could be created directly as Shipped. Normally, our workflow has a person decide when a design doc has shipped. I allowed historical imports through a separately authorized code path.&lt;/p&gt;

&lt;p&gt;Another question was about how to handle documents that combine the design and implementation plan.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzzy0ts5nka2wcb5xi6zn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzzy0ts5nka2wcb5xi6zn.png" alt="Design doc question Q4 comparing whole-document imports with AI splitting. Aylon’s answer asks for the person importing to choose." width="800" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The agent gave me two options and marked its preference. I wanted a third option. My answer stays attached to the question with my name and a timestamp.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The agent preferred importing the whole document into the spec. That was predictable and would work with AI turned off. The other option was to use AI to split it into a spec and an implementation plan.&lt;/p&gt;

&lt;p&gt;I said the person importing should be able to choose.&lt;/p&gt;

&lt;p&gt;Version 3 of the spec added that choice: "Keep each document whole" or "Split into spec and plan", with an override for individual documents. Splitting was only available with AI enabled. The spec also recorded that this was decided in Q4 and kept the original options as rejected alternatives.&lt;/p&gt;

&lt;p&gt;If someone later asks why the import dialog has that setting, the answer is there.&lt;/p&gt;

&lt;p&gt;We didn't require a formal approval step for a change this size. Answering those four questions was the sign-off.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the agent keeps up, and what stays yours
&lt;/h2&gt;

&lt;p&gt;I wouldn't want to write down every commit, test result and unexpected issue myself while also trying to build the feature. Keeping that record is something I ask the agent to do.&lt;/p&gt;

&lt;p&gt;I use Claude Code with the &lt;a href="https://github.com/archdocsio/archdocs-plugin" rel="noopener noreferrer"&gt;ArchDocs plugin&lt;/a&gt;, connected through MCP. The plugin includes skills that tell the agent when to propose a design doc, how to write it, what to record during the work and how to close it out.&lt;/p&gt;

&lt;p&gt;The workflow looks like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The agent drafts the spec and plan, asks questions and retrieves related context. I answer the questions that need a decision from me.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;During implementation, the agent logs commits, test results, deviations and findings. It leaves a handoff when it stops. With GitHub connected, ArchDocs checks the commit references.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The agent writes the evidence of work, including anything it didn't finish. I review the results and decide whether the work shipped.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Before related work starts, the agent requests task context. ArchDocs returns relevant records with their sources and status. I can accept or reject constraints proposed by the agent.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For DD-0022, the agent wrote a twelve-task plan covering the API, frontend and API contract, with checks for each task.&lt;/p&gt;

&lt;p&gt;The plan also included things we'd learned from previous work. For example, the plugin needed to be released after the API, because its skill would call a tool that didn't exist in production until the API deployed. A new session wouldn't necessarily know that from reading the code.&lt;/p&gt;

&lt;h2&gt;
  
  
  The plan missed something
&lt;/h2&gt;

&lt;p&gt;Task 6 was where we tried the import against our own documents.&lt;/p&gt;

&lt;p&gt;We had 286 files in &lt;code&gt;docs/superpowers/&lt;/code&gt;, mapped to 127 documents. The agent imported them into a local organization through the real MCP tool.&lt;/p&gt;

&lt;p&gt;25 succeeded. 102 failed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcmf2eaqpg2r3qx6rpw68.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcmf2eaqpg2r3qx6rpw68.png" alt="Work Log blocker reporting that 102 of 127 document imports failed because the editor rejected inline code combined with bold formatting." width="799" height="528"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The agent recorded the failure as a blocker and connected it to the error it had already encountered while writing the spec.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Our editor uses Tiptap. By default, its inline code mark excludes other marks, so markdown like &lt;code&gt;**`createdAt`**&lt;/code&gt; failed the schema check and caused the entire document to be rejected.&lt;/p&gt;

&lt;p&gt;The feature followed the plan, but it couldn't import four out of every five documents we gave it.&lt;/p&gt;

&lt;p&gt;Nine minutes later, the agent logged a fix.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcsdhzn68wpz1i5fzlsd9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcsdhzn68wpz1i5fzlsd9.png" alt="Work Log entry reporting an editor fix outside the original implementation plan, with a missing GitHub commit reference and a correction label." width="800" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The fix went into a package the plan hadn't included, so the agent recorded it as a deviation. The entry includes what changed and how the import rerun went. I'll get to the “Not found” reference and correction below.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This also affected normal document editing and the agent's own writes. Bold or italic code is valid GitHub-flavoured markdown, and we were rejecting it.&lt;/p&gt;

&lt;p&gt;The first fix wasn't complete, though. It stopped rejecting those documents, but the editor ignored the override it relied on. The writes succeeded while silently dropping the bold or italic formatting around the code.&lt;/p&gt;

&lt;p&gt;A follow-up commit that night, &lt;code&gt;eb7c428a&lt;/code&gt;, extended the code mark itself and added tests checking that those marks survived. The &lt;a href="https://archdocs.io/blog/how-we-use-design-docs-with-coding-agents/04-worklog-e6-full.png" rel="noopener noreferrer"&gt;full entry&lt;/a&gt; shows the constraint captured from the first fix.&lt;/p&gt;

&lt;p&gt;Four minutes after the first fix, the agent captured the finding as a constraint associated with the affected files: keep inline code combinable with bold, italic and links, and keep the round-trip tests for those cases passing.&lt;/p&gt;

&lt;p&gt;That doesn't automatically make it an approved rule. A finding captured from the Work Log remains proposed until a person accepts it. ArchDocs labels it "From a Work Log finding, not an approved rule."&lt;/p&gt;

&lt;p&gt;The code fix and tests address the bug. The Work Log records what happened and why we went outside the plan. Task context is how that finding can reach the next agent working on those files.&lt;/p&gt;

&lt;p&gt;There were two more issues during the import. Two files contained NUL characters that Postgres wouldn't store. After fixing that, the third run imported all 127 documents.&lt;/p&gt;

&lt;p&gt;The Notion import also tried attaching images after documents had already been marked shipped and frozen. Image handling had to move inside the import. Both issues went into the evidence as deviations from the plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  A log the next person can use
&lt;/h2&gt;

&lt;p&gt;By the end of the build, DD-0022 had eighteen Work Log entries.&lt;/p&gt;

&lt;p&gt;These covered commits, actual test counts, results from delegated work, review findings and departures from the plan. For this change, Codex handled the implementation from a work order. Claude reviewed the results, ran checks and kept the record.&lt;/p&gt;

&lt;p&gt;Some entries captured decisions that would otherwise have been buried in the code.&lt;/p&gt;

&lt;p&gt;E-2 had a section called "Calls I made that the plan left open". It listed four small product decisions the agent made during implementation. I could review those decisions directly and change them if needed.&lt;/p&gt;

&lt;p&gt;E-13 recorded three existing failures in an unrelated test suite so the next person wouldn't assume they were regressions from the import.&lt;/p&gt;

&lt;p&gt;There are limits to this. The log only contains what the agent records, and a finding still has to be captured for it to become a constraint. We learned that the marketing site had tests checking the docs pages and the number of MCP tools. That stayed in a Work Log entry and was never captured as a constraint.&lt;/p&gt;

&lt;p&gt;When the agent stopped, it left a handoff.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftmg4yvq5q2sv4cuz641j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftmg4yvq5q2sv4cuz641j.png" alt="Agent handoff listing completed work, decisions awaiting a person and next steps, with references to supporting Work Log entries." width="800" height="602"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The handoff links completed work to its supporting entries, lists the decisions waiting on me and explains what to run next.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I used this myself when I came back to write the post and correct the record. My agent called &lt;code&gt;get_journal_handoff&lt;/code&gt; first.&lt;/p&gt;

&lt;p&gt;It returned E-17, but marked it stale because E-18, which recorded shipping, had been added afterward. It also reported that there were no open questions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The evidence
&lt;/h2&gt;

&lt;p&gt;DD-0022's evidence of work had four sections: outcome, verification, deviations and not done.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw3xqi5ayqtl3a7r9ohxz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw3xqi5ayqtl3a7r9ohxz.png" alt="Agent-reported verification evidence listing a CI run, local test results and the successful import of 127 documents." width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The verification section separates CI results from local runs and labels the import result as reported. The agent wrote all of these results.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For this change, we hadn't configured acceptance criteria. ArchDocs didn't independently compute whether the change passed them. The header says that, and the evidence was a record of the tests and CI results the agent reported.&lt;/p&gt;

&lt;p&gt;I checked those results myself using the GitHub CLI.&lt;/p&gt;

&lt;p&gt;Run &lt;code&gt;41310251591&lt;/code&gt;, on the final commit, passed the build, unit tests, integration tests, Docker image build and both deploys.&lt;/p&gt;

&lt;p&gt;The end-to-end job was skipped. The "5 of 5" Playwright import result in the evidence came from a local run reported by the agent, not that CI run.&lt;/p&gt;

&lt;p&gt;The previous run, &lt;code&gt;41309759807&lt;/code&gt;, had failed on two marketing tests that weren't covered by the agent's local checks. The Work Log recorded those failures and the fix. The runs are in our private repository, so I can't link them here.&lt;/p&gt;

&lt;p&gt;I made the decision to ship DD-0022. I told the agent:&lt;/p&gt;

&lt;p&gt;"Ship it and then tell me how I can try out the import on a few docs."&lt;/p&gt;

&lt;p&gt;It attached that statement when marking the doc shipped. The header shows that Claude Code relayed the decision.&lt;/p&gt;

&lt;p&gt;Because this doc had no acceptance criteria, the server would have allowed the agent to ship it without that statement. It waited because our skills tell it to wait for a person's decision. Relaying my statement is what put my name on the record.&lt;/p&gt;

&lt;p&gt;While checking the record for this post, I found another mistake.&lt;/p&gt;

&lt;p&gt;Every commit reference used &lt;code&gt;archdocsio/archdocs&lt;/code&gt;. Our repository is &lt;code&gt;archdocsio/monorepo&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;ArchDocs had been checking those references against GitHub and displaying "Not found". The same incorrect repository name was also attached to the captured constraint's file paths.&lt;/p&gt;

&lt;p&gt;Work Log entries and captured file paths can't be edited. We added Correction entries and a new constraint to replace the original. The old entries remain visible with a "Corrected by" label, and the corrected commit references resolve on GitHub.&lt;/p&gt;

&lt;p&gt;The new constraint only replaces the old one once a person accepts it. The &lt;a href="https://archdocs.io/blog/how-we-use-design-docs-with-coding-agents/05-worklog-e19-correction.png" rel="noopener noreferrer"&gt;correction entry&lt;/a&gt; shows the changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The next change starts with what we learned
&lt;/h2&gt;

&lt;p&gt;Let's say the next change adds strikethrough support to the editor.&lt;/p&gt;

&lt;p&gt;That would touch &lt;code&gt;packages/doc-editor/src/extensions.ts&lt;/code&gt;, the same file where we fixed the code mark. An agent could reorganize the extensions while adding strikethrough and accidentally remove the behavior that lets code combine with bold, italic and links.&lt;/p&gt;

&lt;p&gt;We'd be back to rejecting imports and agent-written documents.&lt;/p&gt;

&lt;p&gt;The next agent needs to know a few specific things: preserve that behavior, keep the round-trip tests passing, and test markdown like &lt;code&gt;**`createdAt`**&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;When an agent follows our skills, it requests task context before planning, using a description of the work and the files it expects to touch. ArchDocs retrieves the decisions, constraints, open questions and design docs associated with those files, including their sources and status.&lt;/p&gt;

&lt;p&gt;Nobody has to tell it to go read DD-0022.&lt;/p&gt;

&lt;p&gt;We tested that query after correcting the repository name, using the real repository and the two files the strikethrough change would touch. We haven't implemented that change. This was a demonstration of what the next agent would retrieve.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk13vl6w7xdkqi8haohnk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk13vl6w7xdkqi8haohnk.png" alt="Task context returning an editor constraint matched by file path, labelled as uncertain, proposed by an agent and not an approved rule." width="800" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The constraint appears first, matched by file path, with the original Work Log entry and its current status.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Before the correction, the query found the constraint through text search, in third place. It couldn't match the file paths because the repository name was wrong.&lt;/p&gt;

&lt;p&gt;After the correction, it was the first result, matched by path.&lt;/p&gt;

&lt;p&gt;The query used no catalog objects. The file paths on the constraint were enough. The &lt;a href="https://archdocs.io/blog/how-we-use-design-docs-with-coding-agents/08-task-context-full.png" rel="noopener noreferrer"&gt;full result&lt;/a&gt; also includes the original capture, labelled to show that a newer item proposes to replace it.&lt;/p&gt;

&lt;p&gt;A human reviewing the next change can retrieve the same context, check the constraint against the implementation and decide whether to accept it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>showdev</category>
      <category>mcp</category>
    </item>
  </channel>
</rss>
