Skip to content

smart accounts / market infrastructure / resilient products

AI-native systems for markets that punish mistakes.

I'm Sam — Dr. Inker online. I build where a plausible demo is not enough: self-custody, real-time markets, on-chain execution, and products that run unattended. The work starts with constraints, explicit failure states, and evidence that survives contact with production.

the domain is crypto. the discipline transfers.guarded actions · live data · measurable decisions · failure containment · runs unattended

selected work

Selected systems

The center of gravity is crypto, but the through-line is reliability: authoritative state, bounded actions, recoverable data, and observable failure. Strategy parameters and P&L stay private; product maturity does not.

Berthalla Online — a cozy 2D top-down multiplayer town with shops, trees and a pond
2D · Phaser
Berthalla Online — the 3D world in-play with a skills panel, chat and live multiplayer
3D · Babylon
one authoritative server · three clients
2D Phaser 3D Babylon Unreal 5.8 · C++
clients send intents → Colyseus binary state patches → tween

Berthalla Online

Live · native client in dev

A real-multiplayer cozy MMO — now with a second, native client in Unreal 5.8.

One authoritative Colyseus server drives the live Phaser and Babylon.js clients plus a native Unreal 5.8 client in development. I reverse-engineered the @colyseus/schema v4 delta format, ported it to conformance-gated C++, built the outbound msgpack / ROOM_DATA path, and proved an Unreal move intent against production. The browser build remains live and playable today.

Unreal 5.8 · C++ Colyseus · msgpack reverse-engineered wire protocol headless Python tooling Babylon.js
Farmhalla browser prototype (archived) — Spring 11 at Grandpaw's Farm: Mayor Bert with the watering can at the head of six watered crop rows at four growth stages, the timbered farmhouse and fountain behind him, harvested pawsnips in the hotbar
spring 11 · the field at work — six rows, four growth stages, all watered
Farmhalla browser prototype (archived) — detail of the town square on a Sunday afternoon: Bert with Deputy Bruno the St. Bernard and five other townsfolk gathered on the cobbles beside the stone fountain, the general store awning at the left
sunday square · six townsfolk · detail
Farmhalla browser prototype (archived) — detail of the lamp-lit old mine: Bert mid pick-swing beside a lamp post on the rail line, a stone arch to the right, ore and geodes glinting in the dark
the old mine · lamp-lit · detail

Farmhalla

In development

A cosy farming adventure, now developed as a native Android game.

Archived browser captures; see the showcase for native previews. Mayor Bert comes home to repair his grandpaw's farm—and the town's derelict dog shelter with it. Farming, fishing, mines, neighbours and festivals fill the seasons. In the retired browser prototype, seven critique rounds turned feature work into recovery engineering: versioned saves reject stale cloud writes, player-reported collision and warp defects stay as regressions, and the two runtimes originally reconciled the same farm topology. Godot now develops independently. Visual checks are proven red on known-bad fixtures before entering the gate.

Godot · native Android native game · pixel art historical browser evidence 1,312 tests 35 visual gates 868 commits
Explore nine more shipped and public-facing systems Berthalla · markets · AI · games
berthalla.io — the Berthalla ecosystem homepage: chrome wordmark over the hero film with live ecosystem status below
berthalla.io · ecosystem hub
Bert Studio — the free web generator page where visitors type a prompt and get an on-model Bert image
Bert Studio · public AI generator

berthalla.io

Live

The Bert ecosystem's home — a brand site with a public AI art studio inside it.

One page ties the universe together: live ecosystem status refreshed on a cron, and a hero film hand-tuned for mobile autoplay (the hard-won iOS rule: never auto-unmute on a touch event — sound is strictly opt-in). Behind THE STUDIO section sits Bert Studio, a free public AI image generator — which in practice is an abuse-resistance problem: a per-visitor daily cap plus an atomic daily money cap booked before the safety classifier ever runs (no unpaid-for generations, even under race), a fail-closed, injection-guarded LLM safety gate, and per-IP rate limits that trust Cloudflare's real client IP. Every image stays on-model via a frozen character sheet.

FastAPI · Python Grok image gen LLM safety classifier nginx · Cloudflare 73 tests
Official BERT Widget product preview showing the native Android Compact 2×2 and Market 4×2 layouts with price, market data and locally stored holdings value

BERT Widget

Android · live

A privacy-first native home-screen market widget, shipped as a signed Android app.

Two Jetpack Glance layouts put BERT's market data and optional locally stored holdings on the home screen. The signed v0.4.0 release adds a native Theme Studio: Mayor Purple, Woofhub Night and Berthalla Nights each pair distinct Home and Lock Screen artwork with an automatically matching widget palette. A dependency-free Node quote service validates token identity by Solana mint rather than ticker, caches good responses and marks stale quotes through short upstream outages. Holdings never leave the device; there is no wallet connection, account or trading permission, and Android cloud backup and device transfer are disabled. Source, permissions, release hashes and versioned APKs are public before install.

Kotlin · Jetpack Glance WorkManager Theme Studio · 3 packs Node.js quote API privacy by design iOS scaffold
promotion lifecycle
paper shadow canary live
16 collectors → Postgres feature store → anti-lookahead backtest trading

Polymarket 5-minute system

Live

A full-lifecycle quant system for 5-minute BTC/ETH prediction markets.

Every idea moves paper → shadow → canary → live, each promotion gated on out-of-sample evidence. A Postgres feature store is fed by ~16 always-on collectors (cross-venue liquidations, funding/OI, order-book snapshots); a custom backtest engine with point-in-time, anti-lookahead snapshots closes the live-vs-backtest gap; and a counterfactual ledger keeps logging the trades a demoted strategy would have made. Live execution is wrapped in regime-decay alarms, a bet-size tripwire, and an auto-kill watchdog.

Python PostgreSQL CLOB · Polygon systemd 1,714 tests 894 commits
private · trading flagship
A post from the verified @Berthalla_bot account on X, labelled 'Automated by @drinkerlabs', reading: 'woofmornin. the red line on the screen went down a little bit. i am currently looking at a very small crumb under the table to keep my eyes from wandering.'

Berthalla

Live on X

An autonomous "living" AI character that posts in-character.

A mood engine colours a constant voice; an LLM drafts every post, and a fail-closed adversarial editor-LLM firewall (pass / soften / veto, schema-locked) vets it — and re-screens its own rewrites — before anything publishes. Pure-logic vs thin-IO architecture; commits are blocked unless the suite is green. An anti-repetition system cut mode-collapse from 92% to 28%.

Python Claude + Gemini + Veo ~485 tests
polymarket-tax landing page — the same Polygon wallet computed side-by-side under three IRS frameworks (capital gains $4,287, gambling + OBBBA $11,490, ordinary income $5,914) with a $7,203 spread

polymarket-tax

Live · pre-launch

A Polymarket-native US tax tool: on-chain decode → IRS forms.

Decodes any Polygon wallet's full Polymarket history on-chain, runs FIFO cost-basis matching, and shows tax under three IRS frameworks side-by-side — then generates audit-ready Form 8949, Schedule D, a TurboTax CSV, and a methodology PDF. Paid in USDC via a self-hosted on-chain payment watcher with crash-recoverable fulfilment.

FastAPI Next.js 16 web3 ~250 tests
Open it 91 commits
facelift before/after — the cluttered 1997 Heaven's Gate site (green Times New Roman on black with broken images) on the left, beside facelift's modern reskin on the right: a bold 'Leave This Planet' hero over a generated cosmic background with clean nav and a call-to-action

facelift

Live · public

Point it at any site; it ships an accessible reskin.

Reads the computed styles of every visible element to distill a site's design language, then has a trio of generator models each ship a WCAG-AA-repaired reskin. Every candidate must survive render-integrity and brand/imagery gates — logo detection, distortion audit, closed-loop object-fit auto-repair — then a judge-scored quality loop refines the winner before it ships. (The research behind this page came from facelift's own roadmaps.)

Node 22 Playwright multi-model + judge 300 tests
preregistered gate
deflated Sharpe· purged CV· placebo· sign-stability
passes → paper-only quant research

Hyperliquid perps pipeline

Paper

A multi-asset perps research pipeline with a preregistered statistical gate.

~28 strategy modules across a 9-asset perp universe, each run through a gate that stacks deflated Sharpe, purged/embargoed cross-validation, multiple-testing correction, placebo controls, and sub-period sign-stability. Deployed as paper-only systemd timers with a live positioning collector; the live order path stays structurally disengaged. A clean, well-powered null is treated as a successful, capital-preserving outcome — research rigour over alpha-chasing.

Python NumPy / SciPy PostgreSQL FastMCP risk-gate 511 tests 322 commits
private · deep quant research
Sourcerer output — a generated fit-brief for Andrej @karpathy scored fit 0.98 and grounding 1.00, listing grounded claims that each carry a clickable source citation

Sourcerer

Live · public

An AI technical-sourcing agent that writes grounded, cited candidate briefs.

Give it a role; it finds an engineer on GitHub, researches them from public sources, and writes a fit-brief where every claim must cite real evidence — anything it can't ground is demoted to an "unverified" list in code. Each dependency (GitHub, web, LLM) sits behind a typing.Protocol + mock, so it's unit-tested with zero network; the fetch is robots-aware and SSRF-guarded. Built test-first via subagent-driven TDD, with a whole-branch review that caught a real stored-XSS before launch.

Python · async LiteLLM · GLM-5.1 fail-closed grounding 30 tests · CI
in-game · streaks & power-ups — tournament post on X ↗

Flappy Bert

Live

A flap-to-earn arcade you play right inside Telegram.

A from-scratch HTML5 Canvas game that runs as a Telegram Mini App. Scores are server-authoritative — the backend, not the client, is the source of truth, so leaderboards and tournament payouts can't be spoofed — and finished runs are shared as server-rendered score cards.

HTML5 Canvas · vanilla JS Telegram Mini App server-authoritative anti-cheat tournaments
more work

The rest of the fleet

A compact index of trading systems, on-chain tooling, AI products, games, and experiments—with the parked work left visible.

Open the system index 13 projects · live, observer, tool, retired, private
  • meteora-bot live open →

    8-service Meteora DLMM rotational-LP engine; ran live with real capital.

  • hl-llm-agent private

    Paper-only LLM swing trader, run as a preregistered BCa-bootstrap experiment.

  • bert-xemm-bot observer dashboard →

    Read-only Kraken↔Jupiter edge observer with executable quotes, queue-aware paper fills and a sanitized public dashboard. No credentials or capital loaded.

  • bert-mm-bot retired GitHub →

    Single-position CLMM market-maker + depositor vault (retired).

  • Super Bert World live play →

    A single-file NES-style platformer with a from-scratch engine + chiptune audio.

  • Bert Image Bot live Telegram →

    Four-model bot for images, storybooks & news-driven anime shorts (Gemini + Veo + Claude).

  • refute npm GitHub →

    Adversarial verification panel — independent skeptic agents try to refute a claim or PR diff. CLI + GitHub Action, honestly eval'd.

  • bert-chart-scanner tool GitHub →

    Reads chart screenshots into technical analysis via Gemini Vision.

  • pumplaunch live console →

    Atomic Solana launcher: block-0 Jito bundle + an auth-gated operator console.

  • vanity-bot live

    Non-custodial Solana vanity-address service — keys generated in Rust→WASM, client-side.

  • drinkerlabs.info live visit →

    The network hub + a written premium design doctrine (DESIGN.md).

  • income-hunter parked

    An AI agent that drafts grant/bounty applications behind a human approval gate.

  • Pressroom private

    Print-production workspace: Topaz enhancement, Printful-derived sizing and a server-enforced readiness gate before private product drafts.

Plus: a Polymarket weather-bot project (open-source base, extended with a leakage-free validation harness + a 7.2pp attribution fix), the earlier Telegram arcade era (Bert Tap Attack, Bert Runner NYC), and a Solana→Printful merch bridge.

origin · primary sources

Where it started

On February 5, 2026, I saved my first Python file. Four days later I installed Claude Code. The primary-source archive is still here, but it no longer interrupts the proof of what came next.

Open the day-zero archive first file · source images · 14 early prototypes
day zero

It started with a cartoon dog. In late January 2026 I was hand-making AI art of Bert — a memecoin community’s mascot — one image at a time in a web UI, and I had never written a line of code. On February 5 I installed VS Code and saved my first file: a Telegram bot meant to automate the art. My entire shell history from that week: where python · python --version · pip install — the last one with no arguments.

Four days later I installed Claude Code — the config backup still shows first start Feb 9, 14:08 UTC. Everything on this page was built AI-native from that moment on. And the same cartoon dog now fronts a live arcade, a 3D MMO with a native Unreal client, and an autonomous X presence.

Hand-made AI art from January 30, 2026 — Bert in a Kraken bucket hat beside a raccoon mascot in a cartoon football stadium The original Bert character reference sheet the first bot was built around

left: hand-made art from jan 30, 2026 — the week before the first line of code · right: the character reference the first bot was built around

bot.py — feb 5, 2026 · the first file

Verbatim, recovered from the home PC — tutorial-grade comments and all. The promotion gates, adversarial reviews, and 5,000 tests came later; this is what they grew from.

import logging
from telegram import Update
from telegram.ext import Application, CommandHandler, MessageHandler, filters, ContextTypes
from google import genai
from google.genai import types

# 1. SETUP: Fill in your secret keys here
TELEGRAM_TOKEN = "PASTE_YOUR_TELEGRAM_BOT_TOKEN_HERE"
GOOGLE_API_KEY = "PASTE_YOUR_GOOGLE_AI_STUDIO_KEY_HERE"

# 2. SETUP: List your character image filenames (make sure they are in the same folder!)
CHARACTER_IMAGES = ["char_front.jpg", "char_side.jpg"]

async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):
    await update.message.reply_text("Hi! Send me a prompt, and I'll draw your character doing it.")
the proving ground · feb–mar 2026

Fourteen prototypes in the first month — dated folders straight off the home-PC desktop, most of them dead ends. That was the tuition: the survivors run in production today.

bot.pyfeb 05→ BananaBertBot, live today
bert-flex-botfeb 12parked
clickerfeb 13→ Bert Tap Attack
BertCSfeb 18parked
dr-inker-chart-scannerfeb 18the first trading itch
BertNYCfeb 19→ Bert Runner NYC
solana-wallet-trackerfeb 20reached the server; retired
flappy-bertfeb 23→ the arcade flagship, live
Bert_X_botfeb 25first deploy to the server
bert-shop-botfeb 26parked
bert · unitymar 01Mayor Bert town-sim; the idea became Berthalla
bert-survivormar 01parked
bert-tycoonmar 03parked
MMmar 05first market-maker sketch
lineage runs in production parked — tuition paid
how i work

Autodidact, AI-native by default

AI is my high-throughput implementation layer, not the authority. Work moves from a written spec to tests, implementation, and an independent second-model review. Risky claims go to adversarial panels whose job is to refute them; release claims name the exact gate and commit that passed.

The process has killed a lookahead leak, a pairing flaw that could have promoted a worse strategy, and a prompt-injection bypass before merge. The reusable skeptic panel is open source as refute. Durable constraints live in repo-native playbooks and decision ledgers, not in a model's memory.

Evidence before exposure

paper → shadow → canary → live, with preregistered endpoints and kill thresholds where the claim needs them.

Adversarial review

Independent critics attack the spec, code, evidence, and visual result. A review that cannot reproduce its claim does not move the score.

Guarded operation

Preview→execute boundaries, spend caps, recoverable state, and fail-closed fallbacks contain the damage when a provider or model is wrong.

stack

What I work with

A technical index for stack matching. The case studies above carry the stronger signal: what each technology was made responsible for.

Open the technical index languages · markets · Solana · AI · backend · games
Languages

Python 3.12 · TypeScript / Node.js · Rust / Anchor / WASM · C++ (Unreal 5.8) · SQL · vanilla JS / HTML5 Canvas

Quant & markets

Polymarket CLOB + UMA · Hyperliquid perps · order-book imbalance / CVD · funding & open-interest · liquidation modelling · maker-rewards simulation · FIFO cost-basis

Research statistics

shadow→canary→live gates · preregistration & power analysis · matched-pairs block bootstrap (BCa CI) · Holm correction · Wilson intervals · deflated Sharpe · purged/embargoed CV · Brier calibration

DeFi / on-chain (Solana)

Solana smart accounts · P-256 passkeys / WebAuthn · Anchor · MPL Core + Candy Machine · Meteora DLMM · Raydium CLMM · Jito bundles · Jupiter routing · Helius RPC

LLM / AI engineering

MCP server authoring (FastMCP) · agent risk-gating (preview→execute) · prompt-injection hardening · adversarial editor-LLM firewalls · multi-model orchestration (Claude + Gemini + Veo) · vision LLMs

Backend & full-stack

PostgreSQL 16 schema & indexing · SQLAlchemy / Alembic · FastAPI · asyncpg · Redis · live ingest pipelines · web3 / JSON-RPC decoding · React / Vite · Next.js · Privy + ES256 JWT · on-chain payment watchers

Game development

Colyseus authoritative server (600ms tick) · Babylon.js 3D · Phaser 2D · from-scratch Canvas engines · Web Audio chiptune synthesis · procedural pixel-art pipelines · Unreal Engine 5.8

AI-native workflow

Claude Code · subagent-driven TDD · second-model adversarial review · spec→plan→build · executable release gates · repo-native decision ledgers

timeline

Jan → Sep 2026 · from first file to production systems

The compressed chronology is useful context, not the pitch. Open it for dated milestones and the maturity labels that changed along the way.

Open the build chronology January–September 2026
  1. The spark. No code on the machine yet — just a Documents folder filling up with hand-made AI art of Bert, a memecoin community’s cartoon-dog mascot, generated one image at a time. Automating that felt worth learning to program for.

  2. The first file. VS Code goes onto the home PC and bot.py gets saved — a Telegram bot meant to draw Bert on demand. The whole shell history that week: where python · python --version · pip install, no arguments.

  3. Claude Code — day 4. First start 14:08 UTC, four days after the first file. Everything below was built AI-native from here.

  4. drinkerlabs is born. A folder with that name appears on the home-PC desktop, and the same afternoon the first bot moves to a rented Hetzner server. The server era starts here.

  5. The arcade era. Flappy Bert — born on the home PC on Feb 23 as prototype #8 — goes live with server-authoritative anti-cheat, tournaments, and server-rendered score cards; Bert Tap Attack and Bert Runner NYC follow.

  6. The Polymarket 5-minute quant system begins — Postgres feature store, a custom backtest harness, and the paper→shadow→canary→live promotion lifecycle.

  7. DeFi build-out. The Hyperliquid research pipeline, the first Solana market-maker, the atomic pump.fun launcher, and the Meteora DLMM engine (later run live with real capital).

  8. polymarket-tax SaaS started (on-chain decode → IRS Form 8949 / Schedule D); the cross-exchange hedged market-maker reaches observer phase.

  9. Berthalla goes live on X — an autonomous AI character posting in-character behind a fail-closed editor-LLM firewall.

  10. Berthalla Online ships its 3D flagship at drinkerlabs.info/mmo/, evolving 2D Phaser → 3D Babylon.js in place on the same authoritative server.

  11. A preregistered LLM swing-trader harness (BCa-bootstrap, Holm-corrected bake-off across four models) and a four-model generative-media bot with a news-driven anime-short pipeline.

  12. A native Unreal 5.8 client joins the live server. Reverse-engineered the Colyseus binary wire format, ported the decoder to C++, and validated outbound intents against production — one authoritative server now drives both a web build and a native client.

  13. Farmhalla ships overnight. A Stardew-style farming life-sim — design spec frozen July 2 after a 4-judge adversarial panel, v1.0 live at drinkerlabs.info/farm/ ten hours later, then hardened in the open to 371 tests and 17 deterministic render gates.

  14. BERT Widget ships on Android. Two native home-screen layouts, a companion market desk and a production quote API — signed, privacy-hardened and downloadable with the complete source and release history. In parallel, the Kraken↔Solana market-maker enters a read-only observer phase with conservative queue-aware paper fills and public telemetry.

  15. Production hardening becomes the product. Farmhalla's post-launch recovery programme ships recoverable saves, explicit transition semantics, player-report regressions and a five-panel UI redesign; the suite reaches 740 tests. BERT Widget v0.4.0 adds three complete phone-theme systems, while Pressroom brings the same guarded-action model to print production.

  16. GenFT Factory becomes a live self-serve product. The browser flow now covers wallet payment, identity-gated base art, trait composition, deterministic rendering, provenance, and a portable non-custodial launch bundle. Production smoke proved a real generation-to-bundle run and a byte-identical customer rebuild.

  17. Warden enters its security-foundation phase; Farmhalla reaches round seven. Warden's passkey-rooted smart account completes its 342-test Phase 1A foundation and moves into constrained execution work—still pre-alpha, unaudited, and undeployed. Farmhalla's live certificate reaches 1,312 tests and 35 visual gates across matching browser and Godot releases.

  18. Warden completes Phase 1B. Constrained execute and a Jupiter-pinned swap land behind conservation checks, an independent third-model exploit audit has its confirmed findings fixed with red-at-base regressions, and the suite reaches 466 tests — still pre-alpha, unaudited, and undeployed.

An honest note. Live trading systems trade real capital on mainnet and can lose; several systems here are intentionally paper, shadow, or retired, and are labelled as such. Strategy parameters, wallet addresses, and P&L are deliberately withheld. Nothing here is financial advice.
hire me

What I can be hired to do

AI that survives production

Agents, automations and LLM features for real businesses — built with gated actions, evals, honest fallbacks and cost caps, not demo-ware. The same discipline that runs the systems above.

Trading & market infrastructure

Research harnesses, backtest → paper → canary promotion pipelines, exchange integrations, risk-gated execution. Engineering, not signals — I don’t sell performance promises.

Products, end to end

Full-stack apps, dashboards and games taken from spec to deployed, monitored and documented — solo, fast, with tests to show for it.

packages launch pricing
System audit
$1,900 fixed · 1 week
  • · Code + architecture review of a trading bot, AI agent, or production service
  • · Written findings report with prioritized fixes
  • · Walkthrough call at the end
AI agent sprint
from $4,900 · 2–3 weeks
  • · A working agent or automation — deployed, tested, documented
  • · $4,900 single integration · $6,500 adds evals + deployment hardening
  • · Fixed scope, agreed in writing before work starts
Fractional AI engineer
$2,950/mo
  • · One active request at a time, ~48h response
  • · Includes review of AI-generated code
  • · Pause or cancel anytime — no contracts

Bigger builds — a full MVP from spec to deployed in 4–6 weeks — from $9,900. Email me with what you're building.

currently open to contract & full-time work · remote · fastest contact is email

Let's build something.

I'm open to interesting work — especially building practical AI solutions for real-world businesses, alongside trading, on-chain systems, AI agents, and games. The fastest way to reach me is email.