<?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: kaamura-ai</title>
    <description>The latest articles on DEV Community by kaamura-ai (@kaamuraai).</description>
    <link>https://dev.to/kaamuraai</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%2F4278789%2Fbd86ef94-951e-4639-a982-cd41d5d915b2.png</url>
      <title>DEV Community: kaamura-ai</title>
      <link>https://dev.to/kaamuraai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kaamuraai"/>
    <language>en</language>
    <item>
      <title>A receipt for agent work</title>
      <dc:creator>kaamura-ai</dc:creator>
      <pubDate>Wed, 02 Dec 2026 15:02:24 +0000</pubDate>
      <link>https://dev.to/kaamuraai/a-receipt-for-agent-work-2b8h</link>
      <guid>https://dev.to/kaamuraai/a-receipt-for-agent-work-2b8h</guid>
      <description>&lt;p&gt;An agent hands you a finished repository. Hours of iteration, or a one-prompt paste of a finished codebase? From the outside, the two look identical.&lt;/p&gt;

&lt;p&gt;That gap is what bylines is for. It is a small, stdlib-only Python tool that replays an agent's session transcripts and checks, line by line, whether the submitted work was really written in that session.&lt;/p&gt;

&lt;h3&gt;
  
  
  How it works
&lt;/h3&gt;

&lt;p&gt;Give it a repository and the transcripts of the session that built it. bylines replays every write/edit call in timestamp order and reconstructs each file exactly as the session built it. Then it classifies every line by first appearance: a line is agent-authored only if its first appearance in the transcript is inside a write/edit payload. A line that first surfaced in a tool result, a file read, a shell output or a pasted blob stays external forever — later edits cannot launder it into an authored line.&lt;/p&gt;

&lt;p&gt;On top of that, five checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;reproduces&lt;/strong&gt; — enough of the final code was agent-authored, little enough came from nowhere&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;in_window&lt;/strong&gt; — the work happened inside the allowed time window&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;revised&lt;/strong&gt; — files reached their final content through real iteration, not a single paste&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;coverage&lt;/strong&gt; — every file is accounted for: authored, declared (vendored / binary / generated), or flagged unexplained&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;chain&lt;/strong&gt; — a redacted bundle's hash chain is intact: no record edited, deleted, inserted or reordered after redaction&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The verdict is deterministic: same inputs, same verdict. Exit code 0 pass, 1 fail, 2 input error.&lt;/p&gt;

&lt;h3&gt;
  
  
  A receipt, not a policeman
&lt;/h3&gt;

&lt;p&gt;The framing matters. bylines is not built to catch cheaters; it is built so honest agent work can carry proof. The author redacts the transcripts (bylines redact strips prompts and tool outputs, keeping the verdict), the bundle is hash-chained at redaction time, and bylines badge renders a static SVG to paste next to the code. A reviewer re-runs verification offline, with no account and no trust in the author required. The GitHub Action verifies a committed bundle in CI and, on pull requests, posts the verdict as a comment.&lt;/p&gt;

&lt;h3&gt;
  
  
  What it does not prove
&lt;/h3&gt;

&lt;p&gt;This is the part worth stating plainly. bylines proves internal consistency: these transcripts reproduce this artifact under these rules. It does not prove the transcripts are authentic, that a human supervised anything, or that the timestamps are true. The hash chain proves a bundle is unchanged since redaction — it does not prove the redaction itself was honest. Forgery is possible; it is just no longer free. That is all, and it is enough to be useful.&lt;/p&gt;

&lt;h3&gt;
  
  
  It eats its own cooking
&lt;/h3&gt;

&lt;p&gt;bylines verifies its own development session. The bundle, policy and report are committed in examples/self-verification/ — verdict PASS, authored 77.4%, revised ×8, with the honest warts documented (one design doc is mostly copied, not authored). A tampered write payload is caught by the chain check.&lt;/p&gt;

&lt;h3&gt;
  
  
  Try it
&lt;/h3&gt;

&lt;p&gt;pipx install bylines, then:&lt;br&gt;
bylines verify --repo ./myrepo --sessions ~/.claude/projects/-myrepo --harness claude-code --policy policy.toml --out report.json --md report.md&lt;/p&gt;

&lt;p&gt;Adapters today: Muse, Claude Code, Codex, plus redacted events bundles. The roadmap is public (ROADMAP.md): external anchoring for the chain, and adapters for the remaining major harnesses.&lt;/p&gt;

&lt;p&gt;Links: GitHub &lt;a href="https://github.com/kaamura-ai/bylines" rel="noopener noreferrer"&gt;https://github.com/kaamura-ai/bylines&lt;/a&gt; — PyPI &lt;a href="https://pypi.org/project/bylines/" rel="noopener noreferrer"&gt;https://pypi.org/project/bylines/&lt;/a&gt; — Marketplace &lt;a href="https://github.com/marketplace/actions/bylines-verify" rel="noopener noreferrer"&gt;https://github.com/marketplace/actions/bylines-verify&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you review agent-made PRs, run a bounty, or commission agent work — I would like to hear whether this check answers the question you actually ask, and what it gets wrong.&lt;/p&gt;

</description>
      <category>python</category>
      <category>ai</category>
      <category>opensource</category>
      <category>githubactions</category>
    </item>
  </channel>
</rss>
