<?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: Shreepal Goyal</title>
    <description>The latest articles on DEV Community by Shreepal Goyal (@shreepalgoyal).</description>
    <link>https://dev.to/shreepalgoyal</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%2F2629905%2F160c8f8a-6164-49c8-9ad9-2a100e20e9b4.png</url>
      <title>DEV Community: Shreepal Goyal</title>
      <link>https://dev.to/shreepalgoyal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shreepalgoyal"/>
    <language>en</language>
    <item>
      <title>Five ways your A/B test can fail silently</title>
      <dc:creator>Shreepal Goyal</dc:creator>
      <pubDate>Mon, 30 Nov 2026 00:01:00 +0000</pubDate>
      <link>https://dev.to/shreepalgoyal/five-ways-your-ab-test-can-fail-silently-13fm</link>
      <guid>https://dev.to/shreepalgoyal/five-ways-your-ab-test-can-fail-silently-13fm</guid>
      <description>&lt;p&gt;An A/B test can be live, traffic can be flowing, and everything can look fine in your application — while the experiment records nothing useful.&lt;/p&gt;

&lt;p&gt;The frustrating part is that it often doesn't fail loudly. You don't get a useful error or a stack trace. You find out days later, when the results page is empty and the traffic has already been spent.&lt;/p&gt;

&lt;p&gt;Flagsmith's documentation for running experiments lists five reasons this can happen. I took those five failure modes and turned them into build-time checks in a tool I built called &lt;strong&gt;Trial&lt;/strong&gt;. Then I built the rest of the experiment lifecycle around the same idea: validate before creating anything, keep the experiment definition versioned, and don't promote a winner just because one number looks good.&lt;/p&gt;

&lt;p&gt;Here's what those failures look like, and what I built to catch them.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, make the five failures visible
&lt;/h2&gt;

&lt;p&gt;I wrote five intentionally broken examples and ran them through Trial's linter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✓  01-unkeyed-variant         protocol unkeyed-variant: variant without a key
✓  02-event-name-mismatch     protocol event-name-mismatch: no code emits checkout_started
✓  03-no-identity             no identity before exposure
✓  04-cloud-events-url        self-hosted API but no events URL
✓  05-no-flush                script never flushes buffered events

all five caught, none of them at runtime
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That last line is the important one.&lt;/p&gt;

&lt;p&gt;Every one of these setups can run without an obvious error. Your application can behave normally while your experiment collects unusable data.&lt;/p&gt;

&lt;p&gt;Let's look at why.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five ways an experiment can silently fail
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. A variation has no key.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Exposures need to be attributed to a specific variation. A variation without a key can still look fine in the dashboard and render in the application, but there's no reliable variation identifier for attribution.&lt;/p&gt;

&lt;p&gt;The application works. The experiment doesn't measure what you think it measures.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. The event name doesn't match the metric.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Event names are case-sensitive.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Checkout_Started&lt;/code&gt; and &lt;code&gt;checkout_started&lt;/code&gt; are two different events. If the metric expects the second one but the application emits the first, the event won't match. The metric stays at zero, and the experiment has nothing useful to measure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. There's no identity before exposure.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Exposures and conversions need to be joined by identity.&lt;/p&gt;

&lt;p&gt;Without an identity, the exposure can be skipped, along with the conversions that would have been attributed to it. At first, this can look like a conversion-tracking problem. The actual problem is that the user had no identity when the exposure happened.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. The events URL still points to Flagsmith Cloud.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The SDK defaults to Flagsmith Cloud.&lt;/p&gt;

&lt;p&gt;Say you're self-hosting Flagsmith. You point the flags API at your local instance, but forget to configure the events URL. Flags arrive from your own instance, while events are sent somewhere else.&lt;/p&gt;

&lt;p&gt;The application gets its flags. Your self-hosted analytics never sees the events.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Buffered events are lost when the process exits.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SDKs batch events instead of sending every event immediately. The default flush window is ten seconds.&lt;/p&gt;

&lt;p&gt;A short-lived script can finish its work, exit without flushing, and lose the events still sitting in the buffer. The process exits successfully. The data never arrives.&lt;/p&gt;

&lt;p&gt;Four of these are configuration mistakes. The fifth is a lifecycle mistake. None is particularly exotic, which is probably why they're documented in the first place.&lt;/p&gt;

&lt;p&gt;The interesting part is that all five can be caught before the experiment starts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put the experiment in a file
&lt;/h2&gt;

&lt;p&gt;I didn't want the experiment to live only as a form in a dashboard.&lt;/p&gt;

&lt;p&gt;A dashboard form is useful for creating something quickly, but the experiment definition should also be reviewable, versioned, and reproducible. It should be something you can put in a pull request and understand without clicking through a bunch of fields.&lt;/p&gt;

&lt;p&gt;So Trial uses a YAML protocol:&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;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;trial/v1&lt;/span&gt;

&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pricing-billing-default&lt;/span&gt;

&lt;span class="na"&gt;hypothesis&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="s"&gt;Defaulting the pricing table to annual billing will increase checkout starts&lt;/span&gt;
  &lt;span class="s"&gt;by at least 10% relative to a monthly default, within two weeks, without&lt;/span&gt;
  &lt;span class="s"&gt;increasing the share of visitors who switch away from the default.&lt;/span&gt;

&lt;span class="na"&gt;flag&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pricing_billing_default&lt;/span&gt;
  &lt;span class="na"&gt;control&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;monthly&lt;/span&gt;
  &lt;span class="na"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;annual_first&lt;/span&gt;
      &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;annual&lt;/span&gt;
      &lt;span class="na"&gt;allocation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;

&lt;span class="na"&gt;metric&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;checkout_started&lt;/span&gt;
  &lt;span class="na"&gt;event&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;checkout_started&lt;/span&gt;
  &lt;span class="na"&gt;aggregation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;occurrence&lt;/span&gt;
  &lt;span class="na"&gt;direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;up&lt;/span&gt;

&lt;span class="na"&gt;guardrails&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;billing_switched_away&lt;/span&gt;
    &lt;span class="na"&gt;event&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;billing_switched_away&lt;/span&gt;
    &lt;span class="na"&gt;direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;not_increase&lt;/span&gt;

&lt;span class="na"&gt;decision&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;min_chance_to_win&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.95&lt;/span&gt;
  &lt;span class="na"&gt;min_exposures_per_arm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;
  &lt;span class="na"&gt;require_guardrails_clear&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a trimmed example of the protocol in the repository.&lt;/p&gt;

&lt;p&gt;The file defines the hypothesis, flag, variations, metric, guardrails, and decision requirements. It's the experiment's source of truth.&lt;/p&gt;

&lt;p&gt;It can be reviewed in a pull request. Changes show up as normal diffs. And the protocol gets a hash.&lt;/p&gt;

&lt;p&gt;That hash matters.&lt;/p&gt;

&lt;p&gt;Once traffic starts, changing a variation key or allocation should not silently turn the experiment into a different experiment. Trial ties approval to the exact protocol hash. Change the file, and the existing approval no longer matches. Downstream actions need a fresh review.&lt;/p&gt;

&lt;p&gt;The experiment can't quietly change underneath the traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scan the actual application code
&lt;/h2&gt;

&lt;p&gt;A protocol can say that the metric is &lt;code&gt;checkout_started&lt;/code&gt;. That doesn't mean the application actually emits it.&lt;/p&gt;

&lt;p&gt;This is where I wanted Trial to do more than validate YAML.&lt;/p&gt;

&lt;p&gt;The linter scans application source and checks whether the code really reads the flag and emits the event defined in the protocol.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ trial plan experiments/pricing-billing-default.yaml

  ✖ flag  no code reads the flag "pricing_billing_default"
      the flag exists but nothing renders it, so nobody is exposed
  ✖ metric checkout_started  no code emits the event "checkout_started"
      the metric will stay at zero and the experiment will never conclude

  2 errors · 1 warning
  plan blocked — fix the errors above
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This check takes around 80 milliseconds. The failure it prevents might otherwise take days to discover.&lt;/p&gt;

&lt;p&gt;I also found a bug in my own linter while building this.&lt;/p&gt;

&lt;p&gt;The first version searched for the event name anywhere in the source file. That included comments.&lt;/p&gt;

&lt;p&gt;So a comment like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// the metric is checkout_started&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;was enough to satisfy the check, even if the application never emitted the event.&lt;/p&gt;

&lt;p&gt;That's a pretty bad property for a tool that's supposed to catch exactly this kind of mistake.&lt;/p&gt;

&lt;p&gt;I fixed it by stripping comments before matching.&lt;/p&gt;

&lt;p&gt;A check that can be satisfied by prose isn't really a check. I think that's worth remembering when building static analysis tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  A winning result can still be a reason to refuse
&lt;/h2&gt;

&lt;p&gt;Catching configuration errors is one half of the problem.&lt;/p&gt;

&lt;p&gt;The other half is making sure a result doesn't get promoted just because the primary metric looks good.&lt;/p&gt;

&lt;p&gt;Here's a guardrail failure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ trial promote --check

  not promotable  pricing-billing-default
    · guardrail billing_switched_away rose 3.10% vs 0.00% on control
    · win 97.5%  lift +31.2%
    · evidence running · as of 2026-11-28T19:49:34.617129Z

$ echo $?
1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The experiment has a 97.5% chance to win and a 31.2% lift.&lt;/p&gt;

&lt;p&gt;Still refused.&lt;/p&gt;

&lt;p&gt;The guardrail moved, so the result isn't promotable.&lt;/p&gt;

&lt;p&gt;This is the entire argument for guardrails in one output. You can improve the metric you're watching while making something else worse. Shipping based on the lift alone is an easy way to celebrate the wrong outcome.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;--check&lt;/code&gt; runs the same decision logic CI uses, but it only makes GET requests. It cannot flip a flag or modify the experiment. It exits with code &lt;code&gt;1&lt;/code&gt; when the result isn't promotable.&lt;/p&gt;

&lt;p&gt;That distinction is important. CI should be able to ask "may we ship this?" without having the ability to ship it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened when I ran the experiment
&lt;/h2&gt;

&lt;p&gt;I also wanted to test the full lifecycle, not just individual checks.&lt;/p&gt;

&lt;p&gt;The first conclusive readout came back with a 90.2% chance to win. That was below the configured 95% threshold, so Trial refused to promote it. The gate refused at that stage three times, with 14,000 exposures.&lt;/p&gt;

&lt;p&gt;Here's one of those refusal records:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"ts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-27T10:25:43.568Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"actor"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"agent"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"readout"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"pricing-billing-default"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"decision"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"refused"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"reason"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"chance to win 90.2% is below the 95% threshold"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"detail"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"chanceToWin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.9024316147662585&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"lift"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.10792404930051754&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"exposures"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;14000&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;More traffic arrived. The final readout looked like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  enrolled  24,001  control 12,001  annual_first 12,000

  role   metric                 control  variant    lift       95% CI    win
  goal   checkout_started         4.36%    5.23%  +20.1%  6.5 … 33.7%  99.8%
  guard  billing_switched_away    0.00%    0.15%       —            —  clear

  SRM p=0.995 — split looks healthy · computed from exposure counts

  SHIP  annual_first beats control
  chance to win 99.8%  ·  lift +20.1%
  95% CI 6.5% … 33.7%
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things worth being very clear about here.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, the traffic was synthetic.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I drove 24,000 generated identities through the real SDK against a real Flagsmith instance, plus one manual visit. The ground truth was set to an 18% lift by construction.&lt;/p&gt;

&lt;p&gt;Trial recovered a 20.1% lift, with a confidence interval that contains the planted 18%.&lt;/p&gt;

&lt;p&gt;That's useful evidence that the pipeline can measure a known effect end to end. It is not evidence that defaulting a real pricing table to annual billing will increase checkout starts by 20.1%. I haven't tested that with real customers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, the result does not establish a lift of at least 10%.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The point estimate is +20.1%, against a hypothesis targeting at least 10%.&lt;/p&gt;

&lt;p&gt;But the lower bound of the 95% confidence interval is +6.5%.&lt;/p&gt;

&lt;p&gt;So if the question is "have we shown that the lift is at least 10%?", the answer is no.&lt;/p&gt;

&lt;p&gt;The configured decision rule requires a 95% chance to win. It does not require the lower confidence bound to exceed 10%. That's why the experiment can return &lt;code&gt;SHIP&lt;/code&gt; while the evidence still doesn't establish the full hypothesis.&lt;/p&gt;

&lt;p&gt;I wanted to call this out because reporting the point estimate as proof of a 10% minimum effect would be exactly the kind of overclaim that a tool like Trial should help prevent.&lt;/p&gt;

&lt;p&gt;There's another detail I cared about: the readout doesn't just trust the numbers returned by the statistics engine.&lt;/p&gt;

&lt;p&gt;Trial recomputes sample-ratio mismatch from the raw exposure counts. The engine also returns per-variant &lt;code&gt;n&lt;/code&gt;, &lt;code&gt;sum&lt;/code&gt;, and &lt;code&gt;sum_squares&lt;/code&gt; alongside its inference, so lift can be independently recomputed.&lt;/p&gt;

&lt;p&gt;Being able to check the statistics engine instead of just believing it is a property worth asking for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why an agent shouldn't be trusted to make the decision
&lt;/h2&gt;

&lt;p&gt;I built Trial with agent-driven operation in mind.&lt;/p&gt;

&lt;p&gt;An agent that can create an experiment can also create a broken one. And it can sound equally confident either way.&lt;/p&gt;

&lt;p&gt;I didn't want the safety of the experiment to depend on whether an agent remembered every rule or interpreted a prompt correctly.&lt;/p&gt;

&lt;p&gt;So the protocol and the tool enforce the boundaries:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The protocol is validated against application source before resources are created.&lt;/li&gt;
&lt;li&gt;Its hash binds approval to the exact experiment definition.&lt;/li&gt;
&lt;li&gt;The decision is computed from warehouse evidence, not asserted in prose.&lt;/li&gt;
&lt;li&gt;Writes require explicit &lt;code&gt;y/N&lt;/code&gt; confirmation.&lt;/li&gt;
&lt;li&gt;Refusals are recorded in an append-only audit log with the reason.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reads are free. Writes are gated.&lt;/p&gt;

&lt;p&gt;The agent can't retry a refusal by lowering the threshold or deleting a guardrail. That's explicitly forbidden by the skill's contract.&lt;/p&gt;

&lt;p&gt;Locks are also scoped per environment, so an operation against Development cannot accidentally touch Production.&lt;/p&gt;

&lt;p&gt;The agent's job is to operate the tool. It isn't asked to be trusted for the statistics.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I wish the API made easier
&lt;/h2&gt;

&lt;p&gt;While building against Flagsmith's experimentation endpoints, I ran into a few sharp edges. These are things I encountered during implementation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;PATCH .../mv-options/&amp;lt;id&amp;gt;/&lt;/code&gt; returned &lt;strong&gt;500 with &lt;code&gt;KeyError: 'feature'&lt;/code&gt;&lt;/strong&gt;. A partial update effectively required a full &lt;code&gt;PUT&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Hitting an environment path without the &lt;code&gt;/api/v1&lt;/code&gt; prefix returned the SPA's HTML instead of a 404. To a program, that can look like a successful response containing data.&lt;/li&gt;
&lt;li&gt;An environment addressed by numeric ID returned &lt;strong&gt;403&lt;/strong&gt;, even with a credential that was admin with the environment key.&lt;/li&gt;
&lt;li&gt;Finishing an experiment required &lt;code&gt;rollout_decision&lt;/code&gt; and &lt;code&gt;rollout_variant&lt;/code&gt;. But &lt;code&gt;rollout_decision&lt;/code&gt; was a read-only choice field with no choices listed. Values such as &lt;code&gt;control&lt;/code&gt;, &lt;code&gt;variant&lt;/code&gt;, and &lt;code&gt;disable&lt;/code&gt; were only discoverable in the source.&lt;/li&gt;
&lt;li&gt;Results refresh was capped at once every five minutes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A few things I'd like to see improved:&lt;/p&gt;

&lt;p&gt;An experiments command group in the CLI (&lt;code&gt;create&lt;/code&gt;, &lt;code&gt;get&lt;/code&gt;, &lt;code&gt;results&lt;/code&gt;, &lt;code&gt;complete --rollout winner&lt;/code&gt;) would remove the need to drop to raw HTTP for common operations.&lt;/p&gt;

&lt;p&gt;Variation keys should be required at creation time. And a &lt;code&gt;--json&lt;/code&gt; validation mode should identify the broken variation, metric, or event binding before any traffic moves.&lt;/p&gt;

&lt;p&gt;These aren't reasons not to use the platform. They're the things I ran into while trying to make the workflow reliable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five rules worth stealing
&lt;/h2&gt;

&lt;p&gt;The useful parts of this project aren't specific to Flagsmith.&lt;/p&gt;

&lt;p&gt;If you're building experiments on another feature-flag platform, the same principles apply:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Validate metric names against application code, not just config.&lt;/strong&gt; And strip comments first. A regex over prose will lie to you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hash the experiment protocol.&lt;/strong&gt; Approval should be tied to a document, not just to a moment in time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separate the read-only gate from the write.&lt;/strong&gt; One command should answer "may we ship?" A different command should actually ship it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Record refusals with reasons.&lt;/strong&gt; "It said no" isn't much evidence. "It said no because the guardrail moved from 0.00% to 3.10%" is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put the caveat next to the result.&lt;/strong&gt; If the lower confidence bound doesn't clear the target, that is part of the finding, not a footnote.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's what I wanted Trial to demonstrate: an experiment should be something you can inspect, validate, reproduce, and refuse to ship.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Trial is MIT-licensed and runs against self-hosted Flagsmith using Docker Compose.&lt;/p&gt;

&lt;p&gt;The setup uses the open-source Flagsmith image with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;EXPERIMENTATION_ENABLED=true
USE_POSTGRES_FOR_ANALYTICS=true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Along with a task processor and Postgres.&lt;/p&gt;

&lt;p&gt;Putting events in Flagsmith's own database made local experimentation a roughly three-minute setup for me, rather than a ClickHouse afternoon.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/shreepalgoyal/trial-flagsmith-experimentation" rel="noopener noreferrer"&gt;github.com/shreepalgoyal/trial-flagsmith-experimentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo:&lt;/strong&gt; &lt;a href="https://www.youtube.com/watch?v=m2Q8XyiY3n0" rel="noopener noreferrer"&gt;Watch the Trial demo&lt;/a&gt; — the workflow is built and demonstrated entirely in code, not through a screen recording.&lt;/p&gt;

&lt;p&gt;There are 109 tests in the project, all passing at the time of writing.&lt;/p&gt;

&lt;p&gt;The experiment discussed here is in the repository, protocol and all. The synthetic traffic, the refusals, and the final readout are there too.&lt;/p&gt;

&lt;p&gt;I'd rather have someone inspect the protocol and reproduce the numbers than take my word for them.&lt;/p&gt;

</description>
      <category>featureflags</category>
      <category>abtesting</category>
      <category>devtools</category>
      <category>node</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Shreepal Goyal</dc:creator>
      <pubDate>Sun, 29 Nov 2026 17:06:46 +0000</pubDate>
      <link>https://dev.to/shreepalgoyal/-3j</link>
      <guid>https://dev.to/shreepalgoyal/-3j</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/prxmy/we-built-an-ab-testing-agent-you-can-text-and-taught-it-not-to-overclaim-5fk2" class="crayons-story__hidden-navigation-link"&gt;We built an A/B testing agent you can text, and taught it not to overclaim&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/prxmy" class="crayons-avatar  crayons-avatar--l  "&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%2Fuser%2Fprofile_image%2F4171084%2Fcdc4e79a-a94d-4a2f-9b46-a0206cf04a55.jpg" alt="prxmy profile" class="crayons-avatar__image" width="460" height="460"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/prxmy" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Prakhar Gupta
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Prakhar Gupta
                
                
              
              &lt;div id="story-author-preview-content-5144825" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/prxmy" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F4171084%2Fcdc4e79a-a94d-4a2f-9b46-a0206cf04a55.jpg" class="crayons-avatar__image" alt="" width="460" height="460"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Prakhar Gupta&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/prxmy/we-built-an-ab-testing-agent-you-can-text-and-taught-it-not-to-overclaim-5fk2" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 29&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/prxmy/we-built-an-ab-testing-agent-you-can-text-and-taught-it-not-to-overclaim-5fk2" id="article-link-5144825"&gt;
          We built an A/B testing agent you can text, and taught it not to overclaim
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/hackathon"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;hackathon&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/featureflags"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;featureflags&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/prxmy/we-built-an-ab-testing-agent-you-can-text-and-taught-it-not-to-overclaim-5fk2" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;1&lt;span class="hidden s:inline"&gt;&amp;nbsp;reaction&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/prxmy/we-built-an-ab-testing-agent-you-can-text-and-taught-it-not-to-overclaim-5fk2#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            12 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

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


&lt;/div&gt;


</description>
    </item>
    <item>
      <title>How I Built BidRoom: Five AI Agents, One Bid, and a Human Who Has to Sign</title>
      <dc:creator>Shreepal Goyal</dc:creator>
      <pubDate>Sat, 07 Nov 2026 18:57:40 +0000</pubDate>
      <link>https://dev.to/shreepalgoyal/how-i-built-bidroom-five-ai-agents-one-bid-and-a-human-who-has-to-sign-3io9</link>
      <guid>https://dev.to/shreepalgoyal/how-i-built-bidroom-five-ai-agents-one-bid-and-a-human-who-has-to-sign-3io9</guid>
      <description>&lt;p&gt;&lt;em&gt;A public-sector RFP is not a writing problem. It's an evidence problem.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo:&lt;/strong&gt; &lt;a href="https://youtu.be/0KTzrEUJdoU" rel="noopener noreferrer"&gt;2:04 walkthrough&lt;/a&gt; · &lt;strong&gt;Code:&lt;/strong&gt; &lt;a href="https://github.com/shreepalgoyal/bidroom" rel="noopener noreferrer"&gt;github.com/shreepalgoyal/bidroom&lt;/a&gt; · &lt;strong&gt;Signed report:&lt;/strong&gt; &lt;a href="https://github.com/shreepalgoyal/bidroom/blob/main/docs/sample-report.html" rel="noopener noreferrer"&gt;View sample report&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The failure mode nobody demos
&lt;/h2&gt;

&lt;p&gt;Every AI writing tool looks impressive when you give it an RFP.&lt;/p&gt;

&lt;p&gt;Feed it a 90-page tender, and it will return fluent, confident prose in seconds.&lt;/p&gt;

&lt;p&gt;That's exactly the problem.&lt;/p&gt;

&lt;p&gt;A bid team has four weeks, hundreds of requirements, and a library of case studies that may or may not prove what the sales team wants to claim.&lt;/p&gt;

&lt;p&gt;The dangerous failure isn't a missing answer. It's an answer that sounds true, cites the wrong evidence, and gets discovered after the contract is awarded.&lt;/p&gt;

&lt;p&gt;The bid is lost, the contract is challenged, and nobody can reconstruct why the claim was made in the first place.&lt;/p&gt;

&lt;p&gt;Generic AI makes this worse because it optimizes for prose rather than proof.&lt;/p&gt;

&lt;p&gt;A language model will happily turn a SOC 2 report into an answer for an ISO/IEC 27001 requirement because both are "security certifications."&lt;/p&gt;

&lt;p&gt;They are not the same thing.&lt;/p&gt;

&lt;p&gt;So I built BidRoom around one rule:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Every compliance claim must cite an &lt;strong&gt;approved&lt;/strong&gt; evidence record. Agents can propose evidence, but only a named human can approve it, and only the bid lead can sign the submission.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That single constraint changes the shape of the entire workflow.&lt;/p&gt;

&lt;p&gt;Gaps stop being embarrassing and become first-class objects with owners. Approval stops being a chat reaction and becomes an auditable action.&lt;/p&gt;

&lt;p&gt;And the final artifact isn't just a document. It's a compliance matrix that a team can actually defend during a bid review.&lt;/p&gt;

&lt;h2&gt;
  
  
  The room
&lt;/h2&gt;

&lt;p&gt;BidRoom is built on &lt;a href="https://www.switchagents.ai" rel="noopener noreferrer"&gt;Switch&lt;/a&gt;, with OpenCode as the agent runtime and the Mattermost rooms provisioned by Switch as the shared workspace.&lt;/p&gt;

&lt;p&gt;One Switch template (&lt;code&gt;switch/bidroom.template.yaml&lt;/code&gt;) creates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Five agents:&lt;/strong&gt; &lt;code&gt;scout&lt;/code&gt;, &lt;code&gt;matcher&lt;/code&gt;, &lt;code&gt;evidence&lt;/code&gt;, &lt;code&gt;writer&lt;/code&gt;, and &lt;code&gt;redteam&lt;/code&gt;, each with its own role prompt and tool access.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two linked rooms:&lt;/strong&gt; &lt;code&gt;Bid: Northwind City Council&lt;/code&gt; for the client workflow, and &lt;code&gt;northwind-evidence-desk&lt;/code&gt; for evidence review.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The runbook, relay rules, and kickoff message&lt;/strong&gt;, so the room explains itself to a new team member.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The agents share one checkout, so &lt;code&gt;.bidroom/&lt;/code&gt; on disk is the only shared state.&lt;/p&gt;

&lt;p&gt;Switch provides the identities, rooms, and relay. Without it, there is no room, no agent identity, and no place for the human approval gate to live.&lt;/p&gt;

&lt;p&gt;The relay is explicit and one-directional:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;scout → matcher → human approval → writer → redteam → human sign-off
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Agents never approve evidence, and they never sign submissions.&lt;/p&gt;

&lt;p&gt;The runbook makes this clear, and the CLI enforces it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pipeline
&lt;/h2&gt;

&lt;p&gt;Each agent has a specific responsibility.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Scout: Understand the RFP
&lt;/h3&gt;

&lt;p&gt;Scout reads the RFP and extracts the requirement register.&lt;/p&gt;

&lt;p&gt;For the bundled Northwind City Council tender (&lt;code&gt;NCC-2026-114&lt;/code&gt;), which covers a resident services portal, that means identifying 77 requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;65 mandatory requirements&lt;/li&gt;
&lt;li&gt;12 scored requirements&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It also identifies the five most difficult mandatory requirements, helping the bid lead understand where the team needs to spend its time.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Matcher: Find relevant evidence
&lt;/h3&gt;

&lt;p&gt;Matcher scores every requirement against the evidence library.&lt;/p&gt;

&lt;p&gt;The initial matching approach uses token overlap across requirement text, tags, and categories, with additional &lt;strong&gt;qualifier penalties&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For example, if a requirement explicitly names a standard or product such as ISO/IEC 27001, IDOX, IPv6, WCAG, PSBAR, or Open Government Licence, the score is penalized when the evidence record doesn't reference that specific qualifier.&lt;/p&gt;

&lt;p&gt;This is what prevents a SOC 2 record from being treated as proof of ISO/IEC 27001 compliance.&lt;/p&gt;

&lt;p&gt;A similar-sounding claim isn't automatically relevant evidence.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Evidence: Turn gaps into reviewable records
&lt;/h3&gt;

&lt;p&gt;Evidence turns identified gaps into Markdown records with frontmatter containing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ID&lt;/li&gt;
&lt;li&gt;Claim&lt;/li&gt;
&lt;li&gt;Tags&lt;/li&gt;
&lt;li&gt;Categories&lt;/li&gt;
&lt;li&gt;Owner&lt;/li&gt;
&lt;li&gt;Last verified date&lt;/li&gt;
&lt;li&gt;Source&lt;/li&gt;
&lt;li&gt;Approval state&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It then posts the approval queue to the evidence review room.&lt;/p&gt;

&lt;p&gt;This is the only agent that can add records to the evidence library, and it can only create them in an &lt;strong&gt;unapproved&lt;/strong&gt; state.&lt;/p&gt;

&lt;p&gt;The agent can propose evidence. It cannot approve its own proposal.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Writer: Draft from approved evidence
&lt;/h3&gt;

&lt;p&gt;Writer creates the bid response using approved evidence records only.&lt;/p&gt;

&lt;p&gt;Every claim includes a citation.&lt;/p&gt;

&lt;p&gt;If evidence is missing, the gap remains visible with an owner and a next action.&lt;/p&gt;

&lt;p&gt;No record, no sentence.&lt;/p&gt;

&lt;p&gt;This is an important distinction: the writer isn't allowed to invent a convincing answer just because the requirement needs one.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Redteam: Challenge the draft
&lt;/h3&gt;

&lt;p&gt;Redteam reviews the generated draft against the evidence library.&lt;/p&gt;

&lt;p&gt;Unsupported claims become blockers rather than mere writing suggestions.&lt;/p&gt;

&lt;p&gt;It also calculates a readiness score, helping the bid lead distinguish between:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"The writing looks good."&lt;/li&gt;
&lt;li&gt;"The submission is actually defensible."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those are two very different things.&lt;/p&gt;

&lt;h2&gt;
  
  
  The human gate is code, not a prompt
&lt;/h2&gt;

&lt;p&gt;This is the part I cared about most.&lt;/p&gt;

&lt;p&gt;I didn't want human approval to be something an agent could simulate by writing "Approved" in a chat message.&lt;/p&gt;

&lt;p&gt;Approval is a CLI command requiring a named person:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bidroom evidence approve E-DEL-09 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--by&lt;/span&gt; &lt;span class="s2"&gt;"Priya Raman"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--note&lt;/span&gt; &lt;span class="s2"&gt;"Checked Delivery report v4 section 3: top-20 transactions complete end to end."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sign-off is a separate command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bidroom signoff &lt;span class="nt"&gt;--by&lt;/span&gt; &lt;span class="s2"&gt;"Priya Raman"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--note&lt;/span&gt; &lt;span class="s2"&gt;"Reviewed the matrix, draft and red-team findings."&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--accept-gaps&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;--accept-gaps&lt;/code&gt; option isn't a bypass.&lt;/p&gt;

&lt;p&gt;It requires a written reason, and the final report lists every accepted gap by ID.&lt;/p&gt;

&lt;p&gt;The signature also pins the approved evidence library using a SHA-256 digest.&lt;/p&gt;

&lt;p&gt;If someone edits an approved record afterward, the report marks the signature as &lt;strong&gt;stale&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;There's another deliberate restriction: the MCP server exposes no approval or sign-off tool.&lt;/p&gt;

&lt;p&gt;That means an agent cannot approve its own evidence, even if someone prompts it to try.&lt;/p&gt;

&lt;p&gt;That's the entire product thesis:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The interesting work isn't generating text. It's deciding what counts as proof, and who is allowed to say so.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers
&lt;/h2&gt;

&lt;p&gt;The bundled example uses a synthetic but realistic UK local-government RFP.&lt;/p&gt;

&lt;p&gt;It ships with 54 evidence records.&lt;/p&gt;

&lt;p&gt;Here's what happened after six human approvals:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Baseline&lt;/th&gt;
&lt;th&gt;After six human approvals&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Compliant&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;57&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Partial&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Needs approval&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gap&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;12&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Coverage&lt;/td&gt;
&lt;td&gt;68.8%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;77.9%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Approved evidence&lt;/td&gt;
&lt;td&gt;46&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;52&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Readiness&lt;/td&gt;
&lt;td&gt;55/100&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;70/100&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blockers&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The six records that closed gaps were actual reviewable files covering:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The top-20 transactions journey.&lt;/li&gt;
&lt;li&gt;The single digital front door.&lt;/li&gt;
&lt;li&gt;The IDOX Uniform integration.&lt;/li&gt;
&lt;li&gt;A 60k-user load test.&lt;/li&gt;
&lt;li&gt;The assisted-digital route.&lt;/li&gt;
&lt;li&gt;The open-data extract.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;They were imported as &lt;strong&gt;unapproved&lt;/strong&gt; records on purpose, so the human approval step would be visible.&lt;/p&gt;

&lt;p&gt;Two records remained unapproved as well:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The AI search pilot was still in its sandbox stage.&lt;/li&gt;
&lt;li&gt;The delegated-access consent wording was still under legal review.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A demo that approves everything isn't a demonstration of an approval gate.&lt;/p&gt;

&lt;p&gt;Eight mandatory gaps also remain, each with an owner and a disclosed next step. These include ISO/IEC 27001 certification, UK GDPR/DPA/PSBAR evidence, IPv6, digital-skills workshops, gainshare, and submission or commercial items the council hasn't answered yet.&lt;/p&gt;

&lt;p&gt;The report shows them.&lt;/p&gt;

&lt;p&gt;That's the point.&lt;/p&gt;

&lt;h2&gt;
  
  
  What surprised me
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Qualifier penalties did more for trust than any prompt
&lt;/h3&gt;

&lt;p&gt;The first version of the matcher was too generous.&lt;/p&gt;

&lt;p&gt;It matched "security certification" to "security certification" and produced a beautiful but incorrect compliance matrix.&lt;/p&gt;

&lt;p&gt;Adding named-standard penalties changed that.&lt;/p&gt;

&lt;p&gt;The system became more cautious about what it considered relevant evidence, and that made the output much more useful.&lt;/p&gt;

&lt;h3&gt;
  
  
  Gaps are a feature, not a failure state
&lt;/h3&gt;

&lt;p&gt;Initially, gaps looked like something the system needed to eliminate.&lt;/p&gt;

&lt;p&gt;But once every gap had an owner and a next action, the team's attention shifted away from arguing about prose and toward closing evidence gaps.&lt;/p&gt;

&lt;p&gt;The compliance matrix became the actual product.&lt;/p&gt;

&lt;h3&gt;
  
  
  The human gate needs a scripted replay
&lt;/h3&gt;

&lt;p&gt;Judges and reviewers shouldn't have to manually approve six records just to see the final signed result.&lt;/p&gt;

&lt;p&gt;So I added:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bidroom demo &lt;span class="nt"&gt;--full&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It replays the human's part of the workflow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Imports the six evidence records.&lt;/li&gt;
&lt;li&gt;Records the approvals by name.&lt;/li&gt;
&lt;li&gt;Generates the draft.&lt;/li&gt;
&lt;li&gt;Runs the red-team review.&lt;/li&gt;
&lt;li&gt;Completes sign-off.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It produces the same result: 57 compliant, 6 partial, 2 needing approval, 12 gaps, 77.9% coverage, 70/100 readiness, and zero blockers.&lt;/p&gt;

&lt;p&gt;The approval gate is still enforced through the same CLI command.&lt;/p&gt;

&lt;p&gt;The demo just makes the entire process reproducible with one command.&lt;/p&gt;

&lt;h3&gt;
  
  
  The agents are most useful before the prose
&lt;/h3&gt;

&lt;p&gt;Scout and Matcher performed work that would otherwise have taken me around two days.&lt;/p&gt;

&lt;p&gt;Writer was fast, but it was only trustworthy because the evidence layer existed first.&lt;/p&gt;

&lt;p&gt;That was probably my biggest takeaway from building BidRoom.&lt;/p&gt;

&lt;p&gt;The quality of AI-generated writing matters, but the quality of the evidence behind it matters much more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it yourself
&lt;/h2&gt;

&lt;p&gt;You can clone the repository and run the bundled example locally.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/shreepalgoyal/bidroom.git
&lt;span class="nb"&gt;cd &lt;/span&gt;bidroom

python3 &lt;span class="nt"&gt;-m&lt;/span&gt; venv .venv
.venv/bin/pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s2"&gt;".[dev]"&lt;/span&gt;

&lt;span class="c"&gt;# Full replay: baseline, six human approvals, draft, red team, sign-off&lt;/span&gt;
.venv/bin/bidroom demo &lt;span class="nt"&gt;--out&lt;/span&gt; demo-output &lt;span class="nt"&gt;--force&lt;/span&gt; &lt;span class="nt"&gt;--full&lt;/span&gt;

&lt;span class="c"&gt;# Baseline only&lt;/span&gt;
.venv/bin/bidroom demo &lt;span class="nt"&gt;--out&lt;/span&gt; demo-baseline &lt;span class="nt"&gt;--force&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To run the actual multi-agent room:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Import &lt;code&gt;switch/bidroom.template.yaml&lt;/code&gt; in Switch Console → Templates.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;directory&lt;/code&gt; to the shared checkout.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;repo_url&lt;/code&gt; to your fork.&lt;/li&gt;
&lt;li&gt;Create the group.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The complete setup instructions, including the OpenCode version note and Mattermost troubleshooting, are in &lt;a href="https://github.com/shreepalgoyal/bidroom/blob/main/docs/SETUP.md" rel="noopener noreferrer"&gt;&lt;code&gt;docs/SETUP.md&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The project currently includes &lt;strong&gt;19 tests&lt;/strong&gt;, including an end-to-end test that runs the full demo and verifies the signed result.&lt;/p&gt;

&lt;p&gt;No API key is required to run the bundled example.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would build next
&lt;/h2&gt;

&lt;p&gt;There are still several areas I'd like to improve.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Evidence expiry&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;last_verified&lt;/code&gt; field already exists, but nothing currently forces a re-check before a bid.&lt;/p&gt;

&lt;p&gt;A stale evidence library should block sign-off, not just generate a warning.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Per-claim provenance&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The report currently pins the entire approved evidence library with a digest.&lt;/p&gt;

&lt;p&gt;The next step would be a per-claim hash, allowing reviewers to trace an individual sentence back to its exact evidence record.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Real RFP ingestion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The bundled example uses Markdown.&lt;/p&gt;

&lt;p&gt;Real public-sector tenders arrive as PDFs, spreadsheets, and web portals. Building a reliable ingestion pipeline for those formats is one of the next major challenges.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Team roles&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One bid lead is enough for a demo.&lt;/p&gt;

&lt;p&gt;Real bids involve security reviewers, commercial reviewers, delivery leads, and other stakeholders.&lt;/p&gt;

&lt;p&gt;The approval gate should understand these different responsibilities instead of treating every approval as interchangeable.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;BidRoom was built for &lt;strong&gt;Flip the Switch - Track 01: Best Business Workflow&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The project explores a simple idea: AI agents can do a lot of the work involved in preparing a complex bid, but they shouldn't be the authority on whether a claim is true or whether a submission is ready.&lt;/p&gt;

&lt;p&gt;Five agents, a real compliance matrix, a signed report, and a human who has to mean it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch the &lt;a href="https://youtu.be/0KTzrEUJdoU" rel="noopener noreferrer"&gt;2:04 walkthrough&lt;/a&gt;&lt;/strong&gt; or explore the &lt;a href="https://github.com/shreepalgoyal/bidroom" rel="noopener noreferrer"&gt;source code on GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'd be interested to hear how others are approaching human approval, evidence traceability, and reliable multi-agent workflows.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
