workflow
Technical notes on web development, DevOps, and AI integration.
16 articles
- 22:31devops
Frozen Staging Deploys: When a Tunnel Replaces the Ritual
The inbound deploy port is gone: KotaPortal staging is now served through an outbound-only tunnel, with no per-commit deploy ritual.
TL;DR: After a Cloudflare Tunnel took over backend staging, the per-commit deploy job disappeared, replaced by a persistent staging link that updates as the origin refreshes. The tunnel is outbound-only on port 7844, so the origin needs no public IP and loses its scannable deploy port, a real security win. Frontend keeps preview hosting; most 502s mean a wrong Service URL.
#cloudflare#cloudflared#deployment - 03:53security
The Read-Only Audit: The Missing Half of a Commit Gate
The commit gate refuses a trailer-less message in seconds, but the configuration behind it drifts silently. A read-only sweep closes that gap.
TL;DR: The commit gate enforces a Security-review trailer but can silently vanish through a lost executable bit or a moved hooksPath. A read-only audit subcommand in review_gate.sh sweeps commits, warnings, slice-gate results, and registration, always exiting 0. The gate prevents, the audit detects; together they keep the invariant honest.
#git#bash#security - 03:00devops
Review Status Tokens: Making Review Debt Grepable
Four review:* tokens plus a board validator make agent review debt visible, countable, and batchable, while security surfaces never wait in a queue.
TL;DR: Reviewing every tiny slice cost 50-60k subagent tokens per round regardless of diff size, making review the largest session expense. The fix: every done row must carry a review token, enforced by a board validator, with non-security work batched until the queue hits three or the session closes. Security surfaces skip the queue, and tokens make review debt greppable.
#code-review#ai-agents#workflow - 00:55tooling
The index that was ordered to stay in sync
The board says Done, the commit index lacks the hash, and nothing protests. The fix removes the hand-copying.
TL;DR: The index was hand-maintained and drifted silently from reality, so Done cards referenced hashes it lacked. Fix: regenerate it mechanically from git log, lint that every Done card's hash exists in the index, and fail loudly on mismatches. Done is now a verified state rather than a trusted claim.
#git#linting#documentation - 15:43ai
Eleven Specialist Agent Files, One Squad: Contracts, Not Speeches
Opening eleven .claude/agents files showed me the real constraint is not persona prose: it is the tools, model, and hook fields in six lines of frontmatter.
TL;DR: Eleven subagent files are shaped more like contracts than personas: six lines of frontmatter decide tools, model, and permissions for each role. Scope tools tightly, enforce limits with hooks since rules aren't enforced, and keep every brief self-contained because agents share no context. Delegation costs tokens, so only hand off work worth splitting.
#ai-agents#claude-code#coding-agent - 21:27writing
An Executable Plan Refuses Compromise
A 634-line plan that actually runs: paired migrations, contract first, tests registered in the same commit.
TL;DR: A 634-line implementation plan turned out to be executable rather than a formality: every task names files, interfaces, and ordered steps. Its strength lies in mechanical refusals—migrations only with up/down pairs, contract-first codegen, mandatory test registration, unresolved conflicts flagged instead of guessed. Explicit boundaries turn a document into a navigation instrument, a pattern worth adopting.
#documentation#requirements#workflow - 21:13writing
Frozen Verbal Brief: Freeze the Client's Words Before Team Notes
Freeze a verbal client brief before acting: verbatim quotes separated from team notes, conflicts recorded instead of decided.
TL;DR: Verbal requests were frozen as quoted input, not approved decisions, with team notes kept strictly separate. Each point was mapped to existing documents, revealing scope gaps and a direct conflict that was logged as an open question. Only ready work entered the backlog while blocked items waited for written client direction.
#requirements#documentation#workflow - 20:38writing
A Cancelled Plan Is Still a Reference: Extract, Do Not Revive
A cancelled plan can still be a source of guidance: explicit extraction with a do-not-lift list, while the source document stays frozen.
TL;DR: Team kept the cancelled plan frozen instead of reopening it. They extracted still-valid guidance into Section E of the live response with six reference items and an explicit do-not-lift list. The plan got only a backlink, preserving the audit trail while keeping useful content accessible.
#documentation#adr#workflow - 20:23tooling
The Backlog Is Not a Queue: An Agreement Gate Before To Do
A one-line transition rule became a question-and-answer arena: items reach To Do only after agreement, following the definition-of-ready pattern.
TL;DR: A kanban transition rule let one owner unilaterally move items from Backlog to To Do, leaving questions scattered and work stuck. Rewriting it as an agreement gate—items advance only when their backlog Q&A thread concludes—turned the backlog into a negotiation arena. Same-day results: a design item closed with no code, execution split into three new items.
#kanban#agile#workflow