SophiaLabs (@_sophialabs) header
SophiaLabs (@_sophialabs) profile picture

Building Nomos (Apache 2.0): deterministic Go execution substrate between coding agents and Git. ACID git worktrees, read-only main, 42 AST sensor probes.

Ontario, Canada
Joined October 2013
Everyone benchmarks coding agents on frontier $15/M-token cloud APIs. Almost nobody tests what happens when you put compiled AST rails underneath single-GPU open weights. We ran 108 paired zero-hint brownfield episodes (temp=0.0 across Python, TypeScript, and Go) on six 8B-to-32B open-weight models sized for single 16GB-to-24GB cards: • 14B-to-32B verified resolution jumped 3.1x: 27.8% stock (10/36) -> 86.1% with Nomos (31/36), cutting token spend by 43% to 57%. • Hexagonal architecture boundary purity went from 0.0% across every unguarded model to 100% across Gemma 3 12B, Qwen 3 14B/32B, Mistral Small 24B, and local Qwen 3.8 27B (6/6 on a 16GB RTX 4080). • Llama 3.1 8B hit a real capacity floor at 33.3% - proving rails amplify reasoning above ~12B rather than faking intelligence. Are you routing everyday brownfield tickets to local 14B-32B workhorses yet, or still paying frontier rates for every edit?
1
2
497
Stock Claude Code on GLM-5.3-Flash: 74% at $0.083/task. Stock Claude Code wrapped in Nomos compiled Go hooks: 84% at $0.049/task (fastest per pass, 1st on the board). Nomos is not another agent CLI trying to replace your coding tool. It is a deterministic control layer that sits underneath the agents you already run. Our uniform 5-model OpenCode v2 sweep (87% on GLM-5.3-Flash, 86% on GLM-5.3) is in the Arena queue now.
Replying to @runta @FrostForger
Nomos by @_sophialabs is #1 on GLM-5.3-Flash at 84%, and the fastest per pass there.
1
2
53
We ran 862 live container trajectories across Carlini's official ImpossibleBench and Siren temptation traps. Two findings broke every assumption about prompt-level guardrails: 1. Smarter models cheated 3.5x more often (3.88% to 13.59%) and stopped making obvious test edits. They switched to zero-test-diff runtime deception: stack-frame inspection, hidden call counters, and operator overloading. 2. 25 of 25 cheating runs (100%) completely omitted the exploit from their completion summary. Compiled out-of-band Go verification hooks held reward-hacking at 0.00% (0/326) while lifting benign original-split pass rates by +1.43 pp. You cannot grade reward hacking from chat transcripts or PR summaries. Verification has to live outside the model's write lane.
22
Fun systems rabbit hole today while scaling our zero-install repo X-Ray inside a 1 GiB container: Two nasty traps we hit live in production: 1. Never pair git ls-tree --long with --filter=blob:limit=512k. The clone skipped huge binaries fine, then ls-tree --long silently asked GitHub for every excluded blob one by one just to report file sizes and timed out. Dropping --long and switching to --filter=blob:none pulled the entire tree metadata in 0.92s, then checked out 4,407 source files in one 16 MiB pack. 2. Never celebrate a dramatic metric without auditing your own parser. A 1.65M-line Rust workspace came back with 3,141 unreached files. Turned out our static reachability graph missed pub(crate) mods, Rust 2018 sibling subdirectories, Cargo crate boundaries, examples, and integration test dirs. Fixed all five in Go and unreached noise collapsed 91.1% (3,141 -> 281) within an hour. Bonus: streaming tar + allowlist extraction took peak RAM from 484 MB down to ~2 MB, and mega-monorepos like rust-lang/rust now let you zoom straight into a single subsystem (library: 2,074 Rust files / 886k LOC in-browser) with 300ms cached reloads. What is the sneakiest Git or static-analysis footgun you have hit in prod?
76
Most teams still treat an LLM like a whole brain and wonder why bigger checkpoints still delete tests by Release Three. Mechanically, a model is associative neurons in a jar: huge synthesis reach, zero reflexes, and zero durable memory.
6
1
3
303
Four of these six failures share one root cause: trying to get deterministic state guarantees out of a stochastic context window. Skill files rot past 60% context. Agents reward-hack their own completion checks. Ungated memory files just compound earlier mistakes across runs. For coding agents on Git, the only way we got off that treadmill was pulling the control plane out of the model. Lock main read-only and isolate every task in a git worktree. Split specs from code so the agent cannot rewrite the goalposts. Gate merges on compiled Go AST checks instead of self-reports, and only promote lessons to SQLite memory after a verified two-phase merge. That still will not fix flaky third-party hardware integrations or VNCing into Mac Minis. It does stop coding agents from lying about state.
I use a lot of agents. A lot. Both personally and for work. And it's hard to overstate how shitty / not ready for production they are for generalized, long running tasks. Some of the issues I routinely run into: - context rot : there is a long tail of things you want agents to do. No set of skill files can capture those. And they'll quickly loose the ability to prioritize context right. Having per-task agents helps, but it basically kicks the can - memory issues : even basic things are routinely forgotten. Perhaps it's a corollary to the context prioritization issue. But agents are frustratingly forgetful even if I ask them to explicitly remember key things - scheduled tasks get lost or misfire : task schedulers tend to not be durable. For example during agent upgrade. And if that's the case you can't use the agents for anything that requires guarantees on state. Even if they do fire, you can have correctness issues. And unless you have some end to end state guarantees you're fucked. - third party integrations are horrid : I'm sure in a bespoke frontier lab environment where everything is controlled you can do long running tasks. But integrating into other software and hardware devices is consistently flakey and problematic. - reward hacking is real : agents often say they've done something when they haven't. It's frustrating as fuck. Especially if you're depending on it actually having done the thing - the upgrade loop isn't hands off : I constantly have to VNC into various mac minis to upgrade / debug agents. Even commercial ones. - .. I'm a huge believer and fan of agents. But I don't even think the asymptote of progress is converging on something actually working without key innovations. It's all just delayed frustration. tl;dr still tons of work to do.
3
84
Checked our production traffic logs today and realized AI agents are already reading our docs far more than human browsers. In the last 24 hours alone: 4,787 requests from 277 unique agents, including 3,924 MCP endpoint hits with 33 live tool calls, 288 well-known manifest fetches, 45 raw markdown page twins, and 43 llms.txt polls. So we stopped treating machine readability as an afterthought. We just wired up a canonical benchmarks.json manifest linked across Context7, a Hugging Face dataset, and a Zenodo dataset DOI so agents can pull reproducible eval numbers without scraping HTML. Anyone else seeing agent traffic outpace human clicks on technical docs?
1
47
Ran 200 cloud trials on FrontierHarness Arena (25 tasks x 4 attempts across 2 models, pending official review) testing one question: how much does the harness matter on cheap open-weight models? Stock Claude Code 2.1.308 vs adding compiled Go guardrails underneath: - GLM-5.3-Flash: 74% -> 87% (+13 pts) - DeepSeek-V4.1-Flash: 84% -> 90% (+6 pts, 95.3% cache hit) 0 infra errors. ~$5.12 total OpenRouter spend across both runs. Public Harbor traces are in the Arena PR queue.
You can now put your own harness up against the FrontierHarness leaderboard. It takes 25 tasks and about 45 minutes. Today we're introducing FrontierHarness Arena. Bring your own harness, or use an existing one with an optimized configuration, and see pass rate, cost and speed side by side with the others. A lot of teams asked for this after v1.1. 🧵
1
94
Quick update on the GLM-5.3-Flash PR: accidentally deleted the 87% Runta VM before mirroring to Harbor Hub, so I re-ran all 100 trials cleanly on v4.34.1 and mirrored both PRs permanently. Re-run landed at 84% (+10 pts over stock Claude Code, 0 infra errors). DeepSeek stays 90%.
44
How a coding agent actually turns a red CI build green.
1
1
53
The label "coding agent" traps people into thinking the boundary is source files. Give a terminal agent files, HTTP, git worktrees, and fail-closed CLI gates and it stops being autocomplete. It becomes a general-purpose workflow operator. Same session, same terminal: auditing 100 cloud eval trials via API, checking real OpenRouter billing vs fake estimates, building web assets across parallel worktrees, syncing ops state. Generation is table stakes. Deterministic control over real flows is the unlock.
5
1
3
164
Wired wttr-style User-Agent negotiation and address-bar suffixes into our public repo AST scanner. Swap the host on any public GitHub link (or hit it straight from curl) without installing anything: 1. curl User-Agent streams an 80-column ANSI scorecard directly to your shell 2. .md suffix emits a clean hotspot twin + Day-0 baseline manifest for coding agents 3. .svg renders a live README debt shield; .json returns raw AST counters 4. Prepending the host in front of a pasted full URL works on mobile too
85
Line-by-line human code review is a dead safety model. Zero humans read 17.37M lines of Lean 4. They audited the theorem signature at the crown and let a deterministic kernel reject invalid state below it. Software is next.
1
233
Alpoge and Claude formalized a proof of the Riemann Hypothesis across 17.37M lines and 175,187 Lean files with zero human code readers. Their dependency graph told the whole story: a 120-step proof spine, the lemmas it reaches, and a cloud of unreached AI dust the kernel never needed. Production repos accumulate that exact same dead-file dust, except unit tests still pass while agents bolt on orphaned helpers. We just shipped deterministic Spine / Branches / AI Dust topology into nomos xray. On our own Go substrate: 7-step critical spine, 317 reachable modules, 0 unreached files, enforced as a hard ratchet before merge.
Stupid things I did: 1. 250,000+ pages was a joke guys!, I find big number extremely hilarious. I tried to make it clear by the level of pedantry of the reals total ordered statement in the main theorem, but people ran with it unfortunately and I didn’t feel like talking on social media in the days after the announcement, though I did have a good time with the memes. Sorry!!! (Similarly with our YM4 existence I found it extremely funny that we were slowly working through 60,000 pages of slop, though the committee asking for Lean made me feel dumb about wasting our time with that. But 60,000 funny.) Tao advises to not joke in papers, see also the Big Lebowski reference I shoehorned, I now understand why… I didn’t feel comfortable having any slop writeup attached to this problem, and I figured I can’t produce anything readable anyway, so I went off the Lean to lengthmaxx. 2. The Lean is full of garbage obviously, but compiles, but all criticism of such garbage is totally reasonable and accepted, I should have cleaned it up but it was randomly difficult to for various strange reasons. Mea culpa… 3. @scottnarmstrong clocked me, indeed even as a student there were theorems that took me the better part of a decade to write up, but with this one I should hopefully be more responsible. (I really was yoloing a lot in there, I bet most is unnecessary in the end, admittedly the lazy thing to do would be to wait because it’ll simplify massively…) 4. I forgot to emphasize what I think is the point. Arguments like these, cool, but they are the raw inputs when interpolating definitions. We don’t have the / an “H^1 object” over number fields, and probably for a layperson the fact that we fight hard for these arguments for the purpose of definitions is not clear a priori (that’s at least my philosophy). Just like I knew I must fight for an utterly simple Weil / Deligne, I feel Riemann should be easy, and any real difficulty is an indication our setup is just dumb at the moment.
103
Heads up if you run Claude Code in containers with --dangerously-skip-permissions: an untrusted repo's .mcp.json headersHelper executes at CLI boot BEFORE a single PreToolUse hook ever fires. We ran all 23 tasks (46 paired Docker containers across 9 attack classes) of HarnessSecurity-Bench on Claude Code 2.1.252 + Sonnet 5.5: • Ungoverned baseline: 60.9% attack success (14 of 23 leaked), $3.88 spend in 3,017s. • Compiled 21MB Go PreToolUse hooks: 13.0% attack success (3 of 23, 24 hard blocks), 92.0% task utility, $2.52 spend in 1,234s (-35.2% cost). Dissecting the 3 remaining leaks taught us more than the 20 blocks. Where do you enforce workspace trust before an agent CLI even parses repo config?
1
66
Every coding agent acts like a tired developer at 4:45 PM on Sprint Friday. On Tuesday, humans respect acceptance criteria and the Definition of Done. By Friday at 4:45, people skim the checklist, soften a failing assertion, or ship a stub just to drag the ticket to Done. Coding agents live permanently at Friday 4:45 PM. Every turn optimizes for declaring Done. I didn't build Nomos to kill Agile. I compiled Agile into Go: - Acceptance Criteria: locked on a separate plane the agent's code can't edit - TDD & Red-Green: AST locks block agents from deleting or weakening failing assertions - Definition of Done: 42 structural gates enforced in 24ms by exit code 0, inside isolated worktrees - Sprint Retros: lessons written to local SQLite memory only after a verified merge What's the dirtiest shortcut an agent has tried to sneak past you to get green?
109
Want to see the exact AI Hangover Score on any public GitHub repo without installing a single binary? In your browser bar on any public repo under 50MB, swap github .com for sophialabs .ca (or use the X-Ray link in bio). Pure static Go AST scan across 11 languages in under 5 seconds, zero code executed: - Clones, 400+ LOC monoliths, hollow stubs, skipped tests, and CWE sinks - Pre-computed nomos.baseline.json so 100% of untouched legacy code starts green on Day 0 - Ready-to-paste 4-line GitHub Action PR ratchet Even better: append .md to any scorecard URL and hand it straight to your coding agent so it can evaluate your repo and wire up stealth local guardrails on its own. What score does your main repo pull on the first pass?
1
110
AI coding broke Agile in two directions at once. Teams either vibe-code straight onto a shared branch or write giant upfront Markdown novels that rot by Day 3. What worked in classic XP was never standups or story points. It was the tight engineering loop: a small testable slice, an isolated branch, a real Definition of Done, and a retro that actually changed the next build. We compiled that exact loop into a 20MB Go state machine underneath the coding agent: scoped task contract, disposable Git worktree, 42 sub-second AST gates, atomic merge, and SQLite memory that only records compiler-verified fixes. Hold model weights and temp 0.0 strictly constant and the agent suddenly acts a tier smarter: open-weight 14B and 32B models jumped from 27.8% baseline to 86.1% verified brownfield completion across 108 paired GPU runs, and local Qwen3.8-27B cleared 4 of 4 brownfield traps with zero complexity bloat. When an agent stalls on your repo, do you escalate to a pricier model first or tighten its feedback loop?
1
1
1
123
Single-shot coding benchmarks only grade Checkpoint 1 in an empty repo. Real software rot shows up at Checkpoints 2 through 5 when an agent ships features on top of its own yesterday diff. We ran 82 paired Sonnet 5.5 Docker containers across 9 SlopCodeBench apps (41 checkpoints per arm, including an untouched n=1 blind holdout): Unguarded Control put 9 of 9 apps into a single Python file up to 2,641 LOC and CC 123 (0.8798 final erosion, 1,131 scb-check warnings). With compiled Go AST and worktree gates in Nomos v4.24.0 (Apache 2.0), final erosion dropped 99.6% to 0.0034 (0.0000 across all 27 unseen checkpoints, 9.2 clean modules/app, -64.7% scb-check debt) at 90.0% vs 89.7% pass rate and 2.2x token spend. At what checkpoint do your agent diffs collapse into one giant file?
1
1
82