Jianxin Shen

Long-form writing

Essays

Building a tool around eight bars of music, making its changes readable, and carrying experiments forward. These essays follow what I build and the questions it raises, alongside longer arguments about software and markets.

When the brass sounds wrong, whose fault is it?

A MIDI editor draws one mechanical line: what is in the file belongs to the music, what turns the file into sound belongs to the playback setup. Why the line exists, where orchestration falls, and what it forces the tool to record.

What does closing an agent actually close?

Shutting down a coding agent killed its process group, and a file it had arranged to write still appeared afterwards. A process group is an address for signals, not a container, and on macOS I chose to promise less rather than claim a containment I could not enforce.

Draft

A message I sent never reached the record

My agent environment refused a message of mine after three failed commits to its record, and said so. Three rounds of repairs had tuned around the wrong assumption. The fix forced a choice about whether a reply may go out before the record holds it.

Draft

Untested or untestable?

A risk score ranked one function first: 7 of 129 statements covered. The missing tests could not be written until a boundary between policy and the operating system was drawn, and three reviews then found where the new boundary leaked.

One fill, two deliveries, one ledger entry

A local Kafka experiment keeps a one-unit fill counted once across consumer crashes by committing its identity and ledger effect in the same database transaction.

The check passed because it never saw the edit

Restoring a known MIDI defect left my new check silent. The broken edit controlled whether it was checked; fixing that exposed what a shared check could and could not replace.

Who pays for the information in market prices?

Prices can reveal information that someone paid to discover. I use that tension to examine what informed trading must earn, and where Maxwell’s demon stops helping explain it.