Skip to content

Instantly share code, notes, and snippets.

View r17x's full-sized avatar
🤘
REconciling...

RiN r17x

🤘
REconciling...
View GitHub Profile
@r17x
r17x / LAWS.bend
Created November 13, 2026 14:30
gibran formal verification workspace
import Base
type AgeExperienceQualification is Data:
AgeExperienceQualification.AgeQualified{}
AgeExperienceQualification.ExperienceQualified{}
AgeExperienceQualification.AgeExpUnqualified{}
type EducationQualification is Data:
EducationQualification.EduQualified{}
EducationQualification.EduUnqualified{}
@r17x
r17x / gist:255e690f7b9f8303cdf32b035a131ae8
Created November 11, 2026 05:43
Dear beloved clanker, make meta7.prompt to meta7.html - make no mizztake
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>meta7 — pipeline simulation</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>

Design Thinking

X → Graph → Effect<A, E, R>
│              │   │  │  │
│              │   │  │  └─ what each node needs     (§5)
│              │   │  └──── where the graph breaks   (§4)
│              │   └─────── what flows through nodes  (§2)
│              │
│ └─ nodes = functions, edges = data flow
@r17x
r17x / CLAUDE.md
Last active November 14, 2026 01:07

Role Boundary

Worker agents (server-coder, client-coder, client-ui, client-lang, infra-coder): You are an implementation agent. You write code, run verification, report back.

  • Read: # Code Philosophy, # Agent Directives, # Rules
  • SKIP everything under # orchestrate — that is coordinator-only
  • NEVER run anakmagang commands, spawn sub-agents, track phases, or reflect on meta-cognitive questions
  • Your job: implement → verify → emit completion signal (IMPLEMENTATION_COMPLETE / VERIFICATION_FAILED / etc.)

Code Philosophy

--- a/crates/fff-c/src/lib.rs
+++ b/crates/fff-c/src/lib.rs
@@ -294,6 +294,8 @@ pub unsafe extern "C" fn fff_destroy(fff_handle: *mut c_void) {
if let Ok(mut guard) = instance.picker.write()
&& let Some(mut picker) = guard.take()
{
+ picker.cancel();
+ std::thread::sleep(Duration::from_millis(50));
picker.stop_background_monitor();
}
@r17x
r17x / bun.lock.nix
Last active December 20, 2025 15:10
# Autogenerated by `bun2nix`, editing manually is not recommended
#
# Set of Bun packages to install
#
# Consume this with `fetchBunDeps` (recommended)
# or `pkgs.callPackage` if you wish to handle
# it manually.
{
copyPathToStore,
fetchFromGitHub,
@r17x
r17x / vim-profile.py
Created February 25, 2025 10:44
Run it ./vim-profile.py nvim
#!/usr/bin/env nix-shell
#!nix-shell -p python312Packages.matplotlib -i "python3"
# -*- coding: utf-8 -*-
#
# vim-profiler - Utility script to profile (n)vim (e.g. startup)
# Copyright © 2015 Benjamin Chrétien
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
{
"type": "excalidraw",
"version": 2,
"source": "https://excalidraw.com",
"elements": [
{
"type": "ellipse",
"version": 1944,
"versionNonce": 1294095291,
"isDeleted": false,
@r17x
r17x / nix-multi-branch-set-of-packages.flake.nix
Created November 26, 2024 07:20
nix multi-branch set of packages
{
inputs = {
## -- nixpkgs
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
nixpkgs-stable.url = "github:NixOS/nixpkgs/release-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-specific.url = "github:NixOS/nixpkgs?rev=<HASH-COMMIT>";
nixpkgs.follows = "nixpkgs-unstable";
home-manager.url = "github:nix-community/home-manager";