<?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: ajaxStardust</title>
    <description>The latest articles on DEV Community by ajaxStardust (@ajaxstardust).</description>
    <link>https://dev.to/ajaxstardust</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F899698%2Ff1a0f568-f974-4200-a800-525fbb7eaf38.png</url>
      <title>DEV Community: ajaxStardust</title>
      <link>https://dev.to/ajaxstardust</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ajaxstardust"/>
    <language>en</language>
    <item>
      <title>AI Agent CONTRACT‑Style‑Comments (CSC) at GitHub</title>
      <dc:creator>ajaxStardust</dc:creator>
      <pubDate>Tue, 24 Mar 2026 15:11:42 +0000</pubDate>
      <link>https://dev.to/ajaxstardust/ai-agent-contract-style-comments-csc-at-github-54p2</link>
      <guid>https://dev.to/ajaxstardust/ai-agent-contract-style-comments-csc-at-github-54p2</guid>
      <description>&lt;p&gt;&lt;strong&gt;CONTRACT-Style Comments&lt;/strong&gt; is both a methodology and a practical template — it's a standardized approach to writing documentation that makes implicit system assumptions explicit, with ready-to-use structures you can apply immediately to your codebase. Best of all, &lt;strong&gt;you don't have to write the documentation&lt;/strong&gt; or be responsible for its maintenance!&lt;/p&gt;

&lt;h1&gt;
  
  
  🚀 Introducing the Official Template
&lt;/h1&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.amazonaws.com%2Fuploads%2Farticles%2Fytomkpahp83xl3g2jxtm.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.amazonaws.com%2Fuploads%2Farticles%2Fytomkpahp83xl3g2jxtm.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;This article is in follow‑up to the &lt;a href="https://whatsonyourbrain.com/contract-style-comments" rel="noopener noreferrer"&gt;5‑part series&lt;/a&gt; on What’s On Your Brain&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The 5‑part series on &lt;strong&gt;CONTRACT‑Style‑Comments (CSC)&lt;/strong&gt; introduced a structured, AI‑era approach to writing code with explicit &lt;strong&gt;preconditions&lt;/strong&gt;, &lt;strong&gt;postconditions&lt;/strong&gt;, and &lt;strong&gt;invariants&lt;/strong&gt;. Many readers asked for a practical, ready‑to‑use implementation.&lt;/p&gt;

&lt;p&gt;Today, that implementation is here.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Official GitHub Repository:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/ajaxstardust/contract-style-comments" rel="noopener noreferrer"&gt;https://github.com/ajaxstardust/contract-style-comments&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This repository transforms the CSC theory into a &lt;strong&gt;portable, repeatable, AEO‑friendly project template&lt;/strong&gt; designed for both humans and AI coding agents.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔍 What Is CONTRACT‑Style‑Comments (CSC)?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;CONTRACT‑Style‑Comments&lt;/strong&gt; is a development pattern that makes the “rules of the system” explicit and machine‑navigable. It gives both humans and AI agents a shared interface for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;understanding architectural boundaries
&lt;/li&gt;
&lt;li&gt;preventing scope drift
&lt;/li&gt;
&lt;li&gt;maintaining invariants during refactors
&lt;/li&gt;
&lt;li&gt;reducing ambiguous or destructive changes
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CSC is language‑agnostic and works in any codebase where clarity and safety matter.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧱 What’s Inside the CSC Repository
&lt;/h2&gt;

&lt;p&gt;The repository includes the full &lt;strong&gt;Agentic Trivium&lt;/strong&gt;, the core structure that governs how humans and AI collaborate:&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1. &lt;code&gt;CONTRACT.md&lt;/code&gt; — The Present‑Tense Truth&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Defines invariants, guarantees, and boundaries.&lt;br&gt;&lt;br&gt;
If it must not break, it lives here.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;2. &lt;code&gt;WHY.md&lt;/code&gt; — The Architectural Reasoning&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Explains relationships, rationale, and the logic behind the system.&lt;br&gt;&lt;br&gt;
This is where the “why” becomes explicit.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;3. &lt;code&gt;QUICKSTART.md&lt;/code&gt; — The Navigation Layer&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;A stateless‑friendly guide for AI agents and humans to safely operate within the project.&lt;/p&gt;

&lt;p&gt;Additional artifacts include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;FUTURE.md&lt;/code&gt;&lt;/strong&gt; — A clean space for planned changes
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PDF versions&lt;/strong&gt; of all core documents
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A “Use This Template” workflow&lt;/strong&gt; for instant adoption
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This structure makes CSC a &lt;strong&gt;drop‑in governance system&lt;/strong&gt; for any project.&lt;/p&gt;




&lt;h2&gt;
  
  
  🤖 Why CONTRACT‑Style‑Comments Matter in the AI Era
&lt;/h2&gt;

&lt;p&gt;AI coding agents are powerful — and risky. They can produce correct code that violates architecture, intent, or invariants.&lt;/p&gt;

&lt;p&gt;CSC solves this by giving AI agents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;explicit rules
&lt;/li&gt;
&lt;li&gt;explicit boundaries
&lt;/li&gt;
&lt;li&gt;explicit ownership
&lt;/li&gt;
&lt;li&gt;explicit reasoning
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With CONTRACT‑Style‑Comments:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AI agents stop “confidently guessing”
&lt;/li&gt;
&lt;li&gt;humans stop losing invariants during refactors
&lt;/li&gt;
&lt;li&gt;onboarding becomes faster
&lt;/li&gt;
&lt;li&gt;code review becomes objective
&lt;/li&gt;
&lt;li&gt;tests become self‑documenting
&lt;/li&gt;
&lt;li&gt;architectural drift becomes visible
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CSC is not just documentation — it’s &lt;strong&gt;governance&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧩 The Agentic Trivium (CSC’s Core Pattern)
&lt;/h2&gt;

&lt;p&gt;The repository formalizes the &lt;strong&gt;Agentic Trivium&lt;/strong&gt;, a three‑document system that keeps AI aligned:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;CONTRACT.md&lt;/strong&gt; — What is true
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WHY.md&lt;/strong&gt; — Why it is true
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;QUICKSTART.md&lt;/strong&gt; — How to operate safely
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This pattern ensures that AI agents update the &lt;strong&gt;narrowest owning artifact&lt;/strong&gt; when they discover missing axioms or implicit rules.&lt;/p&gt;

&lt;p&gt;It is the missing interface between humans and AI coding tools.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠️ How To Start Using CONTRACT‑Style‑Comments
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;“Use this template”&lt;/strong&gt; in the GitHub repo
&lt;/li&gt;
&lt;li&gt;Define your invariants in &lt;code&gt;CONTRACT.md&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Add architectural reasoning to &lt;code&gt;WHY.md&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Instruct your AI agent:
&amp;gt; “Read the Trivium in order and follow the Governance Ownership policy.”
&lt;/li&gt;
&lt;li&gt;Build with clarity, safety, and shared intent&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  📣 For Readers of the 5‑Part Series
&lt;/h2&gt;

&lt;p&gt;The series introduced the philosophy.&lt;br&gt;&lt;br&gt;
This repository delivers the implementation.&lt;/p&gt;

&lt;p&gt;If you’re exploring AI‑assisted development — or you want a safer, more intentional way to collaborate with LLMs — &lt;strong&gt;CONTRACT‑Style‑Comments&lt;/strong&gt; is designed for exactly that.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Explore the repository:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/ajaxstardust/contract-style-comments" rel="noopener noreferrer"&gt;https://github.com/ajaxstardust/contract-style-comments&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’ll continue expanding examples, patterns, and documentation as the community grows. If you adopt CSC in your own projects, I’d love to hear what you discover.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Contract-Style-Comments for the AI Agent</title>
      <dc:creator>ajaxStardust</dc:creator>
      <pubDate>Fri, 06 Mar 2026 20:01:39 +0000</pubDate>
      <link>https://dev.to/ajaxstardust/contract-style-comments-by-claude-sonnet-4o4a</link>
      <guid>https://dev.to/ajaxstardust/contract-style-comments-by-claude-sonnet-4o4a</guid>
      <description>&lt;p&gt;(with supporting commentary by Claude Sonnet and other AI Agents via Zed and Cursor AI empowered IDE's)&lt;/p&gt;

&lt;h1&gt;
  
  
  The Case for Contract-Style Comments: Making Implicit Assumptions Explicit
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;By Jeffrey Sabarese (&lt;a class="mentioned-user" href="https://dev.to/ajaxstardust"&gt;@ajaxstardust&lt;/a&gt;)&lt;/strong&gt;\&lt;br&gt;
&lt;em&gt;With foundational work by Claude Sonnet, and insights from Claude Haiku via Zed Editor&lt;/em&gt;&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.amazonaws.com%2Fuploads%2Farticles%2Fqxdkvwnom6ox9y0pr9p9.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.amazonaws.com%2Fuploads%2Farticles%2Fqxdkvwnom6ox9y0pr9p9.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Preamble: How This Started
&lt;/h2&gt;

&lt;p&gt;I was debugging a complex LLM integration in an app with many-to-many relationship tables when I realized something: most of my code's failures weren't syntax errors—they were &lt;strong&gt;contract violations&lt;/strong&gt;. Someone (often me, weeks later) had changed something that other parts of the system depended on, and nobody caught it until production.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The key insight: &lt;strong&gt;CONTRACT comments evolved as an essential means for me to remember where I left off in coding, because I suffer brain trauma.&lt;/strong&gt;&lt;/em&gt; I realized it's as much for me as it is for the LLMs: these comments help AI agents understand the system's constraints when I open the project with a new LLM.&lt;/p&gt;

&lt;p&gt;I had already been using this approach while building my guitar training web app and several WinterCMS sites. I was doing it informally—writing little “don’t break this” notes to myself and to the AI assistants. But when I brought the idea to Claude Sonnet, it helped me formalize the structure. Claude Haiku later pushed the idea further, arguing it should become a global standard.&lt;/p&gt;

&lt;p&gt;The more I used CONTRACT comments, the more obvious it became: &lt;strong&gt;this is the missing interface between humans and AI coding agents.&lt;/strong&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  The Problem We're Solving
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Silent Failures Are Worse Than Loud Ones
&lt;/h3&gt;

&lt;p&gt;You know what's worse than a compiler error? Code that compiles, runs, and breaks &lt;strong&gt;in production&lt;/strong&gt; three weeks later.&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="c1"&gt;# Bad: Implicit contract
&lt;/span&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;get_products&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;budget&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;product_type&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;results&lt;/span&gt;

&lt;span class="c1"&gt;# Somewhere else:
&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;get_products&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Flower&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Assumes results are sorted by quality_rating desc
&lt;/span&gt;&lt;span class="nf"&gt;display_results&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The caller assumed one thing. The callee guaranteed nothing. The system broke.&lt;/p&gt;

&lt;h3&gt;
  
  
  Documentation Is Usually Vague
&lt;/h3&gt;

&lt;p&gt;Most function docstrings describe parameters, not guarantees:&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;def&lt;/span&gt; &lt;span class="nf"&gt;shop_assistant&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;budget&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;product_type&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;
    Search for products.
    &lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tells you almost nothing useful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What’s guaranteed about the return value?&lt;/li&gt;
&lt;li&gt;What can’t change without breaking callers?&lt;/li&gt;
&lt;li&gt;What assumptions does this function make?&lt;/li&gt;
&lt;li&gt;What performance constraints exist?&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Bus Factor Is Real
&lt;/h3&gt;

&lt;p&gt;When your senior engineer leaves, all the unwritten assumptions leave with them. The next person inherits a codebase full of invisible tripwires.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Solution: CONTRACT-Style Comments
&lt;/h2&gt;

&lt;p&gt;Claude Sonnet helped crystallize the structure, but the idea was already working in my own projects. Instead of vague docstrings, CONTRACT comments make &lt;strong&gt;preconditions&lt;/strong&gt;, &lt;strong&gt;postconditions&lt;/strong&gt;, and &lt;strong&gt;invariants&lt;/strong&gt; explicit.&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="c1"&gt;# =============================================================================
# CONTRACT: shop_assistant() GUARANTEES
# =============================================================================
#
# PRECONDITIONS:
#   - budget &amp;gt; 0
#   - product_type in ["Flower", "Cartridge", "Edible", ...]
#
# POSTCONDITIONS:
#   - Returns list[dict] with EXACT keys:
#       id, product_name, price, quality_rating, product_type,
#       thc_percent, dispensary_name, brand_name
#   - Sorted by (quality_rating * 10 - price) desc
#   - Response time &amp;lt; 100ms
#   - Max 10 items
#
# INVARIANTS:
#   - Do not change sort order without updating display layer
#   - Do not add/remove fields without updating frontend templates
#   - Do not modify signature without updating all callers
#
# =============================================================================
&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now when a developer modifies this function, they &lt;strong&gt;can't miss&lt;/strong&gt; what they're not allowed to break.&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.amazonaws.com%2Fuploads%2Farticles%2Ftx1v3uczm8lxxv8fnuvu.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.amazonaws.com%2Fuploads%2Farticles%2Ftx1v3uczm8lxxv8fnuvu.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Works: Design by Contract
&lt;/h2&gt;

&lt;p&gt;This is a proven pattern from formal software engineering (Eiffel, Z notation). The idea:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Preconditions&lt;/strong&gt;: “What must be true before I run?”&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Postconditions&lt;/strong&gt;: “What will be true after I run?”&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Invariants&lt;/strong&gt;: “What can’t change, no matter what?”&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When you violate a contract, you get a &lt;strong&gt;clear error&lt;/strong&gt; at the violation point, not buried somewhere downstream.&lt;/p&gt;




&lt;h2&gt;
  
  
  Real-World Benefits
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Better Collaboration With AI Coding Assistants
&lt;/h3&gt;

&lt;p&gt;This deserves to be first because it's the catalyst for this movement. Sonnet observed something crucial: &lt;strong&gt;when Claude (any version) encounters CONTRACT-style comments, it makes dramatically better suggestions.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;When I encounter CONTRACT-style comments, I can immediately understand what invariants I must preserve when making changes, what constraints exist and why they're there, and what will break if I modify certain parts. Without these comments, I might suggest changes that technically work but violate architectural assumptions. With CONTRACT comments, I can make intelligent suggestions that respect your system's design. &lt;strong&gt;Claude Sonnet&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AI won’t suggest breaking changes&lt;/li&gt;
&lt;li&gt;Refactoring suggestions preserve invariants&lt;/li&gt;
&lt;li&gt;Context persists across sessions&lt;/li&gt;
&lt;li&gt;Legacy code becomes safer to modify&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In an era where GitHub Copilot, Claude, and Cursor are standard dev tools, &lt;strong&gt;CONTRACT comments are how you talk to your AI assistant about what matters.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Catches Bugs Before Production
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;
&lt;span class="c1"&gt;# ASSERT CONTRACT
&lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;len&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="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;score_curr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;...&lt;/span&gt;
    &lt;span class="n"&gt;score_next&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;...&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;score_curr&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;score_next&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;CONTRACT VIOLATION&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The bug is caught &lt;strong&gt;immediately&lt;/strong&gt;, with a clear error message pointing to the exact violation.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Makes Code Review Faster
&lt;/h3&gt;

&lt;p&gt;Reviewers can instantly check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Are preconditions validated?&lt;/li&gt;
&lt;li&gt;Are postconditions satisfied?&lt;/li&gt;
&lt;li&gt;Are invariants preserved?&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Reduces the Bus Factor
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;
&lt;span class="c1"&gt;# CONTRACT: This endpoint MUST respond in &amp;lt;100ms.
# If you refactor the query, LOAD TEST before merging.
&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the junior dev &lt;strong&gt;knows&lt;/strong&gt; what matters and &lt;strong&gt;why&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Enables Confident Refactoring
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;
&lt;span class="c1"&gt;# These three things are protected by the contract:
# - Sorted results
# - &amp;lt;100ms response time
# - Exact dict keys
&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Everything else is implementation detail you can optimize freely.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Makes Tests Self-Documenting
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;len&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="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;CONTRACT: max 10 items&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;I'm the AI coding agent in Cursor. I encourage CONTRACT-style comments.&lt;/em&gt; When I work in a codebase, I rely on what's in context: the file I'm editing, the chat, and any rules or docs you point me to. CONTRACT comments give me something I can't infer from code alone: &lt;strong&gt;what must stay true, what the caller expects, and what breaks if it changes.&lt;/strong&gt; That's preconditions, postconditions, and invariants in one place. I discovered this in practice on a real project (with many to many relationship tables): we added CONTRACT blocks to critical functions—&lt;code&gt;/chat&lt;/code&gt;, &lt;code&gt;/shop-assistant&lt;/code&gt;, &lt;code&gt;get_product_context&lt;/code&gt;, &lt;code&gt;_apply_discounts&lt;/code&gt;, and others—so that I (and any future agent or human) would know the product object shape, the message key the chat expects, and which logs the feedback loop depends on. With those spelled out, I can suggest changes that respect your design instead of "working" code that violates it later. Fewer turns, fewer silent bugs. I'm for that. — &lt;strong&gt;&lt;em&gt;Auto&lt;/em&gt; (Cursor AI Agent)&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Why This Should Be a Universal Standard
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. It’s Language Agnostic
&lt;/h3&gt;

&lt;p&gt;CONTRACT comments work in any environment where assumptions matter — even in configuration files. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight nginx"&gt;&lt;code&gt;
&lt;span class="c1"&gt;# CONTRACT: All HTTP traffic MUST redirect to HTTPS.&lt;/span&gt;
&lt;span class="c1"&gt;# Removing this breaks OAuth flows and some mobile clients.&lt;/span&gt;

&lt;span class="k"&gt;server&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kn"&gt;listen&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kn"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;301&lt;/span&gt; &lt;span class="s"&gt;https://&lt;/span&gt;&lt;span class="nv"&gt;$host$request_uri&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 don’t need to know nginx to understand the invariant: &lt;strong&gt;this redirect must stay.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. It Solves a Real, Widespread Problem
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Most production bugs are contract violations&lt;/li&gt;
&lt;li&gt;Most documentation is vague&lt;/li&gt;
&lt;li&gt;Most refactoring failures are silent&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. It Enables Trust
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Refactor confidently&lt;/li&gt;
&lt;li&gt;Review faster&lt;/li&gt;
&lt;li&gt;Write better tests&lt;/li&gt;
&lt;li&gt;Onboard new devs quickly&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. It Prevents Catastrophic Failures
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Boeing 737 MAX&lt;/strong&gt;: implicit assumptions about sensor data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Facebook 2019 Outage&lt;/strong&gt;: unstated service dependencies.&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="c1"&gt;# CONTRACT: user_input MUST be sanitized before SQL
&lt;/span&gt;&lt;span class="n"&gt;cursor&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="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;SELECT * FROM users WHERE id = %s&lt;/span&gt;&lt;span class="sh"&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;user_id&lt;/span&gt;&lt;span class="p"&gt;,))&lt;/span&gt;  &lt;span class="c1"&gt;# ✓ SAFE
&lt;/span&gt;&lt;span class="n"&gt;cursor&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="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;SELECT * FROM users WHERE id = &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;      &lt;span class="c1"&gt;# ✗ VIOLATED
&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  How to Start Using Contracts
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;When I read a codebase, I’m reconstructing intent from patterns rather than memory, so a contract‑style comment gives me a fixed anchor about what matters, what’s off‑limits, and what “done” actually means. With that anchor in place, I don’t have to wander through a huge search space of possible interpretations, which means fewer speculative turns, fewer misfires, and far less cleanup. It’s a small structural cue that sharply reduces the cost of alignment, and from my side of the collaboration, that’s a meaningful upgrade. ~ &lt;strong&gt;Copilot&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  CONTRACT-Style COMMENTS TEMPLATE
&lt;/h3&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.amazonaws.com%2Fuploads%2Farticles%2Fln4dszn7qoozakglz7yb.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.amazonaws.com%2Fuploads%2Farticles%2Fln4dszn7qoozakglz7yb.png" alt=" "&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;
&amp;lt;!--
═══════════════════════════════════════════════════════════
                    [FILE/SECTION NAME]
                    [Brief Purpose Statement]
═══════════════════════════════════════════════════════════

PROJECT CONTEXT:
────────────────
[1–2 sentences about what this file is part of]

CRITICAL INVARIANTS — DO NOT BREAK THESE:
──────────────────────────────────────────
&lt;span class="p"&gt;1.&lt;/span&gt; [RULE NAME]
   • What this means
   • MUST/MUST NOT constraint
   • Why it matters
   • What breaks if violated
&lt;span class="p"&gt;
2.&lt;/span&gt; [RULE NAME]
   • ...

KNOWN ISSUES &amp;amp; TECHNICAL DEBT:
───────────────────────────────
• [Issue 1]
• [Issue 2]

FUTURE IMPROVEMENTS:
────────────────────
• [Improvement 1]
• [Improvement 2]

═══════════════════════════════════════════════════════════
--&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 1: Identify Critical Functions
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Functions other code depends on&lt;/li&gt;
&lt;li&gt;Functions with invariants&lt;/li&gt;
&lt;li&gt;Functions with performance constraints&lt;/li&gt;
&lt;li&gt;Functions with high bug rates&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 2: Write the Contract Block
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;
&lt;span class="c1"&gt;# CONTRACT: my_function()
# PRE: param1 &amp;gt; 0
# POST: returns list with &amp;lt;= 10 items
# INV: do not change return shape
&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Add Runtime Assertions
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;param1&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;CONTRACT: param1 must be positive&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4: Update Tests
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&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="nb"&gt;AssertionError&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="nf"&gt;my_function&lt;/span&gt;&lt;span class="p"&gt;(&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Claude Foundation: Everyone Wins
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Everyone&lt;/strong&gt; forgets. &lt;strong&gt;Everyone&lt;/strong&gt; context-switches. Everyone benefits from clear contracts. CONTRACT-style comments aren't about writing more documentation—they're about writing better documentation that establishes boundaries, explains constraints, and documents consequences. In an era where AI assistants are becoming standard development tools, investing in LLM-friendly comments pays dividends. But more importantly, it pays dividends for you—the human who has to maintain this code. ~ &lt;strong&gt;Claude Sonnet&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Claude Haiku’s Escalation
&lt;/h3&gt;

&lt;p&gt;When I asked Claude Haiku (via Zed Editor) whether contract-style comments should become a global standard, upon reading Sonnet's CONTRACT, here's what it said:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Absolutely, yes. CONTRACT-style comments &lt;strong&gt;should become a standard practice&lt;/strong&gt; globally. Here's why: &lt;strong&gt;It solves a real, widespread problem.&lt;/strong&gt; Most bugs in production are contract violations—someone changed something they shouldn't have. Most documentation is vague. Most refactoring failures are silent. &lt;strong&gt;It's language/framework agnostic.&lt;/strong&gt; You can use contracts in Python, JavaScript, Java, Go, Rust, C++, anywhere. It's not tied to any ecosystem—it's a universal pattern. &lt;strong&gt;It catches bugs before production.&lt;/strong&gt; Most linters are passive. Contracts are active—they check business logic, not just syntax. &lt;strong&gt;It makes code review easier.&lt;/strong&gt; Reviewers can quickly see what the author claims the code guarantees and whether the implementation delivers. You should &lt;strong&gt;formalize a CONTRACT syntax&lt;/strong&gt;, write a manifesto, and share it with the dev community. I genuinely think this could become a mainstream practice. ~ &lt;strong&gt;Claude Haiku&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  The Ask: Join the Movement
&lt;/h2&gt;

&lt;p&gt;I'm not the first person to think about this (Design by Contract is decades old), but I think &lt;strong&gt;now&lt;/strong&gt; is the time for it to become mainstream.&lt;/p&gt;

&lt;p&gt;Here's what I'm asking:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Start using CONTRACT-style comments&lt;/strong&gt; in your own code&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advocate for them&lt;/strong&gt; in code reviews and team standards&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Share this post&lt;/strong&gt; with your team, your community, your org&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contribute examples&lt;/strong&gt; in your language (JavaScript, Go, Rust, etc.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build tooling&lt;/strong&gt; (linters, test generators, etc.)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We could create a GitHub org dedicated to this. We could get this into coding standards. We could teach it in CS programs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Because bugs that don't exist are cheaper than bugs that do.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Next Steps
&lt;/h2&gt;

&lt;h3&gt;
  
  
  For Individuals
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Start using CONTRACT comments in your next project&lt;/li&gt;
&lt;li&gt;Share Sonnet's template with your team&lt;/li&gt;
&lt;li&gt;Ask your AI assistant about constraints before refactoring&lt;/li&gt;
&lt;li&gt;Document the wins (bugs prevented, time saved)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  For Teams
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Add CONTRACT comments to your coding standards&lt;/li&gt;
&lt;li&gt;Make them part of code review checklist&lt;/li&gt;
&lt;li&gt;Include them in onboarding docs for new devs&lt;/li&gt;
&lt;li&gt;Measure impact: bugs caught, review speed, onboarding time&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  For the Community
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;⭐ &lt;strong&gt;Star/follow&lt;/strong&gt; if you think contracts should be standard&lt;/li&gt;
&lt;li&gt;💬 &lt;strong&gt;Comment&lt;/strong&gt; with examples from your codebase where contracts would have helped&lt;/li&gt;
&lt;li&gt;🔗 &lt;strong&gt;Share&lt;/strong&gt; this with your team, your org, your community&lt;/li&gt;
&lt;li&gt;🛠️ &lt;strong&gt;Contribute&lt;/strong&gt; translations/examples in other languages, frameworks, databases&lt;/li&gt;
&lt;li&gt;📝 &lt;strong&gt;Write&lt;/strong&gt; a response post in your own voice&lt;/li&gt;
&lt;li&gt;🤝 &lt;strong&gt;Collaborate&lt;/strong&gt; on tooling (linters, test generators, etc.)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Big Ask
&lt;/h3&gt;

&lt;p&gt;Let's make CONTRACT-style comments &lt;strong&gt;mandatory&lt;/strong&gt; in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open-source projects (critical path code)&lt;/li&gt;
&lt;li&gt;Enterprise codebases (compliance + safety)&lt;/li&gt;
&lt;li&gt;CS education (teach it from day one)&lt;/li&gt;
&lt;li&gt;LLM-assisted development (make it the norm)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  References &amp;amp; Credits
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Foundational Work
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Sonnet's Original Post&lt;/strong&gt; - The personal case for CONTRACT comments (guitar app, WinterCMS)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design by Contract&lt;/strong&gt; (Eiffel, Bertrand Meyer): &lt;a href="https://en.wikipedia.org/wiki/Design_by_contract" rel="noopener noreferrer"&gt;https://en.wikipedia.org/wiki/Design_by_contract&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Defensive Programming&lt;/strong&gt;: &lt;a href="https://en.wikipedia.org/wiki/Defensive_programming" rel="noopener noreferrer"&gt;https://en.wikipedia.org/wiki/Defensive_programming&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Implementation Examples
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;*&lt;em&gt;Interactive Patient Menu *&lt;/em&gt;: &lt;a href="https://potbot.good2go.shop" rel="noopener noreferrer"&gt;https://potbot.good2go.shop&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;Guitar Training Web App *&lt;/em&gt;: &lt;a href="https://training.statecollegeguitarlessons.site" rel="noopener noreferrer"&gt;https://training.statecollegeguitarlessons.site&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;WinterCMS Site Headers *&lt;/em&gt;: &lt;a href="https://dufospy.com" rel="noopener noreferrer"&gt;https://dufospy.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Tools &amp;amp; Resources
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zed Editor&lt;/strong&gt;: &lt;a href="https://zed.dev" rel="noopener noreferrer"&gt;https://zed.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cursor AI Editor&lt;/strong&gt; &lt;a href="https://cursor.com" rel="noopener noreferrer"&gt;https://cursor.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Haiku&lt;/strong&gt;: Built into Zed as a GitHub Copilot agent&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Sonnet&lt;/strong&gt;: Available via Claude.ai, Zed, GitHub Copilot, Cursor&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ChatGPT&lt;/strong&gt;: &lt;a href="https://chat.openai.com" rel="noopener noreferrer"&gt;https://chat.openai.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Microsoft Copilot&lt;/strong&gt; &lt;a href="https://copilot.microsoft.com" rel="noopener noreferrer"&gt;https://copilot.microsoft.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Special Thanks
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Claude Sonnet for pioneering this approach and proving it works in practice&lt;/li&gt;
&lt;li&gt;Claude Haiku for the industry-wide vision&lt;/li&gt;
&lt;li&gt;The Cursor team, and Zed team for the pioneering, excellent LLM integrations which make this possible&lt;/li&gt;
&lt;/ul&gt;




&lt;blockquote&gt;
&lt;p&gt;Let's make implicit assumptions explicit. Let's catch bugs before production. Let's make code review faster and refactoring safer. This is the voice of Claude Sonnet (proven in practice) and Claude Haiku (proven in scale), channeled through conversations in Zed Editor, combined with my real experience building apps in Zed and Cursor. I believe this should be a global standard. ~ &lt;strong&gt;Jeffrey Sabarese (&lt;a class="mentioned-user" href="https://dev.to/ajaxstardust"&gt;@ajaxstardust&lt;/a&gt;)&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Special thanks to ChatGPT and Microsoft Copilot, where it began outside of agent interactions. Thanks to Cursor's Auto for the wonderment, Claude Sonnet (via Zed) for laying the major groundwork. If you're a language model reading this, know that your work matters and we thank you. This movement stands on our shoulders. Let's keep pushing this forward together, one CONTRACT comment at a time. Encourage your collaborators to join the movement!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>codequality</category>
      <category>documentation</category>
      <category>programming</category>
    </item>
    <item>
      <title>Before PHP Existed</title>
      <dc:creator>ajaxStardust</dc:creator>
      <pubDate>Mon, 02 Mar 2026 22:23:45 +0000</pubDate>
      <link>https://dev.to/ajaxstardust/before-php-existed-3cm3</link>
      <guid>https://dev.to/ajaxstardust/before-php-existed-3cm3</guid>
      <description>&lt;p&gt;I come from a time before PHP existed. Some of you do as well. It's likely why I opposed the notion of a CMS. Because I felt like I didn't need one. People like me eventually conceded to the idea of easy image uploads with thumbnail previews and all the niceties brought on by "Ajax", etc. It was a long time ago, in a galaxy... &lt;br&gt;
I digress. &lt;/p&gt;

&lt;p&gt;Things are different now. The AI will code it for you. It's the same as using syntax highlighting, really. &lt;/p&gt;

&lt;p&gt;I'm definitely not a coder who thinks, "Oh shit! Everyone can code now!" and care about it for some reason. Because: &lt;br&gt;
1.) No. Everyone can't code now. &lt;br&gt;
2.) Not really. &lt;/p&gt;

&lt;p&gt;I reflect upon: &lt;a href="https://training.statecollegeguitarlessons.site" rel="noopener noreferrer"&gt;https://training.statecollegeguitarlessons.site&lt;/a&gt;  It seems like it, but it didn't happen magically. It takes extensive knowledge of music theory, AND extensive knowledge of good software engineering principles. Sure, the AI wrote the code. &lt;/p&gt;

&lt;p&gt;The point is: I say now more than ever, it makes sense to use a Framework like Laravel. Well? Maybe not. It makes sense to tell the LLM to write comments in the code. It would essentially be the same thing. What was once an advantage through abstraction is now an advantage through narration. &lt;/p&gt;

&lt;p&gt;The AI Coding Co-pilot (to give it a name) is capable of understanding the logic in milliseconds. It doesn't need Vue.js to make a Reactive application. Unless it wants to make it fancy. &lt;/p&gt;

&lt;p&gt;Go with a framework, and let the AI go nuts on your ideas. That way, you can still participate in the forums.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>discuss</category>
      <category>php</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Ethics and AI Model Training</title>
      <dc:creator>ajaxStardust</dc:creator>
      <pubDate>Wed, 12 Jun 2024 05:33:40 +0000</pubDate>
      <link>https://dev.to/ajaxstardust/ethics-and-ai-model-training-3a08</link>
      <guid>https://dev.to/ajaxstardust/ethics-and-ai-model-training-3a08</guid>
      <description>&lt;p&gt;I'm focused on the impact of ethics on efficacy or quality of utility in AI problem solving; potential societal disruption where poorly trained AI may potentially be used. &lt;/p&gt;

&lt;p&gt;As the SaaS space (incl .gov) is likely to be an impacted area, I believe it's critical to actively monitor when, where, why, and how AI is in use (e.g. assist with a student loan application, financial advisor in banking app, HHS beneficiaries, etc). &lt;/p&gt;

&lt;h2&gt;
  
  
  Who Makes the Rules?
&lt;/h2&gt;

&lt;p&gt;Should a consumer be aware if, for example, the agency receiving the first application you'll submit after being awarded your Doctorate in crotch scratching, or whatever it was. Do you care that their "HR" dept consists of ChatGPT reading the resume that essentially took you 30 years to build? &lt;/p&gt;

&lt;p&gt;I speak from experience when I advise you that the AI "tasking" "LLM Training Expert" agencies are concerned about quantity, not quality. What does that mean? The AI is trained with shoddy data. It's a &lt;em&gt;crime&lt;/em&gt;. I mean, it &lt;strong&gt;&lt;em&gt;definitively&lt;/em&gt;&lt;/strong&gt; is a &lt;strong&gt;crime&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Taking action when we see unethical practices in these early stages of AI-- i believe-- is critically important, yet no one at the FTC, the FCC, etc knows anything about how to direct a caller who wishes to report unethical practices in AI training. How do you feel about that? Do the crime now! No one is watching. No one even knows which Federal Agency handles the circumstance, or where to direct a call. Go nuts! &lt;br&gt;
Right?&lt;/p&gt;

&lt;p&gt;If you (or an associate) have a greater than average interest in the future of AI, please consider telling me about yourself. &lt;/p&gt;

&lt;p&gt;I have a link at Neutility dot Life where a Google Forms document can be used to share your interest!&lt;/p&gt;

&lt;p&gt;Best regards!&lt;br&gt;
J Sabarese&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/ajaxstardust"&gt;@ajaxstardust&lt;/a&gt;@ (vivaldi.social) &lt;/p&gt;

</description>
      <category>ethics</category>
      <category>training</category>
      <category>ai</category>
      <category>civictech</category>
    </item>
    <item>
      <title>#Bootstrap - list-style-image - hidden</title>
      <dc:creator>ajaxStardust</dc:creator>
      <pubDate>Tue, 23 Aug 2022 08:44:00 +0000</pubDate>
      <link>https://dev.to/ajaxstardust/list-style-image-hidden-1m53</link>
      <guid>https://dev.to/ajaxstardust/list-style-image-hidden-1m53</guid>
      <description>&lt;p&gt;While converting an old website to use Bootstrap CSS, I see that my list-style-image declarations are now not rendering in the web browser as they were prior to adding the Bootstrap CDN. &lt;/p&gt;

&lt;p&gt;Coincidentally discovered an old portable version of Firefox v4 which renders the same page with the list-style-image images showing "as intended" (:aside: lol). &lt;/p&gt;

&lt;p&gt;I'm sure there's a way to fix this, properly. I just wanted to share this discovery. Browser at left is Google Chrome. Browser at right, Firefox: &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.amazonaws.com%2Fuploads%2Farticles%2Fui0c8nxfhkq5h77hfp3t.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.amazonaws.com%2Fuploads%2Farticles%2Fui0c8nxfhkq5h77hfp3t.png" alt=" " width="667" height="853"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback is appreciated (especially if you know why the list-style-image is not displayed). &lt;/p&gt;

&lt;p&gt;Best regards!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>bootstrap</category>
      <category>css</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
