// Code Glimpse

Byte-sized insights into software development, AI, and the future of technology.

Core Engineering

Building A Git-Aware “Hot Reload” Plugin For Local System Integration Tests

The problem I kept running into I was building a small system made of multiple services (one API, one worker, one “data fixer” job). The goal was si...

Jul 16, 2026Read more
Core Engineering

Deterministic Pareto Front Updates Via Incremental Dominance Buckets

I ran into a frustrating problem while building a little “best trade-offs” engine: I needed a live Pareto front (set of non-dominated solutions) that ...

Jul 15, 2026Read more
Edge Computing & Physical AI

Edge Accelerated Visual-Lidar Time Sync For Micro-Slam On A Raspberry Pi

Why I got obsessed with this weird problem When I built a tiny robot for indoor mapping, the first thing that went “almost right” was motion and per...

Jul 14, 2026Read more
Cybersecurity & Trust

Deterministic Prompt Hashing For Ai Trust In Devsecops

The problem I ran into: “Trust” that changes every run I spent a weekend trying to make AI outputs auditable in a CI/CD pipeline. The goal was simple...

Jul 13, 2026Read more
Distributed Systems & Cryptography

W3C Verifiable Credentials For Museum Provenance With Selective Disclosure Of Restoration Notes

The problem I kept running into I wanted a provenance trail that could answer two very different questions about a physical artifact: 1. “What is t...

Jul 10, 2026Read more
Data Science

Enforcing Scd Type 2 Integrity For Real Time Feature Store Feeds

Why I got stuck: “the feature went backwards” I was building a real-time feature feed for an AI model—think “latest customer attributes right now”—an...

Jul 9, 2026Read more
Artificial Intelligence

Training A Tiny Vision Transformer From Scratch With Patchdropout

Why I got obsessed with PatchDropout I wanted to understand how regularization changes the internal “token flow” in a transformer for vision. Most d...

Jul 8, 2026Read more
Core Engineering

Specifying Json-Ld Contexts With Http Link Headers And A Deterministic Hash

The weird bug that sent me into JSON-LD debugging mode I hit an annoying mismatch while building an API that returned JSON-LD (JSON for Linked Data)...

Jul 7, 2026Read more
Artificial Intelligence

Building A Contract Clause Rag With Checksum-Guarded Citations

The problem that pulled me in I ran into a surprisingly painful failure mode while building an Enterprise RAG (Retrieval-Augmented Generation) syste...

Jul 6, 2026Read more
Systems Thinking

Weekend Notes On Designing A Deterministic “Incident Timeline” For Event-Driven Systems

The problem I couldn’t ignore I once ran an incident where the system behaved “correctly” by every metric—but the story didn’t line up. Alerts told ...

Jul 5, 2026Read more
Cybersecurity & Trust

Building A Threat Intelligence “Stix Mini-Linter” For Suspicious Jarm Clusters

I fell into this rabbit hole because I kept seeing the same pattern in my telemetry: outbound connections from a service to a set of TLS endpoints kep...

Jul 4, 2026Read more
Data Science

Building A Real Time Data Freshness Gate With Debounced Heartbeats

The problem I ran into: “Fresh” data that wasn’t actually fresh I was building a real-time analytics feed for an AI feature store. Everything looked ...

Jul 3, 2026Read more
Distributed Systems & Cryptography

Building A Verifiable Merkle-Map For Off-Chain Digital Provenance Receipts

The problem I ran into I was building a provenance pipeline where files (PDFs, videos, build artifacts) were stored off-chain (S3-like storage), but...

Jul 2, 2026Read more
Quantum Computing

Building A Fault-Tolerant Parity Check Gadget For The [[7 1 3]] Code

The bug that pushed me into fault tolerance I ran into a very practical problem while prototyping a tiny “quantum error correction” simulator: I kep...

Jul 1, 2026Read more
Infrastructure & Scale

Reproducible Platform Dev Environments With Nix Flakes And Github Runner Cache Keys

The problem I ran into I built a “standard” dev environment for a team: same language runtimes, same system packages, same tooling versions. Locally...

Jun 30, 2026Read more
Systems Thinking

Quorum Math Meets Cache Ttl Jitter In An At-Least-One Read Architecture

The bug that started it all I ran into a weird production incident that looked like “random stale data.” The system was built around an at-least-one...

Jun 29, 2026Read more
Quantum Computing

Calibrating A Noisy Quantum Kernel With Grid Search For Adversarial Shift Robustness

Why I got obsessed with “shift robustness” in quantum kernels I stumbled into a weird failure mode while experimenting with quantum machine learning...

Jun 28, 2026Read more
Data Science

Detecting Silent Timestamp Drift In Streaming Sensor Data With Sql And Row-Level Lineage

I got burned by a failure mode that’s weirdly hard to spot: my real-time model didn’t crash, but it started learning from “time-shifted” data. The sen...

Jun 26, 2026Read more
Data Science

Building A Backpressure-Aware Real-Time Feature Store Using Postgres Logical Replication And Kafka

The problem I ran into: “real-time” that wasn’t I built what I thought was a clean real-time analytics pipeline: events flowed into Kafka, a consume...

Jun 25, 2026Read more
Distributed Systems & Cryptography

Building A Defi Twap Oracle Using Only Signed Event Logs

The problem I wanted to solve I kept running into a subtle DeFi reliability issue: many “time-weighted average price” (TWAP) oracles assume they can ...

Jun 24, 2026Read more
Distributed Systems & Cryptography

Building A Merkleized “Receipt Log” For Defi Flashloan Arbitrage

The problem I ran into (and why it’s weirdly hard) On a weekend of tinkering with DeFi flashloan arbitrage (a flash loan is a loan that must be borro...

Jun 23, 2026Read more
Systems Thinking

Incident Postmortems As Feedback Control For Queue Backlog Oscillations

I used to think incident postmortems were mostly for “remembering what happened.” Then I watched a system almost learn from its failures—and fail anyw...

Jun 22, 2026Read more
Systems Thinking

The Queue Debt Ledger I Built For Incident-Free Deploys

I didn’t start out trying to build a “philosophy” tool. I started because my deploys kept “working” and still hurting us. Every time we shipped, the ...

Jun 21, 2026Read more
Systems Thinking

Modeling Cache Stampedes With A Two-Delay Feedback Loop In Python

The tiny production fire I wanted to understand A while back I chased a weird incident: response times would suddenly spike, then slowly recover—but...

Jun 19, 2026Read more
Artificial Intelligence

Training A Transformer On Variable-Length Byte Sequences With Learned Positional Bias

The problem that pulled me in I ran into a weird failure mode while training a small Transformer for a “toy” classification task: my inputs were raw ...

Jun 18, 2026Read more
Artificial Intelligence

Reproducible Synthetic Ocr Labels With A Constrained Layout Diff For Donut

Why I went down this rabbit hole I wanted to generate synthetic training data for an OCR model, but every time I used a “normal” image + text render...

Jun 17, 2026Read more
Core Engineering

Tracing Byte-Exact Json Bugs With A Deterministic Diff Harness

I got bitten by a bug that looked “nondeterministic” at first: sometimes my API returned the exact same data but the downstream system rejected it any...

Jun 16, 2026Read more
Systems Thinking

Debugging Eventual Consistency With A Deterministic “Outbox Storm” Simulator

I ran into a bug that felt haunted: data looked correct most of the time, then occasionally—usually right after a deploy or a load spike—it “snapped” ...

Jun 12, 2026Read more
Artificial Intelligence

Building A Token-Level “Diff” Inspector For Prompt Rewrites

The itch that started this project I kept seeing the same frustrating pattern while iterating on prompts: I’d “rewrite the prompt to be clearer,” ru...

Jun 11, 2026Read more
Core Engineering

Two-Phase Bfs For “Exactly K Edges” Shortest-Path Counting

I tripped over a surprisingly nasty bug while building a little “route planner” for a grid. The UI asked for: “minimum travel time” and also showed ho...

Jun 9, 2026Read more
Systems Thinking

Pagerduty Triage Bots And The “One-Line Blame” Trap

Last year I inherited an on-call rotation where every incident felt like the same small play: the pager went off, someone posted a terse message like ...

Jun 8, 2026Read more
Data Science

Optimizing Postgres With Generated Columns For Jsonb Key Existence Filters

The problem I kept running into I was building a real-time analytics pipeline on PostgreSQL, where events came in as `JSONB`. Each event had a paylo...

Jun 5, 2026Read more
Artificial Intelligence

Training A Tiny Diffusion Model For Pixel Art Tilemaps With Denoising Autoencoder Loss

The weird problem I stumbled into I wanted to generate pixel-art tilemaps (think: 16×16 tiles arranged into a small scene), but I kept running into ...

Jun 4, 2026Read more
Cybersecurity & Trust

Verifying Slsa Provenance For Oci Artifacts With Cosign And Rekor In Github Actions

The problem I kept hitting in software supply chain security I got tired of “trust me” release pipelines. Even when I used code signing and pinned d...

Jun 3, 2026Read more
Artificial Intelligence

Enterprise Rag With Deterministic Citations Using Postgresql Trigram Search

The problem I ran into: “answers” with citations that couldn’t be trusted I built a small Enterprise RAG (Retrieval-Augmented Generation) pipeline t...

Jun 2, 2026Read more
Infrastructure & Scale

Ci Cd Pipeline For Deterministic Docker Sboms With In Pipeline Cosign Rekeying

The problem I ran into: “My images are identical, but the SBOMs keep changing” I was helping wire up a CI/CD pipeline for a hybrid setup where develo...

Jun 1, 2026Read more
Distributed Systems & Cryptography

Quorum Signed Checkpoints For Bft Chain Exporters

I got annoyed the first time I tried to build a “blockchain exporter” that writes ledger data into a database: the exporter would sometimes ingest the...

May 19, 2026Read more
Core Engineering

Canonicalizing Ndjson For Stable Api Cache Keys

The weird bug I hit: the “same” response produced different cache keys I ran into a maddening issue while building a small API service that cached r...

May 18, 2026Read more
Quantum Computing

Building A Kyber512 Kem Smoke Test With Deterministic Replays

Why I got curious about Post-Quantum crypto (and what broke) I went looking at post-quantum cryptography because I wanted something concrete I could ...

May 15, 2026Read more
Infrastructure & Scale

Deterministic Fallback Dataplane For Hybrid Egress In Multi-Region Clusters

The problem I ran into on a hybrid cluster I was building a hybrid (on‑prem + public cloud) environment where services needed egress (outbound netwo...

May 14, 2026Read more
Infrastructure & Scale

Ci/Cd Pipelines For Deterministic Dockerfile Rebuilds Using Buildkit Cache Keys

The problem I tripped over: “Same Dockerfile, different image” I was running a CI/CD pipeline where every PR kicked off a Docker build, then pushed a...

May 13, 2026Read more
Distributed Systems & Cryptography

Deterministic Proof-Of-Receipt Verification For Smart Contract Memos

Why I got obsessed with “receipt memos” I stumbled into a weird bug class while building a decentralized provenance system: the smart contract would ...

May 12, 2026Read more
Edge Computing & Physical AI

Edge Ai Scrap Detection For Braille-Stamped Circuit Boards With On-Device Yolov8

I got pulled into a weird smart-manufacturing problem after a weekend of tinkering: tiny, non-obvious defects on circuit boards that look like nothing...

May 11, 2026Read more
Quantum Computing

Building A Dilithium Signature Verifier With Mutated Byte Layouts

The bug that sent me down a rabbit hole I recently tried to validate a CRYSTALS-Dilithium signature (a post-quantum signature scheme standardized by...

May 8, 2026Read more
Cybersecurity & Trust

Zero Trust Architecture With Http Dpop Proof Binding For Ci Ephemeral Tokens

I fell into this rabbit hole because I kept seeing the same annoying pattern in my homelab: my CI pipeline would mint short-lived API tokens, those to...

May 7, 2026Read more
Infrastructure & Scale

Building A Deterministic Multi Cloud Webhook Router With Cloud Run And Aws Lambda

The problem I ran into I built a hybrid webhook pipeline that had to accept payment events from two different SaaS vendors, then forward them to int...

May 6, 2026Read more
Data Science

Predicting Same-Day Checkout Failures With Feature-Arrival Time Windows

I ran into a weird failure mode while building a predictive model for “will this checkout fail today?” The data looked fine in batch, but during real-...

May 5, 2026Read more
Cybersecurity & Trust

Hardening An Llm Token Router Against Prompt Injection With Policy-Aware Beam Search

The weekend problem I couldn’t stop thinking about I was building an “AI assistant” that had to call internal tools (like fetching account metadata)...

May 4, 2026Read more
Core Engineering

Lease-Aware In-Process Job Router With Expiring Locks And Exactly-Once-Ish Scheduling

The weekend problem I kept running into I was building a small system that scheduled short background jobs. Nothing fancy—just a single service, mul...

Apr 30, 2026Read more
Distributed Systems & Cryptography

I Built A Tee Attested Log Proof Pipeline For Blockchain Node Metadata

I ran into a weird but real problem while tinkering with blockchain infrastructure: node operators (including me) often have “clean” logs—until you tr...

Apr 29, 2026Read more
Cybersecurity & Trust

Parsing Opencti Threat Intelligence To Produce Sbom-Like Incident Fingerprints

I got tired of treating “threat intelligence” like a blob of text—some feeds said “APT29”, others said “malware family”, and in practice my SOC (secur...

Apr 28, 2026Read more
Distributed Systems & Cryptography

Building A Defi On-Chain Provenance Receipt For Single-Route Swaps

The itch that started this I kept seeing “audit trails” in DeFi described as events in logs—and every time I dug deeper, I found the same mismatch: ...

Apr 24, 2026Read more
Core Engineering

Deterministic Canonical Json For Signed Webhooks With Jcs-Like Ordering

I ran into a maddening problem while wiring up signed webhooks: the signature verification would randomly fail even though the “same” payload was bein...

Apr 23, 2026Read more
Data Science

Building A Scd Type 2 “Event-Time Merge” For Late Arriving Clickstream In Dbt And Snowflake

Building a SCD Type 2 “Event-Time Merge” for Late Arriving Clickstream in dbt and Snowflake The problem that pulled me into this niche is simple: cl...

Apr 22, 2026Read more
Data Science

Taming The “Late-Arriving Dimension” Spike With Sql Window Filters

The problem I chased: a sudden 10x query spike in real-time metrics I hit a performance cliff in a real-time analytics pipeline that joins event dat...

Apr 21, 2026Read more
Quantum Computing

Building A Phase-Drift Classifier With A Two-Qubit Zero-Noise Readout Calibration Loop

The bug I chased for a week: “learning” that was really hardware drift I was experimenting with a tiny hybrid quantum-classical system: a classical ...

Apr 20, 2026Read more
Systems Thinking

A Tiny Mental Model For Debugging Event Loops With Virtual Time

Last year I got bitten by a bug that “couldn’t possibly happen”: timers were firing, yet the system behaved like they weren’t. It turned out I was usi...

Apr 18, 2026Read more
Distributed Systems & Cryptography

Verifiable Timestamped Provenance Via Merkle-Tree Log Anchors

The provenance problem that kept bothering me I kept running into the same failure mode when building “digital provenance” systems: I could store ev...

Apr 17, 2026Read more
Core Engineering

Designing A Deterministic Outbox For Crdt Event Streams In Go

I hit a fun (and annoying) problem while building a service that stores user edits as a stream of CRDT (Conflict-free Replicated Data Types) operation...

Apr 16, 2026Read more
Data Science

Event-Time Dedupe Drift In Kafka Streams With Late Arrivals

The bug I couldn’t explain: “Same event, different features” I ran a real-time feature pipeline for an AI model and watched accuracy slowly degrade o...

Apr 15, 2026Read more
Systems Thinking

Mental Model For Debugging Event Loops With A Deterministic Time Tracer

I ran into a bug that looked “random” in production: a UI button sometimes didn’t update, but only when users clicked quickly. Locally it was fine. In...

Apr 13, 2026Read more
Artificial Intelligence

Building A Markdown Compiler Agent For Openapi Terraform Mappers

I got obsessed with a very specific workflow bug: every time my team exported an OpenAPI spec into Terraform-friendly artifacts, the “glue” logic live...

Apr 11, 2026Read more
Distributed Systems & Cryptography

Timestamped Attestations In Smart Contracts With Cross-Chain Merkle Proofs

The weird problem I ran into: “same event” across chains I was building a small “digital provenance” system where an event—like “sensor reading X is ...

Apr 10, 2026Read more
Edge Computing & Physical AI

Building A 5G Edge Timestamp Correlator For Drone Video Using Ptp And Rtp Sequencing

The weird problem I ran into I was testing a small drone camera pipeline over a cellular link (5G/6G integration in the real world, not in a lab dia...

Apr 9, 2026Read more
Infrastructure & Scale

Multi Cloud S3 Compatible Etl With Sigv4 Proxy And Deterministic Manifest Hashing

The weird problem I ran into I was building an ETL pipeline that reads objects from one provider (S3-compatible storage) and writes into another—acr...

Apr 8, 2026Read more
Artificial Intelligence

Building A “Fuzz-Resistant” Prompt Checksum For Deterministic Llm Outputs

Why I got obsessed with “prompt tampering” I hit a weird problem while building a small generative workflow: two prompts that looked identical produc...

Apr 7, 2026Read more
Cybersecurity & Trust

Building A Go Module Source Attestation Check Using Sigstore And Rekor

I stumbled into a weird corner of software supply chain security while debugging a “perfectly signed” release that still felt untrustworthy: the signa...

Apr 6, 2026Read more
Distributed Systems & Cryptography

Building An Onchain Twap Oracle From Trade Logs Using Merkle Proofs

I got curious about something that’s annoyingly under-explained in DeFi: how to build a time-weighted average price (TWAP) oracle without trusting a c...

Apr 5, 2026Read more
Artificial Intelligence

Building A Contract Clause Rag Guardrail Using Regex-Filter Before Retrieval

I got curious about a very specific failure mode in enterprise Retrieval-Augmented Generation (RAG): even when the retriever finds the “right” clauses...

Apr 4, 2026Read more
Cybersecurity & Trust

Verifying Sigstore Fulcio Certificates For Slsa 4 Provenance In Ci

The problem that got me curious I hit a weird failure in a CI pipeline that “looked secure” on paper: the pipeline was verifying artifacts, but it w...

Apr 3, 2026Read more
Infrastructure & Scale

A Deterministic Ci/Cd Gate For Aws Codebuild That Blocks “Heisenbugs” Via Content-Addressed Docker Layers

The problem I ran into: “green” builds that later explode I recently helped wire a CI/CD pipeline for a distributed cloud platform, and everything lo...

Apr 3, 2026Read more
Distributed Systems & Cryptography

Aave V3 Risk For Erc4626 Vaults Using “Virtual Shares” Mispricing

The problem I stumbled into I spent a weekend trying to wire an ERC4626 vault into a DeFi portfolio and then feed its “share price” into an Aave v3 ...

Apr 3, 2026Read more
Edge Computing & Physical AI

Building A Markerless “Floor Compass” For Ar Using Real Camera Motion Only

The problem I stumbled into I got hooked on spatial computing because it lets you make digital content react to the real world. The part that surpri...

Apr 3, 2026Read more
Data Science

Building A Streaming “Monotonic Timestamp” Guardrail In Kafka Connect

Building a Streaming “Monotonic Timestamp” Guardrail in Kafka Connect A weird class of incidents kept biting me in real-time pipelines: event times ...

Apr 3, 2026Read more
Edge Computing & Physical AI

Edge Vision For Predicting Conveyor Belt Tear Using Tiny Yolov8 And Imu Correlation

Edge Vision for Predicting Conveyor Belt Tear Using Tiny YOLOv8 and IMU Correlation A couple weekends ago I got pulled into a frustrating smart-manu...

Apr 3, 2026Read more
Infrastructure & Scale

Deterministic Ephemeral Review Apps By Git Commit Digest In Kubernetes

The problem I ran into: “same PR” but different infrastructure drift I was building a platform engineering workflow for ephemeral review apps (short...

Apr 3, 2026Read more
Distributed Systems & Cryptography

Air-Gapped Receipt Provenance With Merkleized Attachment Hash Chains

The problem I wanted to solve I once had to prove that a printed, scanned receipt image hadn’t been altered between a vendor’s laptop and an offline ...

Apr 3, 2026Read more
Core Engineering

Split Brain Avoidance For Subdomain Cookie Auth In Edge-Rendered Next.Js

The bug I chased: “login works on one subdomain, breaks on the other” I ran into a weird authentication failure while building a setup like this: - ...

Apr 3, 2026Read more
Infrastructure & Scale

Hardening A Github Actions Oidc Token Refresh Pipeline For Kubernetes With Ttl=0

I ran into a weird CI/CD failure that looked like an “auth problem,” but it wasn’t. The symptoms were consistent: GitHub Actions would authenticate to...

Apr 3, 2026Read more
Edge Computing & Physical AI

Edge Device Sentinels Using Modbus Heat-Map Alarms For Cnc Spindle Microstalls

I got curious about a super specific failure mode in smart manufacturing: microstalls on a CNC spindle—those tiny hesitations that don’t trip the obvi...

Apr 3, 2026Read more