Archives
All the articles I've archived.
-
UNet, VAE, Text Encoder - the three parts of a diffusion model, and why some need three files
🇺🇸 ENA model download page says 6.46 GB, one file. Another says you also need a text encoder and a VAE. Same job, different packaging - here is what each part does, why the split exists, and how to read a .safetensors header to tell which kind you are holding.
-
UNet, VAE, Text Encoder - ba bộ phận của một diffusion model, và vì sao có model cần tới ba file
🇻🇳 VITrang tải model ghi 6,46 GB, đúng một file. Model khác lại bắt bạn tải thêm text encoder và VAE. Cùng một việc, khác cách đóng gói - bài này giải thích mỗi bộ phận làm gì, vì sao sinh ra chuyện tách file, và cách đọc header .safetensors để biết mình đang cầm loại nào.
-
Legs, Arms, and Cells - how to structure an LLM-agent eval so the verdict is a number, not prose
🇺🇸 ENA design breakdown of a real detection eval for LLM coding agents: arm (memory bias control), leg (independent detector path), and cell (leg × arm, repeated for nondeterminism), ending in a five-gate numeric pass contract.
-
Legs, Arms, Cells - cách thiết kế eval cho LLM agent để kết quả là một con số, không phải văn xuôi
🇻🇳 VIPhân tích thiết kế một eval phát hiện quy ước thật cho LLM coding agent: arm (kiểm soát thiên lệch bộ nhớ), leg (đường đo lường độc lập theo detector), và cell (leg × arm, lặp lại để hấp thụ tính không xác định), kết thúc bằng hợp đồng đạt/rớt 5 gate bằng số.
-
Event-Driven Architecture, Part 0: Foundations - The Minimum Vocabulary
🇺🇸 ENBefore the failure modes: why event-driven architecture trades a synchronous call for a broker in the middle, the vocabulary you need (producer, consumer, topic, partition, offset, ack), and the causal map linking all 10 problems ahead - via a running order system called MuaLẹ.
-
Event-Driven: 10 Bài Toán Kinh Điển - Phần 0: Nền Tảng, Bộ Từ Vựng Tối Thiểu
🇻🇳 VITrước khi vào 10 bài toán: vì sao event-driven (kiến trúc hướng sự kiện) đánh đổi việc gọi trực tiếp lấy một broker (trung gian) ở giữa, bộ từ vựng tối thiểu (producer, consumer, topic, partition, offset, ack), và bản đồ nhân quả nối cả loạt bài - qua hệ đặt hàng giả định MuaLẹ.
-
Part 1: Lost and Duplicate Events - Why Idempotency Is the Center of Gravity
🇺🇸 ENMs. Tí's order goes through, the money is charged, but the confirmation email never arrives - an event got lost. Then: she orders 500k, her account is charged 1 million - an event got duplicated. Delivery guarantees, durability, ack, and idempotency, the property everything else in event-driven architecture stands on.
-
Phần 1: Event Bị Mất Và Bị Trùng - Vì Sao Idempotency Là Trọng Tâm
🇻🇳 VIEvent phát đi mà không ai xử lý là lỗi im lặng; chống mất bằng ack + gửi lại thì sinh trùng lặp. Định nghĩa delivery guarantee, durability, ack, và idempotency (tính luỹ đẳng) - tính chất trung tâm của cả kiến trúc event-driven.
-
Part 2: Dual-Write and Retries - the Transactional Outbox, Backoff, Circuit Breakers
🇺🇸 ENThe database write succeeds but the event publish fails - dual-write has no atomicity across two systems. Then, on retry, a client without backoff+jitter can trigger a retry storm that takes down the very downstream it's waiting to recover.
-
Phần 2: Dual-Write Và Retry - Transactional Outbox, Backoff, Circuit Breaker
🇻🇳 VIGhi database xong, publish event thất bại - dual-write không có atomicity xuyên hệ thống. Rồi khi retry, một client thiếu backoff+jitter có thể tự tạo ra retry storm đánh sập chính downstream nó đang chờ hồi phục.
-
Part 3: Poison Messages and Out-of-Order Events - Dead Letter Queues, Partition Keys, Version Numbers
🇺🇸 ENA broken message retried forever jams an entire partition - its fate is the Dead Letter Queue. And when two causally related events travel down two parallel lanes at different speeds, their order can flip with no exception ever thrown.
-
Phần 3: Poison Message Và Sai Thứ Tự - Dead Letter Queue, Partition Key, Version Number
🇻🇳 VIMột message hỏng, retry vô hạn, chặn nghẽn cả partition - số phận của nó là Dead Letter Queue. Và khi hai event có quan hệ nhân quả đi hai làn song song khác tốc độ, thứ tự có thể đảo ngược mà không ai throw exception nào.
-
Part 4: Eventual Consistency and Sagas - Life Without a Cross-Service ROLLBACK
🇺🇸 ENMs. Tí saves a new address, sees 'Success,' refreshes, and still sees the old one - the consistency gap is a chosen property, not a bug. And when a transaction spans three services and the middle step fails, a saga replaces ROLLBACK with a chain of compensating transactions.
-
Phần 4: Eventual Consistency Và Saga - Khi Không Còn ROLLBACK Xuyên Service
🇻🇳 VIChị Tí lưu địa chỉ mới, thấy 'Thành công', refresh lại vẫn thấy địa chỉ cũ - khe hở nhất quán là tính chất được chọn, không phải bug. Và khi một giao dịch trải ba service mà bước giữa hỏng, saga thay ROLLBACK bằng chuỗi giao dịch bù.
-
Part 5: Backpressure and Schema Evolution - Overload and the Data Contract
🇺🇸 ENThe producer pushes 50,000 events a minute, the consumer can only digest 10,000 - lag creeps up in one direction until an OTP email arrives 4 hours late. And when one team renames a field in an event, they've just broken a public contract they didn't know anyone was relying on.
-
Phần 5: Backpressure Và Schema Evolution - Quá Tải Và Hợp Đồng Dữ Liệu
🇻🇳 VIProducer bơm 50.000 event/phút, consumer chỉ tiêu hoá nổi 10.000 - lag bò đều một chiều cho tới khi OTP chậm 4 tiếng. Và khi một team đổi tên field trong event, họ vừa phá vỡ một hợp đồng công khai mà họ không biết ai đang dựa vào.
-
Part 6: Observability and the Recap - Correlation IDs, the Cheat Sheet, the Glossary
🇺🇸 ENThere's no call stack spanning a business transaction that crosses 5 services and 3 topics - the clue has to travel inside the message itself. Closing the series with correlation IDs, the four mandatory metrics, a lookup table for all 10 problems, and a full glossary of every property.
-
Phần 6: Observability Và Tổng Kết - Correlation ID, Bảng Tra Cứu, Glossary
🇻🇳 VIKhông còn call stack xuyên suốt khi một nghiệp vụ đi qua 5 service và 3 topic - manh mối phải đi trong chính message. Khép lại loạt bài với correlation ID, bốn metric bắt buộc, bảng tra cứu 10 vấn đề, và glossary đầy đủ mọi tính chất.
-
Re-reading a Campaign Runner After Its Ports-and-Adapters Refactor - Entry Point, Run Flow, and How to Debug It
🇺🇸 ENThe tribe plugin's campaign runner got restructured: run.ts went from entrypoint to a 9-line shim, github.ts is gone, loop.ts is now a barrel. This walks from the entry point through the loop, redraws the five-layer architecture map, and shows how to attach a debugger to a program that runs on Bun.
-
Đọc lại Campaign Runner sau refactor ports & adapters - điểm đầu, luồng chạy, và cách tự debug
🇻🇳 VIBộ campaign runner trong plugin tribe đã tách lại: run.ts từ entrypoint thành shim 9 dòng, github.ts biến mất, loop.ts thành barrel. Bài này đi từ điểm đầu tới vòng lặp, dựng lại bản đồ kiến trúc 5 tầng, và chỉ cách gắn debugger vô một chương trình chạy bằng Bun.
-
Bên dưới git: commit object là gì, branch chỉ là con trỏ, và 4 kiểu merge thực ra khác nhau chỗ nào
🇻🇳 VIMổ xẻ git từ tầng dữ liệu: một commit chứa đúng những field nào, vì sao branch chỉ là một file text chứa một dãy số, HEAD trỏ vào đâu, và bốn cách hợp nhánh (fast-forward, merge commit, squash, rebase) khác nhau ở đúng một chỗ. Mọi output trong bài là chạy thật, kèm sơ đồ cho từng bước.
-
Freeze, don't hash: giving a non-deterministic agent's findings a deterministic identity
🇺🇸 ENHow a code-review agent inside a multi-agent system gives its findings a stable ID across independent, memoryless runs - the hashing design that silently broke, and the fix borrowed from an architecture-docs tool: freeze one instance of the output as a replayable check, then reconcile by replay, not comparison.
-
Đóng băng, đừng băm: cho một agent không tất định một danh tính tất định
🇻🇳 VIChuyện tui thiết kế bộ phát hiện lỗ hổng quy tắc cho Tracker - một agent trong hệ thống code review nhiều-agent tên tribe - và bài học rút ra: đừng băm (hash) lời văn của một con LLM để làm danh tính, hãy đóng băng một mẫu câu lệnh mà nó viết ra, rồi đối chiếu bằng cách chạy lại.
-
Bộ từ điển eval tui gom được khi cố cắt ngắn một prompt agent 86KB
🇻🇳 VITrước khi dám cắt ngắn prompt khổng lồ của agent warchief, tui phải xây một bộ benchmark A/B để đo xem cắt có làm vỡ luật nào không - và học được cả tá thuật ngữ theo cách đau nhất: từ baseline vs candidate tới việc chính cái thước đo cũng cần bị audit.
-
The eval glossary I picked up trying to trim an 86KB agent prompt
🇺🇸 ENBefore I dared cut my warchief agent's giant prompt, I built an A/B benchmark to measure whether trimming it would break anything - and learned a dozen terms the hard way, from baseline vs candidate to why the measuring harness itself needs an audit.
-
The Self-Improvement Loop I Kept Looking For, and Finally Stumbled Into
🇺🇸 ENI picked up the idea of a self-improvement loop from a post by Boris, but that post only named the idea - it never showed the mechanics. Then, working on a pet project, Claude Code asked me one question about an unwritten convention, and I realized I had just built the loop by accident.
-
Self Improvement Loop: Vòng lặp khép kín
🇻🇳 VITui đọc được ý niệm self improvement loop từ một bài viết của Boris, nhưng bài đó chỉ nói ý, không nói cách. Hôm nay làm pet project, Claude Code hỏi tui một câu về unwritten convention, và tui ngộ ra nó là gì.
-
Bun port 1 triệu dòng code trong 11 ngày - và cái plugin tui viết vì hết tin nổi chữ "done"
🇻🇳 VICâu chuyện team Bun migrate Zig sang Rust bằng 64 con Claude chạy song song, và cách nó thành bản thiết kế cho Tribe - plugin 5 agent giao việc theo dây chuyền mệnh lệnh, nơi không ai được tin lời ai.
-
Campaign Runner: reading a TypeScript orchestrator through C# eyes
🇺🇸 ENA top-down dissection of the tribe plugin's campaign runner - 9 TypeScript modules (~3,400 lines) that orchestrate shipping one card at a time without spending a single token. Explained for C# developers: the seam/DI pattern, discriminated unions, 'the file is data, git is authority', and why 'blocked' must be recomputed to a fixpoint on every call.
-
Campaign Runner: một orchestrator TypeScript đọc bằng con mắt dev C#
🇻🇳 VIMổ xẻ top-down bộ campaign runner trong plugin tribe - 9 module TypeScript (~3.400 dòng) điều phối việc 'ship' từng card mà không tốn một token nào. Giải thích cho dân C#: seam/DI, discriminated union, 'file là data, git là thẩm quyền', và vì sao 'blocked' phải tính lại tới fixpoint mỗi lần.
-
Don't Ship the Bundle: A/B-Testing Prompt Rules Before You Believe Them
🇺🇸 ENI pasted a Gemini session's suggestions into my global Claude rules alongside my own favorite line, all at once. Output improved, but I couldn't say why - so I ran a real 30-run A/B eval to find out, and my own favorite line turned out to be the one that didn't matter.
-
Đừng Tin Bundle Rule: A/B Eval Từng Thành Phần Trước Khi Ship
🇻🇳 VITui dán một mớ gợi ý từ Gemini vô global Claude rules, kèm luôn dòng tui khoái nhất - làm một lượt luôn. Output tốt hơn thiệt, nhưng hỏi tại sao thì chịu. Nên tui làm hẳn một eval A/B 30 run cho ra lẽ, và dòng tui khoái nhất hóa ra là cái vô dụng nhất.
-
Claude Agent SDK: flow đơn giản nhất và cách viết tool của riêng mình
🇻🇳 VIDùng @anthropic-ai/claude-agent-sdk để điều khiển Claude bằng TypeScript - từ query() và env-var auth, tới subagent qua Task tool, rồi tự viết in-process MCP tool bằng createSdkMcpServer().
-
Provider Switching & SDK-Mode Internals: How an Agent Harness Wires Claude's query() In-Process
🇺🇸 ENMost agent harnesses hide more complexity than their README admits. This deep-dive traces a single chat message from WebSocket to token pool - covering in-process SDK calls vs. subprocess spawning, the HarnessEvent seam that makes providers swappable, and the OAuth token rotation that survives rate-limits and 401s.
-
Đổi Provider & Bên Trong SDK Mode: Agent Harness Kết Nối query() của Claude In-Process Ra Sao
🇻🇳 VIHầu hết agent harness che giấu nhiều thứ hơn README thú nhận. Bài này truy vết một tin nhắn chat từ WebSocket đến token pool - bao gồm gọi SDK trong tiến trình so với spawn subprocess, seam HarnessEvent giúp provider có thể hoán đổi, và cơ chế xoay OAuth token khi gặp rate-limit và 401.
-
Bun's 11-Day Rust Rewrite: I Assumed Anthropic Had a Secret Tool. I Was Wrong.
🇺🇸 EN6,502 commits, 750k lines of Rust, 11 days. I was sure Anthropic had some internal 'Claude VIP PRO' nobody else gets. Then I did the token math and it refuted me: there was no superhuman model - just 64 ordinary Claudes in parallel, a 1.39-million-assertion oracle, and the coordination living in code instead of in an LLM.
-
Bun viết lại bằng Rust trong 11 ngày: tui nghi Anthropic giấu tool xịn, và tui sai
🇻🇳 VI6,502 commit, 750k dòng Rust, 11 ngày. Tui đoán chắc Anthropic phải có một con 'Claude VIP PRO' nào đó không cho ai xài. Làm toán lại thì con số token tự nó phản biện tui: không có model siêu tốc nào hết - chỉ có 64 con Claude ngu ngu chạy song song, một cái oracle 1.39 triệu assertion, và phần điều phối nằm trong code chớ không nằm trong LLM.
-
/loop vs /schedule in Claude Code: Same Idea, Two Very Different Machines
🇺🇸 EN/loop and /schedule both repeat a prompt, but they aren't two settings on one dial. /loop is a local cron tied to your live session; /schedule is an isolated cloud job. Mixing up their assumptions is how you build a cron that multiplies itself every 30 minutes - a bug I hit and fixed live.
-
/loop với /schedule trong Claude Code: cùng ý tưởng, hai cỗ máy khác hẳn nhau
🇻🇳 VI/loop với /schedule đều lặp lại một prompt, nhưng tụi nó không phải hai nấc của cùng một cái nút vặn. /loop là cron chạy local, gắn chặt vô session đang sống; /schedule là job cloud biệt lập. Lộn giả định của hai cái là y chang cách tui tạo ra một cron tự nhân bản mỗi 30 phút - bug tui gặp và sửa ngay tại trận.
-
Claude Code Loops: What 'Designing a Loop' Actually Means - and What the Docs Don't Tell You
🇺🇸 ENEveryone on X uses 'loop' to mean something different. This breaks down Claude Code's four loop types by what you hand off, then verifies the mechanics the marketing post skips: /goal has no built-in turn cap, /loop dies with your session, and /schedule is still a research preview.
-
Loop trong Claude Code: "Thiết kế loop" thiệt ra là gì - và mấy chuyện docs không nói
🇻🇳 VILên X mười phút là thấy chữ 'loop' bị mỗi người hiểu một kiểu. Bài này chia bốn loại loop của Claude Code theo cái bạn giao lại cho máy, rồi verify luôn mấy chỗ bài viết gốc lướt qua: /goal không có cap tích hợp, /loop chết theo session, /schedule còn đang research preview.
-
What a Good Prompt Needs - and How to Actually Get Better at Prompting
🇺🇸 ENA prompt is not a command - it's a probability distribution you're steering. A field guide to what a good prompt is built from, the economics that explain why, a five-layer failure-diagnosis ladder, and the feedback-loop habits that actually move the needle.
-
Một prompt tốt cần gì - và làm sao thật sự lên trình prompting
🇻🇳 VIPrompt không phải là lệnh - nó là một phân phối xác suất (probability distribution) bạn đang nắn. Một cẩm nang về các thành phần chịu lực của prompt, kinh tế học đứng sau chúng, thang chẩn đoán lỗi năm tầng, và những thói quen feedback loop thực sự giúp bạn lên trình.
-
Does Reading English Improve Pronunciation? What Neuroscience and SLA Research Say
🇺🇸 ENA neuroscience and second-language-acquisition (SLA) evidence review of whether reading - silently or aloud - improves L2 pronunciation, why English's opaque spelling can also implant wrong pronunciations, and what actually closes the gap.
-
Đọc Tiếng Anh Có Cải Thiện Phát Âm Không? Nghiên Cứu Nói Gì
🇻🇳 VITổng hợp bằng chứng từ khoa học thần kinh (neuroscience) và thụ đắc ngôn ngữ thứ hai (second language acquisition - SLA) về việc đọc - im lặng hay đọc to - có cải thiện phát âm tiếng Anh hay không, vì sao chính tả tiếng Anh rối rắm có thể cài vào đầu cách phát âm sai, và điều gì thật sự lấp đầy khoảng trống.
-
Inside a Claude Code Transcript: How Turns, Tokens & Actors Actually Work
🇺🇸 ENA line-by-line anatomy of the Claude Code .jsonl session format - how turns are reconstructed, what a token count really means, and the seven things that masquerade as a user prompt - audited against 1,107 real transcripts.
-
Giải phẫu một transcript Claude Code: turn, token và các tác nhân thực sự hoạt động thế nào
🇻🇳 VIMổ xẻ từng dòng định dạng .jsonl của phiên Claude Code - cách tái dựng một turn, ý nghĩa thật của số đếm token, và bảy thứ đội lốt prompt của người dùng - đã kiểm chứng trên 1.107 transcript thật.
-
Trunk-Based Development vs 'Release-Please': Three Problems Teams Mistake for One
🇺🇸 ENTeams hit by staging contention and 'lost code on merge' often reach for a release-branch + cherry-pick scheme they call 'release-please'. This untangles three problems mistaken for one, fact-checks what release-please actually does, shows why cherry-pick-to-curate reproduces the very bug it is meant to fix, and lays out a generic trunk-based playbook.
-
Trunk-Based Development vs 'Release-Please': Ba Bài Toán Bị Tưởng Là Một
🇻🇳 VIĐối mặt với tranh staging và 'mất code khi merge', nhiều team dùng một cơ chế release-branch + cherry-pick mà họ gọi là 'release-please'. Bài này gỡ ba bài toán bị tưởng là một, fact-check release-please thật sự làm gì, chỉ ra vì sao cherry-pick-để-chọn-lọc tái tạo đúng con bug nó định sửa, và trình bày một playbook trunk-based tổng quát.
-
zsh startup files: Vì sao .zshrc không chặn được lệnh khi một công cụ tự động chạy nó
🇻🇳 VIzsh đọc các file cấu hình khác nhau tùy loại shell - login/non-login, interactive/non-interactive. Bài viết đi qua thứ tự .zshenv → .zprofile → .zshrc → .zlogin, và giải thích vì sao một stub trong .zshrc chặn được lúc bạn gõ tay nhưng không chặn được khi một script hay công cụ tự động chạy lệnh.
-
Shim là gì, và vì sao Function luôn thắng Binary trong zsh
🇻🇳 VIKhi bạn gõ một lệnh như node, zsh tìm nó theo một thứ tự ưu tiên cố định. Hiểu rõ thứ tự đó chính là chìa khóa để hiểu shim là gì, vì sao nó hoạt động, và vì sao đặt một binary lên đầu PATH không phải lúc nào cũng đủ để nó thắng.
-
Claude Code Workflow: Prompt Của Từng Agent Đang Nằm Ở Đâu Trên Đĩa?
🇻🇳 VISau khi một Workflow trong Claude Code chạy xong, prompt và kết quả đầy đủ của từng agent được lưu ở đâu? Bài này lần theo ba loại ID (taskId, runId, agentId), năm vị trí lưu trên đĩa, và cách gom lại thành một file đọc được để tự học cách mình đã ra lệnh cho agent.
-
Event Notification vs. Direct Sync Push: Who Should Depend on Whom?
🇺🇸 ENWhen a shared upstream service needs to tell a downstream consumer that something happened, it can publish a thin event with a callback, or call the downstream directly. A dimension-by-dimension comparison of the two, and the one question that usually decides it: who ends up depending on whom.
-
The EF Core Livelock That Looks Like a Hang: Stale ChangeTracker State and the Atomic-Claim Fix
🇺🇸 ENA scheduled worker claiming payment rows under optimistic concurrency started livelocking at 2+ instances - not crashing, just never finishing. This traces the two-layer root cause and compares the minimal ChangeTracker.Clear() patch against removing the race entirely with an atomic UPDATE.
-
Livelock Trong EF Core: ChangeTracker 'Dính' State Cũ, Và Cách Sửa Bằng UPDATE Nguyên Tử
🇻🇳 VIMột worker chạy theo lịch, giành các dòng thanh toán dưới cơ chế optimistic concurrency (kiểm soát tương tranh lạc quan), bắt đầu livelock khi scale từ 2 instance trở lên - không crash, chỉ là không bao giờ chạy xong. Bài viết truy nguyên nhân gốc hai tầng và so sánh patch tối thiểu ChangeTracker.Clear() với việc loại bỏ hẳn race bằng một UPDATE nguyên tử.
-
Compile Once, Maintain Forever: Karpathy's LLM Wiki Pattern
🇺🇸 ENAndrej Karpathy's 'LLM Wiki' is a prose pattern, not a product - a few paragraphs pasted into a coding agent so it compiles raw sources into a cross-linked wiki once, then keeps it current, instead of re-deriving answers from a RAG corpus on every query.
-
Biên Dịch Một Lần, Bảo Trì Mãi Mãi: Mẫu Hình LLM Wiki Của Karpathy
🇻🇳 VI'LLM Wiki' của Andrej Karpathy là một mẫu hình (pattern) dạng văn bản, không phải sản phẩm - vài đoạn hướng dẫn dán vào một coding agent để nó biên dịch nguồn thô thành một wiki liên kết chéo một lần, rồi giữ nó luôn cập nhật, thay vì phải suy lại câu trả lời từ một kho ngữ liệu RAG mỗi lần có câu hỏi.
-
Beyond Coverage, Part 0: Why Coverage Lies (and What Your Instinct Gets Right)
🇺🇸 ENCode coverage measures whether a test ran a line, not whether it would notice that line being wrong - the research confirms it's a valid negative signal but a nearly useless positive one, and shows exactly why.
-
Vì sao Code Coverage đánh lừa bạn (và bản năng hoài nghi của bạn đúng ở đâu)
🇻🇳 VICoverage chỉ đo việc test có chạy qua một dòng code hay không, không đo việc test có nhận ra dòng đó sai hay không. Phần mở đầu series đi qua mô hình RIPR, bằng chứng thực nghiệm về 'khoảng cách oracle', và vì sao lấy coverage làm mục tiêu lại phản tác dụng.
-
Beyond Coverage, Part 1: The Test-Quality Metric Catalog
🇺🇸 ENA field guide to test-quality metrics organized as four layers - reachability, effectiveness, risk targeting, and trust - with the oracle-strength layer, not coverage, deciding whether a suite is actually good.
-
Danh mục metric chất lượng test: đọc bộ test của bạn như một cái tháp bốn tầng
🇻🇳 VIKhông có một con số duy nhất nào là 'chất lượng test'. Phần này đề xuất đọc bộ test của bạn như một stack bốn tầng - reachability, effectiveness, risk targeting, trust & health - trong đó tầng quyết định là mutation score, không phải coverage.
-
Beyond Coverage, Part 2: Mutation Testing, Properly Explained
🇺🇸 ENHow mutation testing works: inject small bugs, count how many your tests catch, and use the survivors as a precise worklist - plus the one real cost of equivalent mutants and how to read the gremlins/Stryker vocabulary.
-
Mutation Testing là gì - và tại sao nó tìm ra thứ Coverage không thấy
🇻🇳 VIMutation testing cố ý tiêm các lỗi nhỏ vào code rồi đếm xem bao nhiêu bị test của bạn bắt được. Phần này giải thích cơ chế, mutant tương đương, cách đọc kết quả gremlins/Stryker, và giới hạn trung thực của mutation score.
-
Beyond Coverage, Part 3: What the Empirical Research Actually Says
🇺🇸 ENThe uncomfortable, adversarially-checked finding from the literature: once you control for suite size, no single metric - not even mutation score - strongly predicts real-world faults, so metrics must be used as a portfolio, not a grade.
-
Nghiên cứu thực sự nói gì về Coverage và Mutation Score (phiên bản không tô hồng)
🇻🇳 VISự thật khó chịu mà tài liệu học thuật đồng thuận: không metric nào - kể cả mutation score - dự đoán mạnh lỗi thực tế khi kiểm soát theo kích thước bộ test. Phần này rà soát các nghiên cứu tiêu đề và những tuyên bố đã bị bác bỏ dưới đánh giá đối nghịch.
-
Beyond Coverage, Part 4: Tooling for Go and .NET
🇺🇸 ENA concrete tooling map for a legacy Go + .NET codebase - Coverlet and Stryker.NET, go test and gremlins, FsCheck/CsCheck and gopter/rapid - and the diff-scoping discipline that keeps mutation testing fast enough to run on every PR.
-
Công cụ đo chất lượng test cho Go và .NET: Coverlet, Stryker, gremlins
🇻🇳 VICoverlet và go test -cover cho coverage, Stryker.NET và gremlins cho mutation score, FsCheck/CsCheck và gopter/rapid cho property testing. Phần công cụ, kèm bí quyết chạy mutation testing trên codebase kế thừa mà không tốn cả ngày CI.
-
Beyond Coverage, Part 5: Grading AI-Generated Tests
🇺🇸 ENRaw LLM-generated tests are roughly half junk, and the ones that pass carry a unique danger: they tend to assert what the code currently does, locking in bugs. Here's the six-gate gauntlet that filters them before they merge.
-
Chấm điểm test do AI viết: làm sao để chúng không là rác
🇻🇳 VITest thô từ LLM gần một nửa là rác, và những cái trông ổn có xu hướng cementing bug hiện có thay vì bắt lỗi. Phần này trình bày bộ lọc gauntlet sáu cổng - mô hình theo TestGen-LLM của Meta - để một test do AI viết chỉ được merge khi nó thực sự kill được một mutant mới.
-
Beyond Coverage, Part 6: The Agentic Merge-Gate Readiness Rubric
🇺🇸 ENA scorecard and an autonomy ladder for deciding, module by module, when a legacy suite is strong enough to let an agent merge on green without a human re-testing the change.
-
Rubric sẵn sàng: khi nào một PR được merge mà không cần test tay
🇻🇳 VIChấm điểm diff, không phải repo. Phần khép lại series đưa ra thẻ điểm sáu chiều, thang bậc tự trị L0→L3, và quy trình quyết định để biết khi nào một thay đổi thực sự an toàn để agent merge mà không cần kiểm thử thủ công.
-
Shrinking the Agent Loop, Part 1: How RTK and Caveman Attack Opposite Ends of the Pipe
🇺🇸 ENRTK and Caveman both cut LLM token usage, but they attack opposite ends of the agent loop - one filters noisy command output before it reaches the model, the other makes the model itself talk less. A source-level tour of how each actually works, mechanism by mechanism.
-
RTK và Caveman: hai công cụ giảm token cho AI agent hoạt động thế nào?
🇻🇳 VIPhần 1/3 loạt bài về RTK và Caveman - hai công cụ giảm token cho LLM/agent tấn công vào hai đầu đối lập của vòng lặp agent: RTK lọc output lệnh trước khi vào model, Caveman khiến chính model viết ngắn gọn hơn.
-
Shrinking the Agent Loop, Part 2: Living Inside the Trust Boundary
🇺🇸 ENBoth tools run as hooks inside the agent's trust boundary - unsandboxed, with your full privileges, feeding the model unsanitised. A full security review of RTK and Caveman, from command-rewrite safety to supply-chain integrity, ranked risk class by risk class.
-
RTK và Caveman dưới góc nhìn bảo mật: khi công cụ giảm token cũng là một interceptor
🇻🇳 VIPhần 2/3 - phân tích bảo mật chuyên sâu: vì sao mọi hook/skill chạy trong vòng lặp agent đều là một interceptor nguy hiểm về mặt cấu trúc, và mức độ rủi ro cụ thể của RTK và Caveman theo từng lớp rủi ro.
-
Shrinking the Agent Loop, Part 3: A NUL Sentinel, a ReDoS, and a Secret Left in Plaintext
🇺🇸 ENA focused deep-dive into two findings that needed more rigor: a forgeable NUL sentinel in Caveman's MCP compressor, and a world-readable SQLite database where RTK quietly stores every command you've ever run.
-
Đào sâu RTK và Caveman: lỗi sentinel NUL và dữ liệu nằm yên trong SQLite
🇻🇳 VIPhần 3/3 - đào sâu hai phát hiện kỹ thuật: lỗi sentinel NUL trong MCP proxy caveman-shrink (kèm PoC chạy thật) và cách RTK lưu lệnh gốc, kể cả secret, dưới dạng plaintext trong SQLite.
-
grep, BM25, semantic - ba tầng tìm kiếm, không phải hai
🇻🇳 VIPhần 2 của series gộp grep và BM25 chung một rổ "lexical". Đúng, nhưng chúng không giống nhau: grep là cái lọc, BM25 là cái xếp hạng, còn semantic mới là cái hiểu nghĩa. Tui mổ một con tool thật cố tình chọn BM25 và bỏ vector, kèm demo Go chấm điểm BM25 chạy thật, output verbatim.
-
Chữ "semantic": một chữ, hai thế giới - và tại sao ta hay lộn
🇻🇳 VIMục lục một series nhỏ gỡ rối chữ "semantic". Tại sao "tool này không có semantic search" và "Roslyn có semantic model" là HAI chữ semantic khác nhau, cùng dính gì tới AST, và vì sao tầng ngữ nghĩa lại là cái harness ghì cương được AI agent. Code Go chạy được, C# đối chiếu, mọi khẳng định có nguồn.
-
Cú pháp vs Ngữ nghĩa: AST thật ra là gì (và không là gì)
🇻🇳 VIPhần 1 - Mổ xẻ abstract syntax tree (cây cú pháp trừu tượng). Chạy go/ast thật, chứng minh AST chỉ biết hình dạng code chứ không biết kiểu, không biết giá trị, không biết cái tên trỏ tới đâu. Đặt nền cho tầng semantic ở Phần 3.
-
"Tool này không có semantic search" - chữ semantic kiểu embeddings
🇻🇳 VIKhi ai đó nói "tool này không có semantic search", họ đang nói về embeddings và cosine similarity - hoàn toàn khác chữ semantic của compiler. Bài này tách hai thế giới đó ra, chạy demo Go minh hoạ cơ chế cosine, và giải thích tại sao hai chữ "semantic" này chỉ chung gốc Hy Lạp chứ không chung máy móc gì hết.
-
"Roslyn có semantic model" - tầng nghĩa dựng trên AST
🇻🇳 VIPhần 3: Semantic model của compiler là gì, và nó KHÔNG phải AST được tô màu. Demo Go chạy thật: cùng tên "x" nhưng shadowing cho ra 2 biến khác nhau - go/types phân giải chính xác từng chỗ dùng qua side-map riêng. Đối chiếu Roslyn (C#): 3 tầng SyntaxTree / Compilation / SemanticModel và cách gọi đúng API.
-
Lấy AST viết hard-rule: cái lint nhỏ mà chặn được code sai
🇻🇳 VIDùng AST và tầng semantic (go/types) để viết luật lint cứng - cái chặn build thật sự. Demo Go: luật cấm import thì AST đủ, nhưng luật cấm os.Getenv phải có go/types mới không dính oan f.Getenv.
-
Ghì cương AI agent bằng kiến trúc, không bằng lời dặn
🇻🇳 VIKết series "Giải mã chữ semantic": tầng ngữ nghĩa (semantic model) + lint AST trở thành cái harness máy móc ghì cương AI coding agent. Tại sao lời dặn trong markdown lờ được, còn compiler + type-checker thì không. Phân biệt grammar-constrained decoding (chặn lúc sinh token) vs analyzer/lint (hậu kiểm ngữ nghĩa) - hai thứ bổ sung, không thay nhau.
-
Inside the Brainstorming Skill, Part 0: The Map
🇺🇸 ENA top-down tour of the Superpowers brainstorming skill - the hard gate that stops premature code, the nine-step checklist, and the single legal exit. The whole machine on one page before we drill into the Socratic core.
-
Inside the Brainstorming Skill, Part 1: Dialogue, Not Interrogation
🇺🇸 ENThe six principles that shape every question the brainstorming skill asks - one at a time, multiple-choice preferred, YAGNI-ruthless - and the three targets each question is secretly aiming at: purpose, constraints, success criteria.
-
Inside the Brainstorming Skill, Part 2: The Interview Engine
🇺🇸 ENThe Socratic drill-down. How the brainstorming skill converts a vague idea into a buildable design through a single tight loop - scope triage, pick the next unknown, ask exactly one question, end the turn, integrate, and test for convergence. The mechanism, step by step.
-
Inside the Brainstorming Skill, Part 3: From Answers to Design
🇺🇸 ENOnce the Socratic interview converges, the skill stops asking and starts proposing - but never all at once. How it floats 2–3 approaches recommendation-first, then ratifies the design one section at a time.
-
Inside the Brainstorming Skill, Part 4: The Spec Pipeline
🇺🇸 ENA validated design isn't the finish line. The skill writes it to a dated, committed spec, reviews it with fresh eyes, optionally dispatches a reviewer subagent, and then stops at a hard human gate before handing off to writing-plans.
-
Inside the Brainstorming Skill, Part 5: The Visual Companion
🇺🇸 ENSome questions are clearer shown than told. The brainstorming skill can open a browser tab and ask its Socratic questions as clickable mockups - but only when it's earned, only one screen per turn, offered just-in-time and decided per question.
-
Inside the Brainstorming Skill, Part 6: Under the Hood
🇺🇸 ENAn appendix. Parts 0–5 documented what the brainstorming skill does; this one opens the visual companion and looks at the machinery - a zero-dependency Node server with a hand-rolled WebSocket, a filesystem seam between the agent and the browser, and a security model for a localhost server that might not stay on localhost.
-
Claude Code: Dynamic Workflow vs Subagent - phân biệt đầy đủ
🇻🇳 VIKhi nào Claude Code dùng subagent, khi nào dùng dynamic workflow? Khác biệt cốt lõi nằm ở chỗ 'ai giữ kế hoạch'. Tổng hợp có dẫn nguồn về cơ chế kích hoạt, vòng đời, Script API, và các quality pattern của workflow, kèm một thí nghiệm 2 session thực tế.
-
Cross-Cutting Concern trong Lập Trình: tại sao logging, security, transaction lại làm rối code và cách tách chúng ra
🇻🇳 VICross-cutting concern là những yêu cầu kỹ thuật (logging, security, transaction, caching...) xuyên suốt nhiều module nhưng không thuộc logic nghiệp vụ nào. Bài viết giải thích vì sao chúng gây tangling/scattering và các kỹ thuật tách chúng ra (AOP, middleware, MediatR behavior, decorator, DI interceptor).
-
Khi Agent "Đi Đường Tà Đạo": Phân tích chuyên sâu các failure mode của Agentic AI trong long-running task
🇻🇳 VIVì sao agent LLM chạy tác vụ dài hơi lại lười, lo âu, trôi mục tiêu và cắt góc khi bị hối - một tổng hợp các failure mode (chế độ lỗi) cùng cơ chế gốc rễ và chiến lược giảm thiểu, có dẫn nguồn.
-
Hexagonal Architecture (Ports & Adapters): Tài liệu tham khảo toàn diện
🇻🇳 VITài liệu tham khảo toàn diện về Hexagonal Architecture (Kiến trúc lục giác / Ports & Adapters): nguồn gốc, khái niệm cốt lõi về chiều phụ thuộc, và công thức thực tiễn cho backend TypeScript hiện đại.
-
Pseudo-terminals (PTYs): a deep dive
🇺🇸 ENA deep dive into pseudo-terminals (PTYs): the software-faked terminal devices that let shells like bash believe they are talking to real hardware while a third program sits in the middle.
-
Terminal ảo (PTYs): Tìm hiểu sâu
🇻🇳 VITìm hiểu sâu về pseudo-terminal (terminal ảo): cặp thiết bị ảo cho phép một chương trình giả lập làm terminal bàn phím-màn hình cho một chương trình khác.
-
What is a Terminal? (and "hardware terminal", emulators, and PTYs)
🇺🇸 ENA plain-language explainer building up from the physical terminal device to the abstract idea, answering whether your keyboard and monitor are a terminal today.
-
Terminal là gì? (và "hardware terminal", emulator, PTY)
🇻🇳 VIBài giải thích bằng ngôn ngữ đời thường, đi từ thiết bị vật lý đến ý niệm trừu tượng, trả lời câu hỏi bàn phím và màn hình của bạn ngày nay có phải là terminal không.