---
title: "Verified Agentic Engineering in Practice - Agent-authored control programs and persistent adaptation across a growing component system - Technical Report - Aron Homberg, independent researcher - defuss open-source project - October 2026"
description: "A research-paper project page - the layout of the Nerfies / InternVL project pages in the system's tokens: serif title, linked authors and affiliations, resource buttons, a news line, a teaser figure, abstract, a table of contents, numbered sections, findings, epistemic tags, key numbers, charts, tables, a quotation, BibTeX and a footer."
slug: "paper"
---

import { DocPage, PageHeader, SkillPanel, SourceFiles, DocLink, SkillField, SkillText, SkillRow, ApiPill } from "../../lib/components/index";

<DocPage meta={meta}>

<PageHeader slug="paper" title="Modern Paper" component="paper">
  A research-paper project page - the initial layout is inspired by the layout of the <DocLink href="https://internvl.github.io/">InternVL</DocLink> / Nerfies project pages, rebuilt in <code>defuss-shadcn</code>'s own design tokens, extended with advanced two-column professional layout and typography, including interactive components: a serif title over a centered reading column, linked authors with affiliation marks, pill resource buttons, a news line, a teaser figure, the abstract, a table of contents, numbered sections, findings, epistemic tags, key numbers, charts, tables, a quotation, BibTeX and a footer. The example is a real technical report on Verified Agentic Engineering, applied to this repository: its measurements are the study's values as of October 7, 2026, read from git and the session transcript.
</PageHeader>

<div class="flex flex-wrap items-center gap-2 mb-6">
  <a class="btn" href="full-paper.html" target="_blank" rel="noopener"><i data-lucide="maximize-2"></i> Open full screen</a>
  <a class="btn" data-variant="outline" href="files/verified-agentic-engineering.pdf" target="_blank" rel="noopener"><i data-lucide="file-down"></i> PDF</a>
  <a class="btn" data-variant="outline" href="files/verified-agentic-engineering-flush-left.pdf" target="_blank" rel="noopener"><i data-lucide="file-down"></i> PDF, flush left</a>
  <span class="text-sm text-muted-foreground">The report printed on A4 in two columns: justified as on the page, or flush left as after the alignment Swap.</span>
</div>

<SkillPanel component="paper">
  <SkillField label="Native basis">
<SkillText>One <code>&lt;article&gt;</code> on a named grid: a centered reading column for prose (<code>--paper-measure</code>, 46rem) and a wider track (<code>--paper-wide</code>, 64rem) for the title block, the teaser and anything marked <code>.paper-wide</code>. Sections are <code>&lt;section&gt;</code> + <code>&lt;h2&gt;</code>, figures are <code>&lt;figure&gt;</code> + <code>&lt;figcaption&gt;</code>, the BibTeX is a <code>&lt;pre&gt;</code>.</SkillText>
  </SkillField>

  <SkillField label="Built from">
<SkillText><DocLink href="badge.html">Badge</DocLink>, <DocLink href="bibtex.html">BibTeX</DocLink>, <DocLink href="button.html">Button</DocLink>, <DocLink href="diagram.html">Illustrative Diagrams</DocLink>, <DocLink href="statistic.html">Statistic</DocLink>, <DocLink href="table.html">Table</DocLink>.</SkillText>
  </SkillField>

  <SkillField label="Web Platform APIs">
<SkillRow>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Grid_layout_using_named_grid_lines" title="the reading column and the wide track are named grid lines"><code>Named grid lines</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries" title="the title and the abstract follow the page width"><code>Container queries</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_counter_styles/Using_CSS_counters" title="findings number themselves"><code>CSS counters</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap" title="balanced titles, pretty prose"><code>text-wrap</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/@page" title="named pages: the print profiles' sheet size and margins"><code>@page</code></ApiPill>
    <ApiPill href="https://developer.mozilla.org/en-US/docs/Web/CSS/zoom" title="the print scale"><code>zoom</code></ApiPill>
  </SkillRow>
  </SkillField>

  <SkillField label="Classes">
<SkillRow>
    <code>.paper</code>
    <code>.paper-hero</code>
    <code>.paper-venue</code>
    <code>.paper-title</code>
    <code>.paper-title-sub</code>
    <code>.paper-authors</code>
    <code>.paper-affiliations</code>
    <code>.paper-note</code>
    <code>.paper-links</code>
    <code>.paper-news</code>
    <code>.paper-teaser</code>
    <code>.paper-abstract</code>
    <code>.paper-toc</code>
    <code>.paper-num</code>
    <code>.paper-section</code>
    <code>.paper-findings</code>
    <code>.paper-tags</code>
    <code>.paper-tag</code>
    <code>.paper-table</code>
    <code>.paper-table-caption</code>
    <code>.paper-code</code>
    <code>.paper-numbers</code>
    <code>.paper-figure</code>
    <code>.paper-wide</code>
    <code>.paper-chart</code>
    <code>.paper-quote</code>
    <code>.paper-bibtex</code>
    <code>.paper-footer</code>
  </SkillRow>
  </SkillField>
</SkillPanel>

```html example standalone label="Verified Agentic Engineering in Practice - a technical report" schema="none" sandbox="links" hint="The whole page is one .paper article: the title block with a light/dark Swap and a paragraph-alignment Swap (Blocksatz / flush left), a data notice, the abstract, a table of contents, eight numbered sections - section 2 opens with Figure 1, an Illustrative Diagram -, captured program output as a conversation (Session, Message, Bubble, Marker), before/after key numbers (Statistic, a Shapes arrow), one chart (Chart), a Timeline, a Diff of two Code Mockups, seven tables (Table) with colored trends, epistemic tags (VAE-DIALECT), two BibTeX blocks and the footer. Every figure is a study value as of October 7, 2026, dated with its source; every verbatim record is a numbered figure, the long ones shortened with [...]. Every numbered section is set as Typography's Book page without an initial: Blocksatz, Einzug, classic ligatures (.paper-section.typeset). Printed or saved as PDF it is an A4 document (data-print='a4'): 20mm margins, a page number at the foot of every page but the first, the 0.8 print scale that keeps the sections in two columns. The title block and the abstract share the first page and the contents stay on screen; section 1 starts the second page, sections 3 and 8 and the citations start a page (a .typeset-break before each - their headings fell to a page foot), the other sections run on. The two closing reports may split over two columns (data-break-inside='allow'), each piece framed, the caption with the last. In print the paper is laid out as a block and prints its colors as designed, the BibTeX blocks print only their chosen format and the Diff prints both trees side by side." previewStyle="align-items:stretch;padding:0;"
<script src="https://cdn.jsdelivr.net/npm/echarts@6.1.0/dist/echarts.min.js"></script>
<style>
  /* the hero's tools (dark mode, alignment): one centered row, hidden for print */
  .paper-tools {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }
  @media print {
    .paper-tools {
      display: none;
    }
    /* the title page: the title block, the data note and the abstract share page 1 (section 1 starts page 2) - it
       sets its blocks closer than the sections do, so both paragraphs of the abstract fit on it */
    .paper[data-print] > .paper-hero {
      gap: 0.625rem;
    }
    .paper[data-print] > :is(.paper-news, .paper-abstract) {
      margin-block-start: 1.125rem;
    }
    .paper[data-print] > .paper-abstract {
      padding-block: 1.125rem;
    }
  }
  /* the alignment swap: block (justify, the authored default) <-> flush left - on the whole setting, so nested
     text (a Timeline's entries) follows, and on its paragraphs, which the abstract justifies itself; what aligns
     itself (centered captions) keeps its own alignment */
  html.paper-align-left .paper :is(.paper-section, .paper-abstract),
  html.paper-align-left .paper :is(.paper-section, .paper-abstract) > p {
    text-align: start;
    text-align-last: auto;
    hyphens: manual;
  }
</style>
<article class="paper" data-print="a4" aria-labelledby="paper-title">
  <header class="paper-hero">
    <div class="paper-tools">
      <label class="swap" data-variant="rotate" id="paper-mode">
        <input type="checkbox" aria-label="Dark mode" />
        <span class="swap-on" aria-hidden="true"><i data-lucide="moon"></i></span>
        <span class="swap-off" aria-hidden="true"><i data-lucide="sun"></i></span>
      </label>
      <label class="swap" data-variant="rotate" id="paper-align">
        <input type="checkbox" aria-label="Justify paragraphs" checked />
        <span class="swap-on" aria-hidden="true"><i data-lucide="align-justify"></i></span>
        <span class="swap-off" aria-hidden="true"><i data-lucide="align-left"></i></span>
      </label>
    </div>
    <p class="paper-venue"
      ><span class="badge" data-variant="secondary">Technical Report</span
      ><span>defuss · <time datetime="2026-10">October 2026</time></span></p
    >
    <h1 class="paper-title" id="paper-title"
      >Verified Agentic Engineering in Practice<span class="paper-title-sub"
        >Agent-authored control programs and persistent adaptation across a growing component system</span
      ></h1
    >
    <ul class="paper-authors">
      <li
        ><a href="https://www.linkedin.com/in/aronhomberg/" target="_blank" rel="noopener">Aron Homberg</a
        ><sup>1</sup></li
      >
    </ul>
    <ul class="paper-affiliations">
      <li><sup>1</sup>independent researcher - defuss open-source project</li>
    </ul>
    <nav class="paper-links" aria-label="Resources">
      <a class="btn" data-size="sm" href="https://github.com/kyr0/defuss-vae" target="_blank" rel="noopener"
        ><i data-lucide="sparkles"></i> defuss-vae</a
      >
      <a
        class="btn"
        data-size="sm"
        data-variant="outline"
        href="https://github.com/kyr0/defuss-shadcn"
        target="_blank"
        rel="noopener"
        ><i data-lucide="code"></i> Code</a
      >
      <a class="btn" data-size="sm" data-variant="outline" href="architecture.html" target="_blank" rel="noopener"
        ><i data-lucide="file-text"></i> ARCH.md</a
      >
      <a class="btn" data-size="sm" data-variant="outline" href="system-in-numbers.html" target="_blank" rel="noopener"
        ><i data-lucide="presentation"></i> Slides</a
      >
      <a
        class="btn"
        data-size="sm"
        data-variant="outline"
        href="https://github.com/kyr0/defuss-shadcn/issues?q=is%3Aissue+state%3Aclosed"
        target="_blank"
        rel="noopener"
        ><i data-lucide="circle-check"></i> Issues</a
      >
    </nav>
  </header>

  <p class="paper-news" role="note"
    ><span class="badge" data-size="sm">Data</span
    ><span
      >The case-study measurements are frozen at the study cutoff,
      <a href="https://github.com/kyr0/defuss-shadcn/commit/8cecf4b4" target="_blank" rel="noopener"
        >October 7, 2026, 17:58 UTC</a
      >, shortly before defuss-shadcn release 0.9.7. They cover 33 calendar days, from September 5 through October 7,
      2026. The four engineering changes are measured from the session transcript of October 6. The general controller
      implementation is described from
      <a
        href="https://github.com/kyr0/defuss-vae/commit/e9b78a321a70446b4dd7d00bf84f65b162d76615"
        target="_blank"
        rel="noopener"
        >defuss-vae 0.8.0</a
      >
      of October 7; its later features are distinguished from those used during the study.</span
    ></p
  >

  <section class="paper-abstract" aria-labelledby="paper-abstract">
    <h2 id="paper-abstract">Abstract</h2>
    <p>
      Modern Agentic Engineering approaches still face challenges with inconsistencies in task execution completeness
      and consistency. This phenomenon specifically affects large-scale change requests as well as new feature requests
      which leads to an increase of work left for human reviewers. Verified Agentic Engineering (VAE) is a working
      method for such requests, not a new model, agent or UI framework. Its implementation, defuss-vae, adds skills,
      hooks and Python programs to an agent harness: the program that runs a model and its tools, such as Claude Code,
      Codex, and alike. The agent writes and revises programs that check its work, select the next unit of work and
      return instructions through the harness. A verifier reports unmet acceptance criteria; a document controller
      presents bounded passages for review. The routines shown here require no AI model call. The harness passes their
      output to the model, which edits the artifact and invokes the next step within human-defined policy. Across tasks,
      the agent can retain findings as checks, instructions, reusable tools or bounded prompt memory. VAE-DIALECT
      provides compact notation for evidence and scope; stack templates provide toolchain commands and conventions.</p
    >
    <p>
      This report describes the method's development in defuss-shadcn, a UI component system built from semantic HTML,
      CSS and JavaScript, from September 5 to October 7, 2026, under one maintainer, Aron Homberg, using
      Qwen3.8-Flash-Next, Claude Opus 5.5 and Claude Fable 5.1. The repository grew from 55 to 231 components across 220
      commits and 17 releases. In one session, the agent added typed API documentation for all 59 interactive components
      (241.9 minutes, one human correction), raised reported line coverage from 31.6% to 75.6% (20.6 minutes), moved 228
      component folders into a new layout (43.4 minutes), and removed 1,147 type errors (27.3 minutes to the final
      passing gates). All 85 minified artifacts compared for the type-error change were byte-identical. These
      observations document consistent repository-wide changes under the programmed self-feedback-loop regime of the
      defuss-vae method; the study does not isolate the method's effect on correctness, cost or human review effort.</p
    >
  </section>

  <nav class="paper-toc" aria-labelledby="paper-toc">
    <h2 id="paper-toc">Contents</h2>
    <ol>
      <li
        ><a href="#paper-s1"><span class="paper-num">1&nbsp;</span>Contribution and scope</a></li
      >
      <li
        ><a href="#paper-s2"><span class="paper-num">2&nbsp;</span>Programmable feedback and persistent adaptation</a>
        <ol>
          <li
            ><a href="#paper-feedback"><span class="paper-num">2.1&nbsp;</span>General feedback protocol</a></li
          >
          <li
            ><a href="#paper-s2-4"><span class="paper-num">2.2&nbsp;</span>Program output and the model boundary</a></li
          >
          <li
            ><a href="#paper-s2-1"
              ><span class="paper-num">2.3&nbsp;</span>Harness enforcement and adaptation authority</a
            ></li
          >
          <li
            ><a href="#paper-s2-3"
              ><span class="paper-num">2.4&nbsp;</span>Reconciliation and bounded prompt memory</a
            ></li
          >
          <li
            ><a href="#paper-s3"><span class="paper-num">2.5&nbsp;</span>Dialect and stack templates</a></li
          >
        </ol>
      </li>
      <li
        ><a href="#paper-s4"><span class="paper-num">3&nbsp;</span>Case study and evidence</a></li
      >
      <li
        ><a href="#paper-s5"><span class="paper-num">4&nbsp;</span>Results</a>
        <ol>
          <li
            ><a href="#paper-s5-1"><span class="paper-num">4.1&nbsp;</span>Growth and verification coverage</a></li
          >
          <li
            ><a href="#paper-s5-6"><span class="paper-num">4.2&nbsp;</span>Typed API documentation</a></li
          >
          <li
            ><a href="#paper-s5-cov"><span class="paper-num">4.3&nbsp;</span>Test coverage</a></li
          >
          <li
            ><a href="#paper-s5-struct"><span class="paper-num">4.4&nbsp;</span>Repository layout</a></li
          >
          <li
            ><a href="#paper-s5-types"
              ><span class="paper-num">4.5&nbsp;</span>Type errors and output equivalence</a
            ></li
          >
          <li
            ><a href="#paper-s5-2"><span class="paper-num">4.6&nbsp;</span>Human review effort</a></li
          >
          <li
            ><a href="#paper-s5-5"><span class="paper-num">4.7&nbsp;</span>Changes to committed code</a></li
          >
          <li
            ><a href="#paper-s5-cost"><span class="paper-num">4.8&nbsp;</span>Execution and context cost</a></li
          >
        </ol>
      </li>
      <li
        ><a href="#paper-s6"><span class="paper-num">5&nbsp;</span>Adapting checks, instructions and memory</a>
        <ol>
          <li
            ><a href="#paper-learning-verifier"><span class="paper-num">5.1&nbsp;</span>Extending the verifier</a></li
          >
          <li
            ><a href="#paper-learning-instructions"
              ><span class="paper-num">5.2&nbsp;</span>Retaining lessons in instructions</a
            ></li
          >
          <li
            ><a href="#paper-learning-acceptance"><span class="paper-num">5.3&nbsp;</span>Human acceptance</a></li
          >
          <li
            ><a href="#paper-learning-reconciliation"><span class="paper-num">5.4&nbsp;</span>Reconciling memory</a></li
          >
        </ol>
      </li>
      <li
        ><a href="#paper-s8"><span class="paper-num">6&nbsp;</span>Scope and remaining limits</a></li
      >
      <li
        ><a href="#paper-memory"><span class="paper-num">7&nbsp;</span>Self-learning and agent memory</a></li
      >
      <li
        ><a href="#paper-s10"><span class="paper-num">8&nbsp;</span>Conclusion</a></li
      >
      <li
        ><a href="#paper-bibtex"><span class="paper-num">·&nbsp;</span>Citation and references</a></li
      >
    </ol>
  </nav>

  <div class="typeset-break" aria-hidden="true"></div>
  <section
    class="paper-section typeset paper-wide"
    lang="en"
    data-align="justify"
    data-indent
    data-ligatures="classic"
    aria-labelledby="paper-s1"
    data-columns="2"
    data-rule=""
  >
    <h2 id="paper-s1" class="typeset-span"><span class="paper-num">1&nbsp;</span>Contribution and scope</h2>
    <p>
      Modern Agentic Engineering approaches still execute tasks incompletely or inconsistently. Large-scale change
      requests and new feature requests are affected most: the agent has to update every affected module and check that
      the new requirement holds across the resulting system, and each missed module or inconsistent implementation adds
      to the work left for human reviewers. Verified Agentic Engineering (VAE) addresses this problem with a programmed
      self-feedback loop: the agent writes and revises the programs that check its work and direct further action. The
      intended trade-off is additional automated work in exchange for more complete and consistent changes and less
      manual review.</p
    >
    <p>
      The same programs can support later changes by retaining checks for the requirement. The interface also extends to
      tasks that need organized review: a controller can present one document section or data partition at a time,
      together with the applicable instructions.</p
    >
    <p>
      VAE combines two feedback loops. Within a task, program output identifies a failed condition or the next work
      unit. Across tasks, the agent retains findings as checks, instructions and selected memory. Explicit module
      contracts provide stable conditions to evaluate and boundaries for dividing work among agents. VAE-DIALECT marks
      evidence, hypotheses and unknowns in compact notation. Stack templates provide reusable toolchain procedures.</p
    >
    <p>
      This report describes the implemented method, four repository-wide tasks and the procedure changes prompted by
      their findings. It covers one component system, one maintainer, models from the Qwen and Claude families, and 33
      calendar days. The observations concern the combined system; they do not separate the contributions of the model,
      harness, verifier, instructions, dialect, templates and memory.
    </p>
    <p>
      The feedback loop has precedents. ReAct interleaves reasoning, actions and observations (<a
        href="https://arxiv.org/abs/2210.03629"
        target="_blank"
        rel="noopener"
        >Yao et al., 2023</a
      >); SWE-agent studies how interfaces for editing, navigation and execution affect software-engineering agents (<a
        href="https://arxiv.org/abs/2405.15793"
        target="_blank"
        rel="noopener"
        >Yang et al., 2024</a
      >). VAE's emphasis here is the use of agent-authored control programs and retained project procedures during
      continuing repository development. Section 7 relates this adaptation to prior work on agent memory and reusable
      skills.</p
    >
  </section>

  <section
    class="paper-section typeset paper-wide"
    lang="en"
    data-align="justify"
    data-indent
    data-ligatures="classic"
    aria-labelledby="paper-s2"
    data-columns="2"
    data-rule=""
  >
    <h2 id="paper-s2" class="typeset-span"
      ><span class="paper-num">2&nbsp;</span>Programmable feedback and persistent adaptation</h2
    >
    <p>
      VAE combines a language model, an agent harness and programs the agent may create or adapt within its authorized
      scope. The human sets the objective and policy. Programs encode selected requirements and return findings or
      instructions from the current work state. The harness passes those outputs to the model, which interprets them,
      acts and invokes the next step (Figure 1).</p
    >
    <p>
      Autoregressive generation occurs within each model response; the harness and programs provide the outer loop
      across calls. Intermediate corrections can proceed without a new human prompt at every iteration. The model still
      has to interpret the evidence, edit the artifact and, when needed, improve the tools.</p
    >

    <figure class="paper-figure paper-wide typeset-span" id="paper-mechanism">
      <figure
        class="diagram"
        id="paper-loop"
        aria-label="The general VAE mechanism: human policy bounds a model in its harness, which loads task context, writes or adapts control programs and works on the artifacts; programs and the acceptance gate emit output that returns to the model's next call; lessons from the artifacts are reconciled into a retained procedure that the next session loads"
        ><script type="application/json" class="diagram-spec">
          {
            "type": "flow",
            "interactive": true,
            "cols": 4,
            "nodes": [
              {
                "id": "policy",
                "name": "Human policy",
                "meta": "goal · constraints · authority",
                "col": 2,
                "row": 1,
                "tone": "link"
              },
              { "id": "context", "name": "Task context", "meta": "rules · templates · memory", "col": 1, "row": 2 },
              {
                "id": "agent",
                "name": "Model in harness",
                "meta": "interpret · implement · revise",
                "col": 2,
                "row": 2,
                "tone": "accent"
              },
              {
                "id": "program",
                "name": "Control program",
                "meta": "check predicates · select work",
                "col": 2,
                "row": 3
              },
              {
                "id": "retained",
                "name": "Retained procedure",
                "meta": "checks · instructions · memory",
                "col": 1,
                "row": 4
              },
              {
                "id": "reconcile",
                "name": "Reconcile lessons",
                "meta": "authorized · validate · promote",
                "col": 3,
                "row": 4
              },
              {
                "id": "artifact",
                "name": "Artifacts + state",
                "meta": "edits · cursor · observations",
                "col": 3,
                "row": 2
              },
              {
                "id": "output",
                "name": "Program output",
                "meta": "FIX · NEXT · status",
                "col": 3,
                "row": 3,
                "tone": "warn"
              },
              { "id": "gate", "name": "Acceptance gate", "meta": "implemented criteria", "col": 4, "row": 2 },
              {
                "id": "complete",
                "name": "Review / completion",
                "meta": "within authorized scope",
                "col": 4,
                "row": 3,
                "shape": "pill",
                "tone": "ok"
              }
            ],
            "edges": [
              { "from": "policy", "to": "agent", "label": "bounds", "line": "dashed" },
              { "from": "context", "to": "agent", "label": "load" },
              { "from": "agent", "to": "program", "label": "write / adapt" },
              { "from": "program", "to": "output", "label": "emit" },
              { "from": "output", "to": "agent", "label": "next model call", "tone": "warn" },
              { "from": "agent", "to": "artifact", "label": "work" },
              { "from": "artifact", "to": "program", "label": "recheck / next" },
              { "from": "artifact", "to": "gate", "label": "evaluate" },
              { "from": "gate", "to": "output", "label": "remaining work", "tone": "warn" },
              { "from": "gate", "to": "complete", "label": "pass" },
              { "from": "artifact", "to": "reconcile", "label": "lessons" },
              { "from": "reconcile", "to": "retained", "label": "retain" },
              { "from": "retained", "to": "context", "label": "next session", "line": "dashed" }
            ]
          }
        </script></figure
      >
      <figcaption
        ><b>Figure 1.</b> The general VAE mechanism. Programs evaluate checks or select bounded work and return
        instructions to the model through its harness. The agent changes the artifact, invokes the next step and can
        revise the task-specific programs. A second loop reconciles findings into retained checks, instructions and
        memory for later sessions. Human policy sets the objective, acceptance criteria and adaptation authority. The
        diagram describes the method; section 2.3 states the enforcement and initiation boundaries of defuss-vae
        0.8.0.</figcaption
      >
    </figure>

    <h3 id="paper-feedback">2.1 General feedback protocol</h3>
    <p>
      A controller receives an artifact or task state and returns a finding or work instruction. It may evaluate a
      predicate, select the next work unit, supply context and rules, or name a command. The agent then changes the
      artifact or task state. If a finding exposes a missing check, the agent may extend the controller and validate the
      extension against the governing requirement.</p
    >
    <p>
      The interface is ordinary tool output. For example, a build script invokes a verifier, whose standard output
      returns findings and repair instructions through the harness. Different controllers provide different evidence: a
      predicate check evaluates its specified condition, while a document controller selects passages and review rules.
      Semantic judgments about those passages remain with the model.</p
    >
    <figure class="paper-table paper-wide typeset-span">
      <table class="table">
        <thead
          ><tr
            ><th scope="col">Controller</th><th scope="col">Program operation</th
            ><th scope="col">Output returned to the harness</th><th scope="col">Model work</th
            ><th scope="col">Evidence in this report</th></tr
          ></thead
        >
        <tbody>
          <tr
            ><td>Code verifier</td><td>Evaluate executable acceptance criteria</td
            ><td>Failing condition, affected location and repair instruction</td
            ><td>Diagnose and repair the artifact; extend checks when justified</td
            ><td>Repository case study and controlled output capture</td></tr
          >
          <tr
            ><td>Document window</td><td>Select a text part, preceding context and review rules</td
            ><td>Bounded text, applicable instructions and next command</td
            ><td>Evaluate meaning, edit the part and continue</td
            ><td>Source-inspected controller and controlled output capture</td></tr
          >
          <tr
            ><td>Spreadsheet partition</td><td>Select a row group or sheet region and applicable task rules</td
            ><td>Partition, task instructions and next partition</td
            ><td>Apply the requested transformation and inspect exceptions</td><td>Architectural illustration</td></tr
          >
        </tbody>
      </table>
      <figcaption class="paper-table-caption"
        ><b>Table 1.</b> Three uses of the controller interface. This report inspects code checks and document windows;
        the spreadsheet partition is an architectural illustration.</figcaption
      >
    </figure>

    <h3 id="paper-s2-4"><span id="paper-s9"></span>2.2 Program output and the model boundary</h3>
    <p>
      The harness carries outputs between the agent and its control programs. In defuss-shadcn, the coding agent wrote
      and extended the project verifier in response to new requirements (section 4.4) and retained findings (section
      2.4). Figure 2 presents the exchange as a conversation, using small fixtures to show a built-in defuss-vae rule
      and the document controller's output verbatim.</p
    >
    <p
      >The outputs below were captured from unmodified defuss-vae 0.8.0 functions on controlled fixtures. The verifier
      example places the temporary probe marker, which the
      <a
        href="https://github.com/kyr0/defuss-vae/blob/e9b78a321a70446b4dd7d00bf84f65b162d76615/plugin/scripts/vae_verify.py#L55-L60"
        target="_blank"
        rel="noopener"
        >hygiene rule</a
      >
      searches for, on line 2 of <code>component.ts</code>. Ordinary code detects the marker and formats the failure.
      After the marker is removed, the same check reports success.</p
    >
    <p
      >The document controller uses a different operation.
      <a
        href="https://github.com/kyr0/defuss-vae/blob/e9b78a321a70446b4dd7d00bf84f65b162d76615/plugin/scripts/vae.py#L95-L99"
        target="_blank"
        rel="noopener"
        ><code>vae.py prose --walk</code></a
      >
      selects a bounded part of a page and prints its preceding context, static findings and next command. The first
      part includes the full review catalog; subsequent parts identify the rules. The catalog has 58 rules covering
      evidence, logic, terms, relevance, structure, language and typography. The document controller organizes the
      review, while the model evaluates the text and makes the necessary edits.</p
    >
    <figure class="paper-figure paper-wide typeset-span" id="paper-prose">
      <style>
        .paper #paper-prose .bubble-content .paper-code {
          padding: 0;
          border: 0;
          border-radius: 0;
          background: none;
          font-size: 0.75rem;
          white-space: pre-wrap;
          overflow-wrap: anywhere;
        }
        .paper #paper-prose .message-name code {
          white-space: nowrap;
        }
        .paper #paper-prose .bubble-content .paper-code code {
          padding: 0;
          border-radius: 0;
          background: none;
          font-size: inherit;
        }
      </style>
      <section class="session" aria-label="The agent and its control programs" style="height: auto">
        <div class="session-viewport" aria-label="Messages">
          <div class="session-content">
            <div class="session-item">
              <div class="message">
                <div class="message-avatar"
                  ><span class="avatar" data-size="sm"
                    ><span class="avatar-fallback"><i data-lucide="shield-check"></i></span></span
                ></div>
                <div class="message-content">
                  <div class="message-header"
                    ><span class="message-name">Verifier · <code>vae.py gate</code></span></div
                  >
                  <div class="bubble" data-variant="secondary"
                    ><div class="bubble-content">
                      <pre
                        class="paper-code"
                      ><code>VERIFIED[hygiene.probes]=false BC glob='*' files=1; hits=['component.ts:2']
PROVEN: ∅
REMAINS: hygiene.probes
AGENT_CMD: FIX hygiene.probes: component.ts:2</code></pre>
                    </div></div
                  >
                </div>
              </div>
            </div>
            <div class="session-item">
              <div class="message" data-align="end">
                <div class="message-avatar"
                  ><span class="avatar" data-size="sm"
                    ><span class="avatar-fallback"><i data-lucide="bot"></i></span></span
                ></div>
                <div class="message-content">
                  <div class="message-header"><span class="message-name">Agent</span></div>
                  <div class="bubble"
                    ><div class="bubble-content"
                      >Removes the probe marker on line 2 of <code>component.ts</code> and calls the gate again.</div
                    ></div
                  >
                </div>
              </div>
            </div>
            <div class="session-item">
              <div class="message">
                <div class="message-avatar"
                  ><span class="avatar" data-size="sm"
                    ><span class="avatar-fallback"><i data-lucide="shield-check"></i></span></span
                ></div>
                <div class="message-content">
                  <div class="message-header"
                    ><span class="message-name">Verifier · <code>vae.py gate</code></span></div
                  >
                  <div class="bubble" data-variant="secondary"
                    ><div class="bubble-content">
                      <pre class="paper-code"><code>VERIFIED[hygiene.probes]=true BC glob='*' files=1
PROVEN: hygiene.probes
REMAINS: ∅
AGENT_CMD: ∅</code></pre>
                    </div></div
                  >
                </div>
              </div>
            </div>
            <div class="session-item"
              ><div class="marker" data-variant="separator"
                ><span class="marker-content">Document review</span></div
              ></div
            >
            <div class="session-item">
              <div class="message">
                <div class="message-avatar"
                  ><span class="avatar" data-size="sm"
                    ><span class="avatar-fallback"><i data-lucide="shield-check"></i></span></span
                ></div>
                <div class="message-content">
                  <div class="message-header"
                    ><span class="message-name">Document window · <code>vae.py prose --walk</code></span></div
                  >
                  <div class="bubble" data-variant="secondary"
                    ><div class="bubble-content">
                      <pre class="paper-code"><code>defuss-vae WALK README.md part 2/2 (lines 5-7)
SECTION: # Scope
CONTEXT part 1 (lines 1-4): fix only what crosses into part 2
    1| # Overview
    2| 
    3| The verifier reports failures. The agent applies corrections.
    4| 
REVIEW part 2 (lines 5-7)
    5| # Scope
    6| 
    7| Every required check must pass.
STATIC: ∅
DO: edit README.md in place where a rule fails and the page or repo supports the fix; a fix that needs an absent fact, source or decision is a question for the human, never an invention. Keep structure and voice.
NEXT: python3 vae.py prose --repo . --walk README.md --part 3</code></pre>
                    </div></div
                  >
                </div>
              </div>
            </div>
            <div class="session-item">
              <div class="message" data-align="end">
                <div class="message-avatar"
                  ><span class="avatar" data-size="sm"
                    ><span class="avatar-fallback"><i data-lucide="bot"></i></span></span
                ></div>
                <div class="message-content">
                  <div class="message-header"><span class="message-name">Agent</span></div>
                  <div class="bubble"
                    ><div class="bubble-content"
                      >Reviews lines 5-7 against the rules, finds nothing to change and runs the
                      <code>NEXT</code> command.</div
                    ></div
                  >
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>
      <figcaption
        ><b>Figure 2.</b> The agent and its control programs as a conversation. The verifier and document-window
        messages are captured output from small fixtures using
        <a
          href="https://github.com/kyr0/defuss-vae/commit/e9b78a321a70446b4dd7d00bf84f65b162d76615"
          target="_blank"
          rel="noopener"
          >defuss-vae 0.8.0</a
        >, quoted verbatim; the walk excerpt omits the long <code>CHECK EVERY rule</code> index line between
        <code>STATIC</code> and <code>DO</code>. The agent's messages state the action each output asks for; they are
        not captured text. The shown predicate evaluation, window selection and output formatting make no AI model call.
        In harness-driven operation, the harness supplies the output to the model's next invocation, where
        interpretation and the requested editing occur. These captures demonstrate the program interface, not the
        original production session.</figcaption
      >
    </figure>
    <p
      >The project's own verifier follows the same pattern with its own wire format: each failing check prints a
      <code>fix:</code> line naming the command or file to change. When a page figure disagreed with its measurement on
      October 7, the <code>stat figures</code> check named
      <a
        href="https://github.com/kyr0/defuss-shadcn/blob/8cecf4b4b1137b5f5f47448fb78e98f151d8f9de/scripts/stat-figures.ts"
        target="_blank"
        rel="noopener"
        ><code>bun scripts/stat-figures.ts</code></a
      >
      and a documentation rebuild, and running them resolved the failure.</p
    >
    <p>
      The document controller's final <code>VERIFIED[walk]</code> output depends on the requested final part and static
      findings. The <code>doc</code> and <code>doc-edit</code> skills prescribe the review procedure, but the gate does
      not validate traversal. A review attestation records the agent's claim that it reviewed the artifact.
    </p>
    <p>
      The source of feedback matters. Self-Refine uses an LLM to generate, critique and revise an answer (<a
        href="https://papers.neurips.cc/paper_files/paper/2023/hash/91edff07232fb1b55a505a9e9f6c0ff3-Abstract-Conference.html"
        target="_blank"
        rel="noopener"
        >Madaan et al., 2023</a
      >). In the examples here, program code generates the predicate result or review window; the model performs the
      diagnosis or semantic review. A deterministic controller therefore does not make every judgment in the workflow
      deterministic.</p
    >

    <h3 id="paper-s2-1"><span id="paper-s2-2"></span>2.3 Harness enforcement and adaptation authority</h3>
    <p
      >defuss-vae implements the VAE method as skills, hooks and Python programs. At session start a hook supplies
      rules, selected stack defaults, repository memory and open leads. The gate runs verification and checks review and
      documentation attestations for the relevant work state. defuss-shadcn configures its own commands and
      deterministic rules in
      <a
        href="https://github.com/kyr0/defuss-shadcn/blob/8cecf4b4b1137b5f5f47448fb78e98f151d8f9de/.agents/VERIFY.py"
        target="_blank"
        rel="noopener"
        ><code>.agents/VERIFY.py</code></a
      >, on top of the 87 custom static verification checks implemented in
      <a
        href="https://github.com/kyr0/defuss-shadcn/blob/8cecf4b4b1137b5f5f47448fb78e98f151d8f9de/scripts/verify.ts"
        target="_blank"
        rel="noopener"
        ><code>scripts/verify.ts</code></a
      >, which <code>VERIFY.py</code> runs as one of its commands. Missing or indeterminate required evidence blocks the
      monitored commit action.</p
    >
    <p>
      With the commit hook active, a monitored commit requires a passing gate for the relevant work state. A failed gate
      supplies instructions for further work. This enforces the configured commit boundary; it does not ensure that
      every task runs uninterrupted or reaches completion.</p
    >
    <p>
      Adaptation is subject to the same policy as the task. The agent may add checks, revise procedures and create tools
      within its authorization, while acceptance criteria remain those of the request and project policy. Weakening a
      check does not satisfy the original requirement. When a person invokes <code>wrap</code>, the skill prescribes
      reconciliation of retained lessons and removal or revision of obsolete memory. Within the authorized scope, the
      agent can carry out intermediate corrections without a separate human prompt for each one.</p
    >

    <h3 id="paper-s2-3">2.4 Reconciliation and bounded prompt memory</h3>
    <p
      >Failures and review findings become episodes with supporting evidence. During reconciliation, the agent compares
      those episodes with the current code, tests and retained rules. A durable lesson becomes an executable test or
      verifier rule where that form fits. Otherwise it remains a scoped instruction, memory entry or working command.
      Later sessions inherit this state and can apply the retained procedure without reconstructing the original
      failure.</p
    >
    <p
      >Here, self-learning means changes to the working system's stored evidence, tools and procedures. It does not
      involve updating model weights. The agent can improve the artifact and the programs that guide or evaluate later
      work. A retained change needs evidence for its scope. Any current human instruction outranks an older memory
      entry.</p
    >
    <p
      >The injected memory is bounded. In defuss-shadcn, the header of
      <a
        href="https://github.com/kyr0/defuss-shadcn/blob/8cecf4b4b1137b5f5f47448fb78e98f151d8f9de/.agents/MEMORY.md#L8"
        target="_blank"
        rel="noopener"
        ><code>.agents/MEMORY.md</code></a
      >
      sets a budget of 4 KiB and that of the
      <a
        href="https://github.com/kyr0/defuss-shadcn/blob/8cecf4b4b1137b5f5f47448fb78e98f151d8f9de/.agents/CLI_GIST.md#L6"
        target="_blank"
        rel="noopener"
        >command gist</a
      >
      2 KiB; defuss-vae 0.8.0 adds a limit of
      <a
        href="https://github.com/kyr0/defuss-vae/blob/e9b78a321a70446b4dd7d00bf84f65b162d76615/plugin/scripts/vae_state.py#L25-L26"
        target="_blank"
        rel="noopener"
        >240 characters per memory line</a
      >, and <code>vae.py doctor</code> checks all three. Unresolved leads are retained for reconciliation. When an
      executable check supersedes a narrative lesson, that narrative can be removed with a reference to the check.
      Lessons can therefore move from repeatedly injected prose into verifier programs, tools and tests. The total
      repository of checks and procedures may grow even while prompt memory remains small. In defuss-shadcn,
      <a
        href="https://github.com/kyr0/defuss-shadcn/blob/7253195d9a1e32cfeca57ed31ab84ca1b29cff87/.agents/MEMORY.md"
        target="_blank"
        rel="noopener"
        ><code>MEMORY.md</code></a
      >
      held eight entries in 2,311 bytes from
      <a
        href="https://github.com/kyr0/defuss-shadcn/commit/7253195d9a1e32cfeca57ed31ab84ca1b29cff87"
        target="_blank"
        rel="noopener"
        >October 6</a
      >
      (release 0.9.6) through the end of the study.</p
    >
    <p>
      Retention is useful when a later task can apply the lesson within its supported scope. Whether that prevents
      repeat failures or reduces effort requires measurement; storing a lesson alone establishes neither.</p
    >

    <h3 id="paper-s3">2.5 Dialect and stack templates</h3>
    <p>
      VAE-DIALECT combines natural language with compact operators and evidence labels:
      <span class="paper-tag" data-tag="verified">VERIFIED[scope]</span> marks a directly supported statement,
      <span class="paper-tag" data-tag="hypothesis">HYPOTHESIS[scope]</span> marks an inference to test, and
      <span class="paper-tag" data-tag="unknown">UNKNOWN[scope]</span> marks a material gap in the evidence. Operators
      express conditions, precedence and reasons. Each statement retains its scope and supporting evidence; correctness
      takes precedence over compression.</p
    >
    <p>
      The notation is intended to make unsupported assertions and ambiguous instructions easier to identify by requiring
      an explicit epistemic status. Compact forms may also reduce repeated wording; their effects on token use are
      discussed in section 4.8. A
      <code>VERIFIED</code> label is meaningful only within the scope of its supporting evidence.</p
    >
    <p
      >Stack templates provide toolchain procedures before the agent begins work. The controller selects defaults for
      the repository's detected stacks and inserts them into session context or the managed instruction block. When a
      required command is missing, the verifier includes the corresponding default in its repair instruction. Figure 3
      shows the defaults selected for a Python project.</p
    >
    <figure class="paper-figure" id="paper-python-defaults">
      <pre class="paper-code"><code>python lint: `uv run ruff check .`
python test: `uv run pytest`
python coverage: `uv run pytest --cov`</code></pre>
      <figcaption
        ><b>Figure 3.</b> The stack-template defaults selected for a Python project, as the controller inserts them into
        the session context or the managed instruction block.</figcaption
      >
    </figure>
    <p
      >Selection and formatting require no AI model call. These strings supply guidance; the gate executes the
      repository's configured commands. Templates are intended to reduce repeated tool selection, setup exploration and
      unnecessary specification work. Along with the dialect and retained procedures, they offer a way to spend more of
      the context on the current task. However, this report does not isolate their effects on unsupported claims, task
      errors, token use or elapsed time.</p
    >
    <p>
      Templates cover Go, Rust, the JVM, .NET, JavaScript and TypeScript, Python, and web projects. The author selected
      these as practical defaults based on engineering experience. A repository retains its existing toolchain unless a
      person approves a migration;
      <code>.agents/VERIFY.py</code> can configure different lint, test, coverage and end-to-end commands.</p
    >
    <p>
      The templates also define procedures for planning, implementation, review, documentation, sub-agent coordination
      and long-running work. A long job runs detached with a PID file and a log whose lines carry ISO 8601 timestamps.
      The gate records failures and findings with their session identifiers, and each attestation names the code
      fingerprint it covers.</p
    >
    <p>
      <code>vae.py init</code> scaffolds a project layout with <code>Makefile</code> targets for <code>setup</code>,
      <code>start</code>, <code>stop</code>, <code>status</code>, <code>log</code>, <code>metrics</code>,
      <code>bench</code>, <code>test</code>, <code>coverage</code>, <code>lint</code>, <code>e2e</code> and
      <code>verify</code>. The service actions and status codes draw on the
      <a
        href="https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html"
        target="_blank"
        rel="noopener"
        >LSB Core Specification 5.0, §22.2</a
      >; the additional targets and repository paths are project conventions. Services write
      <code>var/log/&lt;service&gt;.stdout</code> and <code>.stderr</code> and keep their PID in
      <code>tmp/&lt;service&gt;.pid</code>. Programs read <code>input/</code> and write <code>output/</code>, separating
      runtime state from source code.
    </p>
    <p>
      Sub-agents use separate git worktrees and a shared registry, <code>.agents/SWARM_STATUS.yaml</code>. Registry
      writes use a lock, atomic replacement and a read-back check. Only the owning process may change its entry;
      overlapping path claims are rejected, and liveness is checked against the process table. These rules coordinate
      agents that use the registry protocol. They do not establish that all concurrent repository activity is free of
      races.</p
    >
  </section>

  <div class="typeset-break" aria-hidden="true"></div>
  <section
    class="paper-section typeset paper-wide"
    lang="en"
    data-align="justify"
    data-indent
    data-ligatures="classic"
    aria-labelledby="paper-s4"
    data-columns="2"
    data-rule=""
  >
    <h2 id="paper-s4" class="typeset-span"
      ><span id="paper-history"></span><span class="paper-num">3&nbsp;</span>Case study and evidence</h2
    >
    <p>
      defuss-shadcn is a component system built from semantic HTML, CSS and JavaScript, with TypeScript sources and no
      framework or build step required by consumers. It was forked from shadcn-html with 55 component folders. The study
      follows development from September 5 to October 7, 2026, under one maintainer using models from the Qwen and
      Claude families.</p
    >
    <p id="paper-s5-7">
      Each interactive component has an explicit contract: named states, a store, a typed API and a
      <code>render()</code> operation checked against its authored markup. This use of stated obligations and assertions
      follows the design-by-contract tradition (<a
        href="https://se.inf.ethz.ch/~meyer/publications/computer/contract.pdf"
        target="_blank"
        rel="noopener"
        >Meyer, 1992</a
      >). Shared behavior, including DOM access and component-directory discovery, has an identified owner. These
      conventions allow common checks to run across components and shared changes to reach their callers. The four tasks
      below use this structure at repository scale.</p
    >
    <p
      >The project had an instruction file and its own verifier from the first commit. defuss-vae was first published on
      October 1 and wrapped the project verifier from October 6.</p
    >
    <p
      >The session ran in Claude Code. Every model response recorded inside the four task windows of section 4 came from
      <code>claude-opus-5-5</code>; later sessions on October 7 also used <code>claude-fable-5-1</code>, a model of the
      same family.</p
    >
    <p>In September, Qwen3.8-Flash-Next was used while the component count grew from 55 to 77.</p>
    <figure
      class="mermaid-diagram paper-figure paper-wide typeset-span"
      aria-label="Study timeline, 2026: on September 5 defuss-shadcn was forked from shadcn-html with 55 components; in September Qwen3.8-Flash-Next took it from 55 to 77 components; on October 1 defuss-vae was first published; on October 2 website blocks and application scaffolds followed; on October 6 came defuss-shadcn 0.9.5 and 0.9.6 and the four measured tasks with Claude Opus 5.5, and defuss-vae wrapped the project verifier; on October 7 came defuss-vae 0.6.0 and 0.8.0 and the study cutoff at 17:58 UTC, with defuss-shadcn 0.9.7 after the cutoff"
    >
      <pre class="mermaid">
timeline
  title Study timeline, 2026
  September 5 : defuss-shadcn forked from shadcn-html with 55 components
  September : Qwen3.8-Flash-Next, 55 to 77 components
  October 1 : defuss-vae first published
  October 2 : website blocks and application scaffolds
  October 6 : defuss-shadcn 0.9.5 and 0.9.6 : the four measured tasks with Claude Opus 5.5 : defuss-vae wraps the project verifier
  October 7 : defuss-vae 0.6.0 and 0.8.0 : study cutoff at 17:58 UTC : defuss-shadcn 0.9.7 after the cutoff
      </pre>
      <style>
        /* the axis the timeline's arrows point at: Mermaid draws the periods in even columns and stops their arrows
           at the columns' foot, so the span they cover is drawn under them - in percent of the figure's width, which
           the timeline's SVG fills (its natural width, 1590px, is more than the widest figure): its period boxes run
           from 6.29% to 81.13%, the first and the last arrow stand at 12.26% and 75.16%, and the arrows end 3% of the
           width above the SVG's foot */
        .paper .paper-time-axis {
          position: relative;
          margin-block-start: calc(-3% - 0.5rem);
          block-size: 2.5rem;
          color: var(--muted-foreground);
          font: 500 0.75rem/1 var(--font-sans);
        }
        .paper .paper-time-axis > .separator {
          position: absolute;
          inset-inline: 6.29% calc(18.87% + 0.375rem);
          inset-block-start: 0;
          inline-size: auto;
        }
        .paper .paper-time-axis::after {
          content: '';
          position: absolute;
          inset-inline-end: 18.87%;
          inset-block-start: 0.3125rem;
          inline-size: 0.5rem;
          block-size: 0.625rem;
          background: var(--foreground);
          clip-path: polygon(0 0, 100% 50%, 0 100%);
        }
        .paper .paper-time-axis > span {
          position: absolute;
          inset-block-start: 1.5rem;
          translate: -50% 0;
          white-space: nowrap;
        }
      </style>
      <div class="paper-time-axis" aria-hidden="true">
        <div class="separator" data-variant="neutral">33 days</div>
        <span style="inset-inline-start: 12.26%">September 5</span>
        <span style="inset-inline-start: 75.16%">October 7</span>
      </div>
      <figcaption
        ><b>Figure 4.</b> The study period, 33 days from the fork on September 5 to the cutoff on October 7, 2026: the
        models used, the defuss-vae and defuss-shadcn releases and the day of the four measured tasks. The columns are
        in order, not to scale.</figcaption
      >
    </figure>
  </section>

  <section
    class="paper-section typeset paper-wide"
    lang="en"
    data-align="justify"
    data-indent
    data-ligatures="classic"
    aria-labelledby="paper-s5"
    data-columns="2"
    data-rule=""
  >
    <h2 id="paper-s5" class="typeset-span"><span class="paper-num">4&nbsp;</span>Results</h2>
    <p>
      The October 6 session contains four repository-wide tasks: typed API documentation, shared-contract tests,
      component layout and type-error correction. For each, the agent applied a requirement across the relevant
      components and updated checks or supporting tools where the new requirement needed them.</p
    >
    <figure class="paper-table paper-wide typeset-span">
      <table class="table">
        <thead
          ><tr
            ><th scope="col">Task</th><th scope="col">Reported endpoint</th><th scope="col" data-num>Minutes</th
            ><th scope="col" data-num>Output tokens</th><th scope="col" data-num>Tool calls</th
            ><th scope="col" data-num>Human corrections</th></tr
          ></thead
        >
        <tbody>
          <tr
            ><td>Typed API documentation</td><td>Final green gate, all 59 interactive components</td
            ><td data-num>241.9</td><td data-num>347,614</td><td data-num>437</td><td data-num>1</td></tr
          >
          <tr
            ><td>Test coverage</td><td>Final reported coverage measurement</td><td data-num>20.6</td
            ><td data-num>39,926</td><td data-num>48</td><td data-num>0</td></tr
          >
          <tr
            ><td>Repository layout</td><td>Final green gate, all 228 component folders</td><td data-num>43.4</td
            ><td data-num>76,358</td><td data-num>98</td><td data-num>0</td></tr
          >
          <tr
            ><td>Type errors</td><td>Zero diagnostics and final green gates</td><td data-num>27.3</td
            ><td data-num>82,855</td><td data-num>130</td><td data-num>0</td></tr
          >
        </tbody>
      </table>
      <figcaption class="paper-table-caption"
        ><b>Table 2.</b> Four changes from one session, measured from each request to its reported endpoint. API
        documentation, layout and type correction end at final green gates; coverage ends at its final reported
        measurement. The windows include contemporaneous work: section bundles in the first, and a CI workflow and
        report edit in the second. Times and token counts describe those task windows, rather than isolated controlled
        trials. Human corrections count correction prompts within each window, not all human input or
        oversight.</figcaption
      >
    </figure>

    <div class="typeset-keep typeset-span">
      <h3 id="paper-s5-1">4.1 Growth and verification coverage</h3>
      <style>
        .paper .typeset-keep > .paper-numbers {
          margin-block: var(--typeset-gap, 1.5em);
        }
        .paper .paper-numbers.paper-deltas {
          grid-template-columns: repeat(4, minmax(0, 1fr));
        }
        @media (width < 56rem) {
          .paper .paper-numbers.paper-deltas {
            grid-template-columns: repeat(2, minmax(0, 1fr));
          }
        }
        @media (width < 26rem) {
          .paper .paper-numbers.paper-deltas {
            grid-template-columns: minmax(0, 1fr);
          }
        }
        .paper .paper-deltas > .statistic {
          container-type: inline-size;
        }
        .paper .paper-table td[data-num] {
          white-space: nowrap;
        }
        .paper .paper-delta {
          display: flex;
          align-items: flex-end;
          gap: 0.5rem;
          font-size: clamp(1.125rem, 12cqi, 1.75rem);
        }
        .paper .paper-delta :is(.paper-delta-from, .paper-delta-to) {
          display: inline-flex;
          flex-direction: column;
          line-height: 1.1;
          white-space: nowrap;
        }
        .paper .paper-delta small {
          font-size: 0.6875rem;
          font-weight: 500;
          letter-spacing: 0;
          color: var(--muted-foreground);
        }
        .paper .paper-delta-from {
          font-size: clamp(0.8125rem, 7cqi, 1rem);
          font-weight: 600;
          color: var(--muted-foreground);
        }
        .paper .paper-delta-arrow {
          flex: none;
          display: inline-flex;
          align-items: center;
          align-self: center;
          inline-size: 1.75rem;
          rotate: -30deg;
          color: #16a34a;
        }
        .paper .paper-delta-arrow::before {
          content: '';
          flex: 1;
          block-size: 2px;
          border-radius: 1px;
          background: currentColor;
        }
        .paper .paper-delta-arrow > .shape-triangle-right {
          inline-size: 0.5rem;
          block-size: 0.625rem;
          margin-inline-start: -2px;
          background: currentColor;
        }
      </style>
      <div class="paper-numbers paper-deltas paper-wide typeset-span">
        <div class="statistic"
          ><p class="statistic-title">Components</p
          ><p class="statistic-value paper-delta"
            ><span class="paper-delta-from"><span class="sr-only">from </span>55<small>Sep 5</small></span
            ><span class="paper-delta-arrow" aria-hidden="true"><span class="shape-triangle-right"></span></span
            ><span class="paper-delta-to"><span class="sr-only">to </span>231<small>Oct 7</small></span></p
          ></div
        >
        <div class="statistic"
          ><p class="statistic-title">E2E test files</p
          ><p class="statistic-value paper-delta"
            ><span class="paper-delta-from"><span class="sr-only">from </span>5<small>Sep 5</small></span
            ><span class="paper-delta-arrow" aria-hidden="true"><span class="shape-triangle-right"></span></span
            ><span class="paper-delta-to"><span class="sr-only">to </span>252<small>Oct 7</small></span></p
          ></div
        >
        <div class="statistic"
          ><p class="statistic-title">Unit tests</p
          ><p class="statistic-value paper-delta"
            ><span class="paper-delta-from"><span class="sr-only">from </span>5<small>Sep 5</small></span
            ><span class="paper-delta-arrow" aria-hidden="true"><span class="shape-triangle-right"></span></span
            ><span class="paper-delta-to"><span class="sr-only">to </span>599<small>Oct 7</small></span></p
          ></div
        >
        <div class="statistic"
          ><p class="statistic-title">Verifier checks</p
          ><p class="statistic-value paper-delta"
            ><span class="paper-delta-from"><span class="sr-only">from </span>33<small>Sep 5</small></span
            ><span class="paper-delta-arrow" aria-hidden="true"><span class="shape-triangle-right"></span></span
            ><span class="paper-delta-to"><span class="sr-only">to </span>87<small>Oct 7</small></span></p
          ></div
        >
        <div class="statistic"
          ><p class="statistic-title">Commits</p
          ><p class="statistic-value paper-delta"
            ><span class="paper-delta-from"><span class="sr-only">from </span>10<small>Sep 5</small></span
            ><span class="paper-delta-arrow" aria-hidden="true"><span class="shape-triangle-right"></span></span
            ><span class="paper-delta-to"><span class="sr-only">to </span>220<small>Oct 7</small></span></p
          ></div
        >
        <div class="statistic"
          ><p class="statistic-title">Releases</p
          ><p class="statistic-value paper-delta"
            ><span class="paper-delta-from"><span class="sr-only">from </span>0<small>Sep 5</small></span
            ><span class="paper-delta-arrow" aria-hidden="true"><span class="shape-triangle-right"></span></span
            ><span class="paper-delta-to"><span class="sr-only">to </span>17<small>Oct 7</small></span></p
          ></div
        >
        <div class="statistic"
          ><p class="statistic-title">Lines added</p
          ><p class="statistic-value paper-delta"
            ><span class="paper-delta-from"><span class="sr-only">from </span>56,640<small>Sep 5</small></span
            ><span class="paper-delta-arrow" aria-hidden="true"><span class="shape-triangle-right"></span></span
            ><span class="paper-delta-to"><span class="sr-only">to </span>350,331<small>Oct 7</small></span></p
          ></div
        >
        <div class="statistic"
          ><p class="statistic-title">Lines removed</p
          ><p class="statistic-value paper-delta"
            ><span class="paper-delta-from"><span class="sr-only">from </span>1,267<small>Sep 5</small></span
            ><span class="paper-delta-arrow" aria-hidden="true"><span class="shape-triangle-right"></span></span
            ><span class="paper-delta-to"><span class="sr-only">to </span>80,999<small>Oct 7</small></span></p
          ></div
        >
      </div>
    </div>
    <p
      >The repository grew from 55 components at the fork to 231 at the study cutoff on October 7. The boxes compare the
      last commit of September 5 with the cutoff commit; the line counts are cumulative from the fork, whose import they
      include. At the end of the first day the repository held 5 E2E test files and one unit-test file with 5 tests; at
      the study endpoint, 252 E2E files and 35 unit-test files, whose last full recorded run held 599 tests. Over the
      same span the verifier grew from 33 checks to 87, counted as the distinct labels of the
      <code>check(...)</code> calls in <code>scripts/verify.ts</code>. Its recorded October 5 run, on an earlier tree,
      passed 78 gate instances, the result lines the verifier prints; warnings are not counted as passes.</p
    >
    <p
      >The interval contains 220 commits and 17 releases. The largest component-count increase followed the addition of
      website blocks and application scaffolds on October 2. These counts establish the size and activity of the project
      during the study; they do not independently measure correctness or the method's causal effect.</p
    >
    <figure class="paper-figure paper-wide typeset-span">
      <div
        class="chart paper-chart"
        role="img"
        aria-label="Line chart per calendar week, fixed at the study cutoff: components grew from 55 in the fork's first two days to 231 on October 7, 2026; E2E test files from 56 to 252"
        data-chart='{"tooltip":{"trigger":"axis"},"legend":{"top":0},"grid":{"left":48,"right":24,"top":40,"bottom":40},"xAxis":{"type":"category","data":["Sep 5–6","Sep 7–13","Sep 14–20","Sep 21–27","Sep 28–Oct 4","Oct 5–7"],"axisLabel":{"interval":0}},"yAxis":{"type":"value"},"series":[{"name":"Components","type":"line","symbolSize":6,"label":{"show":true,"position":"bottom"},"data":[55,72,72,77,219,231]},{"name":"E2E test files","type":"line","symbolSize":6,"label":{"show":true,"position":"top"},"data":[56,75,78,83,231,252]}]}'
      ></div>
      <figcaption
        ><b>Figure 5.</b> Components and E2E test files at the last recorded commit of each calendar week, read from git
        objects. The first and last intervals are partial. The fixed endpoint is October 7, 2026: 231 components and 252
        E2E files. The fifth interval includes the website blocks and application scaffolds added on October 2. The
        weekly grouping uses the original measurement's UTC+2 convention; task timestamps elsewhere are UTC.</figcaption
      >
    </figure>

    <h3 id="paper-s5-6">4.2 Typed API documentation</h3>
    <p
      >The first requirement was to add typed API documentation for all 59 interactive components. Every member needed a
      TypeScript signature, every argument a description, every event typed detail, and every state its accepted
      configuration. The shared State API also had to be typed for each component's own states and checked in both
      source and rendered documentation.</p
    >
    <p>
      The final gate passed 241.9 minutes after the request, including one hour of hibernation due to low battery. The
      task window used 347,614 output tokens and 437 tool calls, with one human correction. All 59 interactive component
      sources changed. The source verifier checked all 59 components, and the E2E audit opened all 59 rendered API
      pages. The first passing result had missed configuration information; section 5.1 describes how that finding
      expanded the verification scope.</p
    >
    <figure class="paper-figure" id="paper-api-timeline">
      <ol class="timeline">
        <li class="timeline-item">
          <div class="timeline-dot"><i data-lucide="message-square"></i></div>
          <div class="timeline-content">
            <p class="timeline-title">The requirement arrives</p>
            <p class="timeline-description">The request arrives during another task; the work proceeds together.</p>
            <time class="timeline-time" datetime="2026-10-06T05:27Z">05:27 UTC</time>
          </div>
        </li>
        <li class="timeline-item">
          <div class="timeline-dot" data-variant="outline"><i data-lucide="circle-check"></i></div>
          <div class="timeline-content">
            <p class="timeline-title">First green gate</p>
            <p class="timeline-description">Verify, review and documentation attestations.</p>
            <time class="timeline-time" datetime="2026-10-06T06:59Z">06:59 UTC</time>
          </div>
        </li>
        <li class="timeline-item">
          <div class="timeline-dot" data-variant="destructive"><i data-lucide="circle-alert"></i></div>
          <div class="timeline-content">
            <p class="timeline-title">One human correction</p>
            <p class="timeline-description"
              >The maintainer opens a second page: the configuration each state accepts is missing. The maintainer
              clarifies the requirement.</p
            >
            <time class="timeline-time" datetime="2026-10-06T07:02Z">07:02 UTC</time>
          </div>
        </li>
        <li class="timeline-item">
          <div class="timeline-dot" data-variant="active"><i data-lucide="badge-check"></i></div>
          <div class="timeline-content">
            <p class="timeline-title">Final green gate</p>
            <p class="timeline-description"
              >All 59 interactive components complete, with an E2E audit of all 59 rendered API pages.</p
            >
            <time class="timeline-time" datetime="2026-10-06T09:29Z">09:29 UTC</time>
          </div>
        </li>
      </ol>
      <figcaption
        ><b>Figure 6.</b> API-documentation timeline on October 6, 2026, read from the session transcript. The first
        green gate was followed by one human correction; the final gate included an audit of all 59 rendered API
        pages.</figcaption
      >
    </figure>
    <p
      >The change added 3,455 and removed 408 lines across the component sources. Across all authored files in the
      window, 246 files changed, with 7,570 additions and 1,537 deletions; that larger total includes section-bundle
      work and a documentation pass. The compiler ratchet fell from 1,212 diagnostics to 1,147. These are separate
      scopes: the documentation requirement covered the 59 interactive components, not every component in the
      project.</p
    >

    <h3 id="paper-s5-cov">4.3 Test coverage</h3>
    <p
      >The next task raised reported browser-mode Vitest/V8 line coverage from 31.6% to 75.6% in 20.6 minutes, using
      39,926 output tokens and 48 tool calls. Recorded covered lines increased from 5,460 to 15,880. The work added 147
      lines of tests and an 11-line component fix. The measurements include loaded documentation code and third-party
      packages; the percentages are those of their respective instrumented runs.</p
    >
    <p
      >The agent reused 63 existing interactive fixtures: the 59 component fixtures and four compositions. The first
      contract test exercised every declared state and checked agreement among <code>getState()</code>, the store and
      <code>render()</code>, while requiring an undeclared state to throw. It exposed a missing
      <code>settled()</code> operation in the cookie-consent controller. The second test operated controls and fields
      and checked for thrown exceptions and unhandled promise rejections.</p
    >
    <figure class="paper-table paper-wide typeset-span">
      <table class="table">
        <thead
          ><tr
            ><th scope="col">Measure</th><th scope="col" data-num>Before</th><th scope="col" data-num>After</th></tr
          ></thead
        >
        <tbody>
          <tr
            ><td>Lines, step 1: states</td><td data-num>31.6%</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              66.9%</td
            ></tr
          >
          <tr
            ><td>Lines, step 2: controls</td><td data-num>66.9%</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              75.6%</td
            ></tr
          >
          <tr><td>Statements, step 1: states</td><td data-num>-</td><td data-num>61.0%</td></tr>
          <tr
            ><td>Statements, step 2: controls</td><td data-num>61.0%</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              71.8%</td
            ></tr
          >
          <tr><td>Functions, step 1: states</td><td data-num>-</td><td data-num>60.0%</td></tr>
          <tr
            ><td>Functions, step 2: controls</td><td data-num>60.0%</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              71.1%</td
            ></tr
          >
          <tr><td>Branches, step 1: states</td><td data-num>-</td><td data-num>38.6%</td></tr>
          <tr
            ><td>Branches, step 2: controls</td><td data-num>38.6%</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              50.5%</td
            ></tr
          >
          <tr
            ><td>Unit tests, step 1: states</td><td data-num>420</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              497</td
            ></tr
          >
          <tr
            ><td>Unit tests, step 2: controls</td><td data-num>497</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              564</td
            ></tr
          >
          <tr
            ><td>Coverage floor the gate enforces, step 1: states</td><td data-num>30%</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              60%</td
            ></tr
          >
          <tr data-best
            ><td>Coverage floor the gate enforces, step 2: controls</td><td data-num>60%</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              70%</td
            ></tr
          >
        </tbody>
      </table>
      <figcaption class="paper-table-caption"
        ><b>Table 3.</b> Coverage measured with Vitest/V8 in browser mode before the task and after each of its two
        steps, each row comparing two measurements; step 1 was measured at 13:12:56 UTC and step 2 at 13:29:08 UTC. Line
        coverage rose from 31.6% to 66.9% and then 75.6%; the enforced floor rose from 30% to 60% and then 70%. The
        unit-test count rose from 420 to 497 and then 564. Unrecorded baseline metrics are marked "-". Each percentage
        belongs to its recorded instrumented population.</figcaption
      >
    </figure>
    <p>
      The shared fixtures let two tests exercise all interactive components. Their assertions check the stated contracts
      and error paths; line coverage records which instrumented lines executed. In a study of five Java systems,
      Inozemtseva and Holmes found only a low-to-moderate association between coverage and mutation-based test
      effectiveness after controlling for suite size (<a
        href="https://cs.uwaterloo.ca/~rtholmes/papers/icse_2014_inozemtseva.pdf"
        target="_blank"
        rel="noopener"
        >Inozemtseva and Holmes, 2014</a
      >). Coverage here should likewise be read as execution coverage, alongside the specific assertions and the defect
      they exposed.</p
    >

    <h3 id="paper-s5-struct">4.4 Repository layout</h3>
    <p
      >The third request was to make the source tree follow the documentation sidebar. Every component needed a
      <code>section:</code> entry in its skill, a matching section directory and a stable published path. The agent
      moved all 228 component folders into 19 sections in 43.4 minutes, using 76,358 output tokens and 98 tool calls,
      without a human correction.</p
    >
    <p>
      The change centralized directory discovery and updated 11 tools to use the shared module. It affected 611 authored
      files, with 1,008 additions and 625 deletions after rename detection. The compiler ratchet remained at 1,147
      diagnostics; 570 unit tests and 246 E2E files passed at completion. The agent corrected intermediate failures in
      path discovery, generated links and configuration before the final gate.</p
    >
    <figure class="paper-table paper-wide typeset-span">
      <table class="table">
        <thead
          ><tr
            ><th scope="col">Measure</th><th scope="col" data-num>Count before</th
            ><th scope="col" data-num>Count after</th></tr
          ></thead
        >
        <tbody>
          <tr
            ><td>Section folders under <code>src/components/</code></td
            ><td data-num>0</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              19</td
            ></tr
          >
          <tr
            ><td>Component folders inside a section folder (moved with <code>git mv</code>, history kept)</td
            ><td data-num>0</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              228</td
            ></tr
          >
          <tr
            ><td>Files in the component folders (all moved, none added or removed)</td><td data-num>582</td
            ><td data-num>582</td></tr
          >
          <tr
            ><td>Skills declaring <code>section:</code></td
            ><td data-num>0</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              228</td
            ></tr
          >
          <tr
            ><td>Sibling links routed through the section</td><td data-num>0</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              261</td
            ></tr
          >
          <tr
            ><td>Component sources importing from the section depth</td><td data-num>0</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              59</td
            ></tr
          >
          <tr
            ><td
              >Tooling readers using the shared directory owner (<a
                href="https://github.com/kyr0/defuss-shadcn/blob/8cecf4b4b1137b5f5f47448fb78e98f151d8f9de/src/documentation/lib/component-dirs.ts#L27"
                target="_blank"
                rel="noopener"
                ><code>component-dirs.ts</code></a
              >)</td
            ><td data-num>0</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              11</td
            ></tr
          >
          <tr><td>Documentation components rewired</td><td data-num>-</td><td data-num>4</td></tr>
          <tr><td>Tests rewired</td><td data-num>-</td><td data-num>8</td></tr>
          <tr><td>New modules</td><td data-num>-</td><td data-num>3</td></tr>
          <tr><td>New test files</td><td data-num>-</td><td data-num>1</td></tr>
          <tr><td>Authored files changed (renames detected)</td><td data-num>-</td><td data-num>611</td></tr>
          <tr
            ><td>Lines added</td><td data-num>-</td
            ><td data-num><span class="statistic-trend" data-trend="up">+1,008</span></td></tr
          >
          <tr
            ><td>Lines removed</td><td data-num>-</td
            ><td data-num><span class="statistic-trend" data-trend="down">−625</span></td></tr
          >
          <tr data-best
            ><td>Type diagnostics (the compiler ratchet)</td><td data-num>1,147</td><td data-num>1,147</td></tr
          >
        </tbody>
      </table>
      <figcaption class="paper-table-caption"
        ><b>Table 4.</b> The repository-layout change, from git and verifier output. All 228 folders, containing 582
        files, moved under 19 sections. Published component paths remained flat. The recorded minified sizes were
        unchanged; this measurement alone does not establish byte identity. An arrow marks the direction of a change;
        "-" marks a count that has no before value.</figcaption
      >
    </figure>
    <figure class="paper-figure paper-wide typeset-span" id="paper-layout-diff">
      <style>
        .paper #paper-layout-diff .mockup-code {
          padding-block-start: 2.75rem;
          grid-template-columns: max-content;
        }
        .paper #paper-layout-diff {
          container-type: inline-size;
        }
        .paper #paper-layout-diff .diff-item-2 .mockup-code {
          justify-content: end;
        }
        @container (width < 42rem) {
          .paper #paper-layout-diff .diff-item-2 .mockup-code {
            justify-content: start;
          }
        }
        @media print {
          .paper #paper-layout-diff .mockup-code {
            grid-template-columns: auto;
          }
          .paper #paper-layout-diff .diff-item-2 .mockup-code {
            justify-content: start;
          }
        }
      </style>
      <figure class="diff" aria-label="The source tree before and after the layout change: drag the divider to compare">
        <div class="diff-item-1">
          <div class="mockup-code" data-chrome="none" data-variant="muted">
            <pre><code>src/components/</code></pre>
            <pre data-diff="remove"><code>  button/</code></pre>
            <pre><code>    button.css</code></pre>
            <pre><code>    component-skill.md</code></pre>
            <pre data-diff="remove"><code>  data-grid/</code></pre>
            <pre><code>    component-skill.md</code></pre>
            <pre><code>    data-grid.css</code></pre>
            <pre><code>    data-grid.schema.json</code></pre>
            <pre><code>    data-grid.ts</code></pre>
            <pre data-diff="remove"><code>  dialog/</code></pre>
            <pre><code>    component-skill.md</code></pre>
            <pre><code>    dialog.css</code></pre>
            <pre><code>    dialog.schema.json</code></pre>
            <pre><code>    dialog.ts</code></pre>
            <pre><code>  ... 225 more component folders</code></pre>
          </div>
          <span class="diff-label">Before</span>
        </div>
        <div class="diff-item-2">
          <div class="mockup-code" data-chrome="none" data-variant="muted">
            <pre><code>src/components/</code></pre>
            <pre data-diff="add"><code>  actions/button/</code></pre>
            <pre><code>    button.css</code></pre>
            <pre><code>    component-skill.md</code></pre>
            <pre data-diff="add"><code>  big-data/data-grid/</code></pre>
            <pre><code>    component-skill.md</code></pre>
            <pre><code>    data-grid.css</code></pre>
            <pre><code>    data-grid.schema.json</code></pre>
            <pre><code>    data-grid.ts</code></pre>
            <pre data-diff="add"><code>  overlays/dialog/</code></pre>
            <pre><code>    component-skill.md</code></pre>
            <pre><code>    dialog.css</code></pre>
            <pre><code>    dialog.schema.json</code></pre>
            <pre><code>    dialog.ts</code></pre>
            <pre><code>  ... 225 more, in 19 sections</code></pre>
          </div>
          <span class="diff-label">After</span>
        </div>
        <input
          class="diff-range"
          type="range"
          min="0"
          max="100"
          value="50"
          step="0.1"
          aria-label="Comparison divider"
        />
      </figure>
      <figcaption
        ><b>Figure 7.</b> Three of the 228 component folders before and after the move (<a
          href="https://github.com/kyr0/defuss-shadcn/commit/cf69c1b5"
          target="_blank"
          rel="noopener"
          >October 6</a
        >, released in 0.9.7): each folder keeps its files and moves into the section that lists it in the sidebar. On
        screen, the divider shows more of either tree when dragged.</figcaption
      >
    </figure>
    <p
      >The new layout check covers three violations: a missing <code>section:</code>, a component in the wrong section
      and a component outside all sections. Each fails with an instruction identifying the move or front-matter
      correction. The change thus updated both the repository layout and the checks applied to later work.</p
    >

    <h3 id="paper-s5-types">4.5 Type errors and output equivalence</h3>
    <p
      >Later in the same session, the agent was asked to remove the remaining 1,147 compiler diagnostics without
      changing the shipped output. It reached zero diagnostics in 12.5 minutes, using 71,958 output tokens and 100 tool
      calls. The final green gates were reached after 27.3 minutes, 82,855 output tokens and 130 calls, with no human
      correction.</p
    >
    <p
      >A type change in the shared query module removed 707 diagnostics before any component was edited; the other 440
      required local corrections. The complete change touched 45 component sources and three shared or type files,
      adding 276 lines and removing 210. At completion, 571 unit tests and 246 E2E files passed, and all 85 compared
      minified artifacts were byte-identical to the preceding build.</p
    >
    <figure class="paper-table paper-wide typeset-span">
      <table class="table">
        <thead
          ><tr
            ><th scope="col">Measure</th><th scope="col" data-num>Count before</th
            ><th scope="col" data-num>Count after</th></tr
          ></thead
        >
        <tbody>
          <tr
            ><td>Type diagnostics in the component program</td><td data-num>1,147</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="circle-check"></i><span class="sr-only">achieved</span></span
              >
              0</td
            ></tr
          >
          <tr
            ><td>... after the type fix in the shared query module</td><td data-num>1,147</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="circle-check"></i><span class="sr-only">achieved</span></span
              >
              440</td
            ></tr
          >
          <tr
            ><td>... after the local corrections</td><td data-num>440</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="circle-check"></i><span class="sr-only">achieved</span></span
              >
              0</td
            ></tr
          >
          <tr
            ><td>Component files with diagnostics</td><td data-num>52</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="circle-check"></i><span class="sr-only">achieved</span></span
              >
              0</td
            ></tr
          >
          <tr><td>Component sources changed</td><td data-num>-</td><td data-num>45</td></tr>
          <tr><td>Shared modules and type declarations changed</td><td data-num>-</td><td data-num>3</td></tr>
          <tr
            ><td>Source lines added</td><td data-num>-</td
            ><td data-num><span class="statistic-trend" data-trend="up">+276</span></td></tr
          >
          <tr
            ><td>Source lines removed</td><td data-num>-</td
            ><td data-num><span class="statistic-trend" data-trend="down">−210</span></td></tr
          >
          <tr
            ><td>Source-reading tools that accept a type argument</td><td data-num>0</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="arrow-up-right"></i><span class="sr-only">up</span></span
              >
              3</td
            ></tr
          >
          <tr data-best
            ><td>Shipped minified artifacts, byte-identical to the previous build</td><td data-num>85</td
            ><td data-num
              ><span class="statistic-trend" data-trend="up"
                ><i data-lucide="circle-check"></i><span class="sr-only">achieved</span></span
              >
              85</td
            ></tr
          >
        </tbody>
      </table>
      <figcaption class="paper-table-caption"
        ><b>Table 5.</b> Type-correction results from git, compiler output and byte comparison. Equality applies to the
        85 minified artifacts compared before and after this change. The readable JavaScript differed in two lines
        because an erased cast left parentheses that the minifier removed. A check marks a result the change aimed for:
        fewer diagnostics, identical bytes. An arrow marks the direction of any other change; "-" marks a count that has
        no before value.</figcaption
      >
    </figure>

    <h3 id="paper-s5-2">4.6 Human review effort</h3>
    <p
      >On September 7 the maintainer reviewed the documentation site for about eight hours and filed 52 issues,
      including missing examples, field hints, dead links and visual concerns. Eighteen issues were closed within twelve
      hours. The remainder were closed in a batch on September 28, so those closure timestamps are upper bounds on the
      corresponding fix dates.</p
    >

    <h3 id="paper-s5-5">4.7 Changes to committed code</h3>
    <p
      >Across the study interval, git recorded 350,331 additions and 80,999 deletions in authored files, excluding
      generated output. The first day's 56,640 additions include the imported fork. Documentation accounts for 69,338
      deletions, including the migration from static pages to MDX.</p
    >
    <p
      >Across components, tests, the shared runtime and theme, git recorded 8,079 deleted lines and 165,668 added lines,
      a deletion-to-addition ratio of <strong>4.9%</strong>. These aggregate counts do not measure the survival of
      individual lines. They describe committed change volume, including migrations, rather than a defect or rework
      rate.</p
    >
    <figure class="paper-table paper-wide typeset-span">
      <table class="table">
        <thead
          ><tr
            ><th scope="col">Area</th><th scope="col" data-num>Added</th><th scope="col" data-num>Deleted</th
            ><th scope="col" data-num>Net</th><th scope="col" data-num>Deleted / added</th></tr
          ></thead
        >
        <tbody>
          <tr
            ><td>Components (src/components)</td
            ><td data-num><span class="statistic-trend" data-trend="up">+99,100</span></td
            ><td data-num><span class="statistic-trend" data-trend="down">−5,793</span></td
            ><td data-num><span class="statistic-trend" data-trend="up">+93,307</span></td
            ><td data-num>5.8%</td></tr
          >
          <tr
            ><td>Documentation (src/documentation)</td
            ><td data-num><span class="statistic-trend" data-trend="up">+166,874</span></td
            ><td data-num><span class="statistic-trend" data-trend="down">−69,338</span></td
            ><td data-num><span class="statistic-trend" data-trend="up">+97,536</span></td
            ><td data-num>41.6%</td></tr
          >
          <tr
            ><td>Tests (tests/)</td><td data-num><span class="statistic-trend" data-trend="up">+57,578</span></td
            ><td data-num><span class="statistic-trend" data-trend="down">−2,029</span></td
            ><td data-num><span class="statistic-trend" data-trend="up">+55,549</span></td
            ><td data-num>3.5%</td></tr
          >
          <tr
            ><td>Tooling and verifier (scripts/)</td
            ><td data-num><span class="statistic-trend" data-trend="up">+10,726</span></td
            ><td data-num><span class="statistic-trend" data-trend="down">−1,910</span></td
            ><td data-num><span class="statistic-trend" data-trend="up">+8,816</span></td
            ><td data-num>17.8%</td></tr
          >
          <tr
            ><td>Theme and tokens (src/theme)</td
            ><td data-num><span class="statistic-trend" data-trend="up">+5,786</span></td
            ><td data-num><span class="statistic-trend" data-trend="down">−119</span></td
            ><td data-num><span class="statistic-trend" data-trend="up">+5,667</span></td
            ><td data-num>2.1%</td></tr
          >
          <tr
            ><td>Shared runtime (src/shared, src/core, src/types)</td
            ><td data-num><span class="statistic-trend" data-trend="up">+3,204</span></td
            ><td data-num><span class="statistic-trend" data-trend="down">−138</span></td
            ><td data-num><span class="statistic-trend" data-trend="up">+3,066</span></td
            ><td data-num>4.3%</td></tr
          >
          <tr
            ><td>Other (instructions, skill templates, configuration)</td
            ><td data-num><span class="statistic-trend" data-trend="up">+7,063</span></td
            ><td data-num><span class="statistic-trend" data-trend="down">−1,672</span></td
            ><td data-num><span class="statistic-trend" data-trend="up">+5,391</span></td
            ><td data-num>23.7%</td></tr
          >
          <tr data-best
            ><td><b>All authored files</b></td
            ><td data-num><span class="statistic-trend" data-trend="up">+350,331</span></td
            ><td data-num><span class="statistic-trend" data-trend="down">−80,999</span></td
            ><td data-num><span class="statistic-trend" data-trend="up">+269,332</span></td
            ><td data-num>23.1%</td></tr
          >
        </tbody>
      </table>
      <figcaption class="paper-table-caption"
        ><b>Table 6.</b> Added and deleted line events by area, from <code>git log --numstat</code> over September 5
        through October 7, with rename detection and generated files excluded. The initial fork import is included. The
        ratio is deletions divided by additions.</figcaption
      >
    </figure>

    <h3 id="paper-s5-cost">4.8 Execution and context cost</h3>
    <p
      >The recorded October 5 run of the project verifier evaluated 78 gate instances in 10.2 seconds on an Apple M4
      MacBook Air. That is the verifier command's duration, not the complete build, screenshot and test pipeline.
      Task-window elapsed times and output-token counts are reported separately in Table 2.</p
    >
    <p
      >The session that produced the first version of this report also records input-token accounting. Across its
      requests, 580,660,897 input tokens were cache reads, 2,609,778 were cache writes and 2,330 were uncached input.
      Cache reads account for 99.6% of the sum. These are accumulated usage counters, including repeated reads of cached
      context; they are not the size of a single context or a count of unique text.</p
    >
    <p
      >The three categories are priced very differently. At the Claude API list prices for Opus 5.5 at the time of
      writing (<a href="https://platform.claude.com/docs/en/about-claude/pricing" target="_blank" rel="noopener"
        >Anthropic, 2026</a
      >), a cache read costs $0.20 per million tokens, 95% below uncached input at $4 per million. A cache write costs
      more than uncached input: $5 per million for the default 5-minute cache and $8 for the 1-hour cache, which every
      cached prefix of this session used. At these prices the recorded input comes to $137.02: cache reads were 99.6% of
      the tokens and 84.8% of the cost, cache writes 0.4% of the tokens and 15.2% of the cost. The same tokens at the
      uncached price would cost $2,333.09. These are list-price figures for the recorded counters, not the amount the
      session was billed.</p
    >
    <figure class="paper-table paper-wide typeset-span">
      <table class="table">
        <thead
          ><tr
            ><th scope="col">Input usage category</th><th scope="col" data-num>Price per million</th
            ><th scope="col" data-num>Tokens</th><th scope="col" data-num>Cost</th></tr
          ></thead
        >
        <tbody>
          <tr
            ><td>Cache reads: least expensive, 95% below uncached input</td><td data-num>$0.20</td
            ><td data-num>580,660,897</td><td data-num>$116.13</td></tr
          >
          <tr
            ><td>Cache writes, 1-hour cache: most expensive, twice uncached input</td><td data-num>$8.00</td
            ><td data-num>2,609,778</td><td data-num>$20.88</td></tr
          >
          <tr
            ><td>Uncached input: the base price</td><td data-num>$4.00</td><td data-num>2,330</td
            ><td data-num>$0.01</td></tr
          >
          <tr data-best><td>All input</td><td data-num>-</td><td data-num>583,273,005</td><td data-num>$137.02</td></tr>
        </tbody>
      </table>
      <figcaption class="paper-table-caption"
        ><b>Table 7.</b> Input-token accounting for the session that wrote the first report version, through the
        recorded October 7 measurement (04:20 UTC), priced at the Claude API list prices for Opus 5.5 read on October 8,
        2026 (US dollars). Every cached prefix of the session went to the 1-hour cache. The first request recorded
        69,980 cache-write tokens. These counters include the session context and cannot be attributed exclusively to
        the instruction file. The costs are list prices applied to the counters, not the amount billed. These prices
        apply to token-based (API) billing only. A monthly subscription charges a flat fee within usage limits instead,
        so for an individual developer on such a plan the per-token prices matter only through those limits. The
        maintainer reports working on the Claude Max plan of 2026 and, across this and several other projects, never
        exceeding 90% of its weekly limit.</figcaption
      >
    </figure>
    <p>
      Caching, compact notation and reusable procedures affect different parts of the cost. The counters show how input
      was served; they do not measure savings from VAE-DIALECT or templates. Working templates may reduce failed setup
      attempts, and compact notation may shorten instructions. Shorter text does not necessarily mean fewer tokens: that
      depends on the tokenizer. The net effect on token use and elapsed time remains unmeasured. The comparisons
      proposed in section 6 would test those effects separately.</p
    >
  </section>

  <section
    class="paper-section typeset paper-wide"
    lang="en"
    data-align="justify"
    data-indent
    data-ligatures="classic"
    aria-labelledby="paper-s6"
    data-columns="2"
    data-rule=""
  >
    <h2 id="paper-s6" class="typeset-span"
      ><span id="paper-s7"></span><span class="paper-num">5&nbsp;</span>Adapting checks, instructions and memory</h2
    >
    <p>
      The following cases illustrate four responses to findings: extending a check, retaining an instruction, obtaining
      a human acceptance decision and reconciling memory. They explain how the procedure changed; they are not a sample
      from which to estimate failure rates or the effectiveness of each response.</p
    >

    <h3 id="paper-learning-verifier">5.1 Extending the verifier</h3>
    <p
      >The typed API documentation first passed its gate at 06:59 on October 6. At 07:02 the maintainer opened a second
      page and found that the configuration accepted by each state was missing. The check had covered source information
      without establishing that every rendered page exposed it.</p
    >
    <p
      >Under the VAE method, the agent corrected the documentation and extended the work to an E2E audit of all 59
      interactive-component pages (<a
        href="https://github.com/kyr0/defuss-shadcn/blob/7253195d9a1e32cfeca57ed31ab84ca1b29cff87/tests/e2e/api-docs.e2e.ts"
        target="_blank"
        rel="noopener"
        ><code>tests/e2e/api-docs.e2e.ts</code></a
      >, added in release 0.9.6). The final green gate was recorded at 09:29. The human supplied the missing acceptance
      observation; the agent supplied the repair and the broader check. The correction therefore changed both the
      artifact and the verification scope. Once an executable check embodies that requirement, later work can test it
      without reconstructing this exchange.</p
    >

    <h3 id="paper-learning-instructions">5.2 Retaining lessons in instructions</h3>
    <p
      >Working on the project, the agent recorded failures at module boundaries: the dialog script claimed a dialog
      owned by another component, and the tabs script claimed the BibTeX component's tab list. At 03:56 UTC on October 7
      the maintainer asked to design a guideline for component ownership as a strong recommendation in
      <a
        href="https://github.com/kyr0/defuss-shadcn/blob/10d02a3c1e7d8bad1e7cc9d2caf8fc5265814e36/AGENTS.md#L191-L193"
        target="_blank"
        rel="noopener"
        ><code>AGENTS.md</code></a
      >; the agent drafted it, the maintainer shortened the wording at 04:19, and a
      <a
        href="https://github.com/kyr0/defuss-shadcn/commit/10d02a3c1e7d8bad1e7cc9d2caf8fc5265814e36"
        target="_blank"
        rel="noopener"
        >commit</a
      >
      added it at 04:38. The instruction states that one module owns each concern and other modules use that owner. The
      same rule entered the <code>plan</code> and <code>implement</code> skills of defuss-vae 0.6.0 at 08:49 that
      day.</p
    >
    <p>
      This sequence links observed ownership failures to a persistent instruction drafted by the agent and revised by
      the maintainer. Lessons may be retained as instructions, checks or scoped memory entries. In a later session, the
      agent encoded
      <a
        href="https://github.com/kyr0/defuss-shadcn/commit/a658009ac14adf482a88bd1fe2bce73f520e6dac"
        target="_blank"
        rel="noopener"
        >README parity as a verifier rule</a
      >, released in 0.9.7. The defuss-vae 0.6.0 skill update also added two lessons from section 4.5 to
      <code>implement</code>: compare built artifacts when shipped output must remain unchanged, and test source-reading
      tools when source syntax changes.</p
    >
    <p>
      A separate <code>wrap</code> run illustrates recovery from a changed instruction file. The maintainer reports
      having arranged an adversarial edit by an external agent before starting a fresh session with the normal injected
      memory. Figure 8 records the agent's response. This is a single demonstration, not an evaluation of resistance to
      instruction tampering.</p
    >
    <figure class="paper-figure" id="paper-wrap-report" data-break-inside="allow">
      <pre class="paper-code"><code>Wrap complete. The release itself is still yours to run.
VERIFIED[gate] BC `vae.py gate` → VERIFIED[gate]=true BC verify+review+docs@fp=7f9da306f928
[...]
UNKNOWN[release] BC scripts/deploy.sh not run: the auto-mode classifier denies it as a production deploy; run `! nice -n 10 ./scripts/deploy.sh` yourself
UNCOMMITTED: src/documentation/pages/paper.mdx (your in-progress edit of section 5.2, plus one copy fix of mine, see below)

Two things you should know about
- Your paper.mdx edit appeared in the working tree during this session. The gate refused to pass with an unresolved prose finding in it, so I made one minimal fix in your new sentence [...]. The file stays uncommitted for you to finish.
- vae.py init dropped a maintainer decision. Refreshing the managed block in AGENTS.md removed the "CI is DISABLED" sentence a previous agent had written inside that block [...]. I restored the decision as one line directly below the managed block, where init cannot overwrite it, and recorded the lesson in memory.</code></pre>
      <figcaption
        ><b>Figure 8.</b> The agent's closing report of the <code>wrap</code> run after the changed instruction file,
        verbatim; [...] marks omitted lines and passages.</figcaption
      >
    </figure>
    <p>
      According to the report, regenerating the managed block removed a maintainer decision. The agent restored it
      outside the block and recorded the lesson in memory. It also left the maintainer's in-progress paper edit out of
      the commits.</p
    >

    <h3 id="paper-learning-acceptance">5.3 Human acceptance</h3>
    <p>
      Some findings require an acceptance criterion that the specification does not yet contain. A verifier can check an
      encoded radius, alignment or timing constraint; it cannot infer the author's preferred appearance from a passing
      structural check. This is an instance of the test-oracle problem: deciding which observed behavior is acceptable
      (<a href="https://discovery.ucl.ac.uk/id/eprint/1471263/" target="_blank" rel="noopener">Barr et al., 2015</a>). A
      human can supply the missing criterion or authorize another source of judgment, after which stable parts of the
      decision can become checks.</p
    >
    <p>
      This report's typesetting provided an example. The first line of each section's opening paragraph used small
      capitals, as specified, and the paper and typography tests passed. On October 7 the author rejected the appearance
      because it resembled monospace. The agent reported that the shipped Geist font lacked the OpenType features
      <code>smcp</code> and <code>c2sc</code>, and attributed the appearance to synthesized capitals. The option was
      <a
        href="https://github.com/kyr0/defuss-shadcn/commit/70628bc9de339277e49775c759c1fe696797f763"
        target="_blank"
        rel="noopener"
        >removed</a
      >
      the same day, in release 0.9.7. No font-feature check was added. CSS can disable synthesized small capitals (<a
        href="https://www.w3.org/TR/2026/WD-css-fonts-4-20260913/#font-synthesis-small-caps"
        target="_blank"
        rel="noopener"
        >CSS Fonts Module Level 4, §2.8.3</a
      >); establishing which features a particular font provides requires inspecting that font.</p
    >
    <p>
      Four visual defects reported on October 7 became E2E checks. A rotating-glyph artifact remained unresolved; its
      edges had been measured only in a still frame.</p
    >

    <h3 id="paper-learning-reconciliation">5.4 Reconciling memory</h3>
    <p>
      VAE bounds injected memory and reconciles its contents on request. When a person invokes <code>wrap</code>, the
      agent reviews <code>EPISODES.md</code> and <code>MEMORY.md</code> (section 7). Figure 9 shows the memory section
      of the same closing report.</p
    >
    <figure class="paper-figure" id="paper-memory-report" data-break-inside="allow">
      <pre class="paper-code"><code>Memory changes, with evidence

- REMOVED EPISODES.md: 60 FINDING learn=none leads. Groups: paper.mdx reading and layout judgments whose result is the committed text (derivable from git); checks already enforced by verify gates [...] or by tests; [...] the jsDelivr CORS question, settled by a probe that returned access-control-allow-origin: *; [...]
- KEPT EPISODES.md: 7 open leads with no evidence either way. [...]
[...]
- REWROTE MEMORY.md: the screenshots, gate-turn-end and perf lines shortened under 240 chars, content kept.
- ADDED MEMORY.md: the deploy.sh denial and the managed-block lesson.</code></pre>
      <figcaption
        ><b>Figure 9.</b> The memory section of the same closing report, verbatim; [...] marks omitted lines and
        passages.</figcaption
      >
    </figure>
    <p>
      In this run, the agent removed 60 of 67 open leads, retained 7, shortened three memory lines and added two. The
      report groups the removals by reason, including facts recoverable from git, checks already enforced and questions
      settled by probes. Open questions remain available for later investigation. This records a reduction in retained
      narrative, not a measured improvement in later task performance.</p
    >
  </section>

  <section
    class="paper-section typeset paper-wide"
    lang="en"
    data-align="justify"
    data-indent
    data-ligatures="classic"
    aria-labelledby="paper-s8"
    data-columns="2"
    data-rule=""
  >
    <h2 id="paper-s8" class="typeset-span"
      ><span id="paper-future"></span><span class="paper-num">6&nbsp;</span>Scope and remaining limits</h2
    >
    <p>
      The study covers one project and one maintainer, without a control group. The wider history includes Qwen and
      Claude models; the four measured task windows used Claude Opus 5.5. The maintainer reports successful use in other
      projects, but those cases are not documented here. This report therefore supports an account of the workflow in
      its project context, rather than an estimate of its causal effect, a distinction discussed in software-engineering
      case-study methodology (<a href="https://doi.org/10.1007/s10664-008-9102-8" target="_blank" rel="noopener"
        >Runeson and Höst, 2009</a
      >).
    </p>
    <p>
      The method also changed during the study. Project-specific verifiers, instructions and memory preceded the general
      defuss-vae package, which was introduced near the study's end. The controlled output captures describe defuss-vae
      0.8.0; they should not be read as a record of the earlier production session. Task windows include contemporaneous
      work, and the API-documentation window includes one hour of hibernation. Their elapsed times and token counts are
      descriptive measurements, not controlled latency or cost benchmarks.</p
    >
    <p>
      A verifier evaluates encoded predicates over the inputs it inspects. A passing result does not establish
      unspecified behavior, and a review attestation does not independently establish review quality. When the agent
      changes a verifier, the revised check must still express the governing requirement. Human review and tests of the
      verifier remain necessary where a faulty or weakened check could accept an incorrect result.</p
    >
    <p
      >The control interface is independent of a particular artifact format: programs can return repairs, document
      windows or data partitions through the same harness interface. This report demonstrates code-related work and
      inspects the document controller. Transfer to spreadsheet tasks, other repositories, teams, languages or model
      configurations remains an empirical question.</p
    >
    <p>
      Future comparisons should hold the task, model, tool access and acceptance criteria fixed while varying the
      feedback controller, persistent adaptation, dialect and stack templates. Outcomes should include task success,
      repeat failures, human review time and total execution cost. This would test which parts of the workflow
      contribute to its results.</p
    >
  </section>

  <section
    class="paper-section typeset paper-wide"
    lang="en"
    data-align="justify"
    data-indent
    data-ligatures="classic"
    aria-labelledby="paper-memory"
    data-columns="2"
    data-rule=""
  >
    <h2 id="paper-memory" class="typeset-span"><span class="paper-num">7&nbsp;</span>Self-learning and agent memory</h2>
    <p>
      Persistent memory creates two maintenance problems. Retrieved memory must select relevant entries from a growing
      store; memory injected in full can continue to present obsolete instructions after the code changes. Ning et al.
      (<a href="https://arxiv.org/abs/2610.05162" target="_blank" rel="noopener">MemAdapter</a>, 2026) study a related
      risk: memories can bias an agent toward a user's past beliefs even when those beliefs are outdated or conflict
      with current evidence. Their focus is memory-induced sycophancy, which is related to, but distinct from, stale
      engineering instructions.</p
    >
    <p>
      Prior systems also retain experience without updating model weights. Reflexion stores textual reflections for
      subsequent trials (<a href="https://arxiv.org/abs/2303.11366" target="_blank" rel="noopener">Shinn et al., 2023</a
      >); Voyager retains executable skills and uses execution feedback to refine programs in Minecraft (<a
        href="https://arxiv.org/abs/2305.16291"
        target="_blank"
        rel="noopener"
        >Wang et al., 2023</a
      >). VAE applies related ideas to repository procedures, promoting a lesson into a check when possible and
      reconciling the prose that later sessions receive.
    </p>

    <p
      >VAE splits memory in two. Episodic memory is
      <a
        href="https://github.com/kyr0/defuss-shadcn/blob/8cecf4b4b1137b5f5f47448fb78e98f151d8f9de/.agents/EPISODES.md"
        target="_blank"
        rel="noopener"
        ><code>.agents/EPISODES.md</code></a
      >: the gate appends a timestamped <code>FAIL</code>, <code>DONE</code> or <code>FINDING</code> line, with its
      session, for every outcome. At most three of its entries are injected: the newest open ones, which are unsettled
      lessons and findings, and failures that no later success of the same session resolved. Agents search the rest by
      path or symptom when a task touches the same place. Long-term memory is small and injected whole into every
      session:
      <a
        href="https://github.com/kyr0/defuss-shadcn/blob/8cecf4b4b1137b5f5f47448fb78e98f151d8f9de/.agents/MEMORY.md"
        target="_blank"
        rel="noopener"
        ><code>.agents/MEMORY.md</code></a
      >, one line per decision with its reason and scope, and the
      <a
        href="https://github.com/kyr0/defuss-shadcn/blob/8cecf4b4b1137b5f5f47448fb78e98f151d8f9de/.agents/CLI_GIST.md"
        target="_blank"
        rel="noopener"
        >command gist</a
      >, within the budgets of section 2.4. Lessons encoded in tests and verifier rules can be applied by later gates
      without keeping their full narratives in the prompt.</p
    >
    <p>
      Session-start hooks supply this state to the orchestrator and spawned sub-agents; gate runs append episodes.
      Reconciliation runs when a person invokes <code>wrap</code> after a work package. Sub-agents do not run it. The
      procedure promotes useful findings to tests, verifier rules or scoped memory, then checks retained entries against
      current code and commands. Contradicted entries are revised or removed; redundant entries are removed; claims
      wider than their evidence are narrowed; unresolved entries remain marked <code>UNKNOWN</code>.
      <code>vae.py doctor</code> checks the configured size limits.
    </p>
    <p>
      Additional examples show lessons becoming tests: on October 7, a deadlock between two gates led to four unit-test
      cases; on October 8, after the study cutoff, a Firefox scroll loop led to an end-to-end test. These examples
      illustrate retention of a finding; they do not measure the rate of failure recurrence.</p
    >
    <p>
      MemAdapter further reports that even a correct memory can produce inappropriate agreement, and that its useful
      influence depends on the current task. Its counterfactual induction, context-aware reflection and evidence-based
      reasoning components address that risk. VAE expresses a related constraint as an instruction: a memory applies
      only within its supported scope, and the current request takes precedence. Repetition, recency and confident
      wording do not expand that scope.</p
    >
    <p>
      Reconciliation depends on the agent's judgment and on a person invoking <code>wrap</code>. Its attestation records
      completion of the procedure, not an independent assessment of the result. Lessons that cannot be expressed as
      checks remain prose, subject to the memory budget. The study records individual removals and revisions, but does
      not systematically measure memory accuracy or whether retained lessons prevent repeat failures. Section 6 proposes
      comparisons for evaluating those effects.</p
    >
  </section>

  <div class="typeset-break" aria-hidden="true"></div>
  <section
    class="paper-section typeset paper-wide"
    lang="en"
    data-align="justify"
    data-indent
    data-ligatures="classic"
    aria-labelledby="paper-s10"
    data-columns="2"
    data-rule=""
  >
    <h2 id="paper-s10" class="typeset-span"><span class="paper-num">8&nbsp;</span>Conclusion</h2>
    <p>
      Over 33 days, defuss-shadcn grew from 55 to 231 components while its checks, instructions and memory evolved with
      the code. In the measured session, the agent documented all 59 interactive components, expanded shared-contract
      tests, moved 228 component folders and removed 1,147 type errors. For the type-error change, all 85 compared
      minified artifacts remained byte-identical. A human correction to the documentation task prompted an audit of all
      59 rendered API pages. These results document repository-wide work and corresponding changes to the verification
      procedure.</p
    >
    <p>
      VAE organizes that workflow around programs that return findings and work instructions through an agent harness.
      The agent may change both the artifact and, within its authority, the checks and procedures used in later tasks.
      Tests and verifier rules retain executable lessons; instructions and bounded memory retain those that still
      require interpretation. The public defuss-vae package provides an implementation of this workflow.</p
    >
    <p>
      The case establishes that this combination was used for substantial repository-wide changes. It does not establish
      which part of the combination caused the observed results or how much review effort it saved. The same controller
      interface can present document passages or data partitions, but its effectiveness on those tasks and in other
      projects remains to be evaluated.</p
    >
    <p>
      The paper's own presentation is a concrete result of this process: its unified, responsive two-column layout for
      both screen and print and 176 of defuss-shadcn's 231 components were developed through the workflow described
      here; the other 55 came with the fork from shadcn-html, and by defuss-vae 0.8.0 all 231 had been fixed and
      verified with the method. Readers can therefore inspect and use a result of the method as they read about it.</p
    >
  </section>

  <div class="separator" aria-hidden="true" data-gap="lg">✦ ✦ ✦</div>

  <div class="typeset-break" aria-hidden="true"></div>
  <section class="paper-bibtex" aria-labelledby="paper-bibtex">
    <h2 id="paper-bibtex">Citation and references</h2>
    <figure class="bibtex" data-formats="bibtex apa mla ieee" aria-label="Cite this report">
      <figcaption>Cite this report</figcaption>
      <pre><code class="bibtex-source">@techreport{homberg2026vaepractice,
  title = {Verified Agentic Engineering in Practice: Agent-Authored Control Programs and Persistent Adaptation Across a Growing Component System},
  author = {Homberg, Aron},
  institution = {defuss},
  year = {2026},
  month = oct,
  note = {Text drafted with Claude (Opus 5.5)},
  url = {https://shadcn.defuss.org/papers/paper.html}
}</code></pre>
    </figure>
    <figure class="bibtex" data-formats="apa ieee bibtex" data-format="apa" aria-label="References">
      <figcaption>References</figcaption>
      <pre><code class="bibtex-source">@misc{homberg2026defussvae,
  author = {Homberg, Aron},
  title = {defuss-vae: Verified Agentic Engineering},
  year = {2026},
  version = {0.8.0},
  howpublished = {GitHub},
  note = {Commit e9b78a321a70446b4dd7d00bf84f65b162d76615},
  url = {https://github.com/kyr0/defuss-vae/tree/e9b78a321a70446b4dd7d00bf84f65b162d76615}
}

@misc{homberg2026defussshadcn,
  author = {Homberg, Aron},
  title = {defuss-shadcn: the study repository},
  year = {2026},
  howpublished = {GitHub},
  note = {Study cutoff 2026-10-07},
  url = {https://github.com/kyr0/defuss-shadcn}
}

@inproceedings{yao2023react,
  author = {Yao, Shunyu and Zhao, Jeffrey and Yu, Dian and Du, Nan and Shafran, Izhak and Narasimhan, Karthik and Cao, Yuan},
  title = {{ReAct}: Synergizing Reasoning and Acting in Language Models},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://arxiv.org/abs/2210.03629}
}

@misc{yang2024sweagent,
  author = {Yang, John and Jimenez, Carlos E. and Wettig, Alexander and Lieret, Kilian and Yao, Shunyu and Narasimhan, Karthik and Press, Ofir},
  title = {{SWE-agent}: Agent-Computer Interfaces Enable Automated Software Engineering},
  year = {2024},
  eprint = {2405.15793},
  archiveprefix = {arXiv},
  url = {https://arxiv.org/abs/2405.15793}
}

@inproceedings{madaan2023selfrefine,
  author = {Madaan, Aman and Tandon, Niket and Gupta, Prakhar and Hallinan, Skyler and Gao, Luyu and Wiegreffe, Sarah and Alon, Uri and Dziri, Nouha and Prabhumoye, Shrimai and Yang, Yiming and Gupta, Shashank and Majumder, Bodhisattwa Prasad and Hermann, Katherine and Welleck, Sean and Yazdanbakhsh, Amir and Clark, Peter},
  title = {{Self-Refine}: Iterative Refinement with Self-Feedback},
  booktitle = {Advances in Neural Information Processing Systems},
  volume = {36},
  year = {2023},
  url = {https://papers.neurips.cc/paper_files/paper/2023/hash/91edff07232fb1b55a505a9e9f6c0ff3-Abstract-Conference.html}
}

@article{meyer1992contract,
  author = {Meyer, Bertrand},
  title = {Applying Design by Contract},
  journal = {Computer},
  volume = {25},
  number = {10},
  pages = {40--51},
  year = {1992},
  url = {https://se.inf.ethz.ch/~meyer/publications/computer/contract.pdf}
}

@inproceedings{inozemtseva2014coverage,
  author = {Inozemtseva, Laura and Holmes, Reid},
  title = {Coverage Is Not Strongly Correlated with Test Suite Effectiveness},
  booktitle = {Proceedings of the International Conference on Software Engineering},
  year = {2014},
  url = {https://cs.uwaterloo.ca/~rtholmes/papers/icse_2014_inozemtseva.pdf}
}

@article{barr2015oracle,
  author = {Barr, Earl T. and Harman, Mark and McMinn, Phil and Shahbaz, Muzammil and Yoo, Shin},
  title = {The Oracle Problem in Software Testing: A Survey},
  journal = {IEEE Transactions on Software Engineering},
  volume = {41},
  number = {5},
  pages = {507--525},
  year = {2015},
  doi = {10.1109/TSE.2014.2372785},
  url = {https://discovery.ucl.ac.uk/id/eprint/1471263/}
}

@article{runeson2009casestudy,
  author = {Runeson, Per and Höst, Martin},
  title = {Guidelines for Conducting and Reporting Case Study Research in Software Engineering},
  journal = {Empirical Software Engineering},
  volume = {14},
  pages = {131--164},
  year = {2009},
  doi = {10.1007/s10664-008-9102-8},
  url = {https://doi.org/10.1007/s10664-008-9102-8},
  note = {Published online 19 December 2008; journal issue 2009}
}

@misc{shinn2023reflexion,
  author = {Shinn, Noah and Cassano, Federico and Berman, Edward and Gopinath, Ashwin and Narasimhan, Karthik and Yao, Shunyu},
  title = {{Reflexion}: Language Agents with Verbal Reinforcement Learning},
  year = {2023},
  eprint = {2303.11366},
  archiveprefix = {arXiv},
  url = {https://arxiv.org/abs/2303.11366},
  note = {Author list from arXiv version 4}
}

@misc{wang2023voyager,
  author = {Wang, Guanzhi and Xie, Yuqi and Jiang, Yunfan and Mandlekar, Ajay and Xiao, Chaowei and Zhu, Yuke and Fan, Linxi and Anandkumar, Anima},
  title = {{Voyager}: An Open-Ended Embodied Agent with Large Language Models},
  year = {2023},
  eprint = {2305.16291},
  archiveprefix = {arXiv},
  url = {https://arxiv.org/abs/2305.16291}
}

@manual{linuxfoundationlsb5,
  author = {{Linux Foundation}},
  title = {Linux Standard Base Core Specification, Generic Part: Init Script Actions},
  edition = {5.0},
  url = {https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html},
  note = {Section 22.2; accessed 2026-10-10}
}

@techreport{w3c2026cssfonts,
  author = {{CSS Working Group}},
  title = {{CSS} Fonts Module Level 4},
  institution = {W3C},
  year = {2026},
  url = {https://www.w3.org/TR/2026/WD-css-fonts-4-20260913/},
  note = {Working Draft, 13 September 2026; sections 2.8.3 and 6.6}
}

@misc{ning2026memadapter,
  author = {Ning, Ruqing and Meng, Haibo and Xiang, Zhishang and Chen, Zerui and Su, Jinsong and Wang, Xin and Zhang, Qinggang},
  title = {MemAdapter: Counterfactual Adaptation Against Memory-induced Sycophancy},
  year = {2026},
  eprint = {2610.05162},
  archiveprefix = {arXiv},
  doi = {10.48550/arXiv.2610.05162},
  url = {https://arxiv.org/abs/2610.05162}
}

@misc{anthropic2026pricing,
  author = {{Anthropic}},
  title = {Pricing - Claude Platform Docs},
  year = {2026},
  url = {https://platform.claude.com/docs/en/about-claude/pricing},
  note = {Accessed 2026-10-08}
}

@misc{lindley2026shadcnhtml,
  author = {Lindley, Cody},
  title = {shadcn-html: The AI prototyping substrate},
  year = {2026},
  howpublished = {GitHub},
  url = {https://github.com/codylindley/shadcn-html}
}

@inproceedings{park2021nerfies,
  author = {Keunhong Park and Utkarsh Sinha and Jonathan T. Barron and Sofien Bouaziz and Dan B. Goldman and Steven M. Seitz and Ricardo Martin-Brualla},
  title = {Nerfies: Deformable Neural Radiance Fields},
  booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages = {5865--5874},
  year = {2021}
}</code></pre>
    </figure>
  </section>

  <hr
    class="separator"
    role="none"
    data-variant="primary"
    data-size="lg"
    style="width: 3rem; margin-inline: auto; border-radius: 999px"
  />

  <footer class="paper-footer">
    <p
      >Method, data, proofreading and final editing: Aron Homberg. Initial draft: Claude (Opus 5.5) based on an
      editorial specification prepared by the author.</p
    >
    <p
      >Initial paper layout inspiration adapted from the Nerfies project-page template (CC BY-SA 4.0), as used by
      InternVL, rebuilt with defuss-shadcn tokens, two-column responsive typography and interactive components.</p
    >
    <p>Historical results use the fixed study snapshot and their recorded measurements.</p>
  </footer>
</article>
<script>
  document.addEventListener('DOMContentLoaded', () => {
    // the swap shows the mode the page is in: the full-screen page took the OS
    // preference before this runs (the card, the site's theme), and either may change
    const root = document.documentElement;
    const mode = df$('#paper-mode input');
    const show = () => mode.prop('checked', root.classList.contains('dark'));
    show();
    new MutationObserver(show).observe(root, { attributes: true, attributeFilter: ['class'] });
    mode.on('change', (e) => root.classList.toggle('dark', e.target.checked));
    // the alignment swap mirrors the class: checked = block (justify, the default)
    const align = df$('#paper-align input');
    const showAlign = () => align.prop('checked', !root.classList.contains('paper-align-left'));
    showAlign();
    new MutationObserver(showAlign).observe(root, { attributes: true, attributeFilter: ['class'] });
    align.on('change', (e) => root.classList.toggle('paper-align-left', !e.target.checked));
  });
</script>
```

<h2 id="print" class="h3 mt-10 mb-3">Print</h2>

<p class="text-sm text-muted-foreground mb-3"><code>data-print="a4"</code> or <code>"letter"</code> on the <code>.paper</code> picks a print profile: the sheet, its margins (20mm, or 1in) and a print scale - <code>--paper-print-scale</code>, 0.8, prints the 16px body at 9.6pt so two columns fit the 170mm text width of A4; at 1 the two-column sections print in one column. <code>data-binding="inner"</code> mirrors the margins for a bound duplex print. The profiles are named pages, so they change nothing on a page without one. Every page but the first carries its number at the foot (an <code>@page</code> margin box). The table of contents stays on screen: its links do nothing on paper, and a printed line could not point to a page (Chromium has no <code>target-counter()</code>). Breaks and keeps are <DocLink href="typography.html">Typography</DocLink>'s: a <code>.typeset-break</code> before a block starts it on a new page, and <code>data-break-inside="allow"</code> lets a long record split over two columns, each piece framed. The technical report above breaks before section 1, sections 3 and 8 (their headings fell to the foot of a page) and its citations this way, and its other sections run on - open it full screen and print it, or save it as PDF. In print a profiled paper is a block, not a grid (a page has one text width), and it prints its colors as designed (<code>print-color-adjust: exact</code>): the print dialog drops background graphics by default, which left the text of a chat bubble, a code window or a tag pale on white paper. Its parts print as paper can show them: <DocLink href="bibtex.html">BibTeX</DocLink> without its tabs and copy button, <DocLink href="diff.html">Diff</DocLink> with both sides in full.</p>

```html example label="Printed: an A4 note" mode="print" schema="none" hint="The preview boots in the Print device: an A4 sheet whose print styles apply. The paper is a block at the 0.8 print scale, the contents list is gone, the listing splits over the two columns with its frame closed on both pieces and its caption under the last, and the citation shows only its BibTeX - no tabs, no copy button. A sheet has no pages: it draws each forced page break - the two .typeset-break markers - as a dashed line with room around it, where a real print starts a new page that also carries its number. Switch to Full for the screen layout." previewStyle="align-items:stretch;padding:0;"
<article class="paper" data-print="a4" data-binding="inner" aria-labelledby="pp-title">
  <header class="paper-hero">
    <p class="paper-venue"
      ><span class="badge" data-variant="secondary">Technical note</span
      ><span>defuss-shadcn · <time datetime="2026-10-12">12 October 2026</time></span></p
    >
    <h1 class="paper-title" id="pp-title"
      >Printing a Paper<span class="paper-title-sub">Profiles, breaks and what stays on screen</span></h1
    >
    <ul class="paper-authors"
      ><li>Claude</li
      ><li>Aron Homberg</li></ul
    >
  </header>
  <section class="paper-abstract" aria-labelledby="pp-abstract">
    <h2 id="pp-abstract">Abstract</h2>
    <p
      >A print profile turns a project page into a document: an A4 or Letter sheet, its margins, a page number at the
      foot and a print scale that keeps two columns. The parts that only work on a screen - a contents list, format
      tabs, a copy button - stay there.</p
    >
  </section>
  <nav class="paper-toc" aria-labelledby="pp-toc">
    <h2 id="pp-toc">Contents</h2>
    <ol>
      <li
        ><a href="#pp-s1"><span class="paper-num">1&nbsp;</span>The profile</a></li
      >
      <li
        ><a href="#pp-cite"><span class="paper-num">·&nbsp;</span>Citation</a></li
      >
    </ol>
  </nav>
  <div class="typeset-break" aria-hidden="true"></div>
  <section
    class="paper-section typeset paper-wide"
    lang="en"
    data-align="justify"
    data-indent
    data-columns="2"
    data-rule
    aria-labelledby="pp-s1"
  >
    <h2 id="pp-s1" class="typeset-span"><span class="paper-num">1&nbsp;</span>The profile</h2>
    <p
      ><code>data-print</code> names the page the paper prints on. The page rule sets the sheet and its margins, and its
      bottom margin box carries the page number; the title page has none. In print the paper is a block at 0.8, so the
      16px body prints at 9.6pt and two columns fit the text width.</p
    >
    <figure class="paper-figure" data-break-inside="allow">
      <pre class="paper-code"><code>@page paper-a4 {
  size: A4;
  margin: 20mm;

  @bottom-center {
    content: counter(page);
  }
}
@page paper-a4:first {
  @bottom-center {
    content: none;
  }
}
.paper[data-print="a4"] {
  page: paper-a4;
}
@media print {
  .paper[data-print] {
    zoom: var(--paper-print-scale, 0.8);
    display: block;
    print-color-adjust: exact;
  }
}</code></pre>
      <figcaption><b>Figure 1.</b> The A4 profile, shortened from the paper's stylesheet.</figcaption>
    </figure>
    <p
      ><code>data-binding="inner"</code> mirrors the margins for a bound duplex print: the inner margin is wider than
      the outer one, and the text width stays the same.</p
    >
  </section>
  <div class="typeset-break" aria-hidden="true"></div>
  <section class="paper-bibtex" aria-labelledby="pp-cite">
    <h2 id="pp-cite">Citation</h2>
    <figure class="bibtex" data-formats="bibtex apa" aria-label="Cite this note">
      <figcaption>Cite this note</figcaption>
      <pre><code class="bibtex-source">@techreport{claude2026printing,
  title = {Printing a Paper: Profiles, Breaks and What Stays on Screen},
  author = {Claude and Homberg, Aron},
  institution = {defuss},
  year = {2026},
  month = oct,
  url = {https://shadcn.defuss.org/papers/paper.html}
}</code></pre>
    </figure>
  </section>
</article>
```

<h2 id="variants" class="h3 mt-10 mb-3">Variants</h2>

<p class="text-sm text-muted-foreground mb-3"><code>data-variant</code> on the <code>.paper</code> sets a house style over the same parts: <code>classic</code> is a printed journal (serif throughout, a narrower justified column, small-caps section heads, a plain abstract), <code>minimal</code> a lab note (flush start, a sans title, no tint, no rules). The <DocLink href="paper-gallery.html">Paper Gallery</DocLink> shows each in a whole short paper.</p>

```html example label="Two columns (composition)" schema="none" hint="A classic two-column body is Typography's .typeset in the paper's wide track - data-columns='2', Blocksatz, Einzug. Switch the preview to Phone: below two columns of 18rem it sets one." previewStyle="justify-content:flex-start;text-align:left;"
<article class="paper" data-variant="classic" aria-labelledby="v-cols">
  <header class="paper-hero"><h1 class="paper-title" id="v-cols">Two Columns, One Measure</h1></header>
  <div class="typeset paper-wide" lang="en" data-columns="2" data-rule data-align="justify" data-indent>
    <h2 class="h3 typeset-span"><span class="paper-num">1</span> Introduction</h2>
    <p
      >The body of a classic two-column paper is one typeset block in the wide track. Its columns never shrink below
      eighteen rem, so a phone reads one column without a media query.</p
    >
    <p
      >Paragraphs follow with an indent instead of a gap, justified and hyphenated by the language of the block, as a
      journal page is set.</p
    >
    <h2 class="h3 typeset-span"><span class="paper-num">2</span> Method</h2>
    <p
      >Headings and figures that carry .typeset-span cross both columns; everything else flows from the foot of the
      first column to the head of the second.</p
    >
  </div>
</article>
```

```html example label="classic and minimal" schema="none" hint="The same title, abstract and section in the two other house styles - classic on the left, minimal on the right." previewStyle="justify-content:flex-start;text-align:left;"
<div class="grid gap-6" style="grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr))">
  <article class="paper" data-variant="classic" aria-labelledby="v-classic">
    <header class="paper-hero"><h1 class="paper-title" id="v-classic">On Movable Type</h1></header>
    <section class="paper-abstract" aria-labelledby="v-classic-a"
      ><h2 id="v-classic-a">Abstract</h2
      ><p
        >A printed journal's house style: serif throughout, justified and hyphenated, small-caps heads, the abstract set
        in from both sides.</p
      ></section
    >
    <section class="paper-section" aria-labelledby="v-classic-s"
      ><h2 id="v-classic-s"><span class="paper-num">1&nbsp;</span>Introduction</h2
      ><p>The column is narrower than the modern default, as on a printed page.</p></section
    >
  </article>
  <article class="paper" data-variant="minimal" aria-labelledby="v-minimal">
    <header class="paper-hero"
      ><h1 class="paper-title" id="v-minimal">On Movable Type</h1
      ><ul class="paper-authors"
        ><li>Ada Author</li></ul
      ></header
    >
    <section class="paper-abstract" aria-labelledby="v-minimal-a"
      ><h2 id="v-minimal-a">Abstract</h2
      ><p>A lab note: everything flush start, the abstract under a hairline instead of a tint.</p></section
    >
    <section class="paper-section" aria-labelledby="v-minimal-s"
      ><h2 id="v-minimal-s">Method</h2><p>No rules under the section heads.</p></section
    >
  </article>
</div>
```

<SourceFiles component="paper" section="css" />

</DocPage>
