Writing

Notes on database security, static analysis, protocol design, and language-model training by Subhajit Pradhan.

  1. 9 min

    How Panini's grammar made agent messages 25x cheaper

    A JSON-RPC message averaged 72.5 tokens in a six-message agent deal. A compact wire format built from five compression devices in Panini's Ashtadhyayi carries the same deal in 2.8-7.5 tokens. Every encoding is decoder-verified, and two model families read and write the compact form at 12/12.

  2. 8 min

    Five Postgres RLS mistakes that leak tenant rows

    Row Level Security fails quietly. A static audit of 60 open-source Supabase apps found a high or critical RLS pattern in 63% of them. These are the five mistakes behind most of it, with the exact severity and fix.

  3. 8 min

    What breaks if I change this file?

    Grep tells you where a name appears. It does not tell you what depends on this file. A bounded static source graph answers the question, names the path, and reports what it could not resolve.

  4. 10 min

    Training a 58M language model from scratch on free GPUs

    Zero dollars and a full public record: a 58M-parameter model trained from random initialization on free Kaggle GPUs. v0.1.2 stopped at 73% of its schedule; v0.2.0 finished and improved held-out loss by 0.2285 nats. At 2,000 samples only LAMBADA is outside its stability rule; the earlier 500-sample ARC-Easy regression did not replicate. The most useful result was discovering that the project’s best architecture win was noise.