Engineering

More detail on the technical side: what I built, how it's tested, and what the output looks like. All of it is in public repos.

01

ML and computer vision

In Sentinel Vision the model and the decision logic are separate. The detection and pose models write their raw output to one file. Rules written as regular code read it and write statuses to another file. The apps only read the statuses.

The weights are pretrained YOLO26 from Ultralytics, exported to ONNX. I didn't train them. I built everything around them.

  1. FramesA video file, a webcam, or a photo in the browser
  2. DetectorYOLO26 in ONNX: boxes, classes and keypoints
  3. detections.jsonRaw model output
  4. RulesTake one frame and a time step, return statuses
  5. states.jsonWhat the apps and renderers read
Because the rules don't need a model, their 41 tests run in about a tenth of a second.
pipeline/zones_analyze.pyEXIT_GRACE = 0.6      # seconds a track may vanish or step out before its timer resets
INHERIT_S, INHERIT_PX = 1.0, 90   # a new track this close to a just-lost one keeps its timer (tracker ID switches)
...
for o in members:
    key = o['id'] if o['id'] >= 0 else ('anon', round(o['box'][0] / 40), round(o['box'][1] / 40))
    a = anchor(o['box'], z['anchor'])
    if key not in T:
        heir = [k for k, v in T.items() if t - v['last'] <= INHERIT_S and t - v['last'] > 0 and abs(v['pt'][0] - a[0]) < INHERIT_PX and abs(v['pt'][1] - a[1]) < INHERIT_PX]
        T[key] = {'since': T.pop(heir[0])['since'] if heir else t, 'last': t, 'pt': a}
    T[key]['last'] = t; T[key]['pt'] = a
    dwell = t - T[key]['since']
The dwell rule. Trackers often hand out a new ID when two people cross paths. A new track that shows up within one second and 90 pixels of one that just disappeared keeps its timer.

A model from scratch

forge-lm goes the other way: nothing is pretrained. The tokenizer learns from the training text, the transformer starts from random weights, and I wrote the forward pass a second time in Rust and test it against PyTorch.

$ cargo test --release --test parity logits_match -- --nocapture
largest difference from PyTorch over 4608 logits: 1.1570752e-5
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 10 filtered out; finished in 0.01s
The Rust engine and PyTorch agree to 5 decimal places on the same model file. The model is small (857K parameters, trained on about 1 MB of Shakespeare), so the text it writes isn't good, but the pipeline is complete.

02

Security

I have eleven security repos: a policy gateway for AI tool calls, a Linux endpoint agent in Go, decoy credentials that alert when someone uses them, a CI gate, key rotation with rollback, a domain audit tool, a phishing scorer and some CTF utilities. They're small on purpose, and they're not trying to replace commercial products.

I also built the labs for CyberForge, a team project that teaches web security on vulnerable apps.

Allow and deny rules
Each tool call is matched against an ordered list of rules. The default is deny.
Human approval
Some rules stop and ask a person. No answer means no.
Secret redaction
Credentials in tool results get replaced before the model sees them.
Injection scanning
Tool descriptions and results are scored for text that reads like instructions.
Tool pinning
Each tool definition is hashed when first seen. If it changes, the tool is quarantined.
Audit log
Every decision goes into a hash chained JSON lines file.
The six layers in anvil, a gateway that sits between an AI client and an MCP tool server. It has 206 tests, including runs against a deliberately hostile server. More on anvil
rules.yaml, then the alert it produced- name: suspicious_shell_spawn
  severity: high
  when:
    name: ["bash", "sh", "zsh", "ksh"]
    cmdline_contains: ["/dev/tcp/", "nc -e", "ncat -e", "0>&1"]
  tags: ["reverse-shell", "mitre:T1059"]

$ dfedr run --rules ./rules.yaml --out alerts.jsonl --interval 500ms
$ bash -c 'sleep 3; : /dev/tcp/203.0.113.9/4444 0>&1'      # harmless, but the command line looks like a reverse shell
{"ts":"2026-11-20T07:52:55Z","rule":"suspicious_shell_spawn","severity":"high","pid":14,"ppid":2,"name":"bash",
 "cmdline":"bash -c sleep 3; : /dev/tcp/203.0.113.9/4444 0>&1","tags":["reverse-shell","mitre:T1059"]}
darkforge-edr reads process info from /proc, runs each process through YAML rules and writes alerts as JSON lines with MITRE tags. Here I started the agent and ran a harmless command that matches a rule. The host field is trimmed.
$ pipeline-armor scan demo

 !  [HIGH] patterns   vulnerable_app.py:35           subprocess_shell
 !  [HIGH] patterns   vulnerable_app.py:41           eval_call
 !  [HIGH] patterns   vulnerable_app.py:46           pickle_load
 !  [HIGH] patterns   vulnerable_app.py:62           requests_verify_off
 !  [HIGH] patterns   vulnerable_app.py:68           yaml_unsafe_load
 !  [MEDIUM] secrets    vulnerable_app.py:29           generic_password_assignment
 !  [LOW ] patterns   vulnerable_app.py:52           weak_hash_md5

  6 blocking, 0 allowlisted (policy: fail at MEDIUM).
  BLOCKED.                                             exit code 1
pipeline-armor scanning the vulnerable demo app that comes with it. It doesn't catch everything: the demo also has an AWS key split across two strings that the secrets scanner misses, and the dependency scanner isn't wired up yet.

03

Distributed systems and compilers

The parking project is built on plain Python sockets: its own framing over TCP, request and reply with retries, a pub sub broker, a peer to peer overlay, leader election and a lock.

quorum is Raft in Go. The node doesn't own any timers or sockets, so a simulator can run a whole cluster and its failures from one seed, and a checker verifies that what the clients saw was linearizable.

tiny-compiler is a small Pascal style language that compiles to MIPS assembly in about 700 lines of Python. I also wrote a MIPS emulator in C++ that runs the output.

$ go run ./cmd/quorum-sim -seeds 500
500 seeds in 6.37s: 2006617 ticks, 330221 operations (330221 completed), 3244 leader terms, 337948 entries committed,
30313 snapshots, 2055 crashes, 4957 partitions, 12871111 messages (2192855 lost)
no property violated

$ go run ./cmd/quorum-sim -seeds 40 -unsafe-reads
seed 17: VIOLATION at tick 4013: linearizability: no sequential order explains the history of key "k1"
seed 21: VIOLATION at tick 4005: linearizability: no sequential order explains the history of key "k1"
seed 26: VIOLATION at tick 4009: linearizability: no sequential order explains the history of key "k2"
40 seeds in 398ms: 160535 ticks, 29059 operations (29059 completed), 257 leader terms, 19371 entries committed,
1738 snapshots, 164 crashes, 395 partitions, 730476 messages (141629 lost)
3 seed(s) violated a property
The quorum simulator. The second command has a bug I added on purpose (reads served from a leader that might have been replaced), to check that the checker catches it. More on quorum
13 lines of source turn into 64 lines of assembly. The code generator is a simple stack machine with no optimization.
$ python3 tests/run_tests.py 4

[4] Lot server crash + recovery from the log
  PASS  dave reserve A-01 -> OK
  ... lot server A killed; client should fail, then we restart it
  PASS  client gets no reply while server is down
  PASS  after restart, erin reserve A-01 -> DENIED reserved: reservation survived
  PASS  server console shows RECOVERY: replayed N entries

ALL PASSED
One of the ten end to end tests in the parking project. It starts real processes, kills the lot server, restarts it, and checks the reservation is still there.

04

Tooling

A few smaller tools I use: a lead list cleaner, a script that recolors product photos, and one CLI that wraps the security checks.

This site is plain static HTML generated by a Python script. The script also checks every page for broken links and missing alt text before I deploy.

lead-foundry
Cleans, dedupes and scores lead CSVs locally using YAML rules. 30 tests.
pixel-forge
Turns one product photo into recolored catalog variants with Pillow. 17 tests.
darkforge-cli
One command for the security tools: scan a domain, audit a repo or score an email. 15 tests.
dns-doctor
Checks a domain's DNS, CAA, TLS, email authentication and security headers, and grades each one. 36 tests.

05

All repositories

20 public repos. 19 of them have CI, and it's passing on all of those as of November 2026. You can check the current status on GitHub.

AI and machine learning

  • forge-lm A small language model written from scratch: BPE tokenizer, transformer and trainer in PyTorch, and an inference engine in Rust that matches PyTorch's output.Python, Rust65 tests
  • sentinel-vision Camera analytics engine. YOLO26 detection and pose models in ONNX, rules for desks, zones and exam halls, a browser version and four Windows apps.Python41 tests

Security

  • anvil A gateway between an AI client and an MCP tool server, with allow and deny rules, human approval, secret redaction, injection scanning, tool pinning and an audit log.Python206 tests
  • darkforge-edr Linux endpoint detection agent in Go. Reads process info from /proc, runs it through YAML rules and writes alerts as JSON lines with MITRE tags.Go47 tests
  • honeytoken-sentinel Generates fake AWS, GitHub and Stripe credentials and canary URLs, and alerts when someone uses one. Standard library only.Python19 tests
  • pipeline-armor CI security gate for GitHub Actions. Scans for secrets and risky code patterns, with a YAML policy for what blocks a build.Python19 tests
  • secret-rotator Rotates API keys across providers step by step, rolls back if anything fails, and keeps an audit log.Python14 tests
  • dns-doctor Audits a domain's DNS, CAA, TLS, SPF, DKIM, DMARC, MTA-STS and security headers, and gives each a letter grade.Python36 tests
  • nextjs-auth-armor A Next.js 14 starter with Supabase magic link auth, row level security migrations and CSP middleware.TypeScriptTypecheck, lint, build
  • phish-forge Scores an .eml file for phishing using header, URL and body checks. Has a CLI and a FastAPI service.Python30 tests
  • ctf-toolkit CTF command line tool: encoders, classical ciphers, hash identification and cracking, and a few RSA attacks. Standard library only.Python36 tests
  • steg-toolkit Image steganography tools: hide and extract data in LSBs, pull out strings, and view entropy and bit plane heatmaps.Python12 tests
  • darkforge-cli One CLI that wraps the tools above: scan a domain, audit a repo or score an email, with JSON reports.Python15 tests

Systems and compilers

  • quorum Raft consensus in Go with a deterministic simulator that injects crashes, partitions and message loss, and a linearizability checker.Go34 tests
  • tiny-compiler A small Pascal style language that compiles to MIPS assembly. Lexer, parser, code generator and an interpreter in about 700 lines.Python41 tests
  • mips-emulator MIPS assembler and emulator in C++17, with trace and memory dump modes.C++1715 tests
  • cecs327-smart-parking Distributed parking system on plain Python sockets: framing, retries, pub sub, an overlay, leader election and a lock. Group project.Python35 unit tests, 10 scenarios
  • bigint-cpp Arbitrary precision integers in C++17 with operator overloading, plus factorial, Fibonacci and a Collatz walker.C++1778 checks

Tooling

  • lead-foundry Cleans, dedupes and scores lead CSVs locally using YAML rules.Python30 tests
  • pixel-forge Turns one product photo into recolored catalog variants with Pillow.Python17 tests