<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alexander Ivanov</title>
    <description>The latest articles on DEV Community by Alexander Ivanov (@someone_somewhere_05cad9e).</description>
    <link>https://dev.to/someone_somewhere_05cad9e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3941191%2Feb591200-9c40-441f-a313-918124a62f41.jpg</url>
      <title>DEV Community: Alexander Ivanov</title>
      <link>https://dev.to/someone_somewhere_05cad9e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/someone_somewhere_05cad9e"/>
    <language>en</language>
    <item>
      <title>How a shipped change came back to the board</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Wed, 25 Nov 2026 11:37:02 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/how-a-shipped-change-came-back-to-the-board-1fk0</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/how-a-shipped-change-came-back-to-the-board-1fk0</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/how-a-shipped-change-came-back-to-the-board/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On 10 October 2026, the change that put the CLI on the Workbench homepage moved to the OpenSpec archive. Eight minutes later, another pull request added the same change back under &lt;code&gt;openspec/changes/&lt;/code&gt;, with all its boxes open. The merge gate passed. The Pipeline drew a card for unfinished work that had already shipped.&lt;/p&gt;

&lt;p&gt;An OpenSpec change can be valid in isolation while contradicting the history on the target branch. That history was the missing input.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare the change with its base
&lt;/h2&gt;

&lt;p&gt;The merge gate already compared recorded people and history against the pull request's base. It now also compares the active change IDs in the proposed tree with the archived IDs on that base. When it finds the same ID, it names the change and the archive folder.&lt;/p&gt;

&lt;p&gt;This comparison allows the usual archive pull request. In that case, the base still holds the active change, and the proposed tree moves it into the archive. The check is for an active copy reintroduced after the base already archived it.&lt;/p&gt;

&lt;p&gt;You can run the same comparison locally on a proposed branch. Refresh the base ref first so it includes recent archives.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git fetch origin
openspec-ui-cli validate changes --base origin/main --format text
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  A second copy can come from a checkout
&lt;/h2&gt;

&lt;p&gt;Three days later, two dashed cards on the Pipeline led to a detached worktree left behind after an upstream check. Its commit was already reachable from the default branch. One of the cards showed the same shipped change with zero completed tasks. This time the extra copy was on disk in an old checkout.&lt;/p&gt;

&lt;p&gt;The worktree survey now recognizes a clean detached directory whose commit is contained in the default branch, provided no run is recorded against it. The Pipeline offers the directory for removal under &lt;strong&gt;Left behind&lt;/strong&gt;. The operator decides whether to remove it. A detached directory at the default branch's tip may also be a workspace someone just prepared.&lt;/p&gt;

&lt;p&gt;If a shipped card reappears, inspect its checkout. A stale directory calls for a worktree decision. A pull request bringing the folder back calls for a correction to the proposed tree. The two incidents are recorded in &lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI/pull/909" rel="noopener noreferrer"&gt;the merge-gate change&lt;/a&gt; and &lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI/pull/915" rel="noopener noreferrer"&gt;the detached-worktree change&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>openspec</category>
      <category>devtools</category>
      <category>git</category>
      <category>opensource</category>
    </item>
    <item>
      <title>What one run actually spent</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Thu, 19 Nov 2026 09:26:45 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/what-one-run-actually-spent-4le1</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/what-one-run-actually-spent-4le1</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/what-one-run-actually-spent/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A change goes through propose, review, and apply. Apply fails once and the harness retries it. The operator sees one run on the board. The agents made four calls.&lt;/p&gt;

&lt;p&gt;An older usage report grouped records by the chain's &lt;code&gt;runId&lt;/code&gt; and kept the first usage report for that ID. In this example, a report from propose could hide the other three calls. The run ID was right for finding or controlling the chain. The accounting needed an identity for each call.&lt;/p&gt;

&lt;h2&gt;
  
  
  Count the calls that ran
&lt;/h2&gt;

&lt;p&gt;Every recorded agent invocation can now carry its own &lt;code&gt;invocationId&lt;/code&gt;. A stage and its retry can share a run ID and appear separately in the usage report. The report still gives a logical run count, so the example can show one run and four measured invocations when all four agents report usage.&lt;/p&gt;

&lt;p&gt;Older audit records remain readable. Workbench pairs legacy start and terminal records in recorded order and retains repeated usage reports. It also counts invocations without measured usage, which is useful when a run mixes agents with different reporting capabilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the coverage next to the amount
&lt;/h2&gt;

&lt;p&gt;Suppose two calls reported dollar amounts of $0.02 and $0.00, and two reported tokens only. The recorded total is $0.02, with dollar coverage for two of four measured invocations. A reported zero counts toward coverage. When every call omits dollars, the text says &lt;code&gt;USD not reported&lt;/code&gt; and JSON omits that amount.&lt;/p&gt;

&lt;p&gt;Input, output, cache-read, cache-creation, and thought tokens have separate fields. The audit also records the model requested by the stage when it has one. Model totals use the figures the agent returned. Codex ACP 2.2.2 attributes a prompt's tokens to its current model, so a report marks that attribution when it applies. A run that switched models may still lack an exact split.&lt;/p&gt;

&lt;h2&gt;
  
  
  Look up a change after archive
&lt;/h2&gt;

&lt;p&gt;The report reads retained repository audit records for an active or archived change. If the change's worktree has been removed, a retained record can still contribute. An archived change can also be named by its unique dated archive name. The report's coverage depends on the logs that survived rotation and cleanup.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openspec-ui-cli show cost my-change
openspec-ui-cli show cost my-change --format json
openspec-ui-cli show run &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;runId&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Start with the invocation count and coverage before comparing two runs. If a retry explains the difference, &lt;code&gt;show run&lt;/code&gt; gives you the recorded calls and their requested models. &lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI/blob/main/docs/adr/0053-usage-is-accounted-per-invocation.md" rel="noopener noreferrer"&gt;ADR 0053&lt;/a&gt; records the accounting rules.&lt;/p&gt;

</description>
      <category>openspec</category>
      <category>devtools</category>
      <category>observability</category>
      <category>opensource</category>
    </item>
    <item>
      <title>When a PR check has no result</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Tue, 17 Nov 2026 04:25:52 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/when-a-pr-check-has-no-result-545</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/when-a-pr-check-has-no-result-545</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/when-a-pr-check-has-no-result/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A release PR is waiting for CI. A developer has a passing local test run, but GitHub is expecting a result for the published head. The useful question is which check has reported on that commit.&lt;/p&gt;

&lt;p&gt;In OpenSpec Workbench 0.109.0, open &lt;strong&gt;PR Review&lt;/strong&gt; and select &lt;strong&gt;Refresh GitHub checks&lt;/strong&gt;. You can see the published commit, the checks GitHub reported, and links to their available runs. The report also lists required checks it can read from the target branch and calls out a missing result or an incomplete reading. &lt;strong&gt;Copy PR summary&lt;/strong&gt; brings those details into the PR.&lt;/p&gt;

&lt;p&gt;A committed &lt;code&gt;scenario-checks.json&lt;/code&gt; associates an OpenSpec scenario with named GitHub checks. For example, a checkout integration run can support a scenario for trimming a pasted postal code. A scenario with no associated check stays visible. &lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI/blob/main/docs/how-to/link-scenarios-to-checks.md" rel="noopener noreferrer"&gt;Mapping file example&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use &lt;strong&gt;Show Archive Preview&lt;/strong&gt; to see the predicted specification diff against the locally known default branch and which requirements overlap with other local changes. &lt;strong&gt;Open Example&lt;/strong&gt; lets you try the review and copy its sample summary from the standalone workspace or VS Code command palette.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=openspec-ui.openspec-ui-vscode" rel="noopener noreferrer"&gt;Get Workbench in the Visual Studio Marketplace&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>openspec</category>
      <category>devtools</category>
      <category>github</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Which commit did those checks actually verify?</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Sun, 15 Nov 2026 06:12:55 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/which-commit-did-those-checks-actually-verify-30h2</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/which-commit-did-those-checks-actually-verify-30h2</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/a-release-from-review-to-history/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Imagine a pull request that targets a release branch. You ran the tests yesterday, committed a fix this morning, and still have one edit in your editor. To review the PR, you need a diff against the release branch and a way to tell which commit those tests covered.&lt;/p&gt;

&lt;p&gt;In OpenSpec Workbench 0.108.0, open &lt;strong&gt;PR Review&lt;/strong&gt; on the change's Pipeline card. It compares committed work with the merge base of the PR target and flags the local edits left outside that comparison. Workbench can use the default branch for a labelled preview while the PR target is unknown.&lt;/p&gt;

&lt;p&gt;Recorded mechanical checks show whether their revision matches the head in the review. Earlier results are marked as historical, and records without a revision are marked as unknown. The verify agent's outcome has its own entry. &lt;strong&gt;Copy PR summary&lt;/strong&gt; carries the comparison and those qualifications into the PR as Markdown.&lt;/p&gt;

&lt;p&gt;This release also adds &lt;strong&gt;Send Feedback&lt;/strong&gt;, which opens a GitHub issue draft, and a diagnostic preview you can copy after a failed run. In VS Code, &lt;strong&gt;Diagnose Workspace&lt;/strong&gt; shows prerequisites and steps to fix them before a run.&lt;/p&gt;

&lt;p&gt;The same distinction between an event and a record of it matters after release. Our &lt;a href="https://openspec-ui.dev/releases/2026/11/" rel="noopener noreferrer"&gt;release calendar&lt;/a&gt; can show individual versions by date because the source records contain release dates or commits. GitHub's asset download counter is a running total. When a day has no stored observation, the next reading tells us how much the counter moved over the interval.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=openspec-ui.openspec-ui-vscode" rel="noopener noreferrer"&gt;Install Workbench 0.108.0 from the Visual Studio Marketplace&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>openspec</category>
      <category>devtools</category>
      <category>git</category>
      <category>opensource</category>
    </item>
    <item>
      <title>An OpenSpec release, from PR review to public history</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Sun, 15 Nov 2026 01:16:40 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/an-openspec-release-from-pr-review-to-public-history-4dje</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/an-openspec-release-from-pr-review-to-public-history-4dje</guid>
      <description>&lt;p&gt;First published on &lt;a href="https://openspec-ui.dev" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Review a change against its pull request target, see which checks match the commit, and find what shipped in the rebuilt release calendar.&lt;/p&gt;

&lt;p&gt;A reviewer opening a pull request needs to know which branch it targets and whether the recorded checks ran on the commit under review. OpenSpec Workbench 0.108.0 brings both answers into &lt;strong&gt;PR Review&lt;/strong&gt;. The project site now has a release calendar that answers a different question: when did a version actually ship?&lt;/p&gt;

&lt;h2&gt;
  
  
  See what the PR brings into its target branch
&lt;/h2&gt;

&lt;p&gt;Open PR Review from the change's Pipeline card. If the pull request targets a release branch, Workbench compares the change's committed head against the merge base with that release branch. Local edits stay out of the comparison, and the review calls them out. Before Workbench knows the PR target, it can show a comparison against the default branch, labelled as a preview.&lt;/p&gt;

&lt;p&gt;The checks section shows recorded mechanical checks and the verify agent's outcome separately. A check on the commit you're reviewing appears with that revision. A result from an earlier commit is marked as historical. Older records without a commit are marked as unknown, and missing evidence has its own state. Opening the review reads the records already there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use Copy PR summary&lt;/strong&gt; to take the base, head, changed-file summary and recorded check results into the pull request as Markdown. The copy keeps the qualifications shown in the review, so a check on an older commit cannot turn into an unqualified pass in the PR description.&lt;/p&gt;

&lt;h2&gt;
  
  
  Share a failure on your terms
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Send Feedback&lt;/strong&gt; opens a GitHub issue draft. After a failed run, you can preview a short diagnostic report and decide whether to copy it into the issue. The report includes the available Workbench version, platform and failure category. Workspace contents and raw run output stay local. In the VS Code Workspace view, &lt;strong&gt;Diagnose Workspace&lt;/strong&gt; shows which prerequisites need attention and how to fix them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Look up a release by date
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://openspec-ui.dev/releases/2026/11/" rel="noopener noreferrer"&gt;release calendar&lt;/a&gt; now reaches back through the project's release records. It uses GitHub Releases for VS Code, the first appearance of each standalone version on the main branch, and npm publication dates for the CLI. When several versions land on the same day, the calendar keeps each version visible.&lt;/p&gt;

&lt;p&gt;The Downloads dashboard has two kinds of history. The Marketplace publisher report gives daily web downloads and VS Code installs. Marketplace updates and GitHub release asset downloads are running totals. If the collector has a reading on Monday and the next on Friday, the difference belongs to that whole interval. A release date says when a version became available and gives no way to assign those downloads to particular days.&lt;/p&gt;

&lt;p&gt;Workbench 0.108.0 is available in the &lt;a href="https://marketplace.visualstudio.com/items?itemName=openspec-ui.openspec-ui-vscode" rel="noopener noreferrer"&gt;Visual Studio Marketplace&lt;/a&gt;. To try the review, open an active change that already has committed work and select &lt;strong&gt;PR Review&lt;/strong&gt; from its Pipeline card.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>opensource</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>How Codex runs a Harness stage</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Sat, 14 Nov 2026 08:53:49 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/how-codex-runs-a-harness-stage-461j</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/how-codex-runs-a-harness-stage-461j</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/how-codex-runs-a-harness-stage/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The first file-write trial ended with exit code &lt;code&gt;0&lt;/code&gt;. There was no file. The agent had said the workspace was read-only, and the OpenSpec Workbench adapter had taken the process exit code as the result of the turn. That was the behavior observed with Codex CLI 0.164.0 on 24 October 2026.&lt;/p&gt;

&lt;p&gt;The missing file exposed two decisions the adapter had left to defaults. Codex needed an explicit answer about where it could write, and Workbench needed to read what happened in the turn.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stage chooses the sandbox
&lt;/h2&gt;

&lt;p&gt;In Harness Settings, a stage can name &lt;code&gt;codex-cli&lt;/code&gt; as its agent and select a model and reasoning effort. The adapter picks the sandbox from the stage's job. Propose, update, apply, and verify use &lt;code&gt;workspace-write&lt;/code&gt;. Review uses &lt;code&gt;read-only&lt;/code&gt;. Verification can run checks that write build artifacts or caches, which is why it uses the writable mode too.&lt;/p&gt;

&lt;p&gt;Workbench resolves the working directory before it launches the agent. If the change has its own worktree, the run starts there. Codex then enforces its own filesystem sandbox for the child process. In the trial, &lt;code&gt;workspace-write&lt;/code&gt; allowed a write in the worktree, refused one in its parent area, and allowed one in the system temporary directory. The selected mode is part of the invocation Workbench checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two adapters, two ways to set the options
&lt;/h2&gt;

&lt;p&gt;The native adapter runs &lt;code&gt;codex exec --json&lt;/code&gt;. The stream carries the turn result, messages, command exit codes, changed files, and token usage. Workbench can see a failed turn as well as the process that delivered it.&lt;/p&gt;

&lt;p&gt;Choose &lt;code&gt;codex-cli-acp&lt;/code&gt; to use the separately installed &lt;code&gt;@agentclientprotocol/codex-acp&lt;/code&gt; bridge. Here the bridge lists the available session options when the session opens. Workbench checks the requested mode, model, and reasoning effort against that list, then sets the options before it sends the prompt. An unsupported model or effort stops the stage with a diagnostic that names the choices the bridge offered. The first live apply trial used bridge version 2.2.2 and returned both file changes and usage.&lt;/p&gt;

&lt;p&gt;The two paths share the same stage-to-sandbox policy. The bridge can also send context updates while a stage runs. The run's recorded usage is available afterward.&lt;/p&gt;

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

&lt;p&gt;Pick a small change in its own worktree. Assign Codex to Review and Apply in the change's Harness Settings, then run those stages in order. Open the run output to see what each stage did. With the CLI installed, you can inspect the registered adapters and the persisted run from the same repository.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openspec-ui-cli show agents
openspec-ui-cli show run &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;runId&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The implementation decisions and live trial details are in &lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI/blob/main/docs/adr/0051-codex-runs-in-a-named-sandbox.md" rel="noopener noreferrer"&gt;ADR 0051&lt;/a&gt; and &lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI/blob/main/docs/adr/0052-acp-session-options-are-checked-then-set.md" rel="noopener noreferrer"&gt;ADR 0052&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>openspec</category>
      <category>devtools</category>
      <category>codex</category>
      <category>opensource</category>
    </item>
    <item>
      <title>A change runs in its own worktree</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Mon, 09 Nov 2026 06:04:32 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/a-change-runs-in-its-own-worktree-903</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/a-change-runs-in-its-own-worktree-903</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/a-change-runs-in-its-own-worktree/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The owner ran a change of &lt;code&gt;HppMCP&lt;/code&gt; from its card, where a-change-is-committed-where-it-is-made&lt;br&gt;
had just put Run Change...:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;stage started: apply (local-llm-acp)&lt;br&gt;
failed: cwd "C:/Prog/.worktrees/HppMCP/mcp-platform-foundation" is outside the workspace "c:\Prog\HppMCP"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A host binds its agents to one root, its workspace, and every agent's&lt;br&gt;
sandbox refuses a run whose &lt;code&gt;cwd&lt;/code&gt; is outside it. A change is made in a&lt;br&gt;
worktree of its own (ADR 0043), under &lt;code&gt;&amp;lt;worktree root&amp;gt;/&amp;lt;repository&amp;gt;/&lt;/code&gt;,&lt;br&gt;
which is not inside the workspace. The chain, a single stage, and a card's&lt;br&gt;
controls of a run all resolved their agent by its id alone, so every run&lt;br&gt;
in a worktree was refused — in the editor and in the standalone app alike.&lt;/p&gt;

&lt;p&gt;The CLI never met it: &lt;code&gt;openspec-ui-cli run change --cwd&lt;/code&gt; builds its agents&lt;br&gt;
for that directory. The run dialog's answers had the same blind spot:&lt;br&gt;
applying a named configuration wrote the checkout's copy of the change's&lt;br&gt;
&lt;code&gt;harness.json&lt;/code&gt;, not the worktree's.&lt;/p&gt;
&lt;h2&gt;
  
  
  Worktree-specific agents
&lt;/h2&gt;

&lt;p&gt;A run inside one of the repository's worktrees is given that worktree's&lt;br&gt;
own agents, made once per worktree, whose sandbox is that worktree. Any&lt;br&gt;
other run gets the workspace's, whose sandbox still refuses a directory&lt;br&gt;
that is neither. &lt;code&gt;runRootOf&lt;/code&gt; and &lt;code&gt;agentsByRunRoot&lt;/code&gt; in core decide it.&lt;/p&gt;

&lt;p&gt;The chain runner asks for its agent with the stage's &lt;code&gt;cwd&lt;/code&gt;; the editor's&lt;br&gt;
AI panel, its card controls and the standalone server's chain and socket&lt;br&gt;
runs do the same.&lt;/p&gt;
&lt;h2&gt;
  
  
  The run dialog, fixed
&lt;/h2&gt;

&lt;p&gt;The run dialog's answers in the editor read and write the change's&lt;br&gt;
harness where the change is worked. Before this, applying a named&lt;br&gt;
configuration wrote the checkout's copy of the change's &lt;code&gt;harness.json&lt;/code&gt;,&lt;br&gt;
not the worktree's. Now it writes the worktree's copy, and reads it back&lt;br&gt;
from the same place.&lt;/p&gt;
&lt;h2&gt;
  
  
  What this changes about the workflow
&lt;/h2&gt;

&lt;p&gt;Before this, a change in its own worktree could be acted on but never run&lt;br&gt;
from its card. The card's Start was refused for a change this checkout&lt;br&gt;
does not have. Now it runs in the change's worktree, in both hosts. The&lt;br&gt;
card offers Run Change... alongside its other actions, and the action&lt;br&gt;
runs where the change is worked.&lt;/p&gt;
&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The code is at&lt;br&gt;
&lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI" rel="noopener noreferrer"&gt;github.com/VeryComplexAndLongName/OpenSpec-UI&lt;/a&gt;,&lt;br&gt;
where the repository and packages keep the name OpenSpec-UI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openspec-ui-cli run change &lt;span class="nt"&gt;--cwd&lt;/span&gt; C:/Prog/.worktrees/HppMCP/mcp-platform-foundation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>openspec</category>
      <category>devtools</category>
      <category>vscode</category>
      <category>opensource</category>
    </item>
    <item>
      <title>A change is committed where it is made</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Wed, 04 Nov 2026 02:18:09 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/a-change-is-committed-where-it-is-made-2bme</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/a-change-is-committed-where-it-is-made-2bme</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/a-change-is-committed-where-it-is-made/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A change worked in its own worktree — since ADR 0043 the usual change —&lt;br&gt;
could have its own harness set nowhere but in the file. The Changes tree&lt;br&gt;
drew such a change as one worked "elsewhere" and gave it a shortened menu,&lt;br&gt;
and the Pipeline's card offered only Start, the run's controls and Logs.&lt;br&gt;
Every control added to the tree and not to the card, or the other way&lt;br&gt;
round, left one host or one kind of change poorer.&lt;/p&gt;

&lt;p&gt;The owner decided the same day: when a change is made, everything needed&lt;br&gt;
is done, so the change can be worked at once as one's own.&lt;/p&gt;
&lt;h2&gt;
  
  
  The rules, now with when
&lt;/h2&gt;

&lt;p&gt;The agent workflow rules say when: commit the planning artifacts on the&lt;br&gt;
change's branch and push it with an upstream as soon as they are written;&lt;br&gt;
commit and push after every task ticked; leave nothing uncommitted or&lt;br&gt;
unpushed at the end of a turn; nothing of a change on &lt;code&gt;main&lt;/code&gt;; a refused&lt;br&gt;
push is said, not worked around.&lt;/p&gt;

&lt;p&gt;Create Change, in both hosts, commits the new change on its branch and&lt;br&gt;
pushes it at once. A refused push leaves the change made and says why&lt;br&gt;
(&lt;code&gt;OSW-GIT-203&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;git&lt;/code&gt; stage commits what the stages left before it pushes&lt;br&gt;
(&lt;code&gt;OSW-GIT-103&lt;/code&gt; where that commit fails).&lt;/p&gt;
&lt;h2&gt;
  
  
  The survey and the card
&lt;/h2&gt;

&lt;p&gt;The survey says where a change's own branch is not on the server: never&lt;br&gt;
pushed, or at another commit. Read from the refs it lists anyway, so no&lt;br&gt;
git runs in the directory.&lt;/p&gt;

&lt;p&gt;A card of a change's own worktree says so ("not on the server"), and a&lt;br&gt;
new action, &lt;strong&gt;Commit Change&lt;/strong&gt;, commits everything the worktree holds on&lt;br&gt;
the change's branch and pushes it. On the card and in Show Actions..., in&lt;br&gt;
both hosts; refused in the main checkout and on the default branch.&lt;/p&gt;

&lt;p&gt;A card of a change's own worktree offers its actions in the arrangement&lt;br&gt;
by step as on the board, and &lt;strong&gt;Run Change...&lt;/strong&gt;: the owner found on&lt;br&gt;
2026-10-10 that such a change could be acted on but never run — a card's&lt;br&gt;
Start was refused for a change this checkout does not have. It runs in&lt;br&gt;
the change's worktree, in both hosts.&lt;/p&gt;
&lt;h2&gt;
  
  
  Messages in the new GIT group
&lt;/h2&gt;

&lt;p&gt;Messages in the register's new GIT group (&lt;code&gt;OSW-GIT-001&lt;/code&gt;..&lt;code&gt;203&lt;/code&gt;) name&lt;br&gt;
every failure, refusal and success in the commit and push path. ADR 0043&lt;br&gt;
is amended to reflect the new rules.&lt;/p&gt;
&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The code is at&lt;br&gt;
&lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI" rel="noopener noreferrer"&gt;github.com/VeryComplexAndLongName/OpenSpec-UI&lt;/a&gt;,&lt;br&gt;
where the repository and packages keep the name OpenSpec-UI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openspec-ui-cli commit change &lt;span class="nt"&gt;--cwd&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>openspec</category>
      <category>git</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Every message has an identifier, from one register</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Fri, 30 Oct 2026 02:22:24 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/every-message-has-an-identifier-from-one-register-29l2</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/every-message-has-an-identifier-from-one-register-29l2</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/every-message-has-an-identifier-from-one-register/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;What the product says to a person — a failure's reason, a refusal, a CLI&lt;br&gt;
error — was written where it is said, as a sentence. A person cannot look&lt;br&gt;
up a message they saw, a host cannot act on one except by reading its&lt;br&gt;
words, and nothing says which messages exist. A new register decides that&lt;br&gt;
every message is said as &lt;code&gt;&amp;lt;level&amp;gt; OSW-&amp;lt;GROUP&amp;gt;-&amp;lt;NNN&amp;gt;: &amp;lt;message&amp;gt;&lt;/code&gt;, from one&lt;br&gt;
place, and that the register comes first with the groups &lt;code&gt;CLI&lt;/code&gt;, &lt;code&gt;RUN&lt;/code&gt;,&lt;br&gt;
&lt;code&gt;QST&lt;/code&gt; and &lt;code&gt;PRM&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  The register, and what it holds
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;message-register.ts&lt;/code&gt; in core holds the 14 groups, every message's&lt;br&gt;
identifier, level, words with named values, why it is said and what to&lt;br&gt;
do. &lt;code&gt;say&lt;/code&gt;, &lt;code&gt;formatMessage&lt;/code&gt;, &lt;code&gt;withMessageCode&lt;/code&gt;, &lt;code&gt;messageEntryUrl&lt;/code&gt; are the&lt;br&gt;
functions the rest of the product calls.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;CLI&lt;/code&gt;, &lt;code&gt;RUN&lt;/code&gt;, &lt;code&gt;QST&lt;/code&gt; and &lt;code&gt;PRM&lt;/code&gt; messages are said from the register:&lt;br&gt;
the CLI's argument errors, the chain's refusals, limits and endings, the&lt;br&gt;
operator's questions, and the permission requests nobody can answer. Their&lt;br&gt;
words do not change; the CLI's lines lose &lt;code&gt;openspec-ui-cli:&lt;/code&gt; and gain the&lt;br&gt;
form, &lt;code&gt;error OSW-CLI-003: --cwd requires a value&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  A page you can search for
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;docs/messages.md&lt;/code&gt; is generated from the register: a page a person&lt;br&gt;
searches for the identifier they saw. If you see &lt;code&gt;error OSW-RUN-042&lt;/code&gt; in&lt;br&gt;
your terminal or panel, you can look up what it means, why it was said,&lt;br&gt;
and what to do about it, without guessing from the words alone.&lt;/p&gt;
&lt;h2&gt;
  
  
  Codes on events and in JSON
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;progress&lt;/code&gt;, &lt;code&gt;failed&lt;/code&gt; and &lt;code&gt;cancelled&lt;/code&gt; events carry &lt;code&gt;code&lt;/code&gt; beside their&lt;br&gt;
words, and so does the CLI's JSON. The CLI, the output channel and the&lt;br&gt;
panels put the identifier before the words; the panels show it as a label&lt;br&gt;
that links to its entry.&lt;/p&gt;
&lt;h2&gt;
  
  
  Tests that hold the line
&lt;/h2&gt;

&lt;p&gt;Tests check that identifiers are well formed and in a group, that every&lt;br&gt;
identifier ever given is kept, that the page matches what the register&lt;br&gt;
says, and a ratchet on the messages still said in place — 323 before, 290&lt;br&gt;
after, and it may only fall. This ratchet prevents new ad-hoc messages&lt;br&gt;
from being added outside the register.&lt;/p&gt;
&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The code is at&lt;br&gt;
&lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI" rel="noopener noreferrer"&gt;github.com/VeryComplexAndLongName/OpenSpec-UI&lt;/a&gt;,&lt;br&gt;
where the repository and packages keep the name OpenSpec-UI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openspec-ui-cli run change &lt;span class="nt"&gt;--cwd&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt; 2&amp;gt;&amp;amp;1 | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="s1"&gt;'OSW-'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>openspec</category>
      <category>devtools</category>
      <category>typescript</category>
      <category>opensource</category>
    </item>
    <item>
      <title>The agent asks the operator, and the chain waits</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Sun, 25 Oct 2026 02:30:55 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/the-agent-asks-the-operator-and-the-chain-waits-5b48</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/the-agent-asks-the-operator-and-the-chain-waits-5b48</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/the-agent-asks-the-operator-and-the-chain-waits/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;An agent ended its run with four decisions it needed from the operator,&lt;br&gt;
and the product offered no way to answer them. A chain would have gone on&lt;br&gt;
to the next stage with them open. The owner decided the same day: questions&lt;br&gt;
are caught, the run stops and waits, nothing goes on without an answer, the&lt;br&gt;
answers are kept in the change's &lt;code&gt;decisions.md&lt;/code&gt; and in the audit log, and&lt;br&gt;
the product's own agent asks in its turn from the start.&lt;/p&gt;
&lt;h2&gt;
  
  
  The marker, the event and the command
&lt;/h2&gt;

&lt;p&gt;Every agent stage's instruction asks for &lt;code&gt;Question for the operator: &amp;lt;…&amp;gt;&lt;/code&gt;&lt;br&gt;
lines for decisions the agent needs. The product reads them as markers.&lt;br&gt;
&lt;code&gt;local-llm-acp&lt;/code&gt; gets an &lt;code&gt;ask_operator&lt;/code&gt; tool that blocks its turn until&lt;br&gt;
answered.&lt;/p&gt;

&lt;p&gt;A &lt;code&gt;question&lt;/code&gt; event and an &lt;code&gt;answerQuestion&lt;/code&gt; command are added to the&lt;br&gt;
protocol. A &lt;code&gt;question&lt;/code&gt; waiting kind appears in the run's status. A run&lt;br&gt;
that asked waits instead of completing, in a chain or alone, under every&lt;br&gt;
autonomy level. Once answered, the stage runs again with the answers —&lt;br&gt;
&lt;code&gt;update&lt;/code&gt; for propose and review, the same command otherwise.&lt;/p&gt;
&lt;h2&gt;
  
  
  Where answers live
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;openspec/changes/&amp;lt;change&amp;gt;/decisions.md&lt;/code&gt; holds every question and answer.&lt;br&gt;
The audit log records both. An agent run on a change with an open question&lt;br&gt;
is refused.&lt;/p&gt;

&lt;p&gt;Questions are answered from the card, the AI panel, the Human-Only Inbox&lt;br&gt;
and &lt;code&gt;openspec-ui-cli answer&lt;/code&gt;. The card shows open questions with answer&lt;br&gt;
fields; the panel does the same. The Inbox surfaces questions alongside&lt;br&gt;
its usual checkpoint answers. From a terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openspec-ui-cli answer &amp;lt;changeId&amp;gt; &lt;span class="nt"&gt;--question&lt;/span&gt; &lt;span class="s2"&gt;"Which branch strategy?"&lt;/span&gt; &lt;span class="nt"&gt;--answer&lt;/span&gt; &lt;span class="s2"&gt;"gitflow"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What this changes about autonomy
&lt;/h2&gt;

&lt;p&gt;Before this, an autonomy level of &lt;code&gt;full&lt;/code&gt; meant the chain ran without&lt;br&gt;
interruption. Now, a question is a hard stop regardless of autonomy level.&lt;br&gt;
The chain waits for a human answer, even at full autonomy. This is&lt;br&gt;
intentional: a question from an agent is a request for judgment, not a&lt;br&gt;
checkpoint the chain can resolve on its own.&lt;/p&gt;

&lt;p&gt;The refusal of a run past an open question is explicit. If someone tries&lt;br&gt;
to start a new agent run on a change that still has unanswered questions,&lt;br&gt;
the product says so and names the open questions. This prevents a second&lt;br&gt;
agent from running while the first is still waiting for an answer.&lt;/p&gt;
&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The code is at&lt;br&gt;
&lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI" rel="noopener noreferrer"&gt;github.com/VeryComplexAndLongName/OpenSpec-UI&lt;/a&gt;,&lt;br&gt;
where the repository and packages keep the name OpenSpec-UI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openspec-ui-cli answer &amp;lt;changeId&amp;gt; &lt;span class="nt"&gt;--question&lt;/span&gt; &amp;lt;questionId&amp;gt; &lt;span class="nt"&gt;--answer&lt;/span&gt; &amp;lt;answer&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>openspec</category>
      <category>ai</category>
      <category>agents</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Local models can now search the web and fetch pages</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Wed, 21 Oct 2026 12:31:55 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/local-models-can-now-search-the-web-and-fetch-pages-32bg</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/local-models-can-now-search-the-web-and-fetch-pages-32bg</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/local-models-can-now-search-the-web-and-fetch-pages/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;OpenSpec Workbench puts local-model behavior and its security controls in&lt;br&gt;
the shared core, but until now neither local adapter could search the web&lt;br&gt;
or fetch a source page. Two new shared core tools have been added:&lt;br&gt;
&lt;code&gt;search_web&lt;/code&gt; and &lt;code&gt;fetch_webpage&lt;/code&gt;. They let local-model agents consult a&lt;br&gt;
SearXNG endpoint and retrieve HTML pages as Markdown-backed JSON artifacts&lt;br&gt;
that can be analyzed or passed to another agent.&lt;/p&gt;
&lt;h2&gt;
  
  
  What the tools do
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;search_web&lt;/code&gt; sends a query to a SearXNG JSON endpoint and returns the&lt;br&gt;
results as structured data. &lt;code&gt;fetch_webpage&lt;/code&gt; retrieves a public HTTP(S) URL,&lt;br&gt;
converts the article or main content to Markdown, writes every data table&lt;br&gt;
as a Markdown table, and returns provenance, page metadata and timestamps&lt;br&gt;
in JSON.&lt;/p&gt;

&lt;p&gt;Both tools are available to both local-model adapters: &lt;code&gt;local-llm&lt;/code&gt; and&lt;br&gt;
&lt;code&gt;local-llm-acp&lt;/code&gt;. Remote agents are unchanged. The tools do not speak to&lt;br&gt;
any vendor API; they speak only to the SearXNG instance you configure.&lt;/p&gt;
&lt;h2&gt;
  
  
  Configuration and bounds
&lt;/h2&gt;

&lt;p&gt;The single SearXNG instance is configured with the &lt;code&gt;OPENSPEC_UI_SEARXNG_URL&lt;/code&gt;&lt;br&gt;
environment variable. When search has not been configured, the tools return&lt;br&gt;
an explicit error rather than failing silently or hanging.&lt;/p&gt;

&lt;p&gt;Page fetching is restricted to bounded public HTTP(S) HTML. Pages larger&lt;br&gt;
than the configured bound are read up to the bound and the response says&lt;br&gt;
so. Remote content is treated as untrusted data throughout the pipeline.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why this matters for local models
&lt;/h2&gt;

&lt;p&gt;A local model is only as useful as the information it can bring to bear.&lt;br&gt;
Before these tools, a local agent could reason about what was already in&lt;br&gt;
its context window, but it could not look up a current fact or read a&lt;br&gt;
source page. Now it can search for context and fetch the page that&lt;br&gt;
contains it, all without sending data to a remote API.&lt;/p&gt;

&lt;p&gt;The tools return Markdown-backed JSON artifacts, not raw HTML. This means&lt;br&gt;
the local model receives clean, structured content that fits into its&lt;br&gt;
context window more efficiently, and that data tables are preserved as&lt;br&gt;
Markdown tables rather than lost in markup noise.&lt;/p&gt;
&lt;h2&gt;
  
  
  What this deliberately does not do
&lt;/h2&gt;

&lt;p&gt;These tools are not a general-purpose web browser. They do not execute&lt;br&gt;
JavaScript, they do not render CSS, and they do not interact with forms&lt;br&gt;
or buttons. They search and fetch, convert to Markdown, and return. If a&lt;br&gt;
page requires JavaScript to render its content, the fetch will return&lt;br&gt;
whatever the server sends without execution.&lt;/p&gt;

&lt;p&gt;They also do not change the command or event protocol. No new transport&lt;br&gt;
channels are opened, no new agent types are introduced. The tools are&lt;br&gt;
exposed through the existing local-model adapters, and the environment&lt;br&gt;
configuration is read by the shared core runner.&lt;/p&gt;
&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The code is at&lt;br&gt;
&lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI" rel="noopener noreferrer"&gt;github.com/VeryComplexAndLongName/OpenSpec-UI&lt;/a&gt;,&lt;br&gt;
where the repository and packages keep the name OpenSpec-UI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;OPENSPEC_UI_SEARXNG_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;http://localhost:8080 openspec-ui-cli run &lt;span class="nt"&gt;--change&lt;/span&gt; my-change
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>openspec</category>
      <category>ai</category>
      <category>localllm</category>
      <category>opensource</category>
    </item>
    <item>
      <title>A compliance monitor that does not busywork</title>
      <dc:creator>Alexander Ivanov</dc:creator>
      <pubDate>Thu, 15 Oct 2026 04:25:40 +0000</pubDate>
      <link>https://dev.to/someone_somewhere_05cad9e/a-compliance-monitor-that-does-not-busywork-5f6b</link>
      <guid>https://dev.to/someone_somewhere_05cad9e/a-compliance-monitor-that-does-not-busywork-5f6b</guid>
      <description>&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://openspec-ui.dev/articles/a-compliance-monitor-that-does-not-busywork/" rel="noopener noreferrer"&gt;openspec-ui.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;OpenSpec Workbench initializes repositories and runs agents on changes. It&lt;br&gt;
did not, until now, check that its own runtime files are ignored, or that&lt;br&gt;
its repository rules are consistent. A compliance monitor has been added to&lt;br&gt;
the shared core, and it does three things that matter: it keeps a versioned&lt;br&gt;
catalogue of rules, it runs only when the host reports idle, and it reports&lt;br&gt;
findings without moving or deleting anything.&lt;/p&gt;
&lt;h2&gt;
  
  
  The catalogue, versioned and evidence-linked
&lt;/h2&gt;

&lt;p&gt;Every rule in the catalogue carries a stable identifier, a description of&lt;br&gt;
what it checks, and metadata about the check's cost and whether it supports&lt;br&gt;
automatic repair. Each finding is linked back to the rule that produced it&lt;br&gt;
and to the evidence that triggered it, so you can trace a finding to the&lt;br&gt;
exact check and the exact file or state that caused it.&lt;/p&gt;

&lt;p&gt;The catalogue is versioned. When a rule changes, the new version is applied&lt;br&gt;
to future checks, and old findings remain linked to the version that&lt;br&gt;
produced them. This matters when a rule's threshold is tightened or&lt;br&gt;
relaxed: old findings do not retroactively become violations or pass.&lt;/p&gt;
&lt;h2&gt;
  
  
  What it checks, on initialization
&lt;/h2&gt;

&lt;p&gt;On explicit repository initialization, the monitor verifies that Workbench&lt;br&gt;
runtime state is ignored by Git. It adds only the missing managed ignore&lt;br&gt;
rule, preserving the rest of &lt;code&gt;.gitignore&lt;/code&gt; exactly as you wrote it. Nothing&lt;br&gt;
is overwritten.&lt;/p&gt;

&lt;p&gt;It also checks Workbench runtime files in the main checkout and in&lt;br&gt;
worktrees. It identifies untracked or visible state and explains the&lt;br&gt;
expected root for each state kind without moving or deleting it. A run&lt;br&gt;
journal in &lt;code&gt;.openspec-ui/&lt;/code&gt; is expected to be untracked; a lease file in the&lt;br&gt;
main checkout is expected to be ignored. The monitor says which is which,&lt;br&gt;
and why.&lt;/p&gt;
&lt;h2&gt;
  
  
  Grouping, deduplication and shadow detection
&lt;/h2&gt;

&lt;p&gt;When the same change id appears in multiple worktrees, the monitor groups&lt;br&gt;
them as one logical change and reports the count. It flags a change id&lt;br&gt;
present in both active and archive trees, an archived change left in a&lt;br&gt;
stale worktree, or a shadow copy in main beside its owning worktree. The&lt;br&gt;
Pipeline card count is reconciled with the Changes list, and active changes&lt;br&gt;
missing from the OpenSpec README index are flagged with a suggested link,&lt;br&gt;
not an automatic edit.&lt;/p&gt;
&lt;h2&gt;
  
  
  Per-rule reactions and a periodic schedule
&lt;/h2&gt;

&lt;p&gt;Each rule accepts one of three response settings: &lt;code&gt;autorepair&lt;/code&gt;, &lt;code&gt;advice&lt;/code&gt;&lt;br&gt;
or &lt;code&gt;none&lt;/code&gt;. &lt;code&gt;autorepair&lt;/code&gt; applies a fix without asking; &lt;code&gt;advice&lt;/code&gt; produces a&lt;br&gt;
finding with a suggested action; &lt;code&gt;none&lt;/code&gt; records the finding silently. A&lt;br&gt;
global periodic-monitor switch enables or disables the entire schedule.&lt;/p&gt;

&lt;p&gt;The monitor runs one bounded batch only after the host reports idle and no&lt;br&gt;
mutating Workbench run is active. It measures each check's elapsed time,&lt;br&gt;
schedules by due date and conservative cost, and spreads expensive checks&lt;br&gt;
across later idle windows. Nothing runs as a separate OS daemon.&lt;/p&gt;
&lt;h2&gt;
  
  
  Process ledger and orphan detection
&lt;/h2&gt;

&lt;p&gt;A companion capability, the process ledger, records a synchronous snapshot&lt;br&gt;
for every process spawned by Workbench: PID, OS start time, executable,&lt;br&gt;
hostname, cwd, change, and a secret-free command-line hash. Records are&lt;br&gt;
marked exited on normal close and kept durable across host restarts, keyed&lt;br&gt;
by canonical repository identity and hostname.&lt;/p&gt;

&lt;p&gt;Before any kill, the snapshot is re-verified against the operating system.&lt;br&gt;
Orphaned and overdue processes are surfaced as read-only Compliance&lt;br&gt;
findings. An explicit, confirmable kill lives in the existing recovery&lt;br&gt;
surface, never in Compliance itself. The two capabilities share the same&lt;br&gt;
catalogue but never cross their boundaries: Compliance explains, recovery&lt;br&gt;
acts.&lt;/p&gt;
&lt;h2&gt;
  
  
  What this deliberately does not do
&lt;/h2&gt;

&lt;p&gt;The monitor does not start a background daemon, does not modify source code,&lt;br&gt;
does not run on every file change, and does not replace a linter or a&lt;br&gt;
formatter. It checks Workbench's own runtime hygiene and the consistency of&lt;br&gt;
its repository state.&lt;/p&gt;
&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The code is at&lt;br&gt;
&lt;a href="https://github.com/VeryComplexAndLongName/OpenSpec-UI" rel="noopener noreferrer"&gt;github.com/VeryComplexAndLongName/OpenSpec-UI&lt;/a&gt;,&lt;br&gt;
where the repository and packages keep the name OpenSpec-UI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openspec-ui-cli compliance check &lt;span class="nt"&gt;--cwd&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>openspec</category>
      <category>devtools</category>
      <category>compliance</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
