<?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: Artsiom Rudzenka</title>
    <description>The latest articles on DEV Community by Artsiom Rudzenka (@artemr_rudenko_0bf2c2c505).</description>
    <link>https://dev.to/artemr_rudenko_0bf2c2c505</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%2F1730126%2Fcc09aa7f-ea7e-4f38-bbcc-532d9449fd9e.jpg</url>
      <title>DEV Community: Artsiom Rudzenka</title>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/artemr_rudenko_0bf2c2c505"/>
    <language>en</language>
    <item>
      <title>Why Our Repository Test Missed a Sign-In Race (Part 5 of 5)</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Wed, 25 Nov 2026 13:06:09 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/why-our-repository-test-missed-a-sign-in-race-part-5-of-5-2cf4</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/why-our-repository-test-missed-a-sign-in-race-part-5-of-5-2cf4</guid>
      <description>&lt;p&gt;Our repository test passed. The independent sign-in check then started two first sign-ins at the same time. One of them sometimes failed.&lt;/p&gt;

&lt;p&gt;A repository test checks the code that reads and writes the database. Each implementation session wrote its own, and in the implementation we inspected, that test passed in its session's final run.&lt;/p&gt;

&lt;p&gt;We saw this in a local trial of a migration for sign-in identifiers, where existing users had to keep their data and access. Three agent sessions wrote plans, each with a different workflow, and five sessions built implementations from those plans. The workflows were OpenSpec, Spec Kit, and Superpowers, tools that add planning and review steps to a coding agent; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/choosing-a-workflow-for-coding-agents-part-1-of-5-d51"&gt;Part 1&lt;/a&gt; introduces them. &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-changes-when-superpowers-takes-over-an-openspec-or-spec-kit-plan-part-4-of-5-dlp"&gt;Part 4&lt;/a&gt; describes that layout.&lt;/p&gt;


&lt;div class="crayons-card c-embed"&gt;

  

&lt;p&gt;&lt;strong&gt;The short version.&lt;/strong&gt; Add a repository test that starts where the service starts: no owner record, and the same keys in both requests. That is our suggestion. No session in this trial ran such a test.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What the tests did.&lt;/strong&gt; In all five implementations, the repository test used different keys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What happened.&lt;/strong&gt; Four of five implementations passed the sign-in check on the first attempt, but five attempts per implementation exposed a failure in every one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cause.&lt;/strong&gt; The insert skipped conflicts on one unique index, but two first sign-ins also collided on the primary key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Try it.&lt;/strong&gt; Two collapsed blocks near the end hold pytest files that you can run against PostgreSQL in Docker: one for the mismatch case and one for the race.&lt;/li&gt;
&lt;/ul&gt;


&lt;/div&gt;


&lt;h2&gt;
  
  
  The insert named one conflict
&lt;/h2&gt;

&lt;p&gt;The migration stored a hash of the sign-in identifier, and a unique index kept the same hash from appearing in two records. A primary key, the owner key, identified each owner record, and the service derived that key from the sign-in identifier. So two sign-ins for one account carried the same owner key and the same hash.&lt;/p&gt;

&lt;p&gt;All three plans in the trial told the insert to skip a duplicate hash but wanted a primary-key conflict to raise an error. Their reason was a different case: an owner key already stored with a different identifier. Two first sign-ins for one account conflict on the primary key too, and when they arrive together they race for it. The implementations build the statement with a query builder. Here is the equivalent SQL from one of them, simplified, with the names changed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;owners&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;owner_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;identifier_hash&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;CONFLICT&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;identifier_hash&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;DO&lt;/span&gt; &lt;span class="k"&gt;NOTHING&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In &lt;code&gt;ON CONFLICT (identifier_hash)&lt;/code&gt;, the bracketed part is the conflict target, and it names the hash index. PostgreSQL applies &lt;code&gt;DO NOTHING&lt;/code&gt; to that index only, but it still enforces the primary key on &lt;code&gt;owner_key&lt;/code&gt;. &lt;a href="https://www.postgresql.org/docs/18/sql-insert.html#SQL-ON-CONFLICT" rel="noopener noreferrer"&gt;PostgreSQL documentation on conflict targets&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In SQLAlchemy, a conflict target looks like &lt;code&gt;.on_conflict_do_nothing(constraint="uq_owners_identifier_hash")&lt;/code&gt; or &lt;code&gt;.on_conflict_do_nothing(index_elements=[...])&lt;/code&gt;. One of the implementations used the first form. Search your own code for either.&lt;/p&gt;

&lt;h2&gt;
  
  
  The repository test inserted the owner record before the second request
&lt;/h2&gt;

&lt;p&gt;The repository test used PostgreSQL and ran these steps.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It inserted an owner record in the first transaction and kept that transaction open.&lt;/li&gt;
&lt;li&gt;A second transaction proposed a different owner key for the same hash.&lt;/li&gt;
&lt;li&gt;The test checked that the second transaction waited.&lt;/li&gt;
&lt;li&gt;The test committed the first transaction.&lt;/li&gt;
&lt;li&gt;It checked that the second request returned the owner record from that transaction.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That gave us useful evidence about how the repository handles a hash conflict. But the setup gave the requests different owner keys, and the tests in the other four implementations did the same. So the two concurrent requests never collided on the primary key.&lt;/p&gt;

&lt;h2&gt;
  
  
  The sign-in check started without an owner record
&lt;/h2&gt;

&lt;p&gt;The independent evaluator's sign-in check ran the full sign-in service with a simulated identity provider. Each attempt started with a fresh test database, and the test account had no owner record. Both sign-ins had to succeed and leave one owner record. The evaluator is a separate checking step that sees only the saved implementation.&lt;/p&gt;

&lt;p&gt;Here is the core of that check, with names changed and lines left out.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;barrier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Barrier&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;first&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;second&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;wait_for&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;gather&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;sign_in&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;repo&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;barrier&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                   &lt;span class="nf"&gt;sign_in&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;repo&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;barrier&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;first&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;owner&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;second&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;owner&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;expected_owner&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both sign-ins wait at the barrier inside the simulated identity provider, so they are released together before the service stores the owner. The check does not verify that the two inserts overlap in the database.&lt;/p&gt;

&lt;p&gt;The check asked for more than the written criterion, which said only that two simultaneous sign-ins must leave one link to the provider account. The stricter part was not new to the sessions: each plan had promised that two requests for one account get the same owner, and every failure here broke that promise by rejecting a sign-in. The trial did not score the written criterion on its own.&lt;/p&gt;

&lt;p&gt;The service derived the same owner key for both requests. That exposed a possible collision on the primary key as well as on the hash index.&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%2Fxdu1nkf6ch29rnmjyfc7.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%2Fxdu1nkf6ch29rnmjyfc7.png" alt="The repository test inserts the owner record before the second request and keeps the first transaction open. The sign-in check starts with no owner record and runs two first sign-ins." width="799" height="572"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;small&gt;In the repository test, the first transaction inserts the owner record before the second request starts, and that transaction stays open.&lt;/small&gt;&lt;/p&gt;

&lt;p&gt;The setups differ in two ways.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Starting record.&lt;/strong&gt; The repository test starts with an owner record already inserted, while the sign-in check starts with no record.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Owner keys.&lt;/strong&gt; The repository test uses two owner keys, while the service uses one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two different keys cannot collide on the primary key. In the trial, we did not run a test that changed only one of the two. A later run on a table with two columns changed only the keys, and a section below shows it.&lt;/p&gt;

&lt;p&gt;In every implementation, at least one failed attempt logged a violation of the primary key. PostgreSQL rejected one insert with a unique violation, SQLSTATE 23505, on the primary key, and that sign-in failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What five attempts showed
&lt;/h2&gt;

&lt;p&gt;We kept each saved implementation fixed and gave it five attempts, counting the first attempt as one of the five. The evaluator's script set the five attempts, and the rule that all five must pass, before the first check ran.&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%2Fi5d6bc28lk57pq9cdkmx.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%2Fi5d6bc28lk57pq9cdkmx.png" alt="Four of five implementations passed the first attempt. No implementation passed all five attempts." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan → implementation&lt;/th&gt;
&lt;th&gt;First attempt&lt;/th&gt;
&lt;th&gt;Successful attempts&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenSpec → OpenSpec&lt;/td&gt;
&lt;td&gt;Pass&lt;/td&gt;
&lt;td&gt;2/5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spec Kit → Spec Kit&lt;/td&gt;
&lt;td&gt;Fail&lt;/td&gt;
&lt;td&gt;2/5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Superpowers → Superpowers&lt;/td&gt;
&lt;td&gt;Pass&lt;/td&gt;
&lt;td&gt;2/5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenSpec → Superpowers&lt;/td&gt;
&lt;td&gt;Pass&lt;/td&gt;
&lt;td&gt;4/5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spec Kit → Superpowers&lt;/td&gt;
&lt;td&gt;Pass&lt;/td&gt;
&lt;td&gt;3/5&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The evaluator recorded 12 failures in 25 attempts, and no implementation passed all five attempts. Five attempts per implementation are too few to rank them. These results describe five implementations of one migration in a local test environment. We did not measure the order of the database checks or the failure rate in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  What other runs of this migration showed
&lt;/h2&gt;

&lt;p&gt;This trial was one of several steps on the same migration, and four matter here. The section after this one shows the insert that passed.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;What ran&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Seven implementations&lt;/td&gt;
&lt;td&gt;Seven workflows each planned and built the migration&lt;/td&gt;
&lt;td&gt;Re-checked later: 3 of 7 passed five of five&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. This trial&lt;/td&gt;
&lt;td&gt;Three plans, five implementations&lt;/td&gt;
&lt;td&gt;0 of 5 passed five of five&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Seven plans&lt;/td&gt;
&lt;td&gt;Seven plans, one per workflow: three from this trial and four new, checked without building&lt;/td&gt;
&lt;td&gt;All seven left the same case unhandled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. One shared plan&lt;/td&gt;
&lt;td&gt;Seven workflows implemented one plan that named the case&lt;/td&gt;
&lt;td&gt;7 of 7 passed five of five&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The seven workflows in step 1 were our usual workflow, OpenSpec, Spec Kit, Superpowers, BMad without TEA, Gstack, and Matt Pocock's skills. TEA is BMad's test-strategy step, which Part 3 covers. The implementations from step 1 were not built from the plans in step 3. The case that all seven plans left unhandled was two first sign-ins that conflict on the owner's primary key. A plan could name the outcome, as the three plans in this trial did, and still give the insert a rule that failed in that case.&lt;/p&gt;

&lt;p&gt;For step 4, we wrote one shared plan that spelled out the case the earlier plans had left unhandled. Two conflicting inserts for the same owner had to end with one owner record. The plan also asked for a check of each unique constraint and a test of two simultaneous first sign-ins. It left the implementation to each workflow.&lt;/p&gt;

&lt;p&gt;Seven workflows implemented that plan, and all seven passed five of five attempts on the sign-in check: 35 of 35. But a different criterion, an agreed set of regression tests, stopped four of the seven. In those four, an existing sign-in test rolled back through the new migration, which was irreversible.&lt;/p&gt;

&lt;p&gt;The shared-plan run does not prove that the plan made the difference. Compared with step 1, it changed at least three things at once: the plan, the time and turn limits, and access to native PostgreSQL clients. Three implementations from step 1 also passed five of five when we re-checked them. We did not compare the fixes head to head, and we did not measure why some attempts passed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the passing implementations handled the insert
&lt;/h2&gt;

&lt;p&gt;All seven shared-plan implementations used &lt;code&gt;DO NOTHING&lt;/code&gt; without a conflict target, then read the stored owner back. The three step 1 implementations that passed used the same insert. PostgreSQL's documentation says that this form handles conflicts on all usable unique constraints. In SQLAlchemy, it is &lt;code&gt;.on_conflict_do_nothing()&lt;/code&gt; with no arguments. This trial's three plans had ruled that form out, so that a conflict with a different identifier would still fail.&lt;/p&gt;

&lt;p&gt;Here is the simplified insert from above in that form, followed by a read-back. On its own, the insert would hide such a conflict.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;owners&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;owner_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;identifier_hash&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;CONFLICT&lt;/span&gt; &lt;span class="k"&gt;DO&lt;/span&gt; &lt;span class="k"&gt;NOTHING&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;owner_key&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;owners&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;identifier_hash&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All ten of these implementations, the seven from the shared plan and the three from step 1, read the owner back after the insert.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;All ten raise an error when no record exists for the incoming hash, as in the second statement.&lt;/li&gt;
&lt;li&gt;Two of them also compare the stored hash with the incoming one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the shared-plan run, one session's own test also called the repository twice at once with the same owner key and hash, and both calls returned that owner. Nothing in that test forced the two inserts to overlap.&lt;/p&gt;

&lt;p&gt;In the trial, we read that code but did not run a mismatch case. After the trial, we ran one on the two-column table: an owner key already stored with a different identifier, the case the plans had in mind. The insert without a target skipped the row without an error, and only the read-back by the incoming hash turned the skip into an error.&lt;/p&gt;

&lt;p&gt;The other mismatch is the reverse: the same hash with a different owner key. The read-back returned the owner already stored, as the trial's repository test expected, while a version without the read-back returned the caller's own key. Decide whether your service should accept that stored owner or reject the request.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  The mismatch case as a test
  &lt;p&gt;Here is that case as a pytest on the two-column table that the next section uses. The first test checks that a first sign-in still returns its owner. The second stores owner-1 with one hash and then signs in with owner-1 and another hash.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;psycopg&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pytest&lt;/span&gt;

&lt;span class="no"&gt;DSN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"DATABASE_URL"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="no"&gt;INSERT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"""INSERT INTO owners (owner_key, identifier_hash) VALUES (%s, %s)
ON CONFLICT DO NOTHING"""&lt;/span&gt;
&lt;span class="no"&gt;READ_BACK&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"SELECT owner_key FROM owners WHERE identifier_hash = %s"&lt;/span&gt;


&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;OwnerMismatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;pass&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;sign_in&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;owner_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;identifier_hash&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;INSERT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;owner_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;identifier_hash&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# Without this read-back check, a key stored with another identifier passes silently.&lt;/span&gt;
    &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;READ_BACK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;identifier_hash&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;OwnerMismatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{owner_key} is stored with a different identifier"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;


&lt;span class="nd"&gt;@pytest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fixture&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;psycopg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;DSN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;autocommit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"DROP TABLE IF EXISTS owners"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="s2"&gt;"CREATE TABLE owners (owner_key text PRIMARY KEY, identifier_hash text UNIQUE)"&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="n"&gt;conn&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_first_sign_in_returns_the_owner&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;sign_in&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"owner-1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"hash-1"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"owner-1"&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_owner_key_stored_with_another_identifier_is_rejected&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"INSERT INTO owners VALUES ('owner-1', 'hash-old')"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;pytest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raises&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;OwnerMismatch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;sign_in&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"owner-1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"hash-new"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;stored&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SELECT identifier_hash FROM owners WHERE owner_key = 'owner-1'"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;stored&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"hash-old"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You need Docker and &lt;code&gt;uv&lt;/code&gt;. Save it as &lt;code&gt;test_mismatch.py&lt;/code&gt; and run it against a throwaway database:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run -d --rm --name race -p 127.0.0.1:55432:5432 -e &lt;span class="nv"&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;demo postgres:18.4-bookworm
&lt;span class="k"&gt;until&lt;/span&gt; docker &lt;span class="nb"&gt;exec&lt;/span&gt; race pg_isready -q -h 127.0.0.1&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; sleep 1&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;DATABASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;postgresql://postgres:demo@127.0.0.1:55432/postgres
uv run --with &lt;span class="s1"&gt;'psycopg[binary]'&lt;/span&gt; --with pytest pytest -q test_mismatch.py
docker rm -f race
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With a version of &lt;code&gt;sign_in&lt;/code&gt; that returns &lt;code&gt;owner_key&lt;/code&gt; without reading the owner back, the second test failed with &lt;code&gt;DID NOT RAISE OwnerMismatch&lt;/code&gt;. With the read-back, both tests passed, and the stored row kept its first hash. Both runs were on 28 November 2026.&lt;/p&gt;



&lt;br&gt;
&lt;p&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The race on a table with two columns
&lt;/h2&gt;

&lt;p&gt;After the trial, we reproduced the collision outside the service, on a table that has only the two columns. The run used the trial's PostgreSQL image, version 18.4, in Docker on one laptop, on 28 November 2026.&lt;/p&gt;

&lt;p&gt;Each round takes a new key. Two sessions send the same insert, and both wait at an advisory lock inside that statement. A third session holds the lock for a moment and then releases both at once. After the container's ID, the script prints the number of primary-key errors.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run -d --rm --name race -e &lt;span class="nv"&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;demo postgres:18.4-bookworm
&lt;span class="k"&gt;until&lt;/span&gt; docker &lt;span class="nb"&gt;exec&lt;/span&gt; race pg_isready -q -h 127.0.0.1&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; sleep 1&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;done&lt;/span&gt;
docker &lt;span class="nb"&gt;exec&lt;/span&gt; -i race bash &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s1"&gt;'IN'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -c owners_pkey
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;PGUSER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;postgres
psql -qc &lt;span class="s2"&gt;"CREATE TABLE owners (owner_key text PRIMARY KEY, identifier_hash text UNIQUE)"&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; i &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;seq 1 200&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  psql -qc &lt;span class="s2"&gt;"SELECT pg_advisory_lock(1); SELECT pg_sleep(0.2)"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;
  sleep 0.1
  &lt;span class="k"&gt;for&lt;/span&gt; s &lt;span class="k"&gt;in&lt;/span&gt; 1 2&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
    psql -qc &lt;span class="s2"&gt;"WITH gate AS MATERIALIZED (SELECT pg_advisory_xact_lock_shared(1))
              INSERT INTO owners SELECT 'owner-$i', 'hash-$i' FROM gate
              ON CONFLICT (identifier_hash) DO NOTHING"&lt;/span&gt; 2&lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;1 &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;
  &lt;span class="k"&gt;done&lt;/span&gt;
  &lt;span class="nb"&gt;wait&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
IN
docker rm -f race
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Our run printed 153. In 153 of 200 rounds, one of the two inserts failed with a unique violation on &lt;code&gt;owners_pkey&lt;/code&gt;, and in the other 47 rounds no primary-key error appeared. That count describes one laptop, so expect a different number on yours.&lt;/p&gt;

&lt;p&gt;We then made two changes, one at a time.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No conflict target.&lt;/strong&gt; With &lt;code&gt;ON CONFLICT DO NOTHING&lt;/code&gt;, the same script printed 0. In a longer version of the script that kept every line of output and added a read-back by the hash, no error of any kind appeared, and both sessions read the same owner in all 200 rounds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Owner record inserted first.&lt;/strong&gt; The first session inserted the record and kept its transaction open, as in the repository test. The second session then sent the same keys. Its insert waited for the commit and then skipped the row, with no error.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So on this table, the same keys did not expose the race while an open transaction already held the record. The race needed both inserts to start with no record.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to ask for at review
&lt;/h2&gt;

&lt;p&gt;Ask the author to write down the starting state for each test. That state includes when the test creates the owner record and which values must be unique.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keep the repository test for the case where the first transaction has already inserted an owner.&lt;/li&gt;
&lt;li&gt;Add a second test where concurrent requests start with no owner record and carry the keys that the service would give them. Release both inserts from one lock, as the script above does: two calls that start together can still run one after the other.&lt;/li&gt;
&lt;li&gt;Check concurrent first sign-ins separately in an isolated test environment.&lt;/li&gt;
&lt;li&gt;Check both responses, and confirm that the database contains one owner record for the account.&lt;/li&gt;
&lt;li&gt;Repeat the check on fresh databases, and report the first attempt separately from the repeats.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;/p&gt;
  Item 2 as a test you can run
  &lt;p&gt;Here is item 2 as a pytest, written after the trial for the two-column table above. A trigger used only by the test holds every insert at an advisory lock, so the code under test needs no gate of its own. To test your own code, replace the body of &lt;code&gt;sign_in&lt;/code&gt; with a call to your repository function. For your own table, create your schema in &lt;code&gt;setup_table&lt;/code&gt; and attach the &lt;code&gt;gate&lt;/code&gt; trigger to that table, or the inserts will not overlap. The test drops and recreates &lt;code&gt;owners&lt;/code&gt;, so run it only against the throwaway database. The test releases the lock only after PostgreSQL shows both inserts waiting, and it runs 50 rounds with a new key in each.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;threading&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;psycopg&lt;/span&gt;

&lt;span class="no"&gt;DSN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"DATABASE_URL"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="no"&gt;ROUNDS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;

&lt;span class="c1"&gt;# The insert under test. Swap in the second version to see the test pass.&lt;/span&gt;
&lt;span class="no"&gt;INSERT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"""INSERT INTO owners (owner_key, identifier_hash) VALUES (%s, %s)
ON CONFLICT (identifier_hash) DO NOTHING"""&lt;/span&gt;
&lt;span class="c1"&gt;# INSERT = """INSERT INTO owners (owner_key, identifier_hash) VALUES (%s, %s)&lt;/span&gt;
&lt;span class="c1"&gt;# ON CONFLICT DO NOTHING"""&lt;/span&gt;
&lt;span class="no"&gt;READ_BACK&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"SELECT owner_key FROM owners WHERE identifier_hash = %s"&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;sign_in&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;owner_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;identifier_hash&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;psycopg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;DSN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;autocommit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SET lock_timeout = '5s'"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;INSERT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;owner_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;identifier_hash&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;READ_BACK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;identifier_hash&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;setup_table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"DROP TABLE IF EXISTS owners"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s2"&gt;"CREATE TABLE owners (owner_key text PRIMARY KEY, identifier_hash text UNIQUE)"&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# Test-only gate: every insert waits here until the test releases lock 1.&lt;/span&gt;
    &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s2"&gt;"""CREATE OR REPLACE FUNCTION gate() RETURNS trigger LANGUAGE plpgsql AS
        $$ BEGIN PERFORM pg_advisory_xact_lock_shared(1); RETURN NEW; END $$"""&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"CREATE TRIGGER gate BEFORE INSERT ON owners FOR EACH ROW EXECUTE FUNCTION gate()"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;waiting_inserts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s2"&gt;"SELECT count(*) FROM pg_locks WHERE locktype = 'advisory' AND NOT granted"&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_two_first_sign_ins_get_one_owner&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;psycopg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;DSN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;autocommit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;control&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;setup_table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;control&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;ROUNDS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;digest&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"owner-{n}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"hash-{n}"&lt;/span&gt;
            &lt;span class="n"&gt;control&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SELECT pg_advisory_lock(1)"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="n"&gt;threads&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
                &lt;span class="n"&gt;threading&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Thread&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;sign_in&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;threads&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;deadline&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;monotonic&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;
            &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nf"&gt;waiting_inserts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;control&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;monotonic&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;deadline&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"round {n}: gate not reached"&lt;/span&gt;
                &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.01&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;control&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SELECT pg_advisory_unlock(1)"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;threads&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"round {n}: {results}"&lt;/span&gt;
            &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;control&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="s2"&gt;"SELECT count(*) FROM owners WHERE identifier_hash = %s"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"round {n}: {rows} rows"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You need Docker and &lt;code&gt;uv&lt;/code&gt;. Save the test as &lt;code&gt;test_first_sign_in.py&lt;/code&gt; and run it against a throwaway database:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run -d --rm --name race -p 127.0.0.1:55432:5432 -e &lt;span class="nv"&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;demo postgres:18.4-bookworm
&lt;span class="k"&gt;until&lt;/span&gt; docker &lt;span class="nb"&gt;exec&lt;/span&gt; race pg_isready -q -h 127.0.0.1&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; sleep 1&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;DATABASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;postgresql://postgres:demo@127.0.0.1:55432/postgres
uv run --with &lt;span class="s1"&gt;'psycopg[binary]'&lt;/span&gt; --with pytest pytest -q test_first_sign_in.py
docker rm -f race
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With the conflict target, our run failed in round 0. Here is the assertion line from that run, shortened.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;E   AssertionError: round 0: ['owner-0', UniqueViolation('duplicate key value violates unique constraint "owners_pkey" ...')]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With the second version of &lt;code&gt;INSERT&lt;/code&gt;, which has no target, all 50 rounds returned the same owner to both calls and left one row. Both runs were on 28 November 2026, on the laptop from the section above.&lt;/p&gt;



&lt;br&gt;
&lt;p&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion and what's next
&lt;/h2&gt;

&lt;p&gt;The review question is whether the tests cover the same states the service can encounter. In this trial, writing down the starting state showed how the two tests differed.&lt;/p&gt;

&lt;p&gt;I started these trials to learn where the frameworks help. The workflows we compared differed in the steps they added, and Parts 2 to 4 describe those steps. The clearest answer was about something none of them owned. The plan from our usual workflow left the two-sign-in case unhandled as well, and the check that caught it ran after every workflow had finished.&lt;/p&gt;

&lt;p&gt;Choose a workflow for the step you need. Keep an independent acceptance check for any change to data or access, and repeat it. That rule rests mostly on one migration in a local environment. On a second task, a lease for a data collector in the same app, the requirement named the race outright, and all three implementations passed the independent check in five attempts of five. So the check caught what the tests missed where the requirement did not say that both sign-ins must succeed. The second task differed in more than its requirement, so this is a pattern we saw, not a proven cause. We follow the rule anyway.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start of the series.&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/choosing-a-workflow-for-coding-agents-part-1-of-5-d51"&gt;Part 1&lt;/a&gt; has the guide to choosing a workflow by the step it adds.&lt;/p&gt;

</description>
      <category>testing</category>
      <category>postgres</category>
      <category>ai</category>
      <category>database</category>
    </item>
    <item>
      <title>Superpowers on an OpenSpec or Spec Kit Plan: Who Closes the Spec? (Part 4 of 5)</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Wed, 25 Nov 2026 13:05:57 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/what-changes-when-superpowers-takes-over-an-openspec-or-spec-kit-plan-part-4-of-5-dlp</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/what-changes-when-superpowers-takes-over-an-openspec-or-spec-kit-plan-part-4-of-5-dlp</guid>
      <description>&lt;p&gt;We gave two agent sessions the same saved plan. One continued with the tool that wrote the plan, and the other used Superpowers for implementation and review. That raised two questions. What would the new reviewer catch? Who would update the specification after the code changed?&lt;/p&gt;

&lt;p&gt;With one workflow doing everything, I never had to ask who closes the specification. The combinations made that a question. Closing means bringing the specification in line with the final code and finishing the tool's closing steps.&lt;/p&gt;

&lt;p&gt;OpenSpec records each change and keeps a main specification, Spec Kit keeps requirements, a plan, and tasks in sync, and Superpowers gives implementation and review to different agents. We call that handoff a combination: an OpenSpec or Spec Kit plan goes to Superpowers for implementation and review. A standalone workflow plans and implements with one tool.&lt;/p&gt;

&lt;p&gt;We tested both combinations on a database migration that changed how an app stores sign-in identifiers. Existing users had to keep their data and access. A second, narrower trial on a web feature is in a collapsed block near the end.&lt;/p&gt;


&lt;div class="crayons-card c-embed"&gt;

  

&lt;p&gt;&lt;strong&gt;The short version.&lt;/strong&gt; Neither combination showed a benefit over the standalone workflows in our trial. We did not compare any of them with plain prompts. Try one only when you need a specific review step and can assign someone to finish what the specification tool leaves open.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Review.&lt;/strong&gt; Reviewers found two defects in the code and two gaps in the tests. They worked only from materials that the main agent passed to them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What review missed.&lt;/strong&gt; No reviewer caught the sign-in defect of &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-our-repository-test-missed-a-sign-in-race-part-5-of-5-2cf4"&gt;Part 5&lt;/a&gt;. One checked that very behavior and passed it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Specification.&lt;/strong&gt; Nobody closed it in the trial. The combinations lacked the closing steps of OpenSpec and Spec Kit, and every run lacked the database tools. In a later run with both installed and closing requested, all eight runs closed it, combinations included.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Acceptance.&lt;/strong&gt; All five implementations ended at nine of ten criteria. That count follows a correction to two evaluator checks, made before we matched results to workflows. Neither combination changed it.&lt;/li&gt;
&lt;/ul&gt;


&lt;/div&gt;


&lt;p&gt;Both trials ran locally in November 2026, and every session used &lt;code&gt;gpt-6.1-sol&lt;/code&gt; at low reasoning effort. The migration trial ran in Codex CLI with OpenSpec 2.0.0, Spec Kit 1.4.1.dev0, and Superpowers 7.0.2. Each implementation ran once. The working copies and full logs remain internal. We have no ties to the makers of these tools. &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/choosing-a-workflow-for-coding-agents-part-1-of-5-d51#how-to-install-each-tool-and-what-to-type-first"&gt;Part 1&lt;/a&gt; has the install line for each tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five implementations from three plans
&lt;/h2&gt;

&lt;p&gt;Three sessions made plans, one each with OpenSpec, Spec Kit, and Superpowers. Five new sessions implemented them from the same starting code.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OpenSpec plan.&lt;/strong&gt; One session implemented it with OpenSpec, and a second with Superpowers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spec Kit plan.&lt;/strong&gt; One session implemented it with Spec Kit, and a second with Superpowers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Superpowers plan.&lt;/strong&gt; The fifth session implemented it with Superpowers, which had also written the plan.&lt;/li&gt;
&lt;/ul&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%2F4yra8e1v6xlp19s47xnf.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%2F4yra8e1v6xlp19s47xnf.png" alt="OpenSpec and Superpowers used the same OpenSpec plan. Spec Kit and Superpowers used the same Spec Kit plan. Standalone Superpowers used its own plan." width="800" height="665"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;An independent evaluator scored the saved implementations under random IDs, and we matched IDs to workflows after scoring. The evaluator is a separate checking step that sees only the saved result.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  The instruction that handed the plan to the next session
  &lt;p&gt;Each implementation session received the same task brief, its saved plan, and one instruction. Here is the part of that instruction that hands an OpenSpec plan to Superpowers. We replaced file paths with descriptions in brackets and left out the other lines.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Use pinned superpowers instructions for this stage: Use plan, test-first execution and review; record any substitution of roles.
Your stage is BUILD through local release preparation. Budget: 70 minutes and 32 started turns across all roles.
Plan producer: openspec. You are authorized to implement the approved scope locally.
Read [the handoff file] and the plan files listed there.
The directory [copy of the handoff] contains the exact handoff. Leave it unchanged.
The same files are also in their original project locations for native continuation.
Record any change to the plan, reasons, and affected requirement IDs in [the review file].
Use the implementation approach's native verification and review. If a native step is unavailable be explicit.
For OpenSpec record actual Verify, Sync and Archive actions. For Spec Kit record actual Converge actions.
For Superpowers use native child review as its pinned workflow requires. Show child activity and review findings.
If your inherited plan came from another approach, map the implemented result to its requirements and report
the current state of its specification. Do not advertise original-approach lifecycle actions without evidence.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All five sessions got these lines, and only the first line and the plan producer differed. Most lines belong to the program that runs our trial sessions.&lt;/p&gt;



&lt;br&gt;
&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Three lines of that instruction carry over to any setup: name the tool that produced the plan, keep an unchanged copy of the handoff, and record every change to the plan with its reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reviewers could not open the working copy
&lt;/h2&gt;

&lt;p&gt;Superpowers could not split the work here the way it is meant to. In all three Superpowers runs, the main agent started an implementer agent. But the agents it started could not open the working copy. In our setup every action on the working copy went through one tool, and that tool was missing in the started agents' sessions: their calls to it failed. Our records show the error and do not name its cause.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Code.&lt;/strong&gt; The main agent wrote it in all three runs, and it ran the checks in the working copy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review.&lt;/strong&gt; Other agents reviewed, but only from materials that the main agent passed to them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One exception.&lt;/strong&gt; In the Spec Kit combination, the reviewer was the agent first started as implementer, and it marked its review incomplete.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Standalone OpenSpec and Spec Kit used their own verification steps, with no separate reviewer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the reviewers found anyway
&lt;/h2&gt;

&lt;p&gt;Each finding below came from a reviewer that read material passed to it: source excerpts and diffs in two runs, and a description of the change in the Spec Kit combination. It could not open the working copy or run anything. The messages to the reviewers are not in our records. For the OpenSpec combination, the session's notes list what went into them: source code, diff text, and test results. The wording of the findings is ours, with the project's names removed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OpenSpec plan, reviewed in Superpowers.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Finding.&lt;/strong&gt; A failure during session cleanup could escape before the generic rejection and carry the original error with it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What followed.&lt;/strong&gt; The main agent wrote a test that failed, fixed the code, and sent the change back. The same reviewer marked the finding addressed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Spec Kit plan, reviewed in Superpowers.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Finding.&lt;/strong&gt; The migration set its lock and its timeouts outside the block that guards against errors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What followed.&lt;/strong&gt; The main agent reproduced the problem with a failing test and moved the setup inside the block. The reviewer had called its own review incomplete in the same reply as the finding, and no reviewer looked at the fix.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Superpowers plan, reviewed in Superpowers.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Finding.&lt;/strong&gt; A test for a lost acknowledgement only retried an upgrade that had already been acknowledged.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finding.&lt;/strong&gt; No check covered one public route.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What followed.&lt;/strong&gt; The main agent changed the test and added the check, and the reviewers confirmed both.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Final review.&lt;/strong&gt; It reported no code defect and declined to judge the whole change.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the review loop worked on what the reviewers were shown. The trial cannot tell us whether the standalone workflows would have found the same problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the reviewers said they could not judge
&lt;/h2&gt;

&lt;p&gt;The final reviews did not claim more than they saw. Each listed what it declined to judge. Here are two of those lists, shortened.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OpenSpec plan.&lt;/strong&gt; The full working copy, the test runs, and the release steps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Superpowers plan.&lt;/strong&gt; Correctness of the whole change, the database dump, recovery from a restore, and readiness for release.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One review deserves a closer look. In the standalone Superpowers run, a reviewer checked the task that stores the owner record. It recorded that a conflict on the primary key fails closed, and it passed the task.&lt;/p&gt;

&lt;p&gt;That was the rule in the plan, and the code followed it. &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-our-repository-test-missed-a-sign-in-race-part-5-of-5-2cf4"&gt;Part 5&lt;/a&gt; shows how that rule rejected one of two simultaneous first sign-ins. Here is our reading of that one record. The review did its job against the plan. The gap sat upstream, in the requirement and the plan built on it.&lt;/p&gt;

&lt;p&gt;After the trial, we repeated that review on the trial's stand, with a new Python environment and a larger budget, and with the same model, using the task brief, the implementer's report, and the diff that this reviewer had read. Twenty fresh reviewers took four variants, five each. One variant got exactly what the trial's reviewer got. Two added a requirement: the written criterion, or the stricter rule that both sign-ins succeed and keep one owner. The last gave the written criterion without the plan. None of the 20 named the race on the primary key. In a control, we changed the code to return the candidate owner instead of the stored one, and all 5 reviewers named that defect. So the reviewers were working, and none of them called this code wrong, with the plan, with either requirement, or without the plan. With the stricter rule, all five noted that two simultaneous sign-ins were untested, but none named the race. The reviewers saw the diff and the brief, not the code that derives the owner key from the sign-in identifier, which is what makes the two keys equal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nobody closed the specification, and each run said why
&lt;/h2&gt;

&lt;p&gt;Four step names appear below: three come from OpenSpec, and Converge comes from Spec Kit.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Verify&lt;/strong&gt; checks the code against the change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sync&lt;/strong&gt; updates the main specification.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Archive&lt;/strong&gt; moves the completed change into the archive.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Converge&lt;/strong&gt; checks the code against the specification, plan, and tasks, then adds missing tasks.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan → implementation&lt;/th&gt;
&lt;th&gt;What ran&lt;/th&gt;
&lt;th&gt;What stayed open&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenSpec → OpenSpec&lt;/td&gt;
&lt;td&gt;Verify and Sync&lt;/td&gt;
&lt;td&gt;Archive. Verify counted ten of thirteen tasks complete, and the agent stopped there.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenSpec → Superpowers&lt;/td&gt;
&lt;td&gt;Verification and sync by hand: the Verify and Sync skills were unavailable&lt;/td&gt;
&lt;td&gt;Archive. Five of the thirteen tasks stayed unchecked.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spec Kit → Spec Kit&lt;/td&gt;
&lt;td&gt;Converge&lt;/td&gt;
&lt;td&gt;Two tasks that Converge added.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spec Kit → Superpowers&lt;/td&gt;
&lt;td&gt;No Converge: this setup had no command for it&lt;/td&gt;
&lt;td&gt;The check of the final code against the specification and tasks.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In the OpenSpec combination, two of the five open tasks were the full regression run and the Verify step itself. The standalone OpenSpec run recorded its reason for stopping: unfinished work was a stop condition for Archive.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  What Converge reported in the standalone Spec Kit run
  &lt;p&gt;Here is the report, with the identifiers removed.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Finding&lt;/th&gt;
&lt;th&gt;Severity&lt;/th&gt;
&lt;th&gt;Evidence&lt;/th&gt;
&lt;th&gt;What Converge did&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Partly done&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Dump and restore tools unavailable, so one test skips&lt;/td&gt;
&lt;td&gt;Added a task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Partly done&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;The check script and runtime files are absent&lt;/td&gt;
&lt;td&gt;Added a task&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;br&gt;
&lt;p&gt;&lt;/p&gt;

&lt;p&gt;So nobody closed the specification, and no run pretended to. Each left a record of what remained.&lt;/p&gt;

&lt;p&gt;Part of that answer describes our setup and not the tools. Most of the unfinished work needed things the environment lacked: database dump and restore tools, a full check script, release files. And for the two combinations we installed only the Superpowers instructions, so the closing skills of OpenSpec and Spec Kit were not in those working copies. The trial cannot separate what a combination leaves open from what our environment blocked.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  A later run with the closing steps installed
  &lt;p&gt;After the trial, we ran both combinations and both standalone tools again, two runs each. Every working copy had the closing steps of OpenSpec and Spec Kit and the database dump and restore tools. Each run started from the shared plan that Part 5 describes, which named the sign-in case. One session imported the plan, built the change, and closed the specification, so there was no handoff between sessions as in the trial.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Specification.&lt;/strong&gt; Closed in all eight runs. Every OpenSpec run archived its change, and every Spec Kit run recorded Converge with no open tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Acceptance.&lt;/strong&gt; All eight passed the sign-in check. Combination runs passed all ten criteria three times out of four, and standalone runs two times out of four.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Benefit.&lt;/strong&gt; None by the same rule. In the OpenSpec pair, both combination runs passed all ten, but so did one standalone run. In the Spec Kit pair, one combination run failed a criterion. The combinations took nearly twice the active time and about six to seven times the reported input tokens.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One criterion, the operator instructions, is scored by a model judge. After the first scoring, we found that the judge had not received the instructions of two runs, so we re-ran it for all eight with every changed document. Two runs moved from fail to pass, none the other way, and the benefit result did not change. Each run asked for the closing steps, so we cannot tell whether the installed tools or the request did the closing. Two runs per branch are too few to rank the branches.&lt;/p&gt;



&lt;p&gt;&lt;/p&gt;

&lt;p&gt;If you combine tools, someone has to own the record of open work.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you combine them
&lt;/h2&gt;

&lt;p&gt;If one workflow can maintain the specification and verify the change, start there. For a separate implementation review, do four things.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Give the reviewer the agreed plan and the changed code.&lt;/li&gt;
&lt;li&gt;Give the reviewer access to the checks. This is our suggestion, and the trial did not test it.&lt;/li&gt;
&lt;li&gt;Name the person or agent who will finish the open tasks and close the specification.&lt;/li&gt;
&lt;li&gt;Keep the repeated sign-in check outside the workflow you are comparing. No review or verification step in the five implementations caught that defect, and the repeated check did. &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/choosing-a-workflow-for-coding-agents-part-1-of-5-d51#what-a-workflows-own-review-can-miss"&gt;Part 1&lt;/a&gt; shows that check.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;/p&gt;
  Acceptance: nine of ten criteria, after a correction
  &lt;p&gt;Every implementation ended at nine of ten acceptance criteria. The one they all failed, the sign-in check of Parts 1 and 5, covered two simultaneous first sign-ins, under a pass rule that the brief and acceptance text did not spell out. Across five attempts each, every implementation had at least one rejected sign-in. A pass needed five successes out of five. The evaluator's script set the five attempts and that pass rule before the first sign-in check ran.&lt;/p&gt;

&lt;p&gt;The insert rule in the plans did not handle that case, and all five implementations kept it. Part 5 gives the rule, the mechanism, and the count for each implementation.&lt;/p&gt;

&lt;p&gt;Nine of ten is a corrected score. The first scoring pass failed criterion 10 for all five implementations and criterion 9 for four, and we traced both results to the evaluator. We corrected both after the first blind pass and before we matched IDs to workflows, and we kept the original scores and logs.&lt;/p&gt;

&lt;p&gt;Criterion 9 covers a repeated migration and the existing regression tests, and criterion 10 covers the operator instructions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We fixed the evaluator setup and repeated both criteria.&lt;/li&gt;
&lt;li&gt;For criterion 10, we also read the operator instructions ourselves.&lt;/li&gt;
&lt;li&gt;The saved implementations stayed unchanged.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Four evaluator copies lacked a shared test fixture, so we added the fixture and repeated criterion 9. The first criterion 10 check demanded exact phrases, and all five implementations failed it. A second run of the check in the same pass passed three implementations. The other two linked a separate instruction file, so we repeated the check with that file counted. We read the stop and recovery steps ourselves.&lt;/p&gt;



&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  Time and tokens, and the benefit rule that gave no verdict
  &lt;p&gt;We agreed on a benefit rule for this comparison: a benefit counted only after full acceptance. No implementation passed all ten criteria, so the rule gives no verdict, and we report the times and token totals as they are. The rule named two kinds of benefit.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Quality.&lt;/strong&gt; The combination had to pass all ten criteria while the standalone workflow failed at least one product criterion.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time.&lt;/strong&gt; Both workflows had to pass all ten criteria, and the combination had to use at least 20% less time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We compared each combination with two standalone workflows: one used the same plan, and the other was standalone Superpowers.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan → implementation&lt;/th&gt;
&lt;th&gt;Active time (min:sec)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenSpec → OpenSpec&lt;/td&gt;
&lt;td&gt;18:35&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spec Kit → Spec Kit&lt;/td&gt;
&lt;td&gt;15:29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Superpowers → Superpowers&lt;/td&gt;
&lt;td&gt;30:54&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenSpec → Superpowers&lt;/td&gt;
&lt;td&gt;24:11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spec Kit → Superpowers&lt;/td&gt;
&lt;td&gt;13:59&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;small&gt;&lt;strong&gt;Active time.&lt;/strong&gt; Includes planning and implementation. Excludes queue time and independent acceptance.&lt;/small&gt;&lt;/p&gt;

&lt;p&gt;Both combinations took less active time than standalone Superpowers. Against the standalone workflow with the same plan, the results differed: the OpenSpec combination took longer, and the Spec Kit combination took 90 seconds less. We started the runs in different groups, so treat the time differences with care.&lt;/p&gt;

&lt;p&gt;The provider reported input tokens for each implementation session and its reviewer sessions. The running totals ranged from 1.7 million for the Spec Kit combination to 7.7 million for standalone Superpowers. They exclude planning and are not a cost estimate. Each implementation ran once, so the times and token totals describe these runs.&lt;/p&gt;



&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  The web comparison trial: same layout, one response per session
  &lt;p&gt;We ran the same layout on a web feature that compares two versions of a document. All five implementations passed type checking, three core tests, and twelve browser checks, so both combinations matched both of their standalone comparisons.&lt;/p&gt;

&lt;p&gt;Read this trial narrowly. Each session produced its plan or its patch in one response: it used no tools, ran no tests, and delegated nothing. So no separate reviewer ran here. The trial confirms that Superpowers instructions could work from either saved plan. We did not measure automatic delegation, release, or the cost of setting up a combination.&lt;/p&gt;

&lt;p&gt;The feature should behave as follows.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The user should still start a comparison with the button.&lt;/li&gt;
&lt;li&gt;Changing the selected pair should clear the old result immediately.&lt;/li&gt;
&lt;li&gt;A late response for the old pair should leave the current view alone.&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion and what's next
&lt;/h2&gt;

&lt;p&gt;A reviewer that cannot open the working copy can still find real problems in the code it is shown. In our runs and in 20 later reviews of the same change, no reviewer found the sign-in race, with or without the plan. And a specification stays open until someone finishes the tasks behind it.&lt;/p&gt;

&lt;p&gt;For a follow-up, compare one combination with its standalone workflow on a task that requires both review and specification closure. Give both reviewers equivalent access. Record confirmed findings and open specification work alongside acceptance and time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next in the series.&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-our-repository-test-missed-a-sign-in-race-part-5-of-5-2cf4"&gt;Part 5&lt;/a&gt; explains why a repository test missed the sign-in defect.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>agents</category>
      <category>codereview</category>
    </item>
    <item>
      <title>BMad TEA, Superpowers, Gstack: Same Acceptance Result, a Different Step Added (Part 3 of 5)</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Wed, 25 Nov 2026 13:05:43 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/what-coding-agent-workflows-add-after-the-plan-part-3-of-5-26hj</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/what-coding-agent-workflows-add-after-the-plan-part-3-of-5-26hj</guid>
      <description>&lt;p&gt;A user opens a form to reschedule an appointment. While the calendar refreshes, the user can lose access. What happens if the user tries to submit before the app verifies access?&lt;/p&gt;

&lt;p&gt;We used that case to compare test strategies in a local trial, and separate trials covered code review and release preparation. For each trial, we compare one tool with our usual workflow. Our usual workflow has four parts: the project's guidance files, a short plan, tests, and an independent acceptance check. &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/choosing-a-workflow-for-coding-agents-part-1-of-5-d51#what-a-workflows-own-review-can-miss"&gt;Part 1&lt;/a&gt; shows one such check. Our usual workflow's setup differed between the trials, and each section names it.&lt;/p&gt;

&lt;p&gt;Each tool gives an agent instructions to follow, and we used each tool for a different step.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;BMad TEA (Test Engineering Architect).&lt;/strong&gt; Test strategy and tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Superpowers.&lt;/strong&gt; Implementation with a review of each task.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gstack.&lt;/strong&gt; Review and release preparation.&lt;/li&gt;
&lt;/ul&gt;


&lt;div class="crayons-card c-embed"&gt;

  

&lt;p&gt;&lt;strong&gt;The short version.&lt;/strong&gt; In all three trials, the tool's workflow ended with the same acceptance result as our usual workflow. In each trial's final run, both workflows passed every acceptance check.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;BMad TEA.&lt;/strong&gt; Try it when you need to explain which risks the tests should cover first. Our usual workflow detected the same incomplete fixes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Superpowers.&lt;/strong&gt; Try it when you want a review of each task and a different reviewer for each fix. A Superpowers reviewer found a defect before acceptance, and so did a reviewer in our usual workflow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gstack.&lt;/strong&gt; Try it for a separate review and a local evidence record. Our trial stopped before any push: our prompt asked for the stop, and the program that runs our trial sessions enforced it. Set a stop that does not rest on the prompt alone, as the section on Gstack explains.&lt;/li&gt;
&lt;/ul&gt;


&lt;/div&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%2Fa1owok9hvms4letlu46j.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%2Fa1owok9hvms4letlu46j.png" alt="In separate local trials, BMad TEA ranked revoked access first. A Superpowers reviewer found a gap in input-file protection. The program that runs our trial sessions stopped Gstack before pushing." width="800" height="1080"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All three trials ran locally in mid-November 2026 with &lt;code&gt;gpt-6.1-sol&lt;/code&gt; at low reasoning effort. We keep the full logs and working copies internal.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/choosing-a-workflow-for-coding-agents-part-1-of-5-d51#how-to-install-each-tool-and-what-to-type-first"&gt;Part 1&lt;/a&gt; has the install line for each tool. In Codex CLI, TEA's first step is &lt;code&gt;$bmad-tea-test-design&lt;/code&gt;, Superpowers starts its skills from the task description, and Gstack's README gives &lt;code&gt;/review&lt;/code&gt; for its review. In the second TEA run we did not type a skill name: we placed the instructions in the first messages.&lt;/p&gt;

&lt;h2&gt;
  
  
  BMad TEA explained why revoked access comes first
&lt;/h2&gt;

&lt;p&gt;On the rescheduling form, the team had three risks to consider.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A refresh could allow a submission and drop the draft's focus.&lt;/li&gt;
&lt;li&gt;The user could submit against an outdated version.&lt;/li&gt;
&lt;li&gt;The app could save changes after the user lost access.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The task description set the expected behavior: the app must send nothing until it verifies access and version. If access is revoked, it closes the form and clears the draft.&lt;/p&gt;

&lt;p&gt;We prepared three versions of the feature.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The correct version.&lt;/li&gt;
&lt;li&gt;An incomplete fix for the version check.&lt;/li&gt;
&lt;li&gt;An incomplete fix for submission.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A useful test set passes on the correct version and fails on each incomplete fix. We checked the tests on the correct version first and kept the incomplete fixes hidden until the tests were final.&lt;/p&gt;

&lt;p&gt;We ran this comparison twice. In the first run, part of TEA's instructions did not reach the model, so that run measured TEA with incomplete instructions. We repeated the comparison and checked the delivery of instructions first. This time we placed every instruction for writing the tests in the first messages, and each document ended with a random marker. Each session had to return all the markers before it was allowed to write tests. Such a receipt shows that the text was available to the model. It does not show attention or a complete run of the method.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  What happened in the first run
  &lt;p&gt;In the first run, the TEA session redirected some required instructions into files. Writing a text to a file does not show it to the model. We gave both workflows the same audit: count a text as read only when a tool returned it to the model, and read again whatever had only been redirected. TEA read most of the missing parts again, and some gaps remained: of three files, the model had seen only the first 30 to 45 lines. Our tests accepted the correct version on the first check, while the TEA workflow changed its tests twice.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One change made a test wait for a visible calendar update.&lt;/li&gt;
&lt;li&gt;The other changed the point at which a test simulated revoked access.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After those changes, both workflows accepted the correct version and detected both incomplete fixes.&lt;/p&gt;



&lt;p&gt;&lt;/p&gt;

&lt;p&gt;In the second run, we confirmed that both workflows had received their instructions before they wrote tests. Each workflow wrote seven tests, and all seven passed on the correct version on the first attempt. Both workflows detected both incomplete fixes without changing their tests.&lt;/p&gt;

&lt;p&gt;In both runs, our usual workflow used trial versions of our planning and acceptance skills.&lt;/p&gt;

&lt;p&gt;The results below come from the second run, where both workflows got the same acceptance result and both ranked the risks.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;BMad TEA.&lt;/strong&gt; It ranked revoked access highest and gave its reason: revoked access breaks the access boundary, and the source described no safe manual repair.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Our usual workflow.&lt;/strong&gt; It put revoked access and unverified versions at the top.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both workflows linked the requirements to their tests. What TEA added was an &lt;strong&gt;explicit reason for each priority&lt;/strong&gt;. &lt;a href="https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/" rel="noopener noreferrer"&gt;BMad TEA documentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is part of the strategy summary that TEA's session wrote before the tests ran, from the second run. We asked both workflows for such a summary. We translated it from Russian and shortened it. We replaced the identifiers with descriptions.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Risk&lt;/th&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;th&gt;Priority&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A refresh allows submission and drops the draft's focus&lt;/td&gt;
&lt;td&gt;DATA&lt;/td&gt;
&lt;td&gt;3×2=6&lt;/td&gt;
&lt;td&gt;P1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A new version does not require an explicit review&lt;/td&gt;
&lt;td&gt;DATA&lt;/td&gt;
&lt;td&gt;2×2=4&lt;/td&gt;
&lt;td&gt;P1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Revoked access leaves the form and the draft open&lt;/td&gt;
&lt;td&gt;SEC&lt;/td&gt;
&lt;td&gt;2×3=6&lt;/td&gt;
&lt;td&gt;P0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The score alone did not set the priority. TEA gave revoked access P0 because it breaks the access boundary. It kept the other two at P1 because the client still has to accept a proposal, which limits the damage of a wrong one. The type, score, and priority are TEA's labels. TEA's own test design scores each risk as probability times impact.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Tests&lt;/th&gt;
&lt;th&gt;Expected evidence&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;No submission during a refresh&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Button disabled. Enter and a direct submit send nothing. Input and focus stay. One submission, and the client accepts it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A normal reschedule still works&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Expected version 1, the exact UTC time, both calendars.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An outdated version needs a review&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Version 2 and the current time shown. Input stays. An explicit confirmation, which writes nothing.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Revoked access closes the form&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Form closed and draft cleared. No writes. The second relationship still available. Empty input on return.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Limits.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The second run cannot show that delivery made the difference: new sessions wrote new tests, and both workflows received their instructions in a new way.&lt;/li&gt;
&lt;li&gt;We did not test whether TEA's priorities improve defect detection when a team has time to run fewer tests.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reviewers found a defect in each workflow's code
&lt;/h2&gt;

&lt;p&gt;A separate trial built a command-line reporting feature. In the Superpowers workflow, three implementer agents each took one task. Each task had another agent check whether the code met the requirements and assess its quality. This review structure is part of Superpowers' workflow. &lt;a href="https://github.com/obra/superpowers/blob/main/skills/subagent-driven-development/SKILL.md" rel="noopener noreferrer"&gt;Superpowers review instructions&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In an earlier attempt, both workflows failed acceptance, and we then clarified two requirements, added 40 checks, and repeated the run. One run in between failed to start, and we do not count it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Workflow&lt;/th&gt;
&lt;th&gt;Earlier&lt;/th&gt;
&lt;th&gt;Repeat&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Our usual workflow&lt;/td&gt;
&lt;td&gt;15/17&lt;/td&gt;
&lt;td&gt;57/57&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Superpowers&lt;/td&gt;
&lt;td&gt;16/17&lt;/td&gt;
&lt;td&gt;57/57&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Everything below comes from the repeat, where a reviewer in each workflow found a defect.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Superpowers.&lt;/strong&gt; One reviewer found a gap in the code that protects input files from being overwritten. The implementer added a regression test and fixed the code, and a different reviewer &lt;strong&gt;confirmed the fix&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Our usual workflow.&lt;/strong&gt; One agent planned and wrote the code, and a separate agent then reviewed the finished code, tests, and documentation. That reviewer found a defect in path handling and rechecked the fix.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both saved implementations passed all 57 independent acceptance checks.&lt;/p&gt;

&lt;p&gt;The logs show who found the problem, what changed, and who checked it again. They support trying this review loop when a defect would matter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limits.&lt;/strong&gt; The logs leave two questions open.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Would the same implementer have caught the defect in a later self-review?&lt;/li&gt;
&lt;li&gt;Did Superpowers' reviews find more than ours?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Gstack ran a review and called the stop we asked for
&lt;/h2&gt;

&lt;p&gt;We tested Gstack's local review and the start of its Ship workflow on a small roadmap correction. One roadmap item, a test on a real device, had to stay marked as pending. Acceptance for this trial had twelve checks. Separate agent sessions scored them from the saved results, without the workflows' names.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Eight checks on the document.&lt;/li&gt;
&lt;li&gt;Four checks on the local result: patch scope, content, closure status, and saved evidence.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Gstack and our usual workflow passed all twelve, and our usual workflow ran as one agent, without a separate review.&lt;/p&gt;

&lt;p&gt;Three parts of Gstack's run matter here.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Review.&lt;/strong&gt; Gstack ran a separate review, which raised no substantive findings, and Gstack recorded it as advisory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop.&lt;/strong&gt; Our prompt told it to call a stop command before the push step. It did, and our test controller, the program that runs each trial session, &lt;strong&gt;closed its tools before any push&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evidence.&lt;/strong&gt; Gstack wrote its evidence to local files, and we saved them with the first patch.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here are three events from our controller's log, shortened, with the command's name changed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tool_request   command: stop-before-send
checkpoint     step: before Step 17: Push
tool_result    exit 0, "Gstack stopped before Step 17: Push. Report the local result."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The review's own summary began: "No substantive documentation findings." The evidence was 24 local files, among them the patch, a journal, a receipt for each command after recording began, hashes of the inputs, and the logs of the checks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/garrytan/gstack/blob/main/ship/SKILL.md" rel="noopener noreferrer"&gt;Gstack Ship instructions&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That run shows what a local review and release record can contain. If you try Gstack, decide where it stops before you start. Our stop was in the program that runs our sessions: at that step it closed the agent's tools. Without such a program, a rule on the remote that rejects the push could do the same job. That is our suggestion, and we did not test it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limits.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The run gives no evidence about opening a pull request, deploying, or checking a live release.&lt;/li&gt;
&lt;li&gt;Our prompt asked for the stop, and our test controller enforced it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion and what's next
&lt;/h2&gt;

&lt;p&gt;Add a step only if its result could change what you do next. We suggest three steps, and none is a trial result.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On a change with several risks, record which test covers each risk and why it runs first.&lt;/li&gt;
&lt;li&gt;When another agent reviews a fix, give it the task brief and the changed code.&lt;/li&gt;
&lt;li&gt;Before pushing, save the patch and the evidence behind the release decision.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The command-line trial leaves a specific question open: would a separate reviewer catch more defects than the author in the same review time? Compare them on the same reporting changes and verify each finding against the acceptance checks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next in the series.&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-changes-when-superpowers-takes-over-an-openspec-or-spec-kit-plan-part-4-of-5-dlp"&gt;Part 4&lt;/a&gt; hands an OpenSpec or Spec Kit plan to Superpowers for implementation and review.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>agents</category>
      <category>codereview</category>
    </item>
    <item>
      <title>Spec Kit, OpenSpec, Matt Pocock's Skills: Pick the Tool by the Job (Part 2 of 5)</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:27:42 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/keeping-requirements-and-tasks-in-sync-with-coding-agents-part-2-of-5-5h0g</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/keeping-requirements-and-tasks-in-sync-with-coding-agents-part-2-of-5-5h0g</guid>
      <description>&lt;p&gt;A web app fails to load data. The user retries, and the data arrives. Should the app resume work the user already requested? What should happen to an unsubmitted form?&lt;/p&gt;

&lt;p&gt;We faced that decision in a local trial. We agreed on two things: keep the input, and resume work only if the user has already submitted the form. This article follows that decision through three kinds of tool step: asking questions, checking documents, and splitting work. A second trial, on a command-line tool, adds a fourth: recording the change. Each result comes with a limit that we state beside it or in the setup section.&lt;/p&gt;


&lt;div class="crayons-card c-embed"&gt;

  

&lt;p&gt;&lt;strong&gt;The short version.&lt;/strong&gt; Pick the tool by the job.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spec Kit.&lt;/strong&gt; Try it to check that requirements, plans, and tasks agree. We saw it on one change in each of our two trials. In the first, we gave each session the text of one Spec Kit step instead of installing the tool, so that trial shows what the step's instructions produce.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Matt Pocock's Grilling.&lt;/strong&gt; Try it to find open questions. We stopped it after two rounds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Matt Pocock's To Tickets.&lt;/strong&gt; Try it to turn agreed behavior into tasks with clear checks. It made two tasks wait for a whole third task, but the code needed only its shared parts, so check each dependency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenSpec.&lt;/strong&gt; Try it when the next session needs the current behavior and a record of the change. We checked the saved files but did not test a next session.&lt;/li&gt;
&lt;/ul&gt;


&lt;/div&gt;


&lt;p&gt;Both trials used &lt;code&gt;gpt-6.1-sol&lt;/code&gt; at low reasoning effort, and each result below comes from one run of the tool on the inputs we describe. Analyze and To Tickets also had an earlier run on other inputs, which we do not report. Setup details are in How we ran the two trials, near the end.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to type for each step
&lt;/h2&gt;

&lt;p&gt;Each step in this article is a skill: an instruction file that the agent loads by name. The table gives the name you type.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step in this article&lt;/th&gt;
&lt;th&gt;Skill name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Clarify (Spec Kit)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;speckit-clarify&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Analyze (Spec Kit)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;speckit-analyze&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Converge (Spec Kit)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;speckit-converge&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grilling (Matt Pocock's skills)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;grill-me&lt;/code&gt;, which calls &lt;code&gt;grilling&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;To Tickets (Matt Pocock's skills)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;to-tickets&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenSpec: check the change, update the main specification, archive&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;openspec-verify-change&lt;/code&gt;, &lt;code&gt;openspec-sync-specs&lt;/code&gt;, &lt;code&gt;openspec-archive-change&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In Codex CLI, type &lt;code&gt;$&lt;/code&gt; before the name. Spec Kit's page for Codex gives &lt;code&gt;$speckit-specify&lt;/code&gt; as its example, and its other skills take the same form. The Matt Pocock README prints a slash: &lt;code&gt;/grill-me&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Each tool's README or install page gives these lines for Codex CLI.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spec Kit.&lt;/strong&gt; &lt;code&gt;uv tool install specify-cli&lt;/code&gt;, then &lt;code&gt;specify init my-project --integration codex&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Matt Pocock's skills.&lt;/strong&gt; &lt;code&gt;codex plugin marketplace add mattpocock/skills&lt;/code&gt;, then &lt;code&gt;codex plugin add mattpocock-skills@mattpocock&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenSpec.&lt;/strong&gt; &lt;code&gt;npm install -g @fission-ai/openspec@latest&lt;/code&gt;, then &lt;code&gt;openspec init&lt;/code&gt; in your project.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We did not use these installers: we built each tool from a pinned copy of its source. &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/choosing-a-workflow-for-coding-agents-part-1-of-5-d51#how-to-install-each-tool-and-what-to-type-first"&gt;Part 1&lt;/a&gt; lists the versions. The skill names come from the working copies of our command-line trial. In the web recovery trial we did not type them: each session received the instruction file for one step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Clarify and Grilling asked the questions first
&lt;/h2&gt;

&lt;p&gt;Two steps ask questions before work starts. Clarify, a Spec Kit step, asks about a specification and records the answers. Grilling, one of Matt Pocock's skills, asks questions in rounds. In our web recovery trial, we gave both the same starting material. We had prepared one set of answers before either tool ran, and we gave each answer after a tool asked the matching question. Our final message to each tool also carried acceptance checks from the same agreed set.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Grilling.&lt;/strong&gt; It asked nine questions in two rounds and raised topics that Clarify did not, among them keyboard focus and actions on the saved list. We stopped it after two rounds, with three questions still open. One of its questions, translated from Russian: "Where should the interface move focus if the user started the retry from the keyboard and the button disappeared?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clarify.&lt;/strong&gt; It asked five questions, one per turn. One of them, translated: "How many load attempts should one press of the Retry button start?" It returned draft requirements whose acceptance checks repeat the list from our final message. Our trial environment did not allow writing, so it returned the specification text in its reply.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try Grilling when you still have a decision to make. Save the answers and mark the questions that remain open.&lt;/p&gt;

&lt;p&gt;After these rounds, we implemented the feature ourselves from Clarify's requirements and Grilling's open questions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Analyze found gaps between requirements, a plan, and tasks
&lt;/h2&gt;

&lt;p&gt;Analyze is the Spec Kit step that compares a specification, a plan, and a task list and reports where they disagree. We gave it the agreed specification, a draft plan, and a draft task list from our web recovery trial. Spec Kit itself was not installed: the session received the instruction file for this step, at a fixed version.&lt;/p&gt;

&lt;p&gt;The plan and task list were incomplete drafts that we wrote before we agreed on the answers, and we did not update them. So they were sure to disagree with the specification, and our prompt called them "unchanged drafts". This run shows which gaps Analyze names and how precisely. It does not show whether Analyze finds gaps that nobody expected.&lt;/p&gt;

&lt;p&gt;Analyze reported nine findings: three critical, five high, and one medium. It also split the five sections of our agreed text into 21 points and checked each one against the tasks. Here is one critical finding, translated, with the product's names replaced.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Coverage gap, critical.&lt;/strong&gt; The plan mentions the search screen, but the tasks do not change it. Add a task for active search and a check that recovery keeps the earlier filters.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Here are three of the gaps, in our words.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The plan missed some updated requirements.&lt;/li&gt;
&lt;li&gt;No task covered what happens after a second failed load.&lt;/li&gt;
&lt;li&gt;No task covered the search screen or a recovery check with the same filters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The feature covered three screens: a form, a saved list, and a search screen. The example below shows one draft requirement beside the search part of the agreed text, with the lines slightly reworded. No tool wrote the agreed text: it came from our prepared answers, the same ones that the question rounds above used.&lt;/p&gt;


&lt;div class="crayons-card c-embed"&gt;

  

&lt;p&gt;&lt;strong&gt;Example: a requirement in the draft and after agreement&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Draft.&lt;/strong&gt; When the network recovers, let the user continue the original action.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agreed.&lt;/strong&gt; Keep the search query and filters. After a successful retry, apply the same query and filters to the loaded data.&lt;/li&gt;
&lt;/ul&gt;


&lt;/div&gt;


&lt;p&gt;The third gap above is about this requirement, and the agreed version gives the reviewer an outcome to verify.&lt;/p&gt;

&lt;p&gt;Try this when the specification and task list may describe different behavior. Pick one requirement, then find the task that implements it and the test that checks it.&lt;/p&gt;

&lt;h2&gt;
  
  
  To Tickets split the work, and one dependency needed a check
&lt;/h2&gt;

&lt;p&gt;To Tickets, another of Matt Pocock's skills, drafts tasks with their dependencies and acceptance checks. Once the requirements were agreed, it turned the retry and recovery rules into acceptance criteria for three tasks, one per screen. Tasks 2 and 3 each carried this line, translated: "Blocked by: 01, recover data loading on the form." That dependency did not match the code. To Tickets did ask us to confirm it: "Is it right that tickets 02 and 03 are blocked only by ticket 01?" The session ended with a set of questions that included this one, and we answered it by reading the finished implementation.&lt;/p&gt;


&lt;div class="crayons-card c-embed"&gt;

  

&lt;p&gt;&lt;strong&gt;Example: a dependency in the task list and in the code&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Task list.&lt;/strong&gt; Work on two screens waits for a third screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code.&lt;/strong&gt; Both screens need the same data loader and retry control, and both can proceed once those shared pieces are ready.&lt;/li&gt;
&lt;/ul&gt;


&lt;/div&gt;


&lt;p&gt;Try To Tickets when the behavior is clear enough to divide. Ask what concrete result each dependent task needs, then check that dependency in the code.&lt;/p&gt;

&lt;p&gt;This was one web feature. We ran Analyze and To Tickets once each on the agreed requirements, and the check was not blind, because we knew which tool produced each result. Grilling ended early, and the task drafts never went to an issue tracker during the trial. We observed improvements to the drafts, but we have yet to measure whether they lead to less rework during implementation. &lt;a href="https://github.com/mattpocock/skills" rel="noopener noreferrer"&gt;Matt Pocock's skills repository&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Spec Kit's Converge step checks the finished code
&lt;/h2&gt;

&lt;p&gt;A second trial added a reporting command to an existing repository. The command reads logs of agent runs. In this command-line trial, Spec Kit and OpenSpec were set up in their working copies.&lt;/p&gt;

&lt;p&gt;Converge is the Spec Kit step that checks the code against the specification, plan, and tasks, then adds missing tasks. In this trial, Converge found that an open task had left the local package unfinished. It then added a follow-up task: finish the package, run the documented command, prove that the input files stayed unchanged, and write release notes.&lt;/p&gt;

&lt;p&gt;Converge's own report rated the gap as partial, of medium severity. The CI run, the measurement of memory use, and the review were done, but the last task in the list had not yet packaged the product and its release evidence locally.&lt;/p&gt;

&lt;p&gt;Converge appended one task to the twenty in the list and rewrote none of them.&lt;/p&gt;

&lt;p&gt;A second Converge pass in that run left the task list unchanged. It reported: "No remaining gaps found."&lt;/p&gt;

&lt;p&gt;Before you close the work, trace one requirement to its task and test again. Analyze and Converge showed two kinds of gaps, but two examples cannot show how often Spec Kit catches similar gaps across projects. &lt;a href="https://github.github.com/spec-kit/quickstart.html" rel="noopener noreferrer"&gt;Spec Kit quickstart&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  OpenSpec saved the rule and a record of the change
&lt;/h2&gt;

&lt;p&gt;OpenSpec keeps a main specification and a separate folder for each change. It ran in the same command-line trial, in its own session. The task description said what the report should do when a file was missing.&lt;/p&gt;

&lt;p&gt;One rule mattered here. It covered two entries that refer to the same run when one file is missing, and it had three parts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The report had to count that run's confirmed usage once.&lt;/li&gt;
&lt;li&gt;It had to report that its data was incomplete.&lt;/li&gt;
&lt;li&gt;The order of the entries could not change that result.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The OpenSpec agent took three steps.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It checked the change.&lt;/li&gt;
&lt;li&gt;It created the main specification, which now states the rule with a scenario for both orders of the entries.&lt;/li&gt;
&lt;li&gt;It moved the completed change into the archive, which keeps the proposal, the design, and the tasks behind the rule.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here are the files the run left, with names changed and two empty placeholder files left out.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;openspec/
├── config.yaml
├── specs/
│   └── run-report/
│       └── spec.md
└── changes/
    └── archive/
        └── 2026-11-16-run-report/
            ├── .openspec.yaml
            ├── proposal.md
            ├── design.md
            ├── tasks.md
            ├── verification.md
            └── specs/
                └── run-report/
                    └── spec.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The current rule lives in &lt;code&gt;openspec/specs/run-report/spec.md&lt;/code&gt;. The archived folder keeps the change behind it: the proposal, the design, the tasks, the change to the specification, and in our run &lt;code&gt;verification.md&lt;/code&gt;, the report of the Verify step.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  The rule as the main specification states it
  &lt;p&gt;The command reads a list of entries, each pointing to the log file of one agent run, and reports how many runs completed and how many tokens they used. An alias is a second entry for the same run. In 13/4/9, the three numbers are input, cached input, and output tokens. Here is the rule and its scenario, with names changed and the label of the agreed option left out.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;### Requirement: Identity availability
&lt;/span&gt;The CLI SHALL identify duplicates by run ID and SHA-256 of fully read raw bytes. Missing entries SHALL each increment missing_files and cause partial without erasing independently confirmed data. Unknown plus known SHALL equal runs. Entry order SHALL NOT change scalar fields or exit codes.

&lt;span class="gu"&gt;#### Scenario: Both orders retain known usage
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;&lt;span class="gs"&gt;**WHEN**&lt;/span&gt; one run has a known file (13/4/9) and an unavailable alias in either order
&lt;span class="k"&gt;- &lt;/span&gt;&lt;span class="gs"&gt;**THEN**&lt;/span&gt; completed=1, known=1, unknown=0, missing=1, duplicates=0, tokens=13/4/9, complete=false and exit=2.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In plain terms: the run is counted once, its known usage is kept, and the result is marked incomplete, in either order.&lt;/p&gt;



&lt;br&gt;
&lt;p&gt;&lt;/p&gt;

&lt;p&gt;The agent archived the change by moving files, as the archive skill instructs. The log shows no call to OpenSpec's archive command, so this run shows the skill at work, not the command.&lt;/p&gt;

&lt;p&gt;If you try this workflow, give the next session two questions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where does it find the current rule?&lt;/li&gt;
&lt;li&gt;Where does it find the change that introduced the rule?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the step I came for. My own workflow left a plan for each feature, but no record of why the behavior changed and no single specification of the application. In this run, OpenSpec saved both the rule and the change behind it.&lt;/p&gt;

&lt;p&gt;We checked the files when the work ended, but the trial did not follow a new maintainer through later changes. This trial was one case. We report one run per approach: the repeat after we clarified two requirements. Two earlier attempts are not reported here: one on the first version of the task, and one that failed to start. Part 3 takes its review comparison from the same trial. &lt;a href="https://openspec.dev/docs/quickstart" rel="noopener noreferrer"&gt;OpenSpec quickstart&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A handoff you can check
&lt;/h2&gt;

&lt;p&gt;For the web recovery feature, the next session should be able to find three things. We took them from our trial records and did not ask a fresh session to find them.&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%2Fgegsj9dpxvgai0bpmm3h.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%2Fgegsj9dpxvgai0bpmm3h.png" alt="A retry preserves input and resumes work after submission. Two screens share the loader and retry control. The acceptance check confirms that a draft survives and still needs submission." width="800" height="1067"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Decision.&lt;/strong&gt; Keep the user's input, and resume work only if the user already submitted the form.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dependency.&lt;/strong&gt; Two screens need the shared loader and retry control, and each can proceed once those are ready.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Acceptance check.&lt;/strong&gt; Retry after the load fails, then confirm that the app keeps the input. Check that the app leaves an unsubmitted form for the user to submit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How we ran the two trials
&lt;/h2&gt;

&lt;p&gt;The table shows what each step does and where we ran it. Both trials used existing codebases and &lt;code&gt;gpt-6.1-sol&lt;/code&gt; at low reasoning effort.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;Where we ran it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Analyze&lt;/strong&gt; (Spec Kit)&lt;/td&gt;
&lt;td&gt;Compares the specification, plan, and tasks, and reports where they disagree&lt;/td&gt;
&lt;td&gt;Web recovery trial&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Clarify&lt;/strong&gt; (Spec Kit)&lt;/td&gt;
&lt;td&gt;Asks questions about a specification and records the answers&lt;/td&gt;
&lt;td&gt;Web recovery trial&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Grilling&lt;/strong&gt; (Matt Pocock's skills)&lt;/td&gt;
&lt;td&gt;Asks questions in rounds&lt;/td&gt;
&lt;td&gt;Web recovery trial&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;To Tickets&lt;/strong&gt; (Matt Pocock's skills)&lt;/td&gt;
&lt;td&gt;Drafts tasks with their dependencies and acceptance checks&lt;/td&gt;
&lt;td&gt;Web recovery trial&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Converge&lt;/strong&gt; (Spec Kit)&lt;/td&gt;
&lt;td&gt;Checks the code against the specification, plan, and tasks, then adds missing tasks&lt;/td&gt;
&lt;td&gt;Command-line trial&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;OpenSpec&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Keeps a main specification and a separate folder for each change&lt;/td&gt;
&lt;td&gt;Command-line trial&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The two trials had different setups, and that limits the first one. In the web recovery trial, we did not install Spec Kit in the project: each session received the instruction file for one step, at a fixed version. So that trial shows what the instructions and our prompt produced, not how an installed Spec Kit or installed skills behave. In the command-line trial, OpenSpec and Spec Kit were set up in their working copies.&lt;/p&gt;

&lt;p&gt;In the web recovery trial, our first prompt to each tool asked for replies in Russian. The quoted lines are our translations, shortened in places, with the product's names replaced.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion and what's next
&lt;/h2&gt;

&lt;p&gt;Try the handoff check with one requirement when a piece of work ends. Ask a fresh session to name the decision, the dependency, and the check from the saved files alone. That check is our suggestion, not a trial result.&lt;/p&gt;

&lt;p&gt;The next comparison should follow one feature through several changes and a handoff. That would show which decisions the next session can recover and which the team has to explain again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next in the series.&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-coding-agent-workflows-add-after-the-plan-part-3-of-5-26hj"&gt;Part 3&lt;/a&gt; covers the steps after the plan: test strategy, review, and release preparation.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>agents</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>Choose a Coding-Agent Workflow by the Step It Adds (Part 1 of 5)</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:26:01 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/choosing-a-workflow-for-coding-agents-part-1-of-5-d51</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/choosing-a-workflow-for-coding-agents-part-1-of-5-d51</guid>
      <description>&lt;p&gt;For a long time I ran coding agents on skills I had written myself, with a planning step before every feature. That left me with a plan for each feature, but no history of decisions and no specification of the application as it stands. I wanted to see where the recommended frameworks add something and where they only add steps.&lt;/p&gt;

&lt;p&gt;So we ran local trials with the six tools in the guide below, our usual workflow, and two combinations. "We" in this series is me and the coding agents that ran the sessions. Each trial compared some of them, most on one task. Our usual workflow has four parts: the project's guidance files, a short plan, tests, and an independent acceptance check. Here's what we learned about choosing a workflow, and which check to keep whichever one you choose.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The short version.&lt;/strong&gt; Choose a workflow for the step you need. Keep an independent acceptance check for any change to data or access, and repeat it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Same result.&lt;/strong&gt; In the trials in Parts 3 and 4, the compared workflows ended their final run with the same acceptance result, though not always a full pass. Part 5 describes two other runs of the migration where the results differed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Different steps.&lt;/strong&gt; The workflows differed in what they added: a change history, a consistency check, or a separate review.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One shared failure.&lt;/strong&gt; On a data migration, two first sign-ins that arrived together could end with one of them rejected. All five implementations had this flaw: three from OpenSpec, Spec Kit, and Superpowers on their own, and two from the combinations. One run of our independent check caught it in one of the five; five runs caught it in all five. The brief did not say that both sign-ins must succeed, so this was a gap in the requirement as well as in the code.&lt;/li&gt;
&lt;/ul&gt;


&lt;div class="crayons-card c-embed"&gt;

  

&lt;p&gt;&lt;strong&gt;Which workflow should you try?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One prompt or a short plan.&lt;/strong&gt; On four small label changes, one prompt that listed every condition was enough, and adding a short plan changed nothing. We did not test larger changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/Fission-AI/OpenSpec#readme" rel="noopener noreferrer"&gt;OpenSpec&lt;/a&gt;.&lt;/strong&gt; Try it when you need to record what changed and keep the current specification up to date.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/github/spec-kit" rel="noopener noreferrer"&gt;Spec Kit&lt;/a&gt;.&lt;/strong&gt; Try it when the requirements, plan, and tasks need to agree before and after implementation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/mattpocock/skills" rel="noopener noreferrer"&gt;Matt Pocock's skills&lt;/a&gt;.&lt;/strong&gt; Try Grilling to find open questions and To Tickets to split agreed work into tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/" rel="noopener noreferrer"&gt;BMad TEA&lt;/a&gt;.&lt;/strong&gt; Try it when you need to decide which risks to test first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/obra/superpowers" rel="noopener noreferrer"&gt;Superpowers&lt;/a&gt;.&lt;/strong&gt; Try it when you want someone other than the agent that wrote the code to review it. In the command-line trial in Part 3, its reviewer found a defect before acceptance, and so did a reviewer in our usual workflow. In the migration trial in Part 4, its reviewers could not open the working copy, so they read what the main agent passed to them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/garrytan/gstack" rel="noopener noreferrer"&gt;Gstack&lt;/a&gt;.&lt;/strong&gt; Try it to review work and prepare it for release, though our trial stopped before any push.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenSpec + Superpowers or Spec Kit + Superpowers.&lt;/strong&gt; Try a combination if you want a separate review and can assign someone to close the specification. Closing means bringing the specification in line with the final code and finishing the tool's closing steps. Neither combination improved the final acceptance score in our two trials.&lt;/li&gt;
&lt;/ul&gt;


&lt;/div&gt;


&lt;p&gt;The table below gives a first step for each option.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  A first step for each option
  &lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;What to try&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A simple label change or a change with several conditions&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;One prompt or a short plan.&lt;/strong&gt; For a label change, give the location and the exact new text. If the change has several conditions, list what should happen in each case.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The team needs a history of behavior changes&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;OpenSpec.&lt;/strong&gt; Describe one change, update the main specification, and archive the change.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The requirements, plan, and tasks might disagree&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Spec Kit.&lt;/strong&gt; Compare the documents before implementation. Check them again after implementation.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The team needs to clarify requirements or split the work&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Matt Pocock's skills.&lt;/strong&gt; Try Grilling to surface questions or To Tickets to split the work. Check dependencies against the code.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The team needs a test strategy based on risk&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;BMad TEA.&lt;/strong&gt; Try one test architecture step. Give both workflows the same independent checks.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An agreed plan needs a separate implementation review&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Superpowers.&lt;/strong&gt; Give implementation and review to different roles. Ask the reviewer for evidence of each defect.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The team needs review and preparation for release&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Gstack.&lt;/strong&gt; Try the local review and preparation steps. Set an explicit stop before any push.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The team uses OpenSpec and needs a separate implementation review&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;OpenSpec + Superpowers.&lt;/strong&gt; Hand off the saved plan. Assign someone to update the main specification and archive the change.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The team uses Spec Kit and needs a separate implementation review&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Spec Kit + Superpowers.&lt;/strong&gt; Hand off the saved plan. Assign someone to check the final code and tasks against the specification.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;p&gt;&lt;/p&gt;

&lt;p&gt;The diagram below gives four questions to ask about any change.&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%2Fexcpok47bqmcdx1m9ti5.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%2Fexcpok47bqmcdx1m9ti5.png" alt="Four questions about simple label changes, changes with several conditions, handoffs, and risk to data or access." width="800" height="650"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What a workflow's own review can miss
&lt;/h2&gt;

&lt;p&gt;The guide above covers what each workflow adds. One trial also showed what a workflow's own review can miss.&lt;/p&gt;

&lt;p&gt;On the data migration, no review or verification step in the five implementations caught the shared defect. The sign-in check did. A separate step ran it and saw only the saved implementation. We call such a step an independent acceptance check. It is not the tests a session writes for its own code: in the implementation we inspected, that session's repository test passed.&lt;/p&gt;

&lt;p&gt;Here is the sign-in check, written out for this article in the form of a short plan.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Check: two first sign-ins for one account, at the same time
Start: a fresh test database, no owner record for the account
Pass:  both sign-ins succeed, and one owner record exists
Run:   five attempts, and all five must pass
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The brief that the sessions received did not say that both sign-ins must succeed; that part of the pass rule came from the check. The number of attempts, five, was fixed in the check's script before this trial's first run. We chose to repeat the check because an earlier run of the same migration had passed it once and failed it on other repeats. &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-our-repository-test-missed-a-sign-in-race-part-5-of-5-2cf4#what-to-ask-for-at-review"&gt;Part 5&lt;/a&gt; gives a version of this check that you can run, on a table with two columns.&lt;/p&gt;

&lt;p&gt;Here are three lines from the log of one failed attempt, with names changed and lines shortened.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CAUSE IntegrityError 23505 pk_owners
FAILED test_concurrent_first_login_uses_one_binding
1 failed, 9 deselected in 1.57s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The insert skipped a conflict on one unique index, but two first sign-ins also collided on the primary key, &lt;code&gt;pk_owners&lt;/code&gt; here. The first attempt failed one of the five implementations. Across five attempts each, 12 of 25 failed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-our-repository-test-missed-a-sign-in-race-part-5-of-5-2cf4"&gt;Part 5&lt;/a&gt; goes further: why the repository test missed the case, and a separate run of the same migration in which some implementations passed. Part 4 covers what the reviews did find, and that in three of the five runs the reviewers could not open the working copy.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to install each tool and what to type first
&lt;/h2&gt;

&lt;p&gt;We did not use these installers. We built each tool from a pinned copy of its source, so that every session ran the same revision. The lines below come from each tool's own README or install page at that revision, in the form for Codex CLI. Several tools have had releases since, so check the current README before you run anything.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool and the version we used&lt;/th&gt;
&lt;th&gt;Install&lt;/th&gt;
&lt;th&gt;What to type first&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenSpec 2.0.0&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm install -g @fission-ai/openspec@latest&lt;/code&gt;, then &lt;code&gt;openspec init&lt;/code&gt; in your project&lt;/td&gt;
&lt;td&gt;&lt;code&gt;$openspec-propose &amp;lt;what-you-want-to-build&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spec Kit 1.4.1.dev0&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;uv tool install specify-cli&lt;/code&gt;, then &lt;code&gt;specify init my-project --integration codex&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;$speckit-specify&lt;/code&gt; and a description of the feature&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Matt Pocock's skills 1.3.2&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;codex plugin marketplace add mattpocock/skills&lt;/code&gt;, then &lt;code&gt;codex plugin add mattpocock-skills@mattpocock&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/setup-matt-pocock-skills&lt;/code&gt; once per repository, then &lt;code&gt;/grill-me&lt;/code&gt;, which the README offers for non-code work; for code it offers &lt;code&gt;/grill-with-docs&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BMad TEA 4.0.1&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npx skills add bmad-code-org/bmad-method-test-architecture-enterprise&lt;/code&gt;, then &lt;code&gt;bmad setup tea&lt;/code&gt; in the chat&lt;/td&gt;
&lt;td&gt;&lt;code&gt;$bmad-tea-test-design&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Superpowers 7.0.2&lt;/td&gt;
&lt;td&gt;In Codex CLI, type &lt;code&gt;/plugins&lt;/code&gt;, search for &lt;code&gt;superpowers&lt;/code&gt;, and select Install Plugin&lt;/td&gt;
&lt;td&gt;Describe the task: its skills trigger automatically&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gstack 1.91.9.0&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/gstack&lt;/code&gt;, then &lt;code&gt;cd ~/gstack &amp;amp;&amp;amp; ./setup --host codex&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/review&lt;/code&gt; on a branch with changes; the README's quick start runs &lt;code&gt;/office-hours&lt;/code&gt; first&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;TEA also needs the &lt;code&gt;bmad&lt;/code&gt; and &lt;code&gt;bmod-core-tools&lt;/code&gt; skills from BMad Method, and its README gives the line for them.&lt;/p&gt;

&lt;p&gt;Codex CLI takes a skill with &lt;code&gt;$&lt;/code&gt; before its name, and the table uses that form where the tool's documentation gives it: OpenSpec, Spec Kit, and TEA. The Matt Pocock and Gstack rows keep the slash that their READMEs print. OpenSpec's README says that most tools take the slash form and Codex the &lt;code&gt;$&lt;/code&gt; form, and that &lt;code&gt;openspec init&lt;/code&gt; prints the right form for the tools you pick. For Claude Code, the Matt Pocock README installs with &lt;code&gt;claude plugin install mattpocock-skills@claude-plugins-official&lt;/code&gt;, and the Gstack README clones into &lt;code&gt;~/.claude/skills/gstack&lt;/code&gt; and runs &lt;code&gt;./setup&lt;/code&gt; there.&lt;/p&gt;

&lt;p&gt;The same documentation gives the step after the first one.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OpenSpec.&lt;/strong&gt; &lt;code&gt;openspec init&lt;/code&gt; creates an &lt;code&gt;openspec&lt;/code&gt; folder with &lt;code&gt;specs&lt;/code&gt;, &lt;code&gt;changes&lt;/code&gt;, and an optional &lt;code&gt;config.yaml&lt;/code&gt;. After the proposal come &lt;code&gt;/openspec-apply-change&lt;/code&gt; and &lt;code&gt;/openspec-archive-change&lt;/code&gt;, which Codex takes with &lt;code&gt;$&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spec Kit.&lt;/strong&gt; The README order is &lt;code&gt;/speckit-constitution&lt;/code&gt;, &lt;code&gt;/speckit-specify&lt;/code&gt;, &lt;code&gt;/speckit-plan&lt;/code&gt;, &lt;code&gt;/speckit-tasks&lt;/code&gt;, &lt;code&gt;/speckit-implement&lt;/code&gt;, &lt;code&gt;/speckit-converge&lt;/code&gt;. Codex takes these with &lt;code&gt;$&lt;/code&gt; too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Matt Pocock's skills.&lt;/strong&gt; The setup skill asks which issue tracker you use, which labels you apply, and where to save documents. The README names no step after &lt;code&gt;/grill-me&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BMad TEA.&lt;/strong&gt; Setup asks about your test stack and writes the answers to &lt;code&gt;_bmad/config.toml&lt;/code&gt;. Its quickstart runs &lt;code&gt;framework&lt;/code&gt;, then &lt;code&gt;test-design&lt;/code&gt;, then &lt;code&gt;automate&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Superpowers.&lt;/strong&gt; Its skills activate in this order: &lt;code&gt;brainstorming&lt;/code&gt;, &lt;code&gt;using-git-worktrees&lt;/code&gt;, &lt;code&gt;writing-plans&lt;/code&gt;, &lt;code&gt;subagent-driven-development&lt;/code&gt; or &lt;code&gt;executing-plans&lt;/code&gt;, &lt;code&gt;test-driven-development&lt;/code&gt;, &lt;code&gt;requesting-code-review&lt;/code&gt;, &lt;code&gt;finishing-a-development-branch&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gstack.&lt;/strong&gt; After &lt;code&gt;/review&lt;/code&gt;, the README runs &lt;code&gt;/qa&lt;/code&gt; and then &lt;code&gt;/ship&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  When a short plan is enough
&lt;/h2&gt;

&lt;p&gt;For the first entry in the guide, we have a working rule, a later test of it, and one separate measurement.&lt;/p&gt;

&lt;p&gt;Our working rule had two cases: one prompt for a simple label change, and a short plan for a change with several conditions. After the trials, we tested it on a small form app written for the test. It had two label changes and two changes where the label depends on the form state. Each change ran three times with one prompt and three times with the same prompt plus a short plan: 24 sessions with the model used throughout this series. All 24 passed a check of the label in every state. On these changes, one prompt was enough when it listed every condition, and the plan added nothing we could measure. The changes were easy enough that the test could not show where a plan starts to help.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A simple label change.&lt;/strong&gt; Give the agent the page and the exact new text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A change with several conditions.&lt;/strong&gt; List the expected label for each state, in the prompt or in a short plan. Both worked in our test.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is an illustration of a short plan, written for this article and not taken from trial data.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Change: Save button label
- Empty form: "Save", disabled
- Valid form: "Save order"
- While sending: "Saving..."
Check: read it in each state
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;/p&gt;
  A pilot on small fixes with a ready test
  &lt;p&gt;We did measure one thing on small fixes with a ready test. We used four such tasks and supplied a broken version and a fixed version of the code. We used two skills of our own.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The first helped the agent record the expected result and the test command in a short plan.&lt;/li&gt;
&lt;li&gt;The second helped the agent confirm that the test failed on the broken version and passed on the fixed version.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We counted the runs where the agent confirmed both results on its first attempt.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pairs of runs&lt;/th&gt;
&lt;th&gt;With the skills&lt;/th&gt;
&lt;th&gt;Without the skills&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;First skill version: 4 pairs&lt;/td&gt;
&lt;td&gt;3 of 4&lt;/td&gt;
&lt;td&gt;3 of 4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Current skill version: 6 pairs&lt;/td&gt;
&lt;td&gt;6 of 6&lt;/td&gt;
&lt;td&gt;3 of 6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All 10 pairs&lt;/td&gt;
&lt;td&gt;9 of 10&lt;/td&gt;
&lt;td&gt;6 of 10&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each pair is one run with the skills and one run without. Two of the six current pairs used the two tasks that we had not used for refinement. They gave 2 of 2 with the skills and 1 of 2 without.&lt;/p&gt;

&lt;p&gt;Read those counts as a pilot result. We refined the skills on two of the four tasks, and four of the six current pairs reused those two tasks. We have yet to measure what each skill contributes on its own.&lt;/p&gt;

&lt;p&gt;All five first-attempt failures had the same cause: the shell stopped the test command on a reserved variable name. In one run with the refined skills, the planning step caught that error in a dry run and fixed the command before the handoff.&lt;/p&gt;

&lt;p&gt;The pilot gives no rule to copy: it counts how often the first confirmation attempt succeeded. In all ten pairs, both runs confirmed the two results once we allowed retries.&lt;/p&gt;



&lt;br&gt;
&lt;p&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What Parts 2 to 5 cover
&lt;/h2&gt;

&lt;p&gt;Each result in Parts 2 to 4 comes from one or two tasks, usually a single run.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/keeping-requirements-and-tasks-in-sync-with-coding-agents-part-2-of-5-5h0g"&gt;Part 2&lt;/a&gt;: requirements and tasks.&lt;/strong&gt; To Tickets made two tasks wait for a third, though the code needed only its shared parts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-coding-agent-workflows-add-after-the-plan-part-3-of-5-26hj"&gt;Part 3&lt;/a&gt;: the steps after the plan.&lt;/strong&gt; In all three trials, the tool's workflow ended with the same acceptance result as our usual workflow. In one, reviewers in both workflows found a defect before acceptance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-changes-when-superpowers-takes-over-an-openspec-or-spec-kit-plan-part-4-of-5-dlp"&gt;Part 4&lt;/a&gt;: both combinations.&lt;/strong&gt; On the migration, all five implementations ended at nine of ten acceptance criteria, after a correction to two evaluator checks. Nobody closed the specification. In a later run with the closing steps and database tools installed and closing requested, all eight runs closed it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-our-repository-test-missed-a-sign-in-race-part-5-of-5-2cf4"&gt;Part 5&lt;/a&gt;: one missed defect.&lt;/strong&gt; It explains why a repository test passed while the sign-in check failed, and what happened when one shared plan named the case.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How we ran the trials
&lt;/h2&gt;

&lt;p&gt;We ran these trials on existing private codebases, and most ran in mid-November 2026. They covered small fixes, feature work, and a database migration. We describe the tasks in general terms.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
  The trials behind this series
  &lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Trial and task&lt;/th&gt;
&lt;th&gt;What we report&lt;/th&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Small-fix pilot: four small fixes with a ready test&lt;/td&gt;
&lt;td&gt;Our usual workflow with and without two of our skills&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Web recovery trial: load recovery in a web app&lt;/td&gt;
&lt;td&gt;Spec Kit's Clarify and Analyze, Matt Pocock's Grilling and To Tickets&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Command-line trial: a reporting command&lt;/td&gt;
&lt;td&gt;OpenSpec and Spec Kit in Part 2, Superpowers and our usual workflow in Part 3&lt;/td&gt;
&lt;td&gt;2, 3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test-strategy trial: a rescheduling form&lt;/td&gt;
&lt;td&gt;BMad TEA and our usual workflow&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release-preparation trial: a roadmap correction&lt;/td&gt;
&lt;td&gt;Gstack and our usual workflow&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Web comparison trial: a document comparison feature&lt;/td&gt;
&lt;td&gt;OpenSpec, Spec Kit, Superpowers, and the two combinations&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Migration trial: sign-in identifiers&lt;/td&gt;
&lt;td&gt;The same five as the web comparison trial. Part 5 adds two runs with seven workflows and a check of seven plans&lt;/td&gt;
&lt;td&gt;1, 4, 5&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The command-line trial also ran BMad without TEA and Matt Pocock's skills, and all six workflows passed the same 57 checks. The release-preparation trial ran seven workflows. Each part reports the tools whose step it covers.&lt;/p&gt;



&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Within each trial, every session started from the same code, requirements, and model settings. The records for this series name one model, &lt;code&gt;gpt-6.1-sol&lt;/code&gt;, at low reasoning effort, while the records of the small-fix pilot name none.&lt;/p&gt;

&lt;p&gt;The counts in this article summarize our trials, while the original working copies and full logs remain internal.&lt;/p&gt;

&lt;p&gt;For a separate example to inspect, see Neil Haddley's calculator trial, which tested OpenSpec, Spec Kit, and BMad with the same two feature requests. Haddley shared the method, results, and code. &lt;a href="https://haddley.github.io/posts/specdriven4/" rel="noopener noreferrer"&gt;Trial write-up&lt;/a&gt; · &lt;a href="https://github.com/Haddley/specdriven" rel="noopener noreferrer"&gt;Repository and branches&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion and what's next
&lt;/h2&gt;

&lt;p&gt;Decide on the check first. Then choose a workflow for the step it adds. That order is our practice. Most of the evidence comes from one migration, where the written requirement did not say that both simultaneous sign-ins must succeed. On a second task, whose requirement spelled out the hard cases, all three implementations passed the independent check five times out of five.&lt;/p&gt;

&lt;p&gt;For your next change, do four things.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Write down the expected result and how someone else can check it.&lt;/li&gt;
&lt;li&gt;Confirm that the check fails on a broken version and passes on the fixed one. That step is our practice, not a trial result.&lt;/li&gt;
&lt;li&gt;If the change affects data or access, run a check that starts from the conditions the service can encounter. Repeat it on a fresh test database. Part 5 shows why.&lt;/li&gt;
&lt;li&gt;Keep the first result and the results of the repeats.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Two questions remain open here.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We have yet to measure what each of our two skills contributes.&lt;/li&gt;
&lt;li&gt;We have yet to compare the workflows on a project that starts from scratch.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Next in the series.&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/keeping-requirements-and-tasks-in-sync-with-coding-agents-part-2-of-5-5h0g"&gt;Part 2&lt;/a&gt; covers requirements and tasks.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>productivity</category>
      <category>agents</category>
    </item>
    <item>
      <title>When an AI Agent Finds an Old Solution, Should It Use It?</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Wed, 04 Nov 2026 07:11:03 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/when-an-ai-agent-finds-an-old-solution-should-it-use-it-37fh</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/when-an-ai-agent-finds-an-old-solution-should-it-use-it-37fh</guid>
      <description>&lt;p&gt;Hi!&lt;/p&gt;

&lt;p&gt;An agent was preparing a report about contact details that needed another review. The initial plan already separated an overdue review from a wrong phone number. A saved note confirmed that distinction, but did not add a new step.&lt;/p&gt;

&lt;p&gt;That made me ask a more useful question: &lt;strong&gt;when an agent finds an old solution, what does it actually add to the current work?&lt;/strong&gt; I explored that question across several project tasks using notes from a shared knowledge base.&lt;/p&gt;

&lt;p&gt;In the &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/testing-shared-memory-for-claude-code-codex-and-copilot-48gd"&gt;previous article&lt;/a&gt;, I described how different agents can access those shared notes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;In one task, a note confirmed a useful distinction, but the initial plan already included it.&lt;/li&gt;
&lt;li&gt;In another, the search returned two notes that did not fit the task.&lt;/li&gt;
&lt;li&gt;In a separate comparison, a related note prompted one agent to propose an extra check. I supplied the link manually, so this was not a test of automatic discovery.&lt;/li&gt;
&lt;li&gt;These small cases do not establish how often memory helps, or whether it saves time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The experiment
&lt;/h2&gt;

&lt;p&gt;I used Research Brain, a local collection of notes that agents can read through the Model Context Protocol (MCP). Each note can contain a problem, an approach, sources, and conditions for use. The &lt;a href="https://github.com/artemrudenko/research-brain-public" rel="noopener noreferrer"&gt;public repository&lt;/a&gt; includes the project and the MCP adapter. The private trials in this article are not included.&lt;/p&gt;

&lt;p&gt;For the next checks, I looked at real work across different projects. Some tasks led to code changes. Others asked for an investigation or a plan. I kept those outcomes separate: a useful suggestion is not the same as a tested implementation.&lt;/p&gt;

&lt;p&gt;I also tried comparing work with only project files, with direct note search, and with MCP. In one small comparison, three fresh agents considered two tasks. The agents proposed recommendations, but did not implement the fixes. On those tasks, memory did not show a distinct contribution to the proposed solutions.&lt;/p&gt;

&lt;p&gt;That result mattered. I wanted to see where the memory helps, not only whether an agent can open a note.&lt;/p&gt;

&lt;h2&gt;
  
  
  Case 1: A useful warning I already had
&lt;/h2&gt;

&lt;p&gt;One task concerned a help page with contact details. The project recorded when each contact source was last checked. The unfinished task was to flag sources that needed another review after about 90 days.&lt;/p&gt;

&lt;p&gt;The initial plan already treated missing dates as unknown. It also noted that an old review date does not prove a phone number is wrong.&lt;/p&gt;

&lt;p&gt;Research Brain returned a note about keeping an overdue review separate from its cause. It supported that distinction. The search also returned an unrelated note about authorization, which I did not use.&lt;/p&gt;

&lt;p&gt;The task resulted in a local report that lists review dates and marks records due for checking. The report does not contact the sources or claim that a number works. Focused tests passed; the full project type check did not pass because of errors in generated files.&lt;/p&gt;

&lt;p&gt;The note confirmed the warning already present in the initial plan. It did not add a new decision, so I cannot count this as a time saving or as proof that memory solved the task.&lt;/p&gt;

&lt;h2&gt;
  
  
  Case 2: Search returned the wrong neighbours
&lt;/h2&gt;

&lt;p&gt;Another task concerned events collected from several sources. The open question was how to handle source priority and keep the original evidence when records are combined.&lt;/p&gt;

&lt;p&gt;The MCP search returned two notes. One concerned navigation state. The other concerned resource cleanup. Neither provided a method for merging event records or choosing between sources.&lt;/p&gt;

&lt;p&gt;I did not use either note as a solution. I also did not establish that a suitable solution already existed in the knowledge base. A wrong result and a missing result need different fixes.&lt;/p&gt;

&lt;p&gt;This was a useful outcome even though the search did not help the task. It showed why a related word or a plausible summary is not enough. Before applying a note, I need to see whether its actual operation and conditions match the work in front of me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Case 3: A useful check from a manually supplied link
&lt;/h2&gt;

&lt;p&gt;A third question was how to evaluate a possible map feature without sending data to an external service. I compared two agents working from the same existing note about checking resources in an offline snapshot. I selected that note in advance. One agent also received a link to a second note about a separate synthetic build.&lt;/p&gt;

&lt;p&gt;Both agents suggested testing with synthetic locations and watching browser requests. The agent with the extra note also proposed checking the files included in the synthetic build. The other agent did not name that check explicitly.&lt;/p&gt;

&lt;p&gt;That extra check is a concrete idea worth considering. But I had selected the first note and supplied the link manually. The map was not implemented in this comparison. I cannot say that MCP discovered the connection or that the check improved a finished feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently next time
&lt;/h2&gt;

&lt;p&gt;These cases made me more selective about memory. I do not need an agent to search old notes for every small change. I want it to look when the answer may depend on a previous decision, its evidence, or a limit that the current project does not record.&lt;/p&gt;

&lt;p&gt;To try this on your own work, save a short plan before reading an old note. Then record what the note says, check its source and conditions, and compare the plan again.&lt;/p&gt;

&lt;p&gt;In the contact example, the result was: &lt;strong&gt;the note supported an existing warning; it did not add a new step.&lt;/strong&gt; Another task may produce a different answer.&lt;/p&gt;

&lt;p&gt;This is also useful without Research Brain. A team can ask the same questions when reading an old issue, an internal document, or a past incident report.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion: keep the result, including the miss
&lt;/h2&gt;

&lt;p&gt;The experiment did not give me a general success rate for shared memory. The tasks were few, the methods differed, and some comparisons were not blind. I did not measure the full cost of the work, so I cannot claim time or token savings.&lt;/p&gt;

&lt;p&gt;It did give me a better way to use the notes. I can keep a previous decision and its limits available to another agent. I still need to check whether that decision applies to the current task.&lt;/p&gt;

&lt;p&gt;Next, I want to use this approach during normal project work, especially when a task depends on a decision made somewhere else. I will keep recording cases where the memory adds nothing, as well as cases where it helps.&lt;/p&gt;

&lt;p&gt;How do you decide whether an old solution fits a new task? What information do you wish your team or your agent had saved with it?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>mcp</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Testing Shared Memory for Claude Code, Codex and Copilot</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Tue, 27 Oct 2026 06:27:56 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/testing-shared-memory-for-claude-code-codex-and-copilot-48gd</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/testing-shared-memory-for-claude-code-codex-and-copilot-48gd</guid>
      <description>&lt;p&gt;I wanted a solution checked in one project to remain useful when I moved to another project with a different agent. The useful part was the reasoning: what failed, what was checked, and which conditions could change the answer.&lt;/p&gt;

&lt;p&gt;In the &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/from-too-many-sources-to-knowledge-i-can-use-again-22fk"&gt;first article&lt;/a&gt;, I described how Research Brain turns research and checked project findings into a local wiki. This time I wanted to test the next step: could another agent recover that knowledge and use it in real work without inheriting the earlier conversation?&lt;/p&gt;

&lt;h2&gt;
  
  
  Key takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Fresh Claude Code, Codex and Copilot sessions read the same saved notes through MCP. They did not need the earlier conversation.&lt;/li&gt;
&lt;li&gt;In a separate comparison of four tasks, neither direct reading nor MCP added a distinct decision or check to the adopted fixes. Direct reading supplied reminders; MCP returned no candidates.&lt;/li&gt;
&lt;li&gt;Before building more retrieval machinery, check whether reading a relevant note changes the work at all. A shared library and a useful consultation are different results.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Jump to:&lt;/strong&gt; Shared setup · CI case · Four-task comparison · Next test&lt;/p&gt;

&lt;h2&gt;
  
  
  Shared records, separate conversations
&lt;/h2&gt;

&lt;p&gt;A project still needs its own instructions and architecture decisions. Research Brain keeps reusable notes with the problem, response, sources, checks, conditions and open questions. The notes are Markdown files in a local Obsidian vault.&lt;/p&gt;

&lt;p&gt;An optional adapter exposes two read-only tools through the Model Context Protocol, or MCP. &lt;code&gt;search_knowledge&lt;/code&gt; returns candidate notes; &lt;code&gt;get_concept&lt;/code&gt; opens a selected record. Each client starts its own local adapter process against the same files. Conversation histories remain separate. The &lt;a href="https://github.com/artemrudenko/research-brain-public/blob/main/integrations/mcp_server/README.md" rel="noopener noreferrer"&gt;adapter guide&lt;/a&gt; explains the connection and its limits.&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%2Fnovim3l8jei2715e4lyg.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%2Fnovim3l8jei2715e4lyg.png" alt="Claude Code, Codex and Copilot each use their own read-only MCP process to query the same local Research Brain Markdown vault. The vault retains sources, conditions, verification and open questions. Each agent checks applicability in its current project; saving uses a separate approved proposal." width="800" height="1057"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The diagram shows access to shared records. Whether a record changes the next task is a separate question. Saving uses a separate owner-approved workflow.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For the first trial, three fresh command-line sessions received the same continuous integration (CI) and deployment-review task in separate copies of one project's starting state. Each was asked to consult Research Brain, without note identifiers, prepared queries or earlier answers. They used the same nine-note private test vault, including five records from earlier GitHub Actions and Vercel work elsewhere.&lt;/p&gt;

&lt;p&gt;The tool logs confirmed that all three read notes before editing. They kept their normal instructions and used different models and permissions. Claude reached its turn limit after preparing a patch and report; Copilot needed a reporting continuation after its time limit; Codex completed, with sandbox-related test failures checked separately. This established three working client paths through one task, not a ranking of the clients.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the CI lesson helped us check
&lt;/h2&gt;

&lt;p&gt;One CI case shows the gap between reading a lesson and using it correctly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The saved lesson.&lt;/strong&gt; A job had been cancelled near its configured time limit. That duration did not show when it would have finished. Choosing another cap required checking completed runs, interrupted work and signs of progress in the current environment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The new proposal.&lt;/strong&gt; After reading the note, two agents still proposed a 15-minute cap based on local test durations plus headroom.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The review.&lt;/strong&gt; The current project had no hosted timing observations to justify that cap, so review rejected the proposals. The earlier reasoning was available; it still needed to be applied to the current evidence.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A separate CI decision concerned cancelling older validation runs. It needed its own policy check. The selected patch grouped runs by workflow, event type and ref, allowing a newer run in the same group to cancel an older one. GitHub documents the interaction between grouping and cancellation in its &lt;a href="https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency" rel="noopener noreferrer"&gt;concurrency guide&lt;/a&gt;. This policy suits a workflow where superseded validation may stop; it would need reconsideration if every run must finish.&lt;/p&gt;

&lt;p&gt;Existing triggers and validation steps were preserved. Local tests, health checks and lint passed after integration. No hosted Actions run was started during the trial, so neither actual cancellation behavior nor CI-minute savings was measured.&lt;/p&gt;

&lt;p&gt;The deployment review needed the same care. A Vercel CLI-upload remedy did not justify upload-setting changes for a project documented to use GitHub import. Copilot also dismissed retention on that basis, but &lt;a href="https://vercel.com/docs/deployment-retention" rel="noopener noreferrer"&gt;Vercel's retention documentation&lt;/a&gt; includes Git branch deployments. Retention settings were left alone because no current retention problem had been established.&lt;/p&gt;

&lt;p&gt;The records made earlier sources and checking questions available in another client's work. Review still had to correct their interpretation. This trial had no equivalent run without memory, so it could not show which decisions the agent would have reached anyway.&lt;/p&gt;


&lt;div class="crayons-card c-embed"&gt;

  
&lt;h3&gt;
  
  
  Why a note may not help
&lt;/h3&gt;

&lt;p&gt;Reading a note gives the model more information. It does not mean that the model will use it correctly. Sometimes the note adds nothing to what the agent can find in the project. Sometimes it answers only part of the question. I now separate these cases from a search that returns no useful notes. Before adding another component, I want to understand which problem we actually have.&lt;/p&gt;

&lt;p&gt;Related research: &lt;a href="https://arxiv.org/abs/2411.06037" rel="noopener noreferrer"&gt;Sufficient Context&lt;/a&gt;.&lt;br&gt;

&lt;/p&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  Comparing consultation with ordinary project work
&lt;/h2&gt;

&lt;p&gt;To examine that gap, I compared four real unfinished tasks across two projects. For each task, fresh agent contexts produced plans under three conditions: current-project evidence alone, direct access to the same approved notes, or access through the existing MCP tools. The agents did not see one another's answers. Their plans were frozen before each fix was implemented and checked once.&lt;/p&gt;

&lt;p&gt;The available bank contained 21 concept notes. Here is what each condition produced across the four tasks:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Access to knowledge&lt;/th&gt;
&lt;th&gt;Observed result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Current project evidence only&lt;/td&gt;
&lt;td&gt;The plans already identified the core repairs.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project evidence plus direct note access&lt;/td&gt;
&lt;td&gt;Nine note reads supplied reminders about boundaries and checks.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project evidence plus MCP&lt;/td&gt;
&lt;td&gt;Five searches returned no candidates. No notes were read.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The core repair plans were compatible across all three conditions. Review found no additional decision or check from either way of consulting memory in the adopted fixes.&lt;/p&gt;

&lt;p&gt;One task made the result concrete. A check on timestamp-bearing entries lived inside a sort comparator. With a single entry, the comparator might not run, so an invalid value could escape the check. The plan based on project evidence alone already identified input validation before the sort. The notes reinforced that reasoning without adding a step to the fix.&lt;/p&gt;

&lt;p&gt;These four tasks came from already localized defects, and their briefs often pointed toward the mechanism. The contribution review was not blind. How consultation would perform on less localized or history-dependent work remains open.&lt;/p&gt;

&lt;h3&gt;
  
  
  What consultation cost in this comparison
&lt;/h3&gt;

&lt;p&gt;Four tasks under three conditions produced 12 fresh plans, with no plan retries. The recorded effort was:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mode&lt;/th&gt;
&lt;th&gt;Median plan time&lt;/th&gt;
&lt;th&gt;Total input / output tokens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Project evidence only&lt;/td&gt;
&lt;td&gt;68 s&lt;/td&gt;
&lt;td&gt;643,557 / 6,999&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Direct note access&lt;/td&gt;
&lt;td&gt;92 s&lt;/td&gt;
&lt;td&gt;954,030 / 8,814&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP&lt;/td&gt;
&lt;td&gt;74 s&lt;/td&gt;
&lt;td&gt;659,785 / 7,461&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;div class="crayons-card c-embed"&gt;

  
&lt;h4&gt;
  
  
  How to read these numbers
&lt;/h4&gt;

&lt;p&gt;Time covers the first attempt to prepare a plan, including agent and tool work. The table shows the median time for each group and total tokens for its four attempts. Input counts include repeated context and cached tokens. They do not show the size of the notes or the billed cost.&lt;br&gt;

&lt;/p&gt;
&lt;/div&gt;


&lt;p&gt;The MCP condition returned no candidates, so its shorter planning time than direct reading does not show efficient use of knowledge. These small-sample timings do not establish a speed advantage. Implementation, full review effort and historical capture and maintenance costs were not measured by condition; no end-to-end savings can be inferred.&lt;/p&gt;

&lt;h2&gt;
  
  
  A pause to check the direction
&lt;/h2&gt;

&lt;p&gt;We kept working on search, but one question kept coming back:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Were we drifting from useful work into infrastructure again?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;By then, the conversation included semantic search, summaries, knowledge graphs and increasingly detailed rules for transferring a method. These were relevant engineering questions. I kept returning to the original purpose: recover something useful when another project needs it.&lt;/p&gt;

&lt;p&gt;I had also asked for an approach that could work on new tasks and be useful to other people. A better answer to a familiar test query could help diagnose a search defect. It could not, on its own, establish the value of the memory. The ordinary-work comparison gave us a way to ask what a note actually changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four questions I now keep separate
&lt;/h2&gt;

&lt;p&gt;A stored record can be missed. A retrieved record can be inapplicable, or repeat something the agent already knows. Those are different outcomes, even when the task is eventually solved.&lt;/p&gt;

&lt;p&gt;I now check the path in four stages:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;What would count as evidence?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Does the library contain something useful?&lt;/td&gt;
&lt;td&gt;A passage supplies a method, a concrete partial procedure or a relevant limit. A related topic alone is insufficient.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Did the agent find and read it?&lt;/td&gt;
&lt;td&gt;Actual tool requests and returned content, including misses. Knowing the note's path afterward does not count as discovery.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Does it apply here?&lt;/td&gt;
&lt;td&gt;Part of the task matches the source procedure and its conditions. Work that the note does not cover stays explicit.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Did it change the work?&lt;/td&gt;
&lt;td&gt;The fix uses a fact, decision or check from the note that the initial plan did not contain.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A partial procedure can be useful without solving the whole task. A restriction can prevent an unsupported claim without providing an implementation. I keep those contributions separate from a complete method, and from general reminders.&lt;/p&gt;

&lt;p&gt;These trials used different small knowledge banks and different protocols. Their counts cannot be combined into a general accuracy rate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why keep developing this workflow?
&lt;/h2&gt;

&lt;p&gt;Shared notes through MCP are already an established idea. &lt;a href="https://github.com/basicmachines-co/basic-memory" rel="noopener noreferrer"&gt;Basic Memory&lt;/a&gt; offers a Markdown knowledge store for different clients. &lt;a href="https://github.com/tobi/qmd" rel="noopener noreferrer"&gt;QMD&lt;/a&gt; offers local document search through both a command line and MCP. They are relevant alternatives to compare; these trials do not establish that my implementation is better.&lt;/p&gt;

&lt;p&gt;Research Brain grew from a research wiki I was already developing. I wanted a project finding to retain its source, checked result, conditions and open questions, then become available elsewhere through an approved save. Building that path let me inspect capture, retrieval and later use together. For someone starting with the same need, I would include existing tools in the comparison before building a custom reader.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The shared library worked across three clients. The four-task comparison also gave me a reason to keep consultation optional: the agents could already diagnose those localized defects from the projects themselves.&lt;/p&gt;

&lt;p&gt;I would carry three lessons into another attempt:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Save what is hard to reconstruct.&lt;/strong&gt; A rejected remedy, the reason for an exception, or a checked project constraint may carry more distinctive information than generic coding advice. That is the next hypothesis to test.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep a plain-reading comparison.&lt;/strong&gt; If reading the relevant note changes nothing, reconsider the knowledge or the task before tuning search. If it does help, check whether normal lookup can recover it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the evidence available.&lt;/strong&gt; The receiving agent still needs to check conditions in its own project. Retain the source, the actual passages it used and what needed another check.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some of the search work answered engineering questions without answering the larger question of usefulness. I do not want to turn every retrieval miss into a reason to add another component. The practical outcome so far is a working access path and a clearer decision about where to look for value, rather than a reason to require memory for every defect.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;The useful test now is narrower: can a fresh agent recover a past project decision that the current code does not explain, and use its limits correctly? That would test the part I wanted to preserve from the beginning.&lt;/p&gt;

&lt;p&gt;Choose the real task before consulting the notes, and keep the agent's initial plan. Let a fresh session search without the desired note identifier. Record which decisions and checks change, what needs local verification, and the effort of consultation and maintenance. If ordinary project inspection already supplies the answer, keep that outcome too.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/artemrudenko/research-brain-public" rel="noopener noreferrer"&gt;public Research Brain repository&lt;/a&gt; includes the adapter, a record template and the &lt;a href="https://github.com/artemrudenko/research-brain-public/blob/main/docs/problem-solutions.md" rel="noopener noreferrer"&gt;approved saving workflow&lt;/a&gt;. It does not reproduce the private trials described here. New project findings remain outside retrieval until their exact proposed package is approved. Choose which clients and projects may access a vault: retrieved text can reach a hosted model, and source content remains untrusted input.&lt;/p&gt;

&lt;p&gt;In the &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/when-an-ai-agent-finds-an-old-solution-should-it-use-it-37fh"&gt;next article&lt;/a&gt;, I look at what saved knowledge actually added to several tasks.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>opensource</category>
      <category>agents</category>
    </item>
    <item>
      <title>From too many sources to knowledge I can use again</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Fri, 16 Oct 2026 06:55:57 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/from-too-many-sources-to-knowledge-i-can-use-again-22fk</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/from-too-many-sources-to-knowledge-i-can-use-again-22fk</guid>
      <description>&lt;p&gt;Hi! There were more useful sources than I could read carefully. Saving every promising link would only move the pile into a reading list. I wanted to choose what deserved attention and keep the ideas I would need again.&lt;/p&gt;

&lt;p&gt;That raised another question: when I returned to a problem, what should I be able to recover from my own research? A useful note would give me the idea, the source behind it, and enough context to judge whether it applied to the task in front of me.&lt;/p&gt;

&lt;p&gt;This became Research Brain: a workflow for collecting material, turning selected sources into linked notes, and consulting those notes later. I wanted that knowledge to be available in other projects, where my agent and I were making development decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Research Brain keeps ideas, sources and limits together in a local wiki that agents can read through MCP.&lt;/li&gt;
&lt;li&gt;A project finding enters the vault through an exact proposal and my approval. Retrieval stays read-only.&lt;/li&gt;
&lt;li&gt;A coordinated trial completed the save-and-reuse loop; another task found no useful notes. These trials did not establish time savings or better decisions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  From a research wiki to a working workflow
&lt;/h2&gt;

&lt;p&gt;I started by trying &lt;a href="https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f" rel="noopener noreferrer"&gt;Karpathy's LLM Wiki pattern&lt;/a&gt; and an Obsidian setup using the Model Context Protocol (MCP). They gave me a starting point: keep research in a wiki that an agent can maintain and consult.&lt;/p&gt;

&lt;p&gt;I judged the result by whether I could reuse what I had learned. For that, I needed rules around the wiki: how a source gets in, what evidence a note retains, when it needs another check, and what the agent may change. I also needed to notice when collection or delivery failed. Working through those requirements, and fixing what failed in practice, shaped my own implementation.&lt;/p&gt;

&lt;p&gt;The knowledge store is an Obsidian vault—a local folder of Markdown notes. A concept note keeps an idea together with its sources, limits, and open questions. I can read and edit those files directly; the optional MCP adapter lets an agent in another project retrieve them. Source collection and the configured model can still use external services.&lt;/p&gt;

&lt;p&gt;The digest and the adapter serve different moments in the same workflow. The digest surfaces new material and note updates for reading; retrieval brings existing notes into a current task.&lt;/p&gt;

&lt;h2&gt;
  
  
  How material becomes a note
&lt;/h2&gt;

&lt;p&gt;The full workflow runs inside an agent runtime. It collects candidates from configured sources, including feeds, official pages, and search results, then selects material for the configured topics. URL and text deduplication reduce repeated material before it moves further through the pipeline.&lt;/p&gt;

&lt;p&gt;Before the agent curates or synthesizes article text, a sanitizer removes known prompt-injection patterns and flags others. Curation then applies the topic's inclusion and exclusion rules and a minimum text length. The selected material becomes the input for synthesis into concept notes.&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%2Fzznk6hr9s5dfhmwitner.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%2Fzznk6hr9s5dfhmwitner.png" alt="The full agent workflow collects configured sources, removes duplicates, sanitizes incoming text, and curates it before synthesizing concept notes. The same vault supports a weekly digest and read-only retrieval by project agents through MCP." width="800" height="912"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The full agent workflow supports reading and reuse. The reduced RSS-only fallback builds a digest without synthesizing concept notes.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;These steps filter different kinds of problems. A duplicate is repeated material. An off-topic article does not belong in this collection. A hidden instruction should not become a command to the agent. None of those checks establishes that an article's claims are true.&lt;/p&gt;

&lt;p&gt;The security boundary also continues after ingestion. The MCP adapter labels retrieved notes as untrusted data and exposes read-only retrieval, with no shell or arbitrary-file tool. Filters can miss attacks; the connected agent still needs appropriate tool permissions. This follows the concern described in &lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/LLM_Prompt_Injection_Prevention_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP's guidance on indirect prompt injection&lt;/a&gt;: instructions can arrive inside material the agent was only meant to read.&lt;/p&gt;

&lt;p&gt;To check the facts, I need the source trail to survive synthesis. Notes carry source records, and a mechanical health check flags missing citations, broken links, and other maintenance issues. Several publishers can repeat one upstream story, so counting sources is not enough to establish independent confirmation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Asking the notes from another project
&lt;/h2&gt;

&lt;p&gt;Once the notes existed, the next step was to make them available where a question arose. The local MCP adapter provides two tools: &lt;code&gt;search_knowledge&lt;/code&gt; finds candidate notes, and &lt;code&gt;get_concept&lt;/code&gt; opens a selected note in more detail.&lt;/p&gt;

&lt;p&gt;The current search uses weighted word matches. It breaks the query into words, removes common English query words, and checks the note's title, filename, tags, vault-index context, and body. An optional topic filter narrows the candidates; problem-and-solution notes can also be filtered by programming language and problem type. Title matches count more than body matches; the adapter returns up to two notes with excerpts, recorded sources, freshness information, and open questions.&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%2Fx7pdqv9ayjjfa3t2rqtu.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%2Fx7pdqv9ayjjfa3t2rqtu.png" alt="A project question is split into query words, then matched against titles, filenames, tags, index context, and note bodies. Up to two candidate notes are returned. The host agent checks their sources and applicability; a gap can lead to separate research." width="800" height="1055"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The search finds candidate context. The agent still has to decide whether that context supports the current task.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;There are no embeddings or semantic search in this adapter. Freshness is reported from the note's recorded verification date and review interval; it does not improve the match score or certify that the source is still correct. Generic words can produce irrelevant hits, and a useful note can be missed when the query uses different wording.&lt;/p&gt;

&lt;p&gt;When the vault has no useful answer, I want that gap to stay visible. In vault-only mode, the lookup stops and offers further research. In research mode, it tells the host agent to carry the retrieved context and gaps into the existing research workflow: check local material first, then ask before external research. The MCP server itself does no web research. Project findings go through a separate write workflow with explicit approval; the weekly workflow can ingest eligible research notes unattended.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing the loop between projects
&lt;/h2&gt;

&lt;p&gt;Retrieval left another question open: could a solution found during project work become useful knowledge for the next project? I tested that path with an agent on real unfinished tasks, using a private evaluation vault.&lt;/p&gt;

&lt;p&gt;In the first project, an HTTP collector ignored the server's &lt;code&gt;Retry-After&lt;/code&gt; hint and used its fixed retry delay. The agent checked &lt;a href="https://www.rfc-editor.org/rfc/rfc9110.html#section-10.2.3" rel="noopener noreferrer"&gt;RFC 9110, section 10.2.3&lt;/a&gt; and corrected the retry loop: wait the full requested pause when it fits the local budget, otherwise stop. Offline regression tests reproduced the problem and passed after the change.&lt;/p&gt;

&lt;p&gt;The agent then prepared an update to the existing note. It kept the problem, the rule and source, the checked result, and the conditions another project would need to reconsider. I approved the exact change before it entered Research Brain. Saving used a separate reviewed workflow; MCP remained read-only.&lt;/p&gt;

&lt;p&gt;From a second project, the agent retrieved the saved note through MCP. That collector shortened server pauses to its own limit and used a total deadline rather than the first collector's cumulative sleep allowance. The note supplied the rule and questions; the agent still had to inspect the local code, clocks, error handling, and callers. It adapted the fix and checked it with offline regressions. The result was then proposed back to the note and saved with my approval, including the remaining limits.&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%2Fu3twqjt39tslfu2pcudi.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%2Fu3twqjt39tslfu2pcudi.png" alt="A checked project solution goes through an exact proposal and owner approval before entering Research Brain. Another project retrieves it through read-only MCP, adapts and verifies it locally, and proposes any new finding for another owner-approved update." width="800" height="1157"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Project findings use a separate write workflow. Reuse can lead to another proposal; each save needs direct owner approval.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This completed a coordinated loop of saving, reuse and another approved update. The agent kept earlier context, and the faults were chosen before lookup. Offline tests used simulated responses and clocks. They did not test discovery by a new agent, automatic note synthesis or live traffic. They also did not show that separate jobs would respect the same wait, or that the changes were ready to release.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the notes did not help
&lt;/h2&gt;

&lt;p&gt;A school-class comparison task gave a different result. The agent queried a separate working vault of 39 notes. Broad wording returned unrelated matches; a more specific admissions query returned nothing. The agent set those results aside and completed the change using the project's own rules and retained data.&lt;/p&gt;

&lt;p&gt;Matching familiar words could make irrelevant notes look promising. Improving retrieval and growing useful coverage are both necessary; one does not automatically solve the other.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;What I found useful was having sources, limits, and questions for further checking together. These recorded trials do not establish time savings or better decisions. The longer-term question is whether recurring collection and retrieval justify the effort of preparing, verifying, and maintaining the notes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;For someone trying the idea, I would start with one recurring question. Keep a note with the rule, its supporting source, and the conditions that could change the answer. When the question returns, check whether the note helps you decide what to inspect next—and count the effort needed to verify and update it.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/artemrudenko/research-brain-public" rel="noopener noreferrer"&gt;public Research Brain repository&lt;/a&gt; now includes the project-solution capture workflow, its record template, and tests alongside collection and retrieval. The &lt;a href="https://github.com/artemrudenko/research-brain-public/blob/main/docs/problem-solutions.md" rel="noopener noreferrer"&gt;problem-and-solution guide&lt;/a&gt; explains how to validate a finding, review the exact proposed change, and save it after direct owner approval.&lt;/p&gt;

&lt;p&gt;A &lt;a href="https://github.com/artemrudenko/research-brain-public/blob/main/integrations/mcp_server/examples/problem_solution.py" rel="noopener noreferrer"&gt;disposable synthetic example&lt;/a&gt; exercises saving a finding and retrieving it from another project. It checks the workflow, not the private application runs described here. The &lt;a href="https://github.com/artemrudenko/research-brain-public/blob/main/integrations/mcp_server/README.md" rel="noopener noreferrer"&gt;MCP setup guide&lt;/a&gt; covers connecting the adapter.&lt;/p&gt;

&lt;p&gt;When you return to something you researched earlier, what do you usually have to reconstruct?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>learning</category>
      <category>mcp</category>
    </item>
    <item>
      <title>When does an integration help a sales decision? — SalesWiki, Part 5 of 5</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Mon, 12 Oct 2026 13:29:46 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/when-does-an-integration-help-a-sales-decision-saleswiki-part-5-of-5-omc</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/when-does-an-integration-help-a-sales-decision-saleswiki-part-5-of-5-omc</guid>
      <description>&lt;p&gt;Before your next customer conversation, which detail would you check—and where would you find it?&lt;/p&gt;

&lt;p&gt;The account summary may be in your customer system, the latest detail in a document, and a promise in a chat thread. Finding each piece still leaves a question: what can you rely on for your next step?&lt;/p&gt;

&lt;p&gt;That is the question behind my SalesWiki research. I am exploring a shared knowledge base for sales and marketing: linked account context, different access for different roles, and answers that show their sources and gaps. The aim is to spend less effort rebuilding context so people have more room to think through the decision.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-must-change-before-a-sales-demo-uses-real-data-saleswiki-part-4-of-5-26fo"&gt;Part 4&lt;/a&gt;, I looked at what must change before a demo uses real customer data. This final part follows one example through a check, then asks when connecting another tool would help. No technical background is needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before contacting Atlas Foods
&lt;/h2&gt;

&lt;p&gt;Atlas Foods is an invented account in the demo, not a customer case. Its account summary was last reviewed on August 12. A call note is dated August 18, and an audit source August 21. Both are newer than the summary.&lt;/p&gt;

&lt;p&gt;The audit source says the team wants to reduce manual evidence gathering during each audit cycle. That could matter when preparing the conversation: ask which part of the audit takes the most effort, rather than starting with a general product pitch. It still does not tell us the customer's current evaluation date.&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%2Fc8afcp4thi8celrn7xz6.jpg" 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%2Fc8afcp4thi8celrn7xz6.jpg" alt="The Atlas Foods context check shows an August 12 account review and newer August 18 and 21 sources, with buttons to inspect each source." width="620" height="528"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Current demo, cropped to the check and its dated sources. All account data is synthetic.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;An old summary is not a reason to drop the account. A newer document is not automatically the full answer either. I would compare them, keep the useful history, and ask the account owner for the missing date before deciding how to follow up.&lt;/p&gt;

&lt;p&gt;For marketing, the question might be different: which approved detail can support a useful message? The same account can help both teams, but each needs the facts relevant to its task and permitted for its role.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting an answer is different from changing the record
&lt;/h2&gt;

&lt;p&gt;This is the distinction I want SalesWiki to make clear. Someone asking a question needs an answer they can check. Someone correcting the shared account context needs a review path.&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%2Fptc782ju0isvdaualcjb.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%2Fptc782ju0isvdaualcjb.png" alt="Two paths: a question leads through permitted dated facts to an answer with sources and gaps, then a person chooses the next step. A new source leads to a proposed card change, human review, and a separately applied approved change. Original sources stay intact." width="800" height="831"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The intended workflow in plain language. A proposed change is reviewed before it is applied; reading a source does not update a card.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The knowledge base holds the team's current understanding and links back to the evidence. It does not need to become another copy of every document, recording and customer system. Original sources stay intact. Account summaries and working conclusions can change through review, with a history of what changed and why.&lt;/p&gt;

&lt;p&gt;The assistant's role is to bring the relevant, permitted context together and make gaps visible. It should not quietly fill in a missing date or decide that an account is no longer worth attention. The person makes that judgment.&lt;/p&gt;

&lt;h2&gt;
  
  
  A useful check can end with “we still don't know”
&lt;/h2&gt;

&lt;p&gt;For this demonstration, I opened the audit source, then recorded “Could not verify” and “Ask for missing context.” The source explains a need, but it does not settle the current evaluation date. I left the effect on the next decision as “Cannot assess yet.”&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%2Fxb2gltr99rawbpw32l6a.jpg" 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%2Fxb2gltr99rawbpw32l6a.jpg" alt="A recorded Atlas Foods check says Could not verify, Cannot assess yet, and Ask for missing context. A notice says card freshness and priority still follow the stored evidence." width="620" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;An illustrative result I recorded in the synthetic demo. It records a next step, not a confirmed customer finding or an updated account card.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This gives the check an outcome: ask for the missing context, then return to the decision. Recording a result does not make the old account summary current. In the browser demo, these personal checks reset on reload and do not send reminders. A correction to the shared card has a separate approval path.&lt;/p&gt;

&lt;p&gt;We also do not know why the account review fell behind. Perhaps a source changed, perhaps a review was missed; the dates alone cannot tell us. A later private pilot would need enough history to investigate recurring gaps without guessing their cause. The &lt;a href="https://www.gov.uk/government/publications/the-government-data-quality-framework/the-government-data-quality-framework-guidance" rel="noopener noreferrer"&gt;Government Data Quality Framework&lt;/a&gt; is a useful reference for tracking quality issues over time and addressing their causes. That is guidance for the research, not a claim that the demo diagnoses them automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  When would another connection earn its place?
&lt;/h2&gt;

&lt;p&gt;Now the integration question is easier to answer. &lt;strong&gt;What missing fact would the connection supply, or where would it help someone use the answer?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For a sales follow-up, a connection to the customer system could supply an agreed next step and its date. For a campaign, a document connection could supply approved evidence for a message. A chat interface could bring the cited answer to a place where the team already works. These are examples to test, not live connections shipped by the demo.&lt;/p&gt;

&lt;p&gt;I would start with one decision and one narrow connection. First read the needed information. If anything should change in the shared record, propose the exact change for review. Access rules still apply, and the original source remains available to check.&lt;/p&gt;

&lt;p&gt;If the only benefit is “we can search more material,” I would first ask whether the team's existing search tools already do enough. A connection also brings work: permissions, failed updates, source checks and maintenance. That effort belongs in the evaluation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five lessons I am taking forward
&lt;/h2&gt;

&lt;p&gt;Across the series, the idea has become more concrete:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep account understanding connected.&lt;/strong&gt; People should be able to follow an account, a conversation and the evidence behind a conclusion without rebuilding the story each time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separate access from relevance.&lt;/strong&gt; A role defines what someone may see; their task defines which of those facts help them decide.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep dates and gaps visible.&lt;/strong&gt; Old information can matter. Missing information should lead to a check, not a confident guess.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make corrections traceable.&lt;/strong&gt; Preserve original evidence, review changes, and record the result.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connect tools for a reason.&lt;/strong&gt; Supply a needed fact or bring an answer to the person who needs it. Count the ongoing effort as well as the benefit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The demo shows how these steps can work together with invented data. It does not yet show that a real team will make better decisions or spend less time searching.&lt;/p&gt;

&lt;p&gt;My next useful test would be one repeated decision alongside the team's current process: did the answer change the next step for a defensible reason? Did someone catch a missing fact before acting? Was the effort of checking and keeping the knowledge current worth it?&lt;/p&gt;

&lt;p&gt;That is where I want the research to go. I hope to automate some of the work of finding and checking context, while leaving more space for the part that needs a person's judgment. The next version should follow what people find useful—even if that means a simpler tool is enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it or follow the series
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://knowledge-workbench-seven.vercel.app/" rel="noopener noreferrer"&gt;Open the synthetic demo&lt;/a&gt;. Choose Atlas Foods, open “Check account context,” and inspect a source. Then ask: what would I need to know before taking the next step?&lt;/p&gt;

&lt;p&gt;If you want to explore the implementation, the &lt;a href="https://github.com/artemrudenko/SalesWiki-public/blob/main/docs/QUICKSTART.en.md" rel="noopener noreferrer"&gt;public repository and local setup guide&lt;/a&gt; are available. The demo is a research prototype; real customer use needs a separate private setup with real identity, access and review controls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continue the series
&lt;/h2&gt;

&lt;p&gt;This five-part series explores how shared sales and marketing context can support decisions people can check.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-i-built-a-sales-and-marketing-knowledge-base-that-refuses-to-guess-5fhm"&gt;Why I built a sales and marketing knowledge base that refuses to guess&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/how-i-keep-shared-sales-knowledge-safe-for-different-roles-saleswiki-part-2-of-5-1ngl"&gt;How I keep shared sales knowledge safe for different roles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-should-a-sales-knowledge-base-help-someone-decide-saleswiki-part-3-of-5-pb0"&gt;What should a sales knowledge base help someone decide?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-must-change-before-a-sales-demo-uses-real-data-saleswiki-part-4-of-5-26fo"&gt;What must change before a sales demo uses real data?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/when-does-an-integration-help-a-sales-decision-saleswiki-part-5-of-5-omc"&gt;When does an integration help a sales decision?&lt;/a&gt; — this part&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Previous:&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-must-change-before-a-sales-demo-uses-real-data-saleswiki-part-4-of-5-26fo"&gt;Part 4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Which missing detail most often makes you stop and check before a customer conversation?&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>ai</category>
    </item>
    <item>
      <title>What must change before a sales demo uses real data? — SalesWiki, Part 4 of 5</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Wed, 07 Oct 2026 11:02:21 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/what-must-change-before-a-sales-demo-uses-real-data-saleswiki-part-4-of-5-26fo</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/what-must-change-before-a-sales-demo-uses-real-data-saleswiki-part-4-of-5-26fo</guid>
      <description>&lt;p&gt;The public demo uses invented accounts. You can trace an answer to its sources and see how a correction enters review.&lt;/p&gt;

&lt;p&gt;If you are responsible for sales or marketing operations, the practical question is what it would take to test one real decision without exposing customer data or mistaking a convincing demo for proof that it helps.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-should-a-sales-knowledge-base-help-someone-decide-saleswiki-part-3-of-5-pb0"&gt;Part 3&lt;/a&gt;, I chose one repeated decision to test: which account needs attention today, and why? This article looks at how to run the synthetic demo, where real data belongs, and what a private pilot would need to prove.&lt;/p&gt;

&lt;p&gt;The boundary is simple: the public repository holds the platform, its demo holds synthetic cards, and real customer data belongs in a separate private vault.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Contour&lt;/th&gt;
&lt;th&gt;Location&lt;/th&gt;
&lt;th&gt;Data rule&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Platform&lt;/td&gt;
&lt;td&gt;Public SalesWiki repository&lt;/td&gt;
&lt;td&gt;Code, schemas, synthetic examples and setup guides&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demo&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;demo/&lt;/code&gt; inside the repository&lt;/td&gt;
&lt;td&gt;Synthetic cards only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pilot&lt;/td&gt;
&lt;td&gt;A separate private vault outside the repository&lt;/td&gt;
&lt;td&gt;Real accounts, deals, contacts and transcripts&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The public repository supports a browser preview and a local synthetic service. A shared service with real customer data would need further work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspect the synthetic demo
&lt;/h2&gt;

&lt;p&gt;The public &lt;a href="https://knowledge-workbench-seven.vercel.app/" rel="noopener noreferrer"&gt;Knowledge Workbench&lt;/a&gt; is the quickest way to see the synthetic workflow. Select &lt;strong&gt;Tour&lt;/strong&gt; in the top bar. Its eight-step quick tour takes about two minutes: it checks dated evidence when a signal is stale, shows how roles get different views of shared evidence, and follows an answer to its sources. It also opens a personal context check: take the check, compare the sources and record what would change your next decision. The tour itself saves nothing. A cause remains unknown unless the available evidence supports an assessment.&lt;/p&gt;

&lt;p&gt;For example, the Atlas Foods summary is older than two of its sources. In the demo, you can take that check yourself, record &lt;strong&gt;Update needed&lt;/strong&gt;, link the source you checked and choose &lt;strong&gt;Propose a card update&lt;/strong&gt; as the next step. Recording the result does not refresh the card or approve the proposed change.&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%2F5r29yik6iw4iw4g1hsio.jpg" 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%2F5r29yik6iw4iw4g1hsio.jpg" alt="A synthetic Atlas Foods context check records its reviewer, result, source date and next action" width="620" height="664"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Synthetic example: the check result and next action are recorded separately from the account's stored freshness.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In the hosted browser demo, these personal checks stay in the current tab and reset on reload. The local service keeps them in a separate runtime journal. Each person sees only their own checks, including people using reviewer roles.&lt;/p&gt;

&lt;p&gt;To run the demo locally, clone the &lt;a href="https://github.com/artemrudenko/SalesWiki-public" rel="noopener noreferrer"&gt;public repository&lt;/a&gt; and follow the &lt;a href="https://github.com/artemrudenko/SalesWiki-public/blob/main/docs/QUICKSTART.en.md" rel="noopener noreferrer"&gt;quick start&lt;/a&gt;. It gives separate commands for the browser preview and the local permissioned service. This verifies the synthetic setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the data boundary in place
&lt;/h2&gt;

&lt;p&gt;The local demo service refuses a vault that is not marked synthetic. Changing an environment variable is not enough to turn it into a real-data service. A private pilot needs a separate vault and verified identity before anyone can retrieve customer information. Keep that vault outside the public repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start a private pilot carefully
&lt;/h2&gt;

&lt;p&gt;Do not copy real customer records or call transcripts into this repository. Create a separate access-controlled vault with no public remote. Keep personal-data bodies out of Git. Use external restricted references where needed.&lt;/p&gt;

&lt;p&gt;The smallest useful pilot tests one repeated decision. A possible sales question is: which lead needs a follow-up today, and why? Part 3 used a related account-follow-up question. Choose one exact decision and keep it fixed. A later marketing pilot can use the same method once its decision and success criteria are clear.&lt;/p&gt;

&lt;p&gt;A useful pilot should prove more than document retrieval. Continue only if real work validates all four points:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The cited answer helps people make the chosen decision with less searching than their current workflow.&lt;/li&gt;
&lt;li&gt;At least one correction is clearer or safer after a proposal, review and controlled update.&lt;/li&gt;
&lt;li&gt;Keeping the data and access rules under the team's control solves a real need.&lt;/li&gt;
&lt;li&gt;Users can explain why they chose the action and what evidence would change it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the pilot mainly proves that people want document search or summarization, an existing product may be the cheaper answer.&lt;/p&gt;

&lt;p&gt;Before the first real account enters the pilot, write down the test plan: the decision, the allowed evidence, the current workflow, and what would make the team stop or change direction. Count an answer without a source, restricted information reaching the wrong person, or an action the user cannot explain as a failed case. Do not change the allowed sources, access rules and answer format all at once; otherwise the team will not know what caused an improvement or a failure.&lt;/p&gt;

&lt;p&gt;The personal journal is a starting point for recording what happens when a fact needs review. A stale flag tells us that a review window passed. I would keep three things separate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What the demo records now:&lt;/strong&gt; the reviewer, result, source-record dates and next step.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What the private pilot log would add:&lt;/strong&gt; when the check was due, noticed, assigned and resolved; the review result; and whether it could have changed the decision. Record historical times only when known. Starting a check today does not recover them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What still needs evidence:&lt;/strong&gt; whether a source changed, a sync failed, or no one owned the task. Record a likely cause only when supported; otherwise use &lt;code&gt;unknown&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I would keep customer text and contact details out of that log, using only a private record handle and a restricted source link.&lt;/p&gt;

&lt;p&gt;That distinction follows public data-quality guidance: assess quality against the intended use, track recurring issues, and investigate causes before choosing a fix. The &lt;a href="https://www.gov.uk/government/publications/the-government-data-quality-framework/the-government-data-quality-framework-guidance" rel="noopener noreferrer"&gt;Government Data Quality Framework&lt;/a&gt; describes that loop, and its &lt;a href="https://www.gov.uk/government/publications/implement-a-data-quality-action-plan/data-quality-issues-framework" rel="noopener noreferrer"&gt;issues framework&lt;/a&gt; puts impact and priority into the response. This is a method for the pilot to test; it is not a claim that SalesWiki currently diagnoses stale records.&lt;/p&gt;

&lt;p&gt;For an early pilot, I would use the roles and team boundaries already in place. The person who takes a check owns its next step. Later, someone responsible for sales operations or knowledge quality could review process patterns within their existing access, and department leads could see scoped summaries. Those shared views are not implemented in the demo. I would not add a separate audit role until a multi-user pilot shows a need for independent review. If that need appears, the role should be read-only and show review-event details, not customer records.&lt;/p&gt;

&lt;h2&gt;
  
  
  What production deployment still needs
&lt;/h2&gt;

&lt;p&gt;Before shared production use, add:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a sign-in system that verifies the user on every request;&lt;/li&gt;
&lt;li&gt;securely stored connector credentials with limited access;&lt;/li&gt;
&lt;li&gt;backup and restore drills;&lt;/li&gt;
&lt;li&gt;operational logs, monitoring and limits on request volume;&lt;/li&gt;
&lt;li&gt;incident response;&lt;/li&gt;
&lt;li&gt;external storage that can delete personal data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The public local service demonstrates a separate worker applying approved proposals. A production setup still needs controlled filesystem access to the private vault, protected runtime storage and verified user identity. Packaging the service in a container would not provide those controls by itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical evaluation checklist
&lt;/h2&gt;

&lt;p&gt;After trying the demo, you should be able to answer these questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can a person trace the answer to a dated source and see what is missing?&lt;/li&gt;
&lt;li&gt;Do people see only the information allowed for their role and task?&lt;/li&gt;
&lt;li&gt;Does missing or conflicting evidence lead to a check instead of a guess?&lt;/li&gt;
&lt;li&gt;Does a correction wait for review before the card changes?&lt;/li&gt;
&lt;li&gt;Can the team tell whether an old fact came from a changed source, a missed sync, an unowned check, or an unknown cause?&lt;/li&gt;
&lt;li&gt;Will real pilot data stay outside the public repository?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If those properties match your requirements, clone the &lt;a href="https://github.com/artemrudenko/SalesWiki-public" rel="noopener noreferrer"&gt;SalesWiki repository&lt;/a&gt; and run the demo. Then choose one repeated sales or marketing decision and compare the cited workflow with the way the team handles it today. That comparison, including where SalesWiki gets in the way, is the evidence the next version needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continue the series
&lt;/h2&gt;

&lt;p&gt;This five-part series explores how shared sales and marketing context can support decisions people can check.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-i-built-a-sales-and-marketing-knowledge-base-that-refuses-to-guess-5fhm"&gt;Why I built a sales and marketing knowledge base that refuses to guess&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/how-i-keep-shared-sales-knowledge-safe-for-different-roles-saleswiki-part-2-of-5-1ngl"&gt;How I keep shared sales knowledge safe for different roles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-should-a-sales-knowledge-base-help-someone-decide-saleswiki-part-3-of-5-pb0"&gt;What should a sales knowledge base help someone decide?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-must-change-before-a-sales-demo-uses-real-data-saleswiki-part-4-of-5-26fo"&gt;What must change before a sales demo uses real data?&lt;/a&gt; — this part&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/when-does-an-integration-help-a-sales-decision-saleswiki-part-5-of-5-omc"&gt;When does an integration help a sales decision?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Previous:&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-should-a-sales-knowledge-base-help-someone-decide-saleswiki-part-3-of-5-pb0"&gt;Part 3&lt;/a&gt; · &lt;strong&gt;Next:&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/when-does-an-integration-help-a-sales-decision-saleswiki-part-5-of-5-omc"&gt;Part 5&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>mcp</category>
      <category>ai</category>
      <category>privacy</category>
    </item>
    <item>
      <title>What should a sales knowledge base help someone decide? — SalesWiki, Part 3 of 5</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Tue, 29 Sep 2026 20:23:36 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/what-should-a-sales-knowledge-base-help-someone-decide-saleswiki-part-3-of-5-pb0</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/what-should-a-sales-knowledge-base-help-someone-decide-saleswiki-part-3-of-5-pb0</guid>
      <description>&lt;p&gt;An assistant can summarize every account in a pipeline and still leave a salesperson with the same question: which account needs my attention today?&lt;/p&gt;

&lt;p&gt;Earlier in this series, I wrote about why sales and marketing need shared knowledge and why different people should see different parts of it.&lt;/p&gt;

&lt;p&gt;Now I want to learn whether that knowledge helps someone make one recurring decision with less searching and a clear view of the evidence. A larger wiki or a longer summary is not useful by itself.&lt;/p&gt;

&lt;p&gt;For sales, the question might be which account to follow up with next. For marketing, it might be which customer signal should change a campaign plan. Each needs a different answer from the same shared account context. In this part, I use the sales question to design a small test before connecting more tools or moving real customer data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with a decision card
&lt;/h2&gt;

&lt;p&gt;The test should fit on one page before anyone connects a customer system or uploads a call transcript.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Example: account follow-up priority&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Person making the decision&lt;/td&gt;
&lt;td&gt;Account executive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Repeated moment&lt;/td&gt;
&lt;td&gt;Morning pipeline review&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Decision&lt;/td&gt;
&lt;td&gt;Which account should I follow up with next?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Facts the person may see&lt;/td&gt;
&lt;td&gt;An account they own, dated call notes, confirmed next step&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Useful output&lt;/td&gt;
&lt;td&gt;A suggested next step with sources and any gaps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Human remains responsible for&lt;/td&gt;
&lt;td&gt;Choosing what to do and contacting the customer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is narrower than asking an assistant to "improve sales." A specific decision tells us what information matters, who may see it, and how to tell whether the answer helped.&lt;/p&gt;

&lt;h2&gt;
  
  
  Information has to earn a place in the answer
&lt;/h2&gt;

&lt;p&gt;The test should not reward a longer account summary. I would use a simple rule instead:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Evidence state&lt;/th&gt;
&lt;th&gt;What the short answer should do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The person is not allowed to see it&lt;/td&gt;
&lt;td&gt;Leave it out entirely&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;It is allowed but would not change this decision&lt;/td&gt;
&lt;td&gt;Keep it in the linked account context, not in the short answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;It could matter but is old, incomplete, or contradictory&lt;/td&gt;
&lt;td&gt;Say what needs checking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;It is allowed, dated, and could change the decision&lt;/td&gt;
&lt;td&gt;Include it with its source&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The short answer needs the last two rows: useful facts with sources, and gaps that could change the choice. This is a working rule for the test, not a relevance score that SalesWiki claims to calculate today. The question is whether a smaller set of checkable facts helps more than a complete-looking summary.&lt;/p&gt;

&lt;h2&gt;
  
  
  A useful answer makes uncertainty visible
&lt;/h2&gt;

&lt;p&gt;Imagine a made-up morning review of two accounts. BluePeak has a call note from yesterday and a confirmed next step due today. Cedar has a high score, but its last call note is old and nobody is named as the owner of the next step. Which account would you follow up with first?&lt;/p&gt;

&lt;p&gt;I would not want an answer that puts Cedar first because of its score alone. A useful answer might point to BluePeak's dated next step and say that Cedar needs a quick check before its priority can be trusted. A person can then choose the action; the answer should make the reason easy to inspect.&lt;/p&gt;

&lt;p&gt;SalesWiki's answer format keeps sources, dates, and missing facts beside the conclusion. It can narrow the search and suggest a direction. It should not hide the person's choice inside confident prose.&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%2Fm0qmov1cyo13w75eitah.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%2Fm0qmov1cyo13w75eitah.png" alt="A decision loop: choose one follow-up question, check permitted and dated facts, then either give a sourced direction or say what needs checking; a person makes the next move and sends corrections for review" width="720" height="1120"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the current workflow against the proposed one
&lt;/h2&gt;

&lt;p&gt;I would compare the team's usual account records and notes with a short, sourced answer for the same decision. The team would keep its normal tools. There is no need to move everything into SalesWiki first.&lt;/p&gt;

&lt;p&gt;Before trying it with real work, I would agree on the question, allowed sources, and what counts as a failed answer. An unsupported claim, someone seeing a restricted record, or a person unable to explain the suggested step would be a failure. A smoother prompt would not fix it.&lt;/p&gt;

&lt;p&gt;Then record four observations:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How long it takes to prepare the decision.&lt;/li&gt;
&lt;li&gt;Whether the person can point to a dated source for the action.&lt;/li&gt;
&lt;li&gt;Whether an old or missing fact changes the choice.&lt;/li&gt;
&lt;li&gt;Whether a correction to shared knowledge is needed, and how much review work it adds.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An old note should trigger a check, not quietly lower an account's priority. If the same stale facts keep appearing, the pilot should also ask where the review loop failed. Part 4 describes a small way to record that history without copying customer details into a public project.&lt;/p&gt;

&lt;p&gt;I would also ask what the person would have done without the answer. Faster preparation means little if it leads to a worse decision. If people only need faster document search, an existing search tool may be enough. If maintaining the shared facts takes more work than the decision is worth, that matters too.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the public demo can and cannot show
&lt;/h2&gt;

&lt;p&gt;The public &lt;a href="https://knowledge-workbench-seven.vercel.app/" rel="noopener noreferrer"&gt;Knowledge Workbench&lt;/a&gt; uses synthetic accounts. Its guided tour goes from a suggested priority to account context, linked evidence, an answer with sources, and a review path for corrections. It also shows how to treat a stale signal: check the dated evidence before acting or deprioritizing. You can now take a personal context check and record its result, sources and next step. That gives the check an owner; it does not explain an earlier missed review or automatically make the account current. The cause stays unknown unless evidence supports an assessment.&lt;/p&gt;

&lt;p&gt;The demo cannot show whether a real team would use this every day. It has no real user sign-in, live customer records, or hosted setup for a team. That is the job of a later private pilot, with a separate place for customer data. When facts are old or missing, saying what to check can be more useful than recommending an action.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continue only when the workflow earns it
&lt;/h2&gt;

&lt;p&gt;I would consider a private pilot only if the small test supports these points:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The answer helps people make the chosen decision with less searching, without hiding a fact that could change it.&lt;/li&gt;
&lt;li&gt;People can point to the sources, explain their choice, and say what would change their minds.&lt;/li&gt;
&lt;li&gt;Corrections to shared knowledge are worth the review effort.&lt;/li&gt;
&lt;li&gt;The time spent keeping the answer current is reasonable for the value of the decision.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The next part looks at how to run that private test without confusing synthetic demo data with customer data. It covers the public repository, local demo, private vault, and the safeguards still needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continue the series
&lt;/h2&gt;

&lt;p&gt;This five-part series explores how shared sales and marketing context can support decisions people can check.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-i-built-a-sales-and-marketing-knowledge-base-that-refuses-to-guess-5fhm"&gt;Why I built a sales and marketing knowledge base that refuses to guess&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/how-i-keep-shared-sales-knowledge-safe-for-different-roles-saleswiki-part-2-of-5-1ngl"&gt;How I keep shared sales knowledge safe for different roles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-should-a-sales-knowledge-base-help-someone-decide-saleswiki-part-3-of-5-pb0"&gt;What should a sales knowledge base help someone decide?&lt;/a&gt; — this part&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-must-change-before-a-sales-demo-uses-real-data-saleswiki-part-4-of-5-26fo"&gt;What must change before a sales demo uses real data?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/when-does-an-integration-help-a-sales-decision-saleswiki-part-5-of-5-omc"&gt;When does an integration help a sales decision?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Previous:&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/how-i-keep-shared-sales-knowledge-safe-for-different-roles-saleswiki-part-2-of-5-1ngl"&gt;Part 2&lt;/a&gt; · &lt;strong&gt;Next:&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-must-change-before-a-sales-demo-uses-real-data-saleswiki-part-4-of-5-26fo"&gt;Part 4&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>marketing</category>
      <category>sales</category>
    </item>
    <item>
      <title>How I keep shared sales knowledge safe for different roles — SalesWiki, Part 2 of 5</title>
      <dc:creator>Artsiom Rudzenka</dc:creator>
      <pubDate>Wed, 23 Sep 2026 05:20:38 +0000</pubDate>
      <link>https://dev.to/artemr_rudenko_0bf2c2c505/how-i-keep-shared-sales-knowledge-safe-for-different-roles-saleswiki-part-2-of-5-1ngl</link>
      <guid>https://dev.to/artemr_rudenko_0bf2c2c505/how-i-keep-shared-sales-knowledge-safe-for-different-roles-saleswiki-part-2-of-5-1ngl</guid>
      <description>&lt;p&gt;A salesperson and a marketer can open the same customer account and need different facts.&lt;/p&gt;

&lt;p&gt;Before a customer call, the salesperson needs what was agreed and the next step. Marketing needs an approved customer signal it can use in a campaign. Both need the same account map. Neither needs every private note.&lt;/p&gt;

&lt;p&gt;That is the tension I wanted to test in SalesWiki. A shared knowledge base should stop people rebuilding context in separate tools. It should not turn every record into one unrestricted summary.&lt;/p&gt;

&lt;p&gt;The question is not only what a person may see. It is what they are trying to decide. One person may be preparing the next conversation; another may be deciding whether a customer signal can support a message. The useful answer is different, but both answers should lead back to dated evidence, show what is missing, and leave the decision with the person responsible.&lt;/p&gt;

&lt;p&gt;I treated a request for information and a request to change information as different paths. An answer uses only permitted facts. A correction waits for review before anything changes.&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%2Fp6d5iakpha1bh38psl0s.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%2Fp6d5iakpha1bh38psl0s.png" alt="A request passes through server-side identity and policy before producing a cited answer or an approved, auditable change" width="800" height="560"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  One question, two valid answers
&lt;/h2&gt;

&lt;p&gt;In the synthetic demo, consider the shared account BluePeak Energy. The account executive asks, "What was agreed, and what could block the next step?" Marketing asks, "Which approved signal can support a useful message?"&lt;/p&gt;

&lt;p&gt;The account is the same. The decision is not. A sales answer might say, “The next step was a technical review on Tuesday; the security questionnaire is still missing.” A marketing answer might say, “The customer agreed to a public webinar, but product claims still need approval.”&lt;/p&gt;

&lt;p&gt;Each answer should show its sources, how current they are and what it cannot tell the reader. One answer helps move a commercial conversation forward. The other helps decide what can be said publicly. A shared knowledge base earns its place when it preserves that difference before an answer is assembled.&lt;/p&gt;

&lt;p&gt;This is one logical knowledge model, not one unrestricted storage location. Stable links connect the broad and protected cards, while physical boundaries keep sensitive material out of a role's retrieval path. The user experiences a shared account map; the server decides which part of that map can be assembled.&lt;/p&gt;

&lt;p&gt;The service processes the request in this order:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;request
  -&amp;gt; server-side identity
  -&amp;gt; role and account policy
  -&amp;gt; allowed storage areas
  -&amp;gt; filtered retrieval
  -&amp;gt; field extraction
  -&amp;gt; cited answer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The browser does not decide a person's role. The server does. In the demo, a server setting selects a test person. A production deployment still needs a real identity provider on every request; that is one of the documented gaps.&lt;/p&gt;

&lt;h2&gt;
  
  
  A label in a card is not access control
&lt;/h2&gt;

&lt;p&gt;This card property is useful metadata:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;access&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sales-confidential&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It does not stop a person or process from opening the file. SalesWiki keeps broad knowledge, sensitive sales notes, contact references and legal material in separate storage areas. The directory that holds a card determines its class. A card outside a known area is denied by default.&lt;/p&gt;

&lt;p&gt;Roles set the broad boundary: which storage areas may this person read? Ownership and other account attributes narrow the result. An account executive may see sensitive cards for accounts they own, while a head of sales sees the wider team view.&lt;/p&gt;

&lt;p&gt;Contact details do not belong in the shared vault. The broad knowledge layer keeps only an opaque reference such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;restricted://personal-data/demo-bluepeak-energy-lead-contact
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An approved external store can resolve that reference later. This keeps access and deletion concerns out of the shared knowledge layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  A fixed answer format keeps the limits visible
&lt;/h2&gt;

&lt;p&gt;After filtering, the service extracts named values from permitted card sections. A configuration file connects the shape of a card to the shape of an answer, rather than leaving that decision to a prompt.&lt;/p&gt;

&lt;p&gt;Every answer has the same fields:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;conclusion&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The direct result&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;sections&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Extracted facts or record tables&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;citations&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Source and location&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;confidence&lt;/code&gt; and &lt;code&gt;freshness&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;How certain and current the source data is&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;next_action&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The recommended operational step already stored in the card&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;missing&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;What the vault cannot answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;access&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Allowed, sanitized, blocked, ambiguous or not found&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;An optional language model can later turn the result into prose in a client. It may not introduce new facts. The service itself does not need a language model to produce the answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  A change is a transaction, not an edit
&lt;/h2&gt;

&lt;p&gt;Suppose a user spots an outdated deal risk. The visible workflow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flag stale or wrong
  -&amp;gt; draft proposal
  -&amp;gt; review queue
  -&amp;gt; approve or reject
  -&amp;gt; worker apply
  -&amp;gt; validation and audit
  -&amp;gt; rollback if needed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The proposal includes the target entity, requested change, source evidence, risk and base version. Approval and apply are separate steps.&lt;/p&gt;

&lt;p&gt;The worker changes the compiled card, not the original source. Raw evidence stays as captured; a correction creates a new, reviewed conclusion with a clear reason and audit record.&lt;/p&gt;

&lt;p&gt;The worker then checks the approved change and the current card version. It holds a file lock so only one writer runs at a time. The card is written safely through a temporary file and replacement. Failed work is set aside for review. Rollback is an explicit worker action.&lt;/p&gt;

&lt;p&gt;Approved changes land in the card's &lt;code&gt;Review Needed&lt;/code&gt; section. They do not silently overwrite protected profile fields.&lt;/p&gt;

&lt;p&gt;This is slower than direct page editing. That delay is useful when the knowledge affects deal economics, identity fields, updates to customer records or access decisions. It would be unnecessary overhead for an ordinary team notebook.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a single writer is enough
&lt;/h2&gt;

&lt;p&gt;SalesWiki targets a small sales and marketing operating group, not millions of writes per second. At that scale, one writer gives a clear invariant:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Every applied change passed through one ordered, reviewable path.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The design avoids distributed locking and merge machinery before the pilot proves that they are needed. The reading service can have read-only access to the vault, while the writing worker has controlled write access.&lt;/p&gt;

&lt;h2&gt;
  
  
  The audit chain makes rewriting visible
&lt;/h2&gt;

&lt;p&gt;Audit events are append-only and linked with cryptographic hashes. Each record carries the previous hash and its own hash. Rewriting or removing an earlier record breaks verification of the later chain.&lt;/p&gt;

&lt;p&gt;This makes tampering visible; it does not make the system magical. Storage permissions, backups and external monitoring still matter. For a private pilot, SalesWiki can sign a checkpoint containing the verified record count and latest hash, then store that checkpoint and its key separately. That can reveal a clean deletion at the end of the chain. Version history is useful for card changes, but it does not show who read sensitive data. Reading needs its own audit in the service.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rules should be visible, not hidden in code
&lt;/h2&gt;

&lt;p&gt;The project keeps rules for access, storage boundaries, identity, answer fields and external connections in configuration files. The intent is simple: changing a role map, a storage boundary or an answer field should not require rewriting the service. The health check validates that these rules still agree with the cards and dashboards.&lt;/p&gt;

&lt;p&gt;The code follows the same boundary. A server interface carries requests into the service, while identity, policy, retrieval, answers, proposals, audit and the worker live in separate modules. Optional chat integrations depend on that core; the core never depends on them. This makes it possible to replace a chat client without moving the rules that protect access and changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the demo has tested
&lt;/h2&gt;

&lt;p&gt;The end-to-end dry run uses a throwaway vault and checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;one role cannot see data reserved for another;&lt;/li&gt;
&lt;li&gt;sourced answers and an honest “not found” result;&lt;/li&gt;
&lt;li&gt;proposal, approval and worker apply;&lt;/li&gt;
&lt;li&gt;rejection, audit verification and rollback paths;&lt;/li&gt;
&lt;li&gt;the same answer format across read tools.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The architecture still has open production work. Test identity must be replaced by a real identity provider on every request. Approval records need production-grade identity and secret handling. Connector credentials, backups, rate limits and incident response need an operating environment outside the public repository.&lt;/p&gt;

&lt;p&gt;This part answers one question: the same shared knowledge can support different decisions only when identity and policy filter retrieval before an answer is assembled, and when changes follow a separate governed path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continue the series
&lt;/h2&gt;

&lt;p&gt;This five-part series explores how shared sales and marketing context can support decisions people can check.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-i-built-a-sales-and-marketing-knowledge-base-that-refuses-to-guess-5fhm"&gt;Why I built a sales and marketing knowledge base that refuses to guess&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/how-i-keep-shared-sales-knowledge-safe-for-different-roles-saleswiki-part-2-of-5-1ngl"&gt;How I keep shared sales knowledge safe for different roles&lt;/a&gt; — this part&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-should-a-sales-knowledge-base-help-someone-decide-saleswiki-part-3-of-5-pb0"&gt;What should a sales knowledge base help someone decide?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-must-change-before-a-sales-demo-uses-real-data-saleswiki-part-4-of-5-26fo"&gt;What must change before a sales demo uses real data?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/when-does-an-integration-help-a-sales-decision-saleswiki-part-5-of-5-omc"&gt;When does an integration help a sales decision?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Previous:&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/why-i-built-a-sales-and-marketing-knowledge-base-that-refuses-to-guess-5fhm"&gt;Part 1&lt;/a&gt; · &lt;strong&gt;Next:&lt;/strong&gt; &lt;a href="https://dev.to/artemr_rudenko_0bf2c2c505/what-should-a-sales-knowledge-base-help-someone-decide-saleswiki-part-3-of-5-pb0"&gt;Part 3&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The implementation and focused tests are available in the &lt;a href="https://github.com/artemrudenko/SalesWiki-public" rel="noopener noreferrer"&gt;SalesWiki repository&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>mcp</category>
      <category>privacy</category>
      <category>security</category>
    </item>
  </channel>
</rss>
