<?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: Dan G.</title>
    <description>The latest articles on DEV Community by Dan G. (@masora).</description>
    <link>https://dev.to/masora</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%2F4227424%2F6c000307-f003-4872-b11a-11a372d8357a.png</url>
      <title>DEV Community: Dan G.</title>
      <link>https://dev.to/masora</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/masora"/>
    <language>en</language>
    <item>
      <title>Two AI-Generated PostgreSQL TLS Patches. One Passed. One Broke Startup.</title>
      <dc:creator>Dan G.</dc:creator>
      <pubDate>Thu, 05 Nov 2026 03:02:29 +0000</pubDate>
      <link>https://dev.to/masora/two-ai-generated-postgresql-tls-patches-one-passed-one-broke-startup-3ej5</link>
      <guid>https://dev.to/masora/two-ai-generated-postgresql-tls-patches-one-passed-one-broke-startup-3ej5</guid>
      <description>&lt;p&gt;What happens when an AI coding agent proposes a change that works on a modern system but breaks compatibility with an older one?&lt;/p&gt;

&lt;p&gt;That's the question behind Sha'ar by Masora, an experimental verification system developed for the Meta Global AI Developer Hackathon.&lt;/p&gt;

&lt;p&gt;The idea is simple:&lt;/p&gt;

&lt;p&gt;The agent proposes. A deterministic gate decides.&lt;/p&gt;

&lt;p&gt;The experiment&lt;/p&gt;

&lt;p&gt;The target was a real infrastructure problem: PostgreSQL's default TLS key-exchange groups.&lt;/p&gt;

&lt;p&gt;The objective was to introduce hybrid post-quantum key exchange using X25519MLKEM768, while preserving classical compatibility where required.&lt;/p&gt;

&lt;p&gt;Two Meta-powered models independently proposed patches:&lt;/p&gt;

&lt;p&gt;Muse Spark, through Meta's hosted Model API.&lt;/p&gt;

&lt;p&gt;Muse Spark Open, through Baseten.&lt;/p&gt;

&lt;p&gt;Instead of accepting a patch because a model generated it or because it looked correct, Sha'ar subjected each proposal to independently defined verification criteria.&lt;/p&gt;

&lt;p&gt;The result&lt;/p&gt;

&lt;p&gt;One proposal passed. The other failed.&lt;/p&gt;

&lt;p&gt;The hosted Muse Spark proposal satisfied all 21 mandatory checks.&lt;/p&gt;

&lt;p&gt;The Muse Spark Open proposal was rejected after exposing a compatibility failure: PostgreSQL could not start successfully when built against OpenSSL 3.0.&lt;/p&gt;

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

&lt;p&gt;A change can look reasonable, compile successfully in one environment, and still violate a requirement elsewhere.&lt;/p&gt;

&lt;p&gt;For security-sensitive infrastructure, successful code generation is not sufficient evidence of correctness.&lt;/p&gt;

&lt;p&gt;What the gate actually checks&lt;/p&gt;

&lt;p&gt;Sha'ar's deterministic verification workflow includes:&lt;/p&gt;

&lt;p&gt;Applying proposed patches against a pinned PostgreSQL source revision.&lt;/p&gt;

&lt;p&gt;Building against OpenSSL 3.6.3 and 3.0.22.&lt;/p&gt;

&lt;p&gt;Running the PostgreSQL regression suite, covering 239 tests.&lt;/p&gt;

&lt;p&gt;Observing real TLS handshakes rather than trusting generated descriptions.&lt;/p&gt;

&lt;p&gt;Evaluating 21 mandatory checks.&lt;/p&gt;

&lt;p&gt;Recording hash-chained evidence that can be independently inspected and verified.&lt;/p&gt;

&lt;p&gt;The acceptance decision is made by deterministic software, not by asking another language model whether the patch looks safe.&lt;/p&gt;

&lt;p&gt;Both saved proposals were subsequently reverified under the corrected gate without making additional model calls.&lt;/p&gt;

&lt;p&gt;Why this matters beyond TLS&lt;/p&gt;

&lt;p&gt;AI coding agents are increasingly capable of proposing substantial changes.&lt;/p&gt;

&lt;p&gt;But the question is not merely:&lt;/p&gt;

&lt;p&gt;Can an agent generate a plausible patch?&lt;/p&gt;

&lt;p&gt;It's:&lt;/p&gt;

&lt;p&gt;Can we establish, using independently checkable evidence, that the proposed change satisfies the requirements we actually care about?&lt;/p&gt;

&lt;p&gt;For this experiment, an older-library startup failure was enough to reject a proposal that might otherwise have appeared promising.&lt;/p&gt;

&lt;p&gt;The broader engineering principle is to separate proposal generation from acceptance authority.&lt;/p&gt;

&lt;p&gt;See the experiment&lt;/p&gt;

&lt;p&gt;🎥 Watch the 2:50 demonstration:&lt;br&gt;
&lt;a href="https://x.com/dg_zoskales/status/2118145938330181748" rel="noopener noreferrer"&gt;https://x.com/dg_zoskales/status/2118145938330181748&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Source code and verification evidence:&lt;br&gt;
&lt;a href="https://github.com/dguchie/shaar" rel="noopener noreferrer"&gt;https://github.com/dguchie/shaar&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sha'ar is an experimental prototype, not a production-ready autonomous repair system or a general proof that AI-generated code is safe.&lt;/p&gt;

&lt;p&gt;Its demonstrated result is specific: two model-generated proposals, explicit acceptance criteria, and independently inspectable outcomes.&lt;/p&gt;

&lt;p&gt;A question for the community&lt;/p&gt;

&lt;p&gt;If you were designing a deterministic gate for AI-generated infrastructure changes, what failure would you insist on testing before accepting a patch?&lt;/p&gt;

&lt;p&gt;Backward compatibility? Dependency drift? Security invariants? Something harder to capture?&lt;/p&gt;

&lt;p&gt;I'd be interested in the engineering community's perspective.&lt;/p&gt;

&lt;p&gt;Disclosure: This article was prepared with AI writing assistance. The technical claims refer to the project's published verification evidence.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>ai</category>
      <category>security</category>
      <category>postgres</category>
    </item>
  </channel>
</rss>
