Software Consulting & Engineering Requirements to Production

Portfolio

My portfolio includes selected freelance and full-time work alongside open-source projects I've either created or contributed to extensively. Most of my professional work is covered by non-disclosure agreements and can therefore only be shared in redacted form, if at all.

Selected work

Sparse Merkle tree storage

2025-2026
  • Open source
  • Rust
  • Sparse Merkle trees
  • RocksDB

Implemented sparse Merkle tree forests with bounded history per tree, combining a flat SQLite representation with in-memory and key-value-backed overlays. The work spanned account persistence, authenticated state, and the queries used to retrieve it. Keeping database records and Merkle roots consistent required coordinated changes to schema, startup loading, and block application.

Integrated the forest into account updates and introduced partial storage-map queries, so callers could retrieve selected state. For incremental account updates, I replaced full-account loading with queries for the account header and balances affected by the delta. I also replaced an N+1 historical-vault query pattern with a single SQL query, preserving the latest value at the requested block and filtering deleted assets. Regression tests covered those historical-state semantics.

For RocksDB-backed account and nullifier trees, I integrated persistent loading and added paged initialization, explicit consistency checks against SQLite, and a forced-rebuild recovery path. The changes addressed the operational costs of reconstructing state as well as the amount of data read during block processing. The merged work includes forest integration, incremental account updates, and store recovery controls.

Engineering alignment & delivery

2025
  • ceremony

Aligned engineering teams around product-market fit and delivery as Interim Head of Engineering. My remit included how teams coordinated their work and raised concerns that could affect execution.

Introduced asynchronous standups and processes that gave engineers a way to surface those concerns. Written updates brought progress and open questions into a shared record, creating context for delivery discussions and considered responses across the team.

SIMD-accelerated finite-field arithmetic

2025
  • SIMD
  • finite-field arithmetic
  • afft
  • ntt

Added optional SIMD acceleration to the finite-field arithmetic used by erasure coding, delivering performance gains of approximately 5–30% on supported hardware.

Compared arithmetic results against known references and measure the actual gain as well as introducing a honggfuzz-based fuzzer run to ensure correctness and input data independence of the implementation correctness.

Security audit remediation

2025
  • audit

Took a security-audit backlog of 200+ high- and medium-severity findings through triage, verification, prioritization, and remediation. The work combined investigating individual findings with securing agreement on which issues to address first. Executed the agreed remediation plan, carrying the engagement from audit assessment into implementation.

Erasure-coded streaming storage

2022-2025
  • Distributed storage
  • Erasure coding

Built distributed streaming storage for machine learning under trustless operating assumptions. The design combined erasure coding for threshold-based availability guarantees with content-addressed storage for index-based sampling.

The can serve hundreds of gigabytes sized datasets with predictable streaming and service guarantees subject to arbitration using a distributed relayer-set.

Startup scaling and product-market fit

2022
  • pmf

Supported a startup as it worked to scale and find product-market fit. My work established a minimal set of team ceremonies to support team cohesion and set expectations for quality and accountability.

Code generation for zero-copy inter-chip communication

2018-2020
  • Embedded C/C++
  • Rust
  • Zero-copy protocols

Designed and deployed a domain-specific language (DSL)-based code generator for zero-copy communication between chips, integrating it with the core event dispatcher. The system shipped in 50,000+ vehicles, with one known edge-case defect that was promptly fixed.

OTA updates for intermittently connected low power devices

2017-2018
  • MQTT

Designed the architecture and implemented over-the-air (OTA) firmware updates for low-power devices. My work also included assessing device firmware and embedded operating systems.

Carried the update solution through to a demonstration and built consensus on moving forward.

Authentication retrofit for non-updatable devices

2017-2018
  • C++
  • FFI
  • Rust
  • plugin
  • authentification
  • MQTT

Retrofitted authentication for devices already deployed in the field, where limited flash capacity and the absence of an update mechanism prevented firmware changes.

The deployed backend MQTT authenticator built on existing unique devices identifiers and symmetric payload encryption to mitigation backend DoS and data leakage.

Emergency-call system certification and delivery

2015-2017
  • C++
  • GOST ERA GLONASS

Developed a C++ automotive emergency-call system for the GOST ERA GLONASS standard, taking the work through certification to shipment in 100,000+ vehicles.

The implementation included an ASN.1 UPER bit-packing encoder and nested state machines that represented the call state and kept the user informed.

Open source

vmrunner: isolated filesystem integration tests

2026
  • Open source
  • Rust
  • libkrun
  • VM
  • virtual machines
  • Integration testing

Built vmrunner, a libkrun-based Rust harness for privileged or destructive integration tests in disposable Linux VMs on Linux and macOS hosts. Butterpot's snapshot-deletion tests needed real Btrfs behavior without exposing a contributor's host filesystems to privileged test operations. That requirement shaped the isolation boundary, test API, and guest lifecycle.

The Rust test orchestrates one or more concurrent guests from the host, bringing multi-machine system tests into the unit-test workflow. Each node gets its own kernel instance and a fresh writable qcow2 overlay; the host root and workspace are not exported as guest directory shares. Linux user namespaces scope setup privileges without host-root execution, while macOS requires signing and re-executing the test binary with the Hypervisor entitlement. Multiple guests can communicate with each other using a layer-2 bridge.

Separated reusable image preparation, compiler sysroots, and guest-init setup from per-test execution. Cached preparation avoids repeating that work, while disposable overlays give each launch fresh disk state. Cold setup still costs minutes, so ordinary Rust tests remain appropriate for logic that needs no guest. The current runtime requires the test payload to be installed in the guest image, and its kernel comes from libkrunfw; changing the root image changes userspace, not the kernel version.

butterpot: resumable Btrfs backups

2026-present
  • Open source
  • Rust
  • Btrfs
  • SSH
  • Incremental backups

Developing butterpot, a multi-user Rust backup system I designed around Btrfs snapshots, incremental send/receive transfers over SSH, and privilege separation. Long-running backups require decisions about interrupted transfers, available disk space, and the snapshot ancestry needed for the next incremental backup.

The server derives client identity from the authenticated SSH public key and uses that identity to determine backup paths. The transfer protocol separates Btrfs delta streams from resumable transport pieces: payloads stay in disk spool files, while a durable index records verified pieces and stream identity. A changed source or delta base invalidates old resume state; an unavailable base produces an explicit request for a full backup. Completed snapshots are published only after stream reconstruction and a successful btrfs receive.

Snapshot retention and free-space pruning complete the receive lifecycle. Testing snapshot deletion also exposed a host-safety constraint: the operation needs elevated privileges or a special mount option. I used that requirement to shape vmrunner, keeping destructive filesystem tests inside disposable Linux guests.

sccache: async runtime migration and maintenance

2021-present
  • Open source
  • Rust
  • Distributed compilation
  • Cloud storage

Co-maintaining sccache, a compilation cache with distributed execution and cloud-storage support for local and CI builds. My work included a co-authored migration from futures 0.1 to Rust's standard Future trait and Tokio 0.2, crossing the boundaries between cache storage, compiler execution, and distributed services.

The migration replaced legacy future chains and runtime compatibility adapters with the standard futures model and async/await. The change reached disk and remote cache backends, compiler interfaces, process handling, network services, and test mocks. Migrating those interfaces together removed the old compatibility layer across the compilation path.

Later contributions addressed compiler compatibility and failure diagnosis. I co-authored fallback detection for rustc-based compiler drivers and added filesystem errors that include the failing path where available. Path-bearing errors make filesystem failures, including those caused by SELinux or seccomp restrictions, easier to investigate from application and test output.

cargo-spellcheck: source-aware documentation checks

2021-present
  • Open source
  • Rust
  • CommonMark
  • Spellchecking

Developing and maintaining cargo-spellcheck, which I created to bring spelling and grammar checks into Rust documentation workflows. Documentation comments and CommonMark documents need checks that understand their structure, report the original source location, and accommodate a project's technical vocabulary.

The extraction layer groups documentation fragments into checkable text while retaining a mapping to source spans. That mapping connects suggestions back to the comments or Markdown they came from, supporting source-located diagnostics and interactive corrections. Hunspell provides dictionary-based spelling checks, while nlprule supplies grammar rules derived from LanguageTool.

Project configuration controls checker behavior and adds dictionaries for domain-specific terms. Built-in dictionaries can give local and CI runs consistent inputs across operating-system distributions. Interactive fixing, commit hooks, and configurable failure exit codes let teams introduce checks locally and later enforce them in CI. The parser, diagnostic mapping, and automation are parts of the same tool: a useful suggestion must reach the right source location and fit the workflow in which documentation is reviewed.

cargo-dragons: dependency-aware Rust releases

2022-present
  • Open source
  • Rust
  • Cargo
  • petgraph

Developing cargo-dragons to automate releases across Rust workspaces and monorepos. My contributions began with diamond-pattern recognition and maintenance releases for its predecessor, cargo-unleash, followed by forking the tool as cargo-dragons and extending it.

Releasing interdependent crates requires staged publishing and coordinated dependency updates. Development dependencies add complications as a workspace grows. The tool determines which crates need releasing, orders them by dependency, and checks packages and feature combinations before publishing to public or private registries.

Graph analysis and transformation drive the release planner. It models crate dependencies as a directed graph, reports cycles using strongly connected components, and schedules dependencies before the crates that use them. Shared dependencies in diamond-shaped graphs remain valid, and development dependencies are excluded from release ordering.

The toolbox combines features inherited from cargo-unleash with later additions to handle recurring release tasks:

  • Update dependency versions across the repository
  • Add crate owners
  • Handle partially published dependency trees
  • Check all feature combinations with cargo check or cargo build
  • Rename packages across the monorepo
  • Set TOML keys to specified values across workspace members
  • Unify dependency versions across the monorepo

My later work included restoring development dependencies temporarily removed for the release process and preserving whitespace when doing so, ensuring a zero git-delta post release vs the pre-state. Recent work focuses on code quality, private-registry workflows, and cargo feature-combination checks.