Skip to content

Instantly share code, notes, and snippets.

@r33drichards
r33drichards / CUA-BENCH-ARCHITECTURE.md
Last active December 29, 2025 18:06
CUA-Bench Architecture Guide with Mermaid Diagrams
@r33drichards
r33drichards / hiq-blog-post-v2.html
Created December 28, 2025 16:45
HiQ Peg Solitaire Deep Learning Blog Post (with full links)
<!-- wp:image {"id":69,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://wordpress-sm7xo.wasmer.app/wp-content/uploads/2025/12/image-768x1024.png" alt="" class="wp-image-69"/></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>On a snowy day at my parents' house, I was passing time with family and reading a blog post about <a href="https://www.hillelwayne.com/post/picat/">planner programming</a> when my grandmother invited me to play Othello at her apartment. While getting the game out of her cabinet, I noticed a box for <a href="https://en.wikipedia.org/wiki/Peg_solitaire">Hi-Q</a>. I owned this game as a child and had played it to the point where I could reliably win with one peg left every time. To my disappointment, I could only get down to 4 pegs when I tried again now. While my Hi-Q skills had atrophied, my programming skills have improved considerably—I wondered if I could find an optimal solution using <a href="http://picat-lang.org/">Picat
@r33drichards
r33drichards / hiq-blog-post.md
Created December 28, 2025 16:38
HiQ Peg Solitaire Deep Learning Blog Post (Markdown)

Solving Hi-Q (Peg Solitaire) with Deep Learning

Hi-Q Board

On a snowy day at my parents' house, I was passing time with family and reading a blog post about planner programming when my grandmother invited me to play Othello at her apartment. While getting the game out of her cabinet, I noticed a box for Hi-Q. I owned this game as a child and had played it to the point where I could reliably win with one peg left every time. To my disappointment, I could only get down to 4 pegs when I tried again now. While my Hi-Q skills had atrophied, my programming skills have improved considerably—I wondered if I could find an optimal solution using Picat. I couldn't. But I did find a way to solve it with deep learning.

Attempt 1: Constraint-Based Approaches

I installed Picat and vibe-coded some scripts to find a se

@r33drichards
r33drichards / hiq-blog-post.html
Created December 28, 2025 16:36
HiQ Peg Solitaire Deep Learning Blog Post
<!-- wp:image {"id":69,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://wordpress-sm7xo.wasmer.app/wp-content/uploads/2025/12/image-768x1024.png" alt="" class="wp-image-69"/></figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>On a snowy day at my parents' house, I was passing time with family and reading a blog post about <a href="https://www.hillelwayne.com/post/picat/">planner programming</a> when my grandmother invited me to play Othello at her apartment. While getting the game out of her cabinet, I noticed a box for <a href="https://en.wikipedia.org/wiki/Peg_solitaire">Hi-Q</a>. I owned this game as a child and had played it to the point where I could reliably win with one peg left every time. To my disappointment, I could only get down to 4 pegs when I tried again now. While my Hi-Q skills had atrophied, my programming skills have improved considerably—I wondered if I could find an optimal solution using <a href="https://picat.dpac.mil/">Pica
@r33drichards
r33drichards / 2024-12-17-ec2-ami-design.md
Created December 17, 2025 20:46
IncusOS Amazon EC2 AMI Support - Implementation Plan

IncusOS Amazon EC2 AMI Support

Date: 2024-12-17 Status: Prototype Target Region: us-east-1

Overview

This plan describes adding Amazon EC2 AMI support to IncusOS, enabling deployment on AWS Nitro instances with full security features intact.

@r33drichards
r33drichards / cua-sdk-deployment.md
Last active December 17, 2025 17:49
CUA SDK Telemetry - Merge & Release Sequence

CUA SDK Telemetry - Merge & Release Sequence

Pre-Deployment Status

Component PR Status
Cloud (Dashboard + Alerts) #562 ✅ Merged & Deployed
cua-core #661 ⏳ Ready to merge
cua-agent #662 ⏳ Ready to merge
cua-computer #663 ⏳ Ready to merge
@r33drichards
r33drichards / gist:1ce470c375b8bf7382bafc875b7c8e03
Last active December 17, 2025 17:45
CUA SDK Telemetry - Merge & Release Sequence

CUA SDK Telemetry - Merge & Release Sequence

Pre-Deployment Status

Component Status
Cloud PR #562 (Dashboard + Alerts) ✅ Merged & Deployed
CUA PR #661 (cua-core) ⏳ Ready to merge
CUA PR #662 (cua-agent) ⏳ Ready to merge
CUA PR #663 (cua-computer) ⏳ Ready to merge
@r33drichards
r33drichards / gist:55cff01230ce6d7d396dfe5f0755ccac
Created December 17, 2025 17:42
CUA SDK Telemetry - Deployment Strategy
# CUA SDK Telemetry - Deployment Strategy
## Overview
This document outlines the deployment strategy for CUA SDK telemetry instrumentation (OpenTelemetry + Sentry).
## Architecture
```
┌─────────────────┐ ┌──────────────────┐ ┌─────────────┐ ┌─────────┐
@r33drichards
r33drichards / gist:ddc5a7860d82a3a24b47596a629ea20c
Created December 17, 2025 17:23
CUA SDK Telemetry - Testing & Deployment Guide

CUA SDK Telemetry - Testing & Deployment Guide

Testing Before Deployment

1. Test CUA SDK Locally

# Clone and checkout the branch
cd /home/alpine/cua
git checkout feat/otel-sentry-core
@r33drichards
r33drichards / alert-trigger-code.md
Created December 10, 2025 15:36
Exact code path that triggers CUA Cloud Passive Monitor Slack Alert

Code That Triggers the Passive Monitor Alert

This shows the exact code path that produces this Slack message:

:rotating_light: Passive Monitor Alert: start
Success rate for start dropped to 33.3% (threshold: 95%)

1. Alert Monitor Loop (alert_monitor.go:124-148)