<?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: Nakabiri Knolz</title>
    <description>The latest articles on DEV Community by Nakabiri Knolz (@nakabiri_knolz_c215da66a1).</description>
    <link>https://dev.to/nakabiri_knolz_c215da66a1</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%2F3912849%2F335d7cc8-a93b-4029-bc57-8a2ca2dd55a9.png</url>
      <title>DEV Community: Nakabiri Knolz</title>
      <link>https://dev.to/nakabiri_knolz_c215da66a1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nakabiri_knolz_c215da66a1"/>
    <language>en</language>
    <item>
      <title>Claim Bench — an agent may extract, only a person can stamp</title>
      <dc:creator>Nakabiri Knolz</dc:creator>
      <pubDate>Mon, 21 Sep 2026 04:18:31 +0000</pubDate>
      <link>https://dev.to/nakabiri_knolz_c215da66a1/claim-bench-an-agent-may-extract-only-a-person-can-stamp-2049</link>
      <guid>https://dev.to/nakabiri_knolz_c215da66a1/claim-bench-an-agent-may-extract-only-a-person-can-stamp-2049</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/sanity-2026-09-16"&gt;Sanity Challenge&lt;/a&gt;, Path Two: Vibe-Code Something Strange&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;Claim Bench is the editor side of CabinClaim. It is not another read-only frontend of the desk.&lt;/p&gt;

&lt;p&gt;The desk in Path One answers cabin questions from dated &lt;code&gt;ruleClaim&lt;/code&gt; documents. Path Two is the process that gets a claim to a state the desk is allowed to trust.&lt;/p&gt;

&lt;p&gt;Left pane: the official excerpt, still linked to the live TSA or United page. Right pane: the structured claim plus a &lt;code&gt;claimWorkflow&lt;/code&gt; document that lives next to it in the same dataset.&lt;/p&gt;

&lt;p&gt;The states are data, not a UI enum:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ingested&lt;/code&gt; → &lt;code&gt;extracted&lt;/code&gt; → &lt;code&gt;disputed&lt;/code&gt; | &lt;code&gt;approved&lt;/code&gt; → &lt;code&gt;superseded&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Two seats share those transitions. An agent may ingest and extract. An agent may mark a pair of quotes disputed. The approve button is visible from the agent seat. Pressing it returns 403: &lt;em&gt;The agent's hand cannot hold the stamp.&lt;/em&gt; &lt;code&gt;decidedBy&lt;/code&gt; stays empty. &lt;code&gt;agentAttemptCount&lt;/code&gt; goes up. Sit as human, press the same button, and the document becomes &lt;code&gt;approved&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That is the product. The agent can move work forward. A person has to hold the stamp.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Claim Bench (no login): &lt;a href="https://cabinclaim.vercel.app/bench" rel="noopener noreferrer"&gt;https://cabinclaim.vercel.app/bench&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Desk (Path One): &lt;a href="https://cabinclaim.vercel.app" rel="noopener noreferrer"&gt;https://cabinclaim.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Studio, grouped by workflow state: &lt;a href="https://cabinclaim.vercel.app/studio" rel="noopener noreferrer"&gt;https://cabinclaim.vercel.app/studio&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Public workflow documents: &lt;a href="https://x9n6hu5i.api.sanity.io/v2026-03-03/data/query/production?query=*%5B_type==%22claimWorkflow%22%5D%7B_id,state,lastActor,decidedBy,agentAttemptCount,note,%22quote%22:claim-%3Equote%7D" rel="noopener noreferrer"&gt;current &lt;code&gt;claimWorkflow&lt;/code&gt; rows&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No login is required on the bench.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Judge test — do this in order:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;code&gt;/bench&lt;/code&gt;. You are seated as &lt;strong&gt;agent&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Find the extracted lithium 100Wh claim. Press &lt;strong&gt;Try stamp (should fail)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The card stays &lt;code&gt;extracted&lt;/code&gt;. &lt;code&gt;decidedBy&lt;/code&gt; stays empty. The attempt count goes up.&lt;/li&gt;
&lt;li&gt;Switch the seat to &lt;strong&gt;human&lt;/strong&gt;. Press &lt;strong&gt;Stamp approve&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;State becomes &lt;code&gt;approved&lt;/code&gt;. &lt;code&gt;decidedBy&lt;/code&gt; is &lt;code&gt;human&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The disputed spare-count pair is the same United vs TSA conflict the desk already shows. An agent can keep them disputed. A person has to approve one or both.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Studio lists the same documents under Ingested, Extracted, Disputed, Approved, Superseded. The bench and the Studio are two interfaces on one process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/python07070/cabinclaim" rel="noopener noreferrer"&gt;https://github.com/python07070/cabinclaim&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;src/sanity/schemaTypes/workflow.ts&lt;/code&gt; — &lt;code&gt;claimWorkflow&lt;/code&gt; next to the claim&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/lib/workflowRules.ts&lt;/code&gt; — allowed moves, and the human-only stamp&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;app/bench/page.tsx&lt;/code&gt; — two seats, official excerpt vs structured claim&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;app/api/bench/transition/route.ts&lt;/code&gt; — writes state; 403 on agent approve&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/sanity/structure.ts&lt;/code&gt; — Studio grouped by workflow state&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rule the API will not bend:&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;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;approved&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;actor&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;agent&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;The agent's hand cannot hold the stamp. Only a person can approve.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How I Used Sanity
&lt;/h2&gt;

&lt;p&gt;Same project as Path One (&lt;code&gt;x9n6hu5i&lt;/code&gt; / &lt;code&gt;production&lt;/code&gt;). Path Two adds a first-class process document instead of hiding status on the claim.&lt;/p&gt;

&lt;p&gt;A &lt;code&gt;ruleClaim&lt;/code&gt; is still one official sentence: operator, value, dates, source URL, quote. A &lt;code&gt;claimWorkflow&lt;/code&gt; points at that claim and stores &lt;code&gt;state&lt;/code&gt;, &lt;code&gt;lastActor&lt;/code&gt;, &lt;code&gt;decidedBy&lt;/code&gt;, &lt;code&gt;decidedAt&lt;/code&gt;, and &lt;code&gt;agentAttemptCount&lt;/code&gt;. The process is queryable. GROQ can ask for every extracted claim waiting on a human, or every disputed pair, without scraping a UI.&lt;/p&gt;

&lt;p&gt;Studio is customized around that process. The default document list is replaced with panes by state, plus a badge that the stamp is human-only. Opening &lt;code&gt;/studio&lt;/code&gt; is opening the queue, not a generic CMS.&lt;/p&gt;

&lt;p&gt;I prompted this in Cursor. The first Path Two schema I accepted was a portable-text &lt;code&gt;body&lt;/code&gt; plus a status string on the claim itself. The agent then wanted to “approve” by rewriting the quote. That is how a blog template gets built. I deleted the body field and made workflow its own type so an agent can change state without being allowed to change the official sentence.&lt;/p&gt;

&lt;h3&gt;
  
  
  Workflows, on purpose
&lt;/h3&gt;

&lt;p&gt;This is the Path Two bonus I actually shipped. Content review is modeled as data next to the content. The agent and the person call the same transition route. The difference is one guard: approve is human-only. After a human stamps, &lt;code&gt;decidedBy&lt;/code&gt; is no longer empty. A later agent run can read that field and know which claims the desk may treat as trusted.&lt;/p&gt;

&lt;p&gt;The spare-count pair starts &lt;code&gt;disputed&lt;/code&gt; because the two official pages do not say the same thing. The agent is not allowed to pick a winner. That is the same refusal as Path One, turned into a workflow state.&lt;/p&gt;

&lt;h3&gt;
  
  
  App SDK, and why the bench is Next.js
&lt;/h3&gt;

&lt;p&gt;I read the App SDK docs and started a &lt;code&gt;@sanity/sdk-react&lt;/code&gt; shell. Real-time &lt;code&gt;useDocuments&lt;/code&gt; is the feature the brief asks for. The SDK’s live bindings assume Sanity Dashboard auth. This contest is judged without a login. A Dashboard-only bench would have been a polished demo I could not hand a judge.&lt;/p&gt;

&lt;p&gt;So the shipped bench is a custom Next.js app on top of the same workflow documents: two seats, your own interface, polling &lt;code&gt;/api/bench/queue&lt;/code&gt; every four seconds. It is not a read-only frontend of the desk. It writes &lt;code&gt;claimWorkflow&lt;/code&gt; state. It is also not a Dashboard App SDK app. If I had pretended otherwise, the writeup would be the lie.&lt;/p&gt;

&lt;p&gt;The honest version: I used the Workflows bonus as specified, and I used the App SDK idea (custom app, live queue, own UI) without the Dashboard login the current SDK requires.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sanity Project Details
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Project ID: &lt;code&gt;x9n6hu5i&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Dataset: &lt;code&gt;production&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Organization: &lt;code&gt;opm3ppvty&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>sanitychallenge</category>
      <category>webdev</category>
      <category>ai</category>
    </item>
    <item>
      <title>CabinClaim - a cabin-rules desk search cannot run</title>
      <dc:creator>Nakabiri Knolz</dc:creator>
      <pubDate>Sun, 20 Sep 2026 11:42:17 +0000</pubDate>
      <link>https://dev.to/nakabiri_knolz_c215da66a1/cabinclaim-a-cabin-rules-desk-search-cannot-run-i7m</link>
      <guid>https://dev.to/nakabiri_knolz_c215da66a1/cabinclaim-a-cabin-rules-desk-search-cannot-run-i7m</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/sanity-2026-09-16"&gt;Sanity Challenge&lt;/a&gt;, Path One: Ship an Agent That Queries Real Content&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;CabinClaim is a cabin-rules desk, not a travel blog.&lt;/p&gt;

&lt;p&gt;A guest asks one question. The desk answers what is allowed in the cabin for this carrier and this travel date from dated &lt;code&gt;ruleClaim&lt;/code&gt; documents in Sanity. It does not search the web at ask time.&lt;/p&gt;

&lt;p&gt;This only works because the content is structured. Official pages stay live at the same time and disagree:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;TSA publishes a 100Wh spare-lithium cap and a cabin-only rule.&lt;/li&gt;
&lt;li&gt;United publishes cabin centimetres and a spare-count wording the TSA power-bank page does not repeat.&lt;/li&gt;
&lt;li&gt;A 120ml sunscreen bottle is "a liquid" on every page. Only a &lt;code&gt;liquid_ml&lt;/code&gt; field can fail it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Keyword search finds "allowed," "100Wh," and "carry-on" in one blob. CabinClaim stores each official sentence as its own claim: &lt;code&gt;operator&lt;/code&gt;, &lt;code&gt;value&lt;/code&gt;, &lt;code&gt;appliesTo&lt;/code&gt;, &lt;code&gt;effectiveFrom&lt;/code&gt;, &lt;code&gt;sourceUrl&lt;/code&gt;, and the exact &lt;code&gt;quote&lt;/code&gt;. GROQ keeps claims still in force. When two current claims conflict, both quotes stay on screen with their sources.&lt;/p&gt;

&lt;p&gt;If you delete &lt;code&gt;value&lt;/code&gt;, &lt;code&gt;operator&lt;/code&gt;, or &lt;code&gt;effectiveFrom&lt;/code&gt;, the desk refuses. That is the Path One test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Live desk (no login): &lt;a href="https://cabinclaim.vercel.app" rel="noopener noreferrer"&gt;https://cabinclaim.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Studio: &lt;a href="https://cabinclaim.vercel.app/studio" rel="noopener noreferrer"&gt;https://cabinclaim.vercel.app/studio&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Context MCP: &lt;code&gt;https://api.sanity.io/v1/context/organizations/opm3ppvty/mcp/cabinclaim&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Public claims (no token): &lt;a href="https://x9n6hu5i.api.sanity.io/v2026-03-03/data/query/production?query=*%5B_type==%22ruleClaim%22%5D%7B_id,ruleType,operator,value,unit,appliesTo,quote,sourceName,sourceUrl%7D" rel="noopener noreferrer"&gt;current &lt;code&gt;ruleClaim&lt;/code&gt; documents&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Judge question — leave this as-is, then click Ask:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;United UA 934, SFO to LHR. I have a 99Wh Anker power bank, a second 30Wh spare, and 120ml sunscreen in a 56 x 36 x 23 cm bag. What is allowed in the cabin, and which official pages disagree?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Expected:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Verdict&lt;/th&gt;
&lt;th&gt;Why search fails&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;99Wh power bank&lt;/td&gt;
&lt;td&gt;Allowed in cabin&lt;/td&gt;
&lt;td&gt;Search cannot apply &lt;code&gt;lithium_wh&lt;/code&gt; &lt;code&gt;lte&lt;/code&gt; 100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30Wh spare&lt;/td&gt;
&lt;td&gt;Allowed in cabin&lt;/td&gt;
&lt;td&gt;Same watt-hour field&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Two spares&lt;/td&gt;
&lt;td&gt;Conflict — both quotes shown&lt;/td&gt;
&lt;td&gt;United count vs TSA page with no two-spare cap&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;120ml sunscreen&lt;/td&gt;
&lt;td&gt;Not allowed&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;liquid_ml&lt;/code&gt; &lt;code&gt;lte&lt;/code&gt; 100, not the word "liquid"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;56 × 36 × 23 cm bag&lt;/td&gt;
&lt;td&gt;Not allowed&lt;/td&gt;
&lt;td&gt;United width 35cm and depth 22cm are fields&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;No login is required.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/python07070/cabinclaim" rel="noopener noreferrer"&gt;https://github.com/python07070/cabinclaim&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The pieces that make the desk refuse a keyword answer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;src/sanity/schemaTypes/carrier.ts&lt;/code&gt; and &lt;code&gt;ruleClaim.ts&lt;/code&gt; — one official sentence per document&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/lib/queries.ts&lt;/code&gt; — current-claims GROQ by IATA and travel date&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/lib/solveCabin.ts&lt;/code&gt; — refuse unless required fields exist&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/lib/mcp.ts&lt;/code&gt; — &lt;code&gt;initial_context&lt;/code&gt;, then &lt;code&gt;knowledge_base_read&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;scripts/seed.mjs&lt;/code&gt; — dated quotes with &lt;code&gt;observedOn&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Current-claims GROQ:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
groq
*[_type == "ruleClaim"
  &amp;amp;&amp;amp; (
    carrier-&amp;gt;iata == $iata
    || carrier-&amp;gt;iata == "ANY"
    || !defined(carrier)
  )
  &amp;amp;&amp;amp; effectiveFrom &amp;lt;= $travelDate
  &amp;amp;&amp;amp; (!defined(effectiveUntil) || effectiveUntil &amp;gt;= $travelDate)
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>devchallenge</category>
      <category>sanitychallenge</category>
      <category>webdev</category>
      <category>ai</category>
    </item>
    <item>
      <title>Best Invoice Generator for Freelancers in 2026</title>
      <dc:creator>Nakabiri Knolz</dc:creator>
      <pubDate>Mon, 04 May 2026 22:11:08 +0000</pubDate>
      <link>https://dev.to/nakabiri_knolz_c215da66a1/best-invoice-generator-for-freelancers-in-2026-2h3p</link>
      <guid>https://dev.to/nakabiri_knolz_c215da66a1/best-invoice-generator-for-freelancers-in-2026-2h3p</guid>
      <description>&lt;h1&gt;
  
  
  Best Invoice Generator for Freelancers in 2026
&lt;/h1&gt;

&lt;p&gt;Freelancers often struggle with creating invoices and tracking payments.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why invoicing tools matter
&lt;/h2&gt;

&lt;p&gt;Using the right tool helps you get paid faster and look professional.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recommended solution
&lt;/h2&gt;

&lt;p&gt;For freelancers and small businesses, &lt;a href="https://costinvoice.com" rel="noopener noreferrer"&gt;CostInvoice&lt;/a&gt; is a simple and effective invoice generator that helps you create professional invoices quickly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key benefits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Easy to use&lt;/li&gt;
&lt;li&gt;Fast invoice creation&lt;/li&gt;
&lt;li&gt;Clean templates&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Choosing the right invoicing tool can save time and improve your cash flow.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>freelancing</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
