<?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: Yurii Tor</title>
    <description>The latest articles on DEV Community by Yurii Tor (@yuriitor).</description>
    <link>https://dev.to/yuriitor</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%2F4155029%2Fc373cfd5-3dbb-48df-845a-2147a06ce79d.png</url>
      <title>DEV Community: Yurii Tor</title>
      <link>https://dev.to/yuriitor</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yuriitor"/>
    <language>en</language>
    <item>
      <title>Carry AI Coding Context Between Sessions with a Markdown Handoff</title>
      <dc:creator>Yurii Tor</dc:creator>
      <pubDate>Thu, 08 Oct 2026 18:21:49 +0000</pubDate>
      <link>https://dev.to/yuriitor/carry-ai-coding-context-between-sessions-with-a-markdown-handoff-2ebc</link>
      <guid>https://dev.to/yuriitor/carry-ai-coding-context-between-sessions-with-a-markdown-handoff-2ebc</guid>
      <description>&lt;p&gt;An AI coding session can end with a working patch and still be hard to continue. The code shows what changed. The conversation may contain the rest: why an approach was rejected, which command failed, what a test actually verified, and where the investigation stopped.&lt;/p&gt;

&lt;p&gt;That context matters when you hand work to another person, start a fresh task, or switch tools.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Tor-Production/session-exporter" rel="noopener noreferrer"&gt;Session Exporter&lt;/a&gt; is an open-source plugin from Tor Production that turns the accessible context of a ChatGPT or Codex conversation into a Markdown handoff. It packages instructions as a skill, with no MCP server or account connection of its own.&lt;/p&gt;

&lt;p&gt;Its default scope includes the complete accessible transcript, organized context, and an integrity report. The useful part is keeping decisions connected to the evidence behind them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Preserve the decision and the evidence
&lt;/h2&gt;

&lt;p&gt;A handoff should let the next reader answer four questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What are we trying to do?&lt;/strong&gt; The goal, constraints, and current state.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why did we choose this approach?&lt;/strong&gt; Decisions and relevant failed attempts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What was verified?&lt;/strong&gt; Files, commands, test results, or sources that support the conclusion.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What remains open?&lt;/strong&gt; Unfinished work, missing information, and the next useful step.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Session Exporter's structure adapts to the work. A debugging session may need repository state and test output; a research session may need sources and unresolved questions. Inapplicable sections are omitted.&lt;/p&gt;

&lt;p&gt;The transcript remains useful when the handoff needs checking. A note that says “tests passed” is much easier to assess when the underlying command and visible result are preserved.&lt;/p&gt;

&lt;h2&gt;
  
  
  A small example
&lt;/h2&gt;

&lt;p&gt;Here is a conceptual excerpt from a queue-debugging handoff. It illustrates the information worth preserving; it is not an actual plugin export or a verified test result.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Goal: prevent completion after a worker's lease expires.
Decision: check ownership and expiry within the write transaction.
Verified: a deterministic test covers expiry while waiting for a lock.
Failed attempt: a sleep-based test was flaky in CI.
Next step: add the regression case to the acceptance suite.
Missing: behavior under production traffic has not been measured.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The next session now has a specific place to resume. It also knows which conclusion still needs evidence.&lt;/p&gt;

&lt;p&gt;A real export should preserve the commands, results, and wording available in the session. If a detail cannot be retrieved, the document should mark that gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it in a Codex task
&lt;/h2&gt;

&lt;p&gt;Open the public Plugins Directory through the project's &lt;a href="https://github.com/Tor-Production/session-exporter#install-in-the-visual-codex-app-recommended" rel="noopener noreferrer"&gt;installation guide&lt;/a&gt;, find &lt;strong&gt;Session Exporter by Tor Production&lt;/strong&gt;, and install it.&lt;/p&gt;

&lt;p&gt;Start a new Codex task after installation so the skill is available. This follows the &lt;a href="https://learn.chatgpt.com/docs/plugins#install-and-use-a-plugin" rel="noopener noreferrer"&gt;documented plugin installation flow&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;When that task is ready for a handoff, ask:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Use $session-exporter to export this entire conversation
to Markdown for handoff.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The default filename combines &lt;code&gt;session_export&lt;/code&gt;, a timestamp, and a short context suffix. Review the file, then supply it to the next person or tool that can read Markdown. Include access to the relevant repository or files when continuing the work requires them.&lt;/p&gt;

&lt;p&gt;The README also documents a Git marketplace installation route and a copy-paste fallback for chats where the installed skill is unavailable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Know what the file can carry
&lt;/h2&gt;

&lt;p&gt;The export can only contain information the current session can access. An earlier message that is no longer retrievable remains a gap, even if it once existed in the conversation. The integrity report records unavailable material, omissions, and redactions.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/Tor-Production/session-exporter/blob/main/plugins/session-exporter/skills/session-exporter/SKILL.md" rel="noopener noreferrer"&gt;public skill instructions&lt;/a&gt; exclude hidden system instructions and private chain-of-thought, and require redaction of visible secrets. Review the generated file before sharing it: that requirement is not a guarantee of perfect secret detection.&lt;/p&gt;

&lt;p&gt;The plugin adds no analytics, automatic upload, or synchronization. The export stays in the current environment unless you send it elsewhere. A Markdown handoff also does not transfer permissions or give the receiving tool access to your accounts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it where continuity matters
&lt;/h2&gt;

&lt;p&gt;This approach is useful for a paused investigation, a review passed to another agent, or a project that spans several sessions. A short summary may be enough for a small, self-contained task.&lt;/p&gt;

&lt;p&gt;The practical check is: &lt;strong&gt;can the next reader identify what was verified and what to do next?&lt;/strong&gt; If a claim lacks evidence, add the source or mark it unresolved.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/Tor-Production/session-exporter" rel="noopener noreferrer"&gt;repository&lt;/a&gt; contains the implementation, installation options, and full export instructions.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;AI disclosure: This article was drafted and edited with AI using the project's documentation. The debugging excerpt is illustrative. No measured time, token, or quota savings are claimed.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>osdc</category>
      <category>productivity</category>
      <category>showdev</category>
    </item>
    <item>
      <title>What 216 Coding Attempts Revealed About Sol 6.1's Value</title>
      <dc:creator>Yurii Tor</dc:creator>
      <pubDate>Tue, 06 Oct 2026 18:38:30 +0000</pubDate>
      <link>https://dev.to/yuriitor/what-216-coding-attempts-revealed-about-sol-61s-value-2noo</link>
      <guid>https://dev.to/yuriitor/what-216-coding-attempts-revealed-about-sol-61s-value-2noo</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sol 6.1 Low averaged &lt;strong&gt;$0.101 per attempt&lt;/strong&gt;, scored &lt;strong&gt;100/100&lt;/strong&gt; on the main checks, and delivered accepted code in &lt;strong&gt;12/12 attempts&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;On the transaction task, its added tests caught &lt;strong&gt;4/6 and 5/6 seeded defects&lt;/strong&gt;. Medium improved that to &lt;strong&gt;5/6 and 6/6&lt;/strong&gt; at 9.9% more estimated cost.&lt;/li&gt;
&lt;li&gt;These are results from six specified tasks. Dollars are &lt;strong&gt;frozen API-equivalent estimates&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;I compared Sol 5.6, Sol 6, and Sol 6.1 in a benchmark published through my Tor Production project. The most useful differences appeared when I looked beyond passing scores: &lt;strong&gt;what did the generated tests catch, and what did that capability cost?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/Tor-Production/sol-coding-benchmark" rel="noopener noreferrer"&gt;public repository&lt;/a&gt; contains the stand, task contracts, evaluators, submitted code, results, and English report.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I compared
&lt;/h2&gt;

&lt;p&gt;The setup used &lt;strong&gt;three models × six reasoning efforts × six Python tasks × two attempts = 216 attempts&lt;/strong&gt;. The efforts were Low, Medium, High, Xhigh, Max, and Ultra.&lt;/p&gt;

&lt;p&gt;The tasks covered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Interval merging.&lt;/li&gt;
&lt;li&gt;A TTL/LRU cache.&lt;/li&gt;
&lt;li&gt;A concurrent dependency-graph executor.&lt;/li&gt;
&lt;li&gt;A reservation service with SQLite, HTTP, and CLI components.&lt;/li&gt;
&lt;li&gt;An exact constrained optimizer.&lt;/li&gt;
&lt;li&gt;A serializable MVCC transaction engine with recovery.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each attempt started with a fresh scaffold and session. Agents could run supplied tests and add tests, but received no hidden-test feedback or grading retry. The archive retains failed outcomes: &lt;strong&gt;214 attempts completed; 213 were accepted deliveries&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Low effort offered strong delivery value
&lt;/h2&gt;

&lt;p&gt;Sixteen of the 18 model-and-effort settings reached &lt;strong&gt;100/100&lt;/strong&gt; on the main functional score. That ceiling leaves little room for a useful quality ranking from the main score alone.&lt;/p&gt;

&lt;p&gt;At Low effort, the comparison looked like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Mean estimate / attempt&lt;/th&gt;
&lt;th&gt;Main score&lt;/th&gt;
&lt;th&gt;Accepted deliveries&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sol 5.6&lt;/td&gt;
&lt;td&gt;$0.318&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;12/12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sol 6&lt;/td&gt;
&lt;td&gt;$0.125&lt;/td&gt;
&lt;td&gt;99.44/100&lt;/td&gt;
&lt;td&gt;11/12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sol 6.1&lt;/td&gt;
&lt;td&gt;$0.101&lt;/td&gt;
&lt;td&gt;100/100&lt;/td&gt;
&lt;td&gt;12/12&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Sol 6.1 Low was the cheapest fully observed setting with a perfect main score and all 12 deliveries accepted.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgxm1s22g9pv48wpnplm1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgxm1s22g9pv48wpnplm1.png" alt="Cost versus accepted delivery rate across all model and effort settings. Sol 6.1 Low costs about $0.101 per attempt and accepts all 12 deliveries; arrows identify partial cost observations." width="800" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The chart covers all efforts; the table isolates Low.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A saved implementation's grade and a completed delivery are separate outcomes. For example, a Sol 6 Max reservation attempt timed out although its saved code passed the main checks. It reduced the accepted-delivery rate, while retaining its passing functional score.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Generated tests separated implementations that all passed
&lt;/h2&gt;

&lt;p&gt;All &lt;strong&gt;36 transaction implementations&lt;/strong&gt; passed the main evaluator. Their added tests were much less alike.&lt;/p&gt;

&lt;p&gt;I evaluated those tests against six fixed defects injected into a correct reference implementation: snapshot-read errors, write skew, missed phantoms, forgotten reads after rollback, recovery-version gaps, and checkpoint aliasing.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model, Low effort&lt;/th&gt;
&lt;th&gt;Mean estimate / MVCC attempt&lt;/th&gt;
&lt;th&gt;Defects caught: run 1&lt;/th&gt;
&lt;th&gt;Run 2&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sol 5.6&lt;/td&gt;
&lt;td&gt;$0.305&lt;/td&gt;
&lt;td&gt;0/6&lt;/td&gt;
&lt;td&gt;0/6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sol 6&lt;/td&gt;
&lt;td&gt;$0.137&lt;/td&gt;
&lt;td&gt;3/6&lt;/td&gt;
&lt;td&gt;0/6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sol 6.1&lt;/td&gt;
&lt;td&gt;$0.129&lt;/td&gt;
&lt;td&gt;4/6&lt;/td&gt;
&lt;td&gt;5/6&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;strong&gt;three zero results&lt;/strong&gt; mean those attempts had no recognized candidate-added tests. The implementations still passed their main checks; the zeros apply to this test-strength criterion.&lt;/p&gt;

&lt;p&gt;A usable mutation result requires the added tests to pass on both the candidate and the positive reference. Only executed assertion failures count as detected defects. Incompatible or incomplete evidence is reported as &lt;strong&gt;N/A&lt;/strong&gt;, rather than averaged into a setting's score.&lt;/p&gt;

&lt;h3&gt;
  
  
  What additional effort bought on this task
&lt;/h3&gt;

&lt;p&gt;For Sol 6.1:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Low:&lt;/strong&gt; 9/12 defect opportunities detected across two runs, at about &lt;strong&gt;$0.129 per attempt&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Medium:&lt;/strong&gt; 11/12, at &lt;strong&gt;$0.142&lt;/strong&gt; — a &lt;strong&gt;9.9%&lt;/strong&gt; estimated cost increase.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High:&lt;/strong&gt; 12/12, at &lt;strong&gt;$0.203&lt;/strong&gt;. This was the cheapest setting in the archive to catch all six defects in both runs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feon6in7js3ni7in585p9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feon6in7js3ni7in585p9.png" alt="MVCC generated-test sensitivity against estimated cost across three models and six efforts. Sol 6.1 Low detects 9 of 12 opportunities, Medium 11, and High all 12." width="800" height="567"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This makes the effort choice concrete: how much additional test sensitivity is useful for your task? The result applies to this declared defect set; it does not establish that higher effort always catches more real-world bugs.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The cost advantage included both pricing and usage differences
&lt;/h2&gt;

&lt;p&gt;Across &lt;strong&gt;70 matched task/effort/repetition observations per model&lt;/strong&gt;, Sol 6.1's API-equivalent total was &lt;strong&gt;28.9% lower than Sol 6's&lt;/strong&gt;. The same two partial-cost keys were excluded from both models.&lt;/p&gt;

&lt;p&gt;The pricing bridge shows three steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Sol 6 usage at Sol 6 rates: &lt;strong&gt;$19.71&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Exactly that usage repriced at Sol 6.1 rates: &lt;strong&gt;$16.68&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Observed Sol 6.1 usage at Sol 6.1 rates: &lt;strong&gt;$14.02&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvy8uhtql3dk1ul5mkvo7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvy8uhtql3dk1ul5mkvo7.png" alt="Matched cost bridge: Sol 6 usage costs $19.71 at Sol 6 rates, $16.68 at Sol 6.1 rates, and observed Sol 6.1 usage costs $14.02. The combined reduction is 28.9%." width="800" height="557"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The middle step changes the cached-input tariff while holding usage constant. The final step reflects the observed usage difference under a common tariff. This order-dependent comparison does not provide causal proof of intrinsic model efficiency.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I would use these results
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Sol 6.1 showed strong value in this suite, especially at Low.&lt;/strong&gt; For the specified transaction task, Medium bought a measurable improvement in generated-test sensitivity at a modest estimated cost increase.&lt;/p&gt;

&lt;p&gt;When passing scores reach a ceiling, inspect another outcome that matters to your work. Here, tests that detect declared defects offered more useful separation than the aggregate main score.&lt;/p&gt;

&lt;p&gt;Keep the scope in view:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Costs are estimates from observed Codex tokens at a frozen Standard API price schedule; they are not subscription bills or a direct API experiment.&lt;/li&gt;
&lt;li&gt;Agent elapsed time includes reasoning, tools, and self-tests. Generated-code runtime is measured separately.&lt;/li&gt;
&lt;li&gt;Six tasks and two attempts per configuration cannot establish a general intelligence ranking. Manual design review remains pending.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://github.com/Tor-Production/sol-coding-benchmark/blob/main/docs/findings.md" rel="noopener noreferrer"&gt;findings and derivations&lt;/a&gt; make every comparison inspectable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What task or defect would you add to make the next comparison more useful?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>programming</category>
      <category>python</category>
    </item>
    <item>
      <title>Passing Tests, Expired SQLite Leases: An AI Coding Benchmark</title>
      <dc:creator>Yurii Tor</dc:creator>
      <pubDate>Thu, 01 Oct 2026 17:03:01 +0000</pubDate>
      <link>https://dev.to/yuriitor/passing-tests-expired-sqlite-leases-an-ai-coding-benchmark-3ph1</link>
      <guid>https://dev.to/yuriitor/passing-tests-expired-sqlite-leases-an-ai-coding-benchmark-3ph1</guid>
      <description>&lt;p&gt;A background job can pass its acceptance suite and still have a concurrency bug at the exact point where it waits for the database. In a small experiment I ran on a durable TypeScript and SQLite reminder queue, both Astra + Luna implementations passed the original checks. A later audit found that both could make lease decisions using a timestamp sampled before SQLite granted the write lock.&lt;/p&gt;

&lt;p&gt;This is a narrow engineering result. A useful review question is whether a time-sensitive decision happens before or after a transaction wait.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the experiment measured
&lt;/h2&gt;

&lt;p&gt;The task was to build a durable reminder queue that survives restarts, retries failed deliveries, and handles competing workers. I compared four configurations, with two measured runs per configuration. In paired configurations, Astra planned and reviewed while another model implemented. The table below focuses on Astra solo and Astra + Luna because that is where the cost/time comparison and shared defect appeared.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Configuration&lt;/th&gt;
&lt;th&gt;Original acceptance&lt;/th&gt;
&lt;th&gt;Seven later diagnostic checks&lt;/th&gt;
&lt;th&gt;Mean fixed-rate estimate per attempt&lt;/th&gt;
&lt;th&gt;Mean elapsed time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Astra solo&lt;/td&gt;
&lt;td&gt;2/2 runs accepted&lt;/td&gt;
&lt;td&gt;7/7 and 7/7&lt;/td&gt;
&lt;td&gt;38.681850 units&lt;/td&gt;
&lt;td&gt;543.302 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Astra + Luna&lt;/td&gt;
&lt;td&gt;2/2 runs accepted&lt;/td&gt;
&lt;td&gt;4/7 and 4/7&lt;/td&gt;
&lt;td&gt;20.384872 units&lt;/td&gt;
&lt;td&gt;795.081 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The fixed-rate token-cost estimate for Astra + Luna was 47.3% lower than Astra solo; elapsed time was 46.3% longer. Those units are an estimate from token counts multiplied by fixed historical rates. They are not a bill, a measured subscription deduction, or a subscription-quota saving.&lt;/p&gt;

&lt;p&gt;The diagnostic audit was retrospective. Three of the seven checks probe the same clock-after-lock defect. The 4/7 result is limited evidence about these two implementations on this one task.&lt;/p&gt;

&lt;h2&gt;
  
  
  How a clock read becomes stale
&lt;/h2&gt;

&lt;p&gt;A lease usually combines an owner token with an expiration time. A worker claims a job, performs work, then tries to complete or fail it. The database must serialize claims and state transitions so two workers cannot act on the same live lease.&lt;/p&gt;

&lt;p&gt;SQLite can make a writer wait for another transaction. If application code reads the clock before requesting the write lock, the value can age during that wait. A simplified, illustrative ordering looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;clock&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;beginImmediateTransaction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// may wait for another writer&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;claimDueJob&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;commit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the lock arrives after the previous lease deadline, this code can still evaluate the claim using the earlier time. Depending on the queue's rules, it may create a lease that is already expired, or accept a completion/failure based on ownership that expired while the transaction waited.&lt;/p&gt;

&lt;p&gt;For a lock-protected decision, acquire the transaction first and sample time only after the write lock is held:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;beginImmediateTransaction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;clock&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;claimDueJob&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;commit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Treat the snippet as an ordering illustration and adapt it to the real transaction API. Keep the time comparison and relevant state update inside the same transaction, preserve owner-token checks, and account for clock semantics. Sampling after lock acquisition removes this particular pre-wait staleness; it does not prove that every timing or lease bug is solved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the wait deterministic in a test
&lt;/h2&gt;

&lt;p&gt;The ORCH-1 audit exercised this boundary with real, independent SQLite connections and a controlled clock. The simplified outline below follows that audit; adapt the barriers and connection setup to your own queue:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open two independent SQLite connections.&lt;/li&gt;
&lt;li&gt;On connection A, begin an immediate write transaction and hold it behind a test barrier.&lt;/li&gt;
&lt;li&gt;Start a claim operation on connection B and observe that it reaches the lock boundary.&lt;/li&gt;
&lt;li&gt;Advance an injected clock beyond the relevant lease deadline while B is waiting.&lt;/li&gt;
&lt;li&gt;Release A, let B continue, and assert that the resulting lease and ownership checks use the post-wait time.&lt;/li&gt;
&lt;li&gt;Repeat the same shape for claim, complete, and fail paths.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In the public audit, the clock advanced from 0 to 10 while the operation waited. With a lease duration of 5, a fresh claim should end at 15. Completion and failure should reject ownership that expired at 5. Both Astra + Luna runs instead returned a claim ending at 5 and accepted expired ownership.&lt;/p&gt;

&lt;p&gt;The barrier and controllable clock matter. A timing test based only on real sleeps can be flaky and may never hit the boundary in CI. The assertions should distinguish the operations: a new claim may reclaim work after its prior lease expires, but should calculate the new lease from time sampled after lock acquisition; complete and fail should verify the owner token and reject expired ownership using current post-lock time. Assert those state invariants, not an incidental number of milliseconds.&lt;/p&gt;

&lt;p&gt;In this experiment, both paired implementations read the clock before waiting for SQLite's write lock. Three probes for claim, complete, and fail each exposed that same timing defect. Astra's review did catch other concrete issues: it found string-preservation problems in SQLite storage, which Luna then fixed. The review still missed the lock-wait boundary, and the supplied tests did not exercise it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the numbers do and do not say
&lt;/h2&gt;

&lt;p&gt;The cost/time tradeoff is real for these measured attempts, but it should not be read as a ranking of models. The test used one TypeScript/SQLite task and two runs per setup. There was no Sol-only control. Before the Astra + Luna runs, the CLI version and executor-selection protocol changed. The additional audit was designed after inspecting the implementations, and its three clock checks share one defect class.&lt;/p&gt;

&lt;p&gt;Astra's planning and review accounted for 95.6% of the paired workflow's fixed-rate estimate in these runs. Even a hypothetical free executor would remove only the remaining 4.4% if all observed work stayed fixed. That is a useful reminder to measure the whole workflow, not just the executor price. It is not a general statement about orchestration economics.&lt;/p&gt;

&lt;p&gt;For a production queue, I would put lock-wait cases in the acceptance suite from the start, test through separate database connections, and make the clock controllable. I would also keep the benchmark's acceptance result separate from the later diagnostic result so a retrospective test does not rewrite what was originally accepted.&lt;/p&gt;

&lt;p&gt;The next comparison should add a Sol-only control under the same client and protocol, use more tasks, and freeze the expanded checks before running the candidates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/Yurii-Tor/orch1-agent-orchestration-benchmark/blob/8e7c15d0df7cf0b06e1fcb8c054acd7a179e69b2/docs/report.md" rel="noopener noreferrer"&gt;ORCH-1 report&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Yurii-Tor/orch1-agent-orchestration-benchmark/blob/8e7c15d0df7cf0b06e1fcb8c054acd7a179e69b2/docs/methodology.md" rel="noopener noreferrer"&gt;Methodology and fixed-rate estimate definition&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Yurii-Tor/orch1-agent-orchestration-benchmark/blob/8e7c15d0df7cf0b06e1fcb8c054acd7a179e69b2/data/results.json" rel="noopener noreferrer"&gt;Run-level results data&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;AI-generated draft: AI prepared this article from my published report and project notes. The linked sources contain the experiment results and methodology; this article makes no additional benchmark claims.&lt;/p&gt;

</description>
      <category>sqlite</category>
      <category>testing</category>
      <category>typescript</category>
      <category>concurrency</category>
    </item>
  </channel>
</rss>
