<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Kanta’s Engineering Notes]]></title><description><![CDATA[Kanta’s Engineering Notes]]></description><link>https://kanta13jp1.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 19:57:26 GMT</lastBuildDate><atom:link href="https://kanta13jp1.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Bilingual OSS & W3C i18n Checklist: BCP 47, ICU, and Canonical Cross-Posting for Global Dev Reach]]></title><description><![CDATA[Publishing developer tools solely in Japanese limits discovery, while dumping raw unedited machine translations across multiple platforms hurts readability…]]></description><link>https://kanta13jp1.hashnode.dev/bilingual-oss-w3c-i18n-checklist-bcp-47-icu-and-canonical-cross-posting-for-global-dev-reach</link><guid isPermaLink="true">https://kanta13jp1.hashnode.dev/bilingual-oss-w3c-i18n-checklist-bcp-47-icu-and-canonical-cross-posting-for-global-dev-reach</guid><category><![CDATA[i18n]]></category><category><![CDATA[open source]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[SEO]]></category><dc:creator><![CDATA[kanta13jp1]]></dc:creator><pubDate>Sat, 05 Dec 2026 19:34:10 GMT</pubDate><content:encoded><![CDATA[<p>Publishing developer tools solely in Japanese limits discovery, while dumping raw unedited machine translations across multiple platforms hurts readability and creates duplicate-content penalties. Treating internationalization (i18n) and localization (l10n) as engineering standards makes bilingual OSS distribution predictable.</p>
<p>Here is the compact checklist I use to take solo-dev repositories and technical writing global.</p>
<h2>1. Separate Code &amp; Locale Boundaries Using W3C i18n, BCP 47, and ICU</h2>
<p>Before translating docs or UI strings:</p>
<ul>
<li>Standardize locale identifiers strictly on <strong>BCP 47</strong> tags (<code>ja</code>, <code>en</code>, <code>en-US</code>) rather than ad-hoc strings.</li>
<li>Move pluralization, dates, numbers, and percentages into <strong>ICU MessageFormat</strong> / standard <code>Intl</code> formatters instead of concatenating sentence fragments.</li>
<li>Design flexible UI containers (especially on Flutter Web and mobile viewports) so longer English phrases never trigger horizontal overflow.</li>
</ul>
<h2>2. Protect Cross-Posted Articles with <code>canonical_url</code> and <code>hreflang</code></h2>
<p>When sharing deep-dive engineering posts across English platforms like <code>dev.to</code> and Hashnode:</p>
<ul>
<li>Set the primary English article URL (<code>dev.to</code> or your canonical domain) as the <code>Original Article URL</code> (<code>canonical_url</code>) when cross-posting to Hashnode.</li>
<li>Pair multilingual pages on your own web properties with reciprocal <code>hreflang</code> links and <code>x-default</code>.</li>
<li>Rewrite examples, commands, and cultural idioms for an English-speaking developer audience rather than keeping literal machine-translated phrasing.</li>
</ul>
<h2>3. Make Your GitHub Repository Entry-Ready for External Contributors</h2>
<p>Global developers evaluate your repository in seconds before running a single command:</p>
<ul>
<li>Complete all 8 GitHub <strong>Community Standards</strong> items (<code>README</code>, <code>LICENSE</code>, <code>CODE_OF_CONDUCT.md</code>, <code>CONTRIBUTING.md</code>, <code>SECURITY.md</code>, Issue &amp; PR templates).</li>
<li>Put a clear value proposition, license match (e.g., MIT vs GPLv2+ for WordPress plugins), and quick-start snippet in the first screen of <code>README.md</code>.</li>
<li>Keep <code>.distignore</code> synced so metadata files stay in GitHub without bloating downloadable release ZIPs.</li>
</ul>
<p>See this checklist in action across my public repositories:</p>
<ul>
<li>GitHub OSS (<code>agent-skills</code>): <a href="https://github.com/kanta13jp1/agent-skills">https://github.com/kanta13jp1/agent-skills</a></li>
<li>Product &amp; live blog: <a href="https://my-web-app-b67f4.web.app">https://my-web-app-b67f4.web.app</a></li>
<li>Daily engineering log on X: <a href="https://x.com/kanta13jp1">https://x.com/kanta13jp1</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Deterministic Local SRE Guardrails for Multi-Agent Dev Workflows on Windows]]></title><description><![CDATA[When you run multiple AI coding agents and scheduled automation scripts every day on Windows, prompt instructions alone are never enough. Even the clearest…]]></description><link>https://kanta13jp1.hashnode.dev/deterministic-local-sre-guardrails-for-multi-agent-dev-workflows-on-windows</link><guid isPermaLink="true">https://kanta13jp1.hashnode.dev/deterministic-local-sre-guardrails-for-multi-agent-dev-workflows-on-windows</guid><category><![CDATA[AI]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Python]]></category><category><![CDATA[Productivity]]></category><dc:creator><![CDATA[kanta13jp1]]></dc:creator><pubDate>Sat, 05 Dec 2026 10:16:57 GMT</pubDate><content:encoded><![CDATA[<p>When you run multiple AI coding agents and scheduled automation scripts every day on Windows, prompt instructions alone are never enough. Even the clearest system rule gets tested when two sessions touch shared files, when a PowerShell command emits UTF-8 with a BOM into a strict JSON parser, or when cloud drive caches quietly consume disk space.</p>
<p>Over the past week of managing 39 concurrent development, content, and operational streams from a single Obsidian-backed workspace, I moved safety checks out of natural-language prompts and into small, deterministic Python and PowerShell guardrails.</p>
<p>Here are the four lightweight local SRE checks that prevented the majority of regressions without slowing down iteration.</p>
<hr />
<h2>1. Treat Encoding and Line Endings as an Automated Gate</h2>
<p>On Windows PowerShell 5.1, built-in redirection (<code>Out-File</code>, <code>Set-Content</code>) and mixed editors frequently introduce UTF-8 BOMs (<code>0xEF 0xBB 0xBF</code>) or <code>\r\n</code> endings into <code>.json</code>, <code>.py</code>, and <code>.md</code> files. Meanwhile, <code>.ps1</code> scripts on Windows often break on non-ASCII strings if saved without a UTF-8 BOM.</p>
<p>Instead of reminding agents in prose to "remember encoding rules," run a 15-line byte-level verifier before commits or builds:</p>
<pre><code class="language-python">from pathlib import Path
import json

def audit_files(paths: list[Path]) -&gt; None:
    for path in paths:
        raw = path.read_bytes()
        assert not raw.startswith(b"\xef\xbb\xbf"), f"Unexpected BOM in {path}"
        assert b"\r\n" not in raw, f"Unexpected CRLF in {path}"
        if path.suffix == ".json":
            json.loads(raw.decode("utf-8"))
</code></pre>
<p>Making formatting invariants binary—either the script exits 0 or blocks—turns subtle cross-OS bugs into instant feedback.</p>
<hr />
<h2>2. Preflight Shared Slots and Concurrent State Before Heavy Work</h2>
<p>Heavy local tasks (headless Chromium visual audits, video encodes, full test suites) compete for CPU, memory, and browser locks. Rather than assuming you have the machine to yourself:</p>
<ol>
<li>Check free <code>C:\</code> drive space and active Chromium/Node/FFmpeg processes first.</li>
<li>Read the current cooperative queue/lock status using an allowlisted projection so tokens are never echoed into logs or prompts.</li>
<li>Re-read shared Markdown ledgers and daily notes immediately before applying edits so concurrent entries from sibling sessions are preserved cleanly.</li>
</ol>
<p>Separating read-only preflight inspection from state-mutating operations avoids stale assumptions and accidental clobbering.</p>
<hr />
<h2>3. Distinguish "Unconfirmed" (<code>None</code> / <code>null</code>) from Zero (<code>0</code>)</h2>
<p>One of the sneakiest failure modes in automated metrics and SRE reporting is converting missing telemetry into <code>0</code>.</p>
<ul>
<li>If a dashboard or CI run has not executed yet today, record <code>null</code> ("not executed" / "awaiting confirmation") rather than <code>0</code>.</li>
<li>Only mark a workflow check or deployment count as achieved when the underlying API or exit code directly confirms it after the latest edit.</li>
<li>Separate primary KPIs (actions confirmed locally) from delayed external reaction metrics (pageviews, likes, comments).</li>
</ul>
<p>Honest <code>None</code> handling prevents noisy false-positive alerts and makes trend comparisons reliable once delayed numbers arrive.</p>
<hr />
<h2>4. Audit Internal Knowledge Links Deterministically</h2>
<p>When your workspace stores hundreds of runbooks, standards glossaries, and logs, manual copy-pasting quickly creates broken anchors and stale duplicates.</p>
<p>A simple AST/regex audit script that validates every internal wiki-link, verifies anchor headings exist, detects duplicate paragraphs across notes, and outputs JSON errors/warnings catches documentation rot on every update—just like unit tests catch broken code.</p>
<hr />
<h2>Over to You</h2>
<p>If you run automated agents or scheduled workflows on your local machine: <strong>which deterministic check has saved you the most debugging time—encoding/schema gates, preflight resource locks, or post-edit structure audits?</strong></p>
<p>I write more notes on local AI guardrails, open-source agent skills, and daily dev workflows at:</p>
<ul>
<li><a href="https://github.com/kanta13jp1/agent-skills">Agent Skills (MIT OSS)</a></li>
<li><a href="https://my-web-app-b67f4.web.app/blog">Jibun Inc. Tech Blog</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Why Prompt-Only Agent Skills Fail — And 3 Zero-Dependency Python CLI Skills Built to the agentskills.io Spec]]></title><description><![CDATA[If you rely on coding agents like Claude Code, OpenAI Codex, Google Antigravity, Gemini CLI, or Cursor in daily shipping pipelines, prompt-only rules…]]></description><link>https://kanta13jp1.hashnode.dev/why-prompt-only-agent-skills-fail-and-3-zero-dependency-python-cli-skills-built-to-the-agentskills-io-spec</link><guid isPermaLink="true">https://kanta13jp1.hashnode.dev/why-prompt-only-agent-skills-fail-and-3-zero-dependency-python-cli-skills-built-to-the-agentskills-io-spec</guid><category><![CDATA[AI]]></category><category><![CDATA[Python]]></category><category><![CDATA[open source]]></category><category><![CDATA[Productivity]]></category><dc:creator><![CDATA[kanta13jp1]]></dc:creator><pubDate>Sat, 05 Dec 2026 00:48:04 GMT</pubDate><content:encoded><![CDATA[<p>If you rely on coding agents like Claude Code, OpenAI Codex, Google Antigravity, Gemini CLI, or Cursor in daily shipping pipelines, prompt-only rules eventually fail in predictable ways: a silent UTF-16LE file break on Windows PowerShell, an unverified 30+ MB video missing AAC audio, or an architecture decision based on an LLM search summary instead of live repository metrics.</p>
<p>After auditing the open <a href="https://agentskills.io/specification">Agent Skills Specification (<code>agentskills.io/specification</code>)</a> from primary docs, I published <a href="https://github.com/kanta13jp1/agent-skills"><strong><code>agent-skills</code></strong></a> (MIT License) — a compact repository of <code>SKILL.md</code> modules backed by <strong>zero-dependency Python 3.10+ CLI gates</strong>.</p>
<hr />
<h2>Key Takeaways from the <code>agentskills.io</code> Specification</h2>
<p>The open specification centers on <strong>3-stage progressive disclosure</strong> so hundreds of skills never bloat the active context window:</p>
<ol>
<li><strong>Metadata (~100 tokens):</strong> Only <code>name</code> (max 64 lowercase alphanumeric/hyphen chars matching the folder name) and <code>description</code> (max 1024 chars) from <code>SKILL.md</code> YAML frontmatter are loaded at startup.</li>
<li><strong>Instructions (&lt; 5000 tokens / under 500 lines recommended):</strong> The Markdown body is loaded only once the agent activates the skill.</li>
<li><strong>Resources (<code>scripts/</code>, <code>references/</code>, <code>assets/</code>):</strong> Bundled scripts and references are loaded on demand, keeping references one directory level deep, and validated via <code>skills-ref validate ./my-skill</code>.</li>
</ol>
<p>In short: keep <code>SKILL.md</code> concise and move deterministic verification into self-contained <code>scripts/</code>.</p>
<hr />
<h2>3 Deterministic Skills Included in <code>kanta13jp1/agent-skills</code></h2>
<p>Every bundled check uses only the <strong>Python 3.10+ standard library</strong> (<code>video-delivery-qc</code> additionally calls <code>ffmpeg</code> / <code>ffprobe</code>).</p>
<h3>1. <code>video-delivery-qc</code> — Pre-Publish Video &amp; Audio Gate</h3>
<p>Checks landscape (<code>1920x1080</code>) or vertical (<code>1080x1920</code>) output streams, AAC audio presence, EBU R128 / ITU-R BS.1770 integrated loudness (<code>-14 LUFS</code> target), and file-size ceilings (e.g., <code>&lt; 30 MB</code>), and renders a frame contact sheet PNG for visual verification.</p>
<pre><code class="language-bash">python -B skills/video-delivery-qc/scripts/video_qc.py path/to/output.mp4 \
  --profile landscape_1080p \
  --max-size-mb 30 \
  --contact-sheet contact_sheet.png \
  --json
</code></pre>
<h3>2. <code>windows-powershell-guard</code> — Prevent PowerShell 5.1 Encoding &amp; Syntax Traps</h3>
<p>Static auditor that catches UTF-16LE corruption from Windows PowerShell 5.1 <code>&gt;</code> redirection, unexpected UTF-8 BOMs in JSON/Python/Markdown, CRLF drift, and POSIX <code>&amp;&amp;</code> chains before CI rejects them. Includes <code>--strict-ps1</code> to verify <code>.ps1</code> scripts use UTF-8 BOM + CRLF as PowerShell 5.1 expects.</p>
<pre><code class="language-bash">python -B skills/windows-powershell-guard/scripts/check_text_hygiene.py . --json
</code></pre>
<h3>3. <code>primary-source-oss-review</code> — Primary GitHub Telemetry Over Guesswork</h3>
<p>Queries GitHub's REST API directly for Stars, true Watchers (<code>subscribers_count</code>, instead of <code>watchers_count</code> which mirrors stars), Forks, license, and push recency to support a disciplined 3-option OSS-first review (Direct Integration vs. Fork &amp; Extend vs. Build from Scratch).</p>
<hr />
<h2>One Real Cross-OS Lesson from CI (<code>ubuntu-latest</code> + <code>windows-latest</code>)</h2>
<p>Even with strict scripts, our very first CI run (<code>ubuntu-latest</code> + <code>windows-latest</code>, 13 unit/E2E tests) failed on Windows because Git checked out <code>.py</code> and <code>.md</code> files with CRLF line endings. Adding an explicit <code>.gitattributes</code> (<code>* text=auto eol=lf</code> and <code>*.ps1 text eol=crlf</code>) resolved the cross-OS failure cleanly, and both matrices now pass 13/13 tests.</p>
<hr />
<h2>Install in One Command</h2>
<pre><code class="language-bash">npx skills add kanta13jp1/agent-skills
</code></pre>
<ul>
<li>GitHub Repository (MIT, English &amp; Japanese README): <a href="https://github.com/kanta13jp1/agent-skills">https://github.com/kanta13jp1/agent-skills</a></li>
<li>Primary Specification Reference: <a href="https://agentskills.io/specification">https://agentskills.io/specification</a></li>
</ul>
<p>What repetitive failure in your agent workflow do you most wish were enforced by a deterministic CLI script instead of a prompt rule?</p>
]]></content:encoded></item><item><title><![CDATA[Shipping a Flutter Windows Companion via GitHub Releases (ZIP + MSIX) and WinGet Schema 1.28.0]]></title><description><![CDATA[When building a cross-platform Flutter utility (Jibun Windows Companion), the fastest way to stall Windows adoption is asking everyday users to run flutter…]]></description><link>https://kanta13jp1.hashnode.dev/shipping-a-flutter-windows-companion-via-github-releases-zip-msix-and-winget-schema-1-28-0</link><guid isPermaLink="true">https://kanta13jp1.hashnode.dev/shipping-a-flutter-windows-companion-via-github-releases-zip-msix-and-winget-schema-1-28-0</guid><category><![CDATA[Flutter]]></category><category><![CDATA[Windows]]></category><category><![CDATA[winget]]></category><category><![CDATA[GitHub]]></category><dc:creator><![CDATA[kanta13jp1]]></dc:creator><pubDate>Thu, 03 Dec 2026 16:54:14 GMT</pubDate><content:encoded><![CDATA[<p>When building a cross-platform Flutter utility (<code>Jibun Windows Companion</code>), the fastest way to stall Windows adoption is asking everyday users to run <code>flutter build windows</code> or install SDK toolchains locally. They expect a predictable installer archive, clear integrity hashes, and standard package manager metadata.</p>
<p>With <strong><code>v1.0.6.1</code> (<code>windows-companion-1.0.6.1</code>)</strong>, we shipped version-pinned Windows distribution artifacts directly via GitHub Releases alongside a clean WinGet manifest targeting Schema <code>1.28.0</code>.</p>
<p>Release artifacts and download links are live on GitHub:
<a href="https://github.com/kanta13jp1/my_web_app/releases/tag/windows-companion-1.0.6.1">https://github.com/kanta13jp1/my_web_app/releases/tag/windows-companion-1.0.6.1</a></p>
<h2>Version-Pinned URLs and Package Verification</h2>
<p>Rolling tags such as <code>-latest</code> are convenient for humans browsing a release page, yet automated package managers require immutable release URLs so every manifest hash remains reproducible over time:</p>
<ul>
<li><strong>Immutable Release Tag</strong>: Publishing <code>windows-companion-1.0.6.1</code> gives WinGet a permanent archive URL (<code>jibun-windows-companion.zip</code> at <code>42,105,283 bytes</code>, verified SHA-256 checksum, plus <code>.msix</code> and <code>.cer</code> test-signing artifacts).</li>
<li><strong>Declared Runtime Dependencies</strong>: Rather than assuming target machines already carry native C++ runtimes, the manifest explicitly declares <code>Microsoft.VCRedist.2015+.x64</code> under Schema <code>1.28.0</code> and passes local <code>winget validate</code>.</li>
<li><strong>Three-Step User Onboarding</strong>: Instead of handing users a raw <code>.msix</code> bundle without context, our step-by-step companion guide walks through verifying the ZIP contents, trusting the certificate in a scoped user store when testing MSIX, and launching offline storage safely.</li>
</ul>
<h2>Keeping Web Parity Without Blocking Offline Desktop Use</h2>
<p>Desktop users often organize cleanup lists, budgets, and reading notes on trains or planes without waiting for cloud round-trips. Keeping local SQLite/JSON persistence intact on Windows while optionally syncing back to web workflows keeps the companion responsive and self-contained.</p>
<p>Right now, the WinGet community PR (<code>microsoft/winget-pkgs#494847</code>) is prepared cleanly while direct downloads from the immutable <code>v1.0.6.1</code> release tag serve early testers immediately.</p>
<p>For indie Windows apps built with Flutter or Electron, which distribution format do your users prefer in practice—portable ZIP, MSIX, Inno Setup EXE, or <code>winget install</code>?</p>
]]></content:encoded></item><item><title><![CDATA[Why Honest Telemetry Pipelines Preserve Null Instead of Zero-Filling Missing Metrics]]></title><description><![CDATA[When an automated reporting pipeline aggregates metrics across public REST endpoints, internal databases, and manual admin dashboards, partial outages or…]]></description><link>https://kanta13jp1.hashnode.dev/why-honest-telemetry-pipelines-preserve-null-instead-of-zero-filling-missing-metrics</link><guid isPermaLink="true">https://kanta13jp1.hashnode.dev/why-honest-telemetry-pipelines-preserve-null-instead-of-zero-filling-missing-metrics</guid><category><![CDATA[telemetry]]></category><category><![CDATA[analytics]]></category><category><![CDATA[Python]]></category><category><![CDATA[Devops]]></category><dc:creator><![CDATA[kanta13jp1]]></dc:creator><pubDate>Wed, 02 Dec 2026 19:15:47 GMT</pubDate><content:encoded><![CDATA[<h2>How silent zero-filling corrupts day-over-day decisions</h2>
<p>When an automated reporting pipeline aggregates metrics across public REST endpoints, internal databases, and manual admin dashboards, partial outages or authentication expirations inevitably leave gaps for individual channels. A tempting shortcut is normalizing missing integers to zero so downstream table cells and delta formulas never have to branch on null values. In practice, conflating an unobserved metric with an actual zero corrupts every downstream comparison.</p>
<p>Consider a day-over-day growth check where yesterday recorded eighteen impressions and today's dashboard figure could not yet be collected. Coercing today's missing field into zero produces a fabricated drop of eighteen impressions. An operator reviewing that summary treats a measurement gap as a content failure and starts rewriting headlines or changing posting schedules unnecessarily. Worse, automated ranking scripts sort the missing channel below genuinely stagnant pages, hiding real bottlenecks behind noisy false alarms.</p>
<h2>Enforcing null preservation across collection layers</h2>
<p>A durable telemetry pipeline separates missing state from numeric values all the way from storage to presentation. When combining manual ledgers, database event tables, and monotonic cumulative API snapshots, our comparison module resolves values in strict precedence while returning explicit null values whenever either side of a snapshot pair is unavailable. Only pairs where both today and yesterday contain concrete integers compute a numeric delta and receive an upward, flat, or downward trend label.</p>
<p>Any row with a missing endpoint stays marked as unknown along with the exact blocker reason, such as awaiting manual input or waiting for an initial baseline snapshot. Downstream report renderers read that structured contract verbatim, rendering missing counts in a neutral indicator color without coercing zero into charts, sparklines, or summary averages.</p>
<h2>Designing around midnight date rollovers</h2>
<p>Time-zone rollovers create a subtler version of the same distortion. Thirty minutes past midnight local time, daily totals for the new calendar day naturally read zero or remain uncollected while the previous full day has just settled. Showing only the fresh calendar day makes healthy channels appear stalled. Exposing a primary comparison for the completed prior day paired with an instant toggle to the in-progress current day gives operators both reliable trends and live early signals without guessing missing entries.</p>
]]></content:encoded></item><item><title><![CDATA[Why GitHub Actions Concurrency Drops Your Third Queued Run (And How to Dispatch Serially)]]></title><description><![CDATA[When developers automate deployments or batch publishing with GitHub Actions workflow_dispatch, adding a shared concurrency group looks like an easy way to…]]></description><link>https://kanta13jp1.hashnode.dev/why-github-actions-concurrency-drops-your-third-queued-run-and-how-to-dispatch-serially</link><guid isPermaLink="true">https://kanta13jp1.hashnode.dev/why-github-actions-concurrency-drops-your-third-queued-run-and-how-to-dispatch-serially</guid><category><![CDATA[GitHub Actions]]></category><category><![CDATA[Devops]]></category><category><![CDATA[automation]]></category><category><![CDATA[programming]]></category><dc:creator><![CDATA[kanta13jp1]]></dc:creator><pubDate>Wed, 02 Dec 2026 15:58:05 GMT</pubDate><content:encoded><![CDATA[<h2>One running slot and one pending slot</h2>
<p>When developers automate deployments or batch publishing with GitHub Actions <code>workflow_dispatch</code>, adding a shared <code>concurrency</code> group looks like an easy way to prevent race conditions. A common assumption is that setting <code>cancel-in-progress: false</code> turns the concurrency group into an unbounded FIFO queue where every triggered run waits politely for its turn. In practice, GitHub Actions maintains at most one active run and one pending run per concurrency group.</p>
<p>If job #1 is currently executing and you fire jobs #2, #3, and #4 in rapid succession with different payload inputs, job #3 cancels pending job #2, and job #4 cancels pending job #3. Only job #1 and the final dispatch ever execute to completion. The middle payloads vanish with a cancelled state before running a single step. For CI checks tied only to the latest commit, superseding stale commits is desirable. For parameterized batch workflows where every dispatch carries a distinct document or migration target, silent middle-run cancellation causes missing outputs that are tedious to audit later.</p>
<h2>Building a deterministic serial dispatcher</h2>
<p>When every parameterized dispatch must execute without modifying the underlying workflow concurrency policy, move the queue responsibility to the caller. Before triggering <code>gh workflow run</code>, snapshot the recent run IDs for that workflow. Dispatch one item, wait until a previously unseen <code>databaseId</code> appears, and poll that single run until <code>status</code> equals <code>completed</code> and <code>conclusion</code> equals <code>success</code>. Only then advance to the next item in your list.</p>
<p>In practice, waiting 20 to 30 seconds per lightweight workflow run finishes a 13-item batch in roughly five to six minutes with zero cancelled items and deterministic console output. Compared to dumping 13 dispatches concurrently and spending twenty minutes cross-checking which 11 runs got dropped, serial client-side dispatch is both faster end-to-end and trivial to trace.</p>
<h2>Pair serial orchestration with idempotency keys</h2>
<p>A serial dispatcher prevents concurrency-group drops, while idempotent workers protect against client interruptions. Derive a deterministic slug or content hash per item before calling the remote API or database insert. If your local runner times out on item nine, re-running the full batch checks existing records first, skips items one through eight cleanly, and publishes only the remaining work. Separating single-run concurrency safety on the server from ordered queue execution on the client keeps parameterized automation reliable under burst loads.</p>
]]></content:encoded></item><item><title><![CDATA[Claude Code Schedules: How to Resume a Partial Run]]></title><description><![CDATA[Use checkpoints, review gates, and interruption tests to resume scheduled Claude Code runs without repeating completed work.]]></description><link>https://kanta13jp1.hashnode.dev/claude-code-schedules-how-to-resume-a-partial-run</link><guid isPermaLink="true">https://kanta13jp1.hashnode.dev/claude-code-schedules-how-to-resume-a-partial-run</guid><category><![CDATA[automation]]></category><dc:creator><![CDATA[kanta13jp1]]></dc:creator><pubDate>Sat, 28 Nov 2026 23:32:21 GMT</pubDate><content:encoded><![CDATA[<p>A scheduled run can stop after it has done part of the work. The next run needs enough information to continue safely. This revised note develops that part of the original DEV article about scheduled support checks, reports, and draft writing.</p>
<h2>Give each run a checkpoint</h2>
<p>For every item, retain its source ID, the attempted operation, and the result you actually observed. Use three outcomes: verified, pending, and needs review. Record the destination URL or ID when a write succeeds. If a tool times out after submitting a write, inspect the destination for that ID or the original item before sending the write again.</p>
<h2>Put review before the consequential step</h2>
<p>A support check can classify incoming tickets and prepare draft responses. A dependency report can identify packages to investigate. Have the schedule stop at a reviewable artifact when the next step is sending a response, deploying code, or changing production data. The review should include the input, proposed change, and evidence still missing.</p>
<h2>Test the interrupted path</h2>
<p>Create a small test batch with two items. Complete the first, interrupt the run before the second, and resume with the same source IDs. Verify that the first item is still present exactly once and that the second can finish. Add a separate test where the write succeeds but its confirmation is lost. That test checks the exact point where a naive retry can create a duplicate.</p>
<p>The original case study is <a href="https://dev.to/kanta13jp1/how-i-automated-cs-bug-fixes-and-competitor-monitoring-with-claude-code-schedule-4494">on DEV</a>. See the <a href="https://code.claude.com/docs/en/claude-code-on-the-web">Claude Code documentation</a> for current scheduling and cloud-session behavior.</p>
]]></content:encoded></item><item><title><![CDATA[Parsing XLSX/DOCX in the Browser with Pure Dart — No Server Round-Trip Needed]]></title><description><![CDATA[I'm building jibun inc., a Flutter Web + Supabase personal SaaS competing with Notion. When Notion 3.6 shipped Excel/Word import, I needed to match that…]]></description><link>https://kanta13jp1.hashnode.dev/parsing-xlsx-docx-in-the-browser-with-pure-dart-no-server-round-trip-needed</link><guid isPermaLink="true">https://kanta13jp1.hashnode.dev/parsing-xlsx-docx-in-the-browser-with-pure-dart-no-server-round-trip-needed</guid><category><![CDATA[Flutter]]></category><dc:creator><![CDATA[kanta13jp1]]></dc:creator><pubDate>Sat, 28 Nov 2026 18:42:38 GMT</pubDate><content:encoded><![CDATA[<h2>Introduction</h2>
<p>I'm building <a href="https://my-web-app-b67f4.web.app/">jibun inc.</a>, a Flutter Web + Supabase personal SaaS competing with Notion. When Notion 3.6 shipped Excel/Word import, I needed to match that feature fast.</p>
<p>Two constraints made it non-trivial:</p>
<ol>
<li><strong>No <code>dart:io</code> on Flutter Web</strong> — all file content must come through as <code>Uint8List</code>.</li>
<li><strong>Avoiding unnecessary server calls</strong> — routing 5 MB Excel files through an Edge Function on every import is bad UX and wastes cold-start latency.</li>
</ol>
<p>The solution: a <strong>pure Dart parser that runs entirely in the browser</strong>.</p>
<h2>How OOXML Works</h2>
<p>Both <code>.xlsx</code> and <code>.docx</code> are ZIP archives containing XML files — the Office Open XML (OOXML) standard. Rename any <code>.xlsx</code> to <code>.zip</code> and unzip it to see:</p>
<pre><code class="language-plaintext">book.xlsx
├── xl/sharedStrings.xml   ← string dictionary
├── xl/worksheets/sheet1.xml ← cell data (index references)
└── [Content_Types].xml
</code></pre>
<p>Dart's <code>archive</code> package handles the ZIP layer, and <code>xml</code> handles the XML parsing. The whole parser is a zero-Flutter-dependency class: <code>OfficeDocumentParser</code>.</p>
<h2>Implementation</h2>
<h3>XLSX Parsing</h3>
<p>The tricky parts of parsing XLSX:</p>
<p><strong>1. Shared strings</strong> — string cells don't store text directly; they store an integer index into <code>sharedStrings.xml</code>. Cells with <code>&lt;c t="s"&gt;</code> hold indices; cells without <code>t</code> hold raw numbers.</p>
<p><strong>2. Column address → index conversion</strong> — cells are addressed as <code>A1</code>, <code>BC42</code>, etc. Empty cells are simply absent from the XML, so you must reconstruct the full 2D grid:</p>
<pre><code class="language-dart">int _colIndex(String ref) {
  // "A"→0, "B"→1, "Z"→25, "AA"→26
  final letters = ref.replaceAll(RegExp(r'[0-9]'), '');
  return letters.codeUnits.fold(0, (acc, c) =&gt; acc * 26 + (c - 64)) - 1;
}
</code></pre>
<p><strong>3. Namespace-agnostic element matching</strong> — use <code>localName</code> instead of <code>name</code>:</p>
<pre><code class="language-dart">// Works regardless of whether elements are prefixed w:p or unprefixed p
doc.findAllElements('p', namespace: '*')
</code></pre>
<h3>DOCX Parsing</h3>
<p>Word documents are simpler: extract paragraphs from <code>word/document.xml</code>:</p>
<pre><code class="language-dart">String parseDocxToText(Uint8List bytes) {
  final archive = ZipDecoder().decodeBytes(bytes);
  final content = utf8.decode(
    archive.findFile('word/document.xml')!.content as List&lt;int&gt;
  );
  return XmlDocument.parse(content)
      .findAllElements('p', namespace: '*')
      .map((p) =&gt; p.findAllElements('t', namespace: '*')
          .map((t) =&gt; t.innerText)
          .join())
      .where((s) =&gt; s.isNotEmpty)
      .join('\n');
}
</code></pre>
<h3>Structured Task Fields (GitHub Issue Fields equivalent)</h3>
<p>Alongside the import feature, I added <code>priority</code> / <code>effort</code> / <code>target_date</code> columns to the task tables. Supabase migration:</p>
<pre><code class="language-sql">ALTER TABLE feature_requests
  ADD COLUMN priority TEXT CHECK (priority IN ('p0','p1','p2','p3')),
  ADD COLUMN effort   TEXT CHECK (effort   IN ('xs','s','m','l','xl')),
  ADD COLUMN target_date DATE;
</code></pre>
<p>On the Flutter side, a shared <code>StructuredFieldChips</code> widget renders these fields consistently across the public feature-requests page and the admin dashboard.</p>
<h2>Challenges</h2>
<p><strong>API drift between major versions</strong> — <code>archive</code> 4.x changed the <code>decodeBytes</code> return type, and <code>xml</code> 6.x made <code>namespace</code> a required parameter in some contexts. Lesson: verify the actual API against the GitHub source before writing code, and pin versions explicitly in <code>pubspec.yaml</code>.</p>
<p><strong><code>file_picker</code> on Web returns bytes, not paths</strong> — <code>PlatformFile.bytes</code> gives you the <code>Uint8List</code> directly. No temp files, no paths — pass it straight to the parser.</p>
<p><strong>Shared string index vs. raw value</strong> — forgetting to check the <code>t="s"</code> attribute means every string cell shows as a number. The <code>t</code> attribute is the discriminator between string-index cells and numeric cells.</p>
<h2>Results</h2>
<ul>
<li>XLSX and DOCX import now run fully in the browser — zero server calls</li>
<li>The parser is a plain Dart class with no Flutter dependency, so it's easily testable with <code>dart test</code> (VM tests, no widget overhead)</li>
<li><code>CHECK</code> constraints in Supabase enforce valid priority/effort values at the DB layer</li>
</ul>
<h2>What's Next</h2>
<p><strong>AI-assisted tagging</strong> — when a spreadsheet is imported, infer <code>priority</code> and <code>effort</code> from column headers using Claude API via a Supabase Edge Function. This would turn a raw Excel task list into a structured backlog in one click.</p>
<hr />
<p>Building in public: <a href="https://my-web-app-b67f4.web.app/">https://my-web-app-b67f4.web.app/</a>
#FlutterWeb #Supabase #Dart #OOXML #buildinpublic #webdev</p>
]]></content:encoded></item></channel></rss>