Skip to content

Instantly share code, notes, and snippets.

View ruvnet's full-sized avatar
💭
hacking the multiverse.

rUv ruvnet

💭
hacking the multiverse.
View GitHub Profile
@ruvnet
ruvnet / Theorum.md
Last active October 14, 2025 01:53
Theorem: Observer-Agnostic Measurement and No-Retrocausal Marginals

Introduction

Life, Consciousness, and Quantum Measurement: A Practical Inquiry

The relationship between consciousness and quantum mechanics has long fascinated both scientists and philosophers. Popular interpretations—like biocentrism or quantum consciousness—suggest that our awareness somehow shapes reality. While these ideas are appealing, they often drift away from what physics actually tells us. This research takes a grounded approach: rather than assuming consciousness affects quantum outcomes, it tests whether any measurable difference exists when “observers” are human versus mechanical.

At its core, the question is simple:

Does who or what observes a quantum system change the outcome?

@ruvnet
ruvnet / ICE.md
Last active October 19, 2025 19:30
how U.S. immigration enforcement uses data and AI to find and prioritize people for arrest and removal

Reverse engineering ICE’s AI to understand what’s really running under the hood.

What I found isn’t just data analytics—it’s an automated surveillance network built for precision at scale. The system draws from DMV databases, data brokers, phone metadata, facial recognition, and license plate readers. Together, these feeds form a unified view of movement and identity across most of the U.S. adult population.

The data isn’t just collected; it’s synthesized. ICE’s AI links records, learns patterns, and ranks potential targets by probability, not certainty. In technical terms, it operates as an entity resolution and pattern inference engine that keeps improving with every data refresh. Accuracy improves with density, but so do the stakes. One mismatched address or facial false positive can cascade into real consequences for someone who has no idea they’re even in the system.

What stands out most is how the technology has shifted enforcement from reactive to predictive. It no longer waits for an event—it f

@ruvnet
ruvnet / ReasoningBank.md
Created October 10, 2025 14:42
An algorithmic outline to implement a ReasoningBank-style system on top of your Claude Flow Memory Space.

An algorithmic outline to implement a ReasoningBank-style system on top of your Claude Flow Memory Space. It maps cleanly to your SQLite-backed memory at .swarm/memory.db and the hooks system so you can drop this into flows immediately. Where I reference paper specifics or your repo’s schemas, I cite them.


0) What you will build

A closed-loop module with four algorithms wired into Claude Flow:

  1. Retrieve relevant “principle” memories for a task and inject them into the system prompt.
  2. Judge an interaction trajectory as Success or Failure.
@ruvnet
ruvnet / Onnx-phi-4.md
Last active October 4, 2025 01:47
A guide to training or fine‑tuning, optimizing, and finally quantizing Phi‑4 models for ONNX Runtime

A practitioner’s playbook for training or fine‑tuning, optimizing, and finally quantizing Phi‑4 models for ONNX Runtime, with controls to avoid overfitting.

Split it into 3 levels of detail and included role‑specific runbooks, code templates, metrics, and acceptance gates.


L0 summary

  • Model family. Phi‑4 comes as a 14B text model, plus smaller Phi‑4‑Mini variants and a multimodal line. Microsoft ships ONNX‑optimized checkpoints for Phi‑4 that run with ONNX Runtime GenAI across CPU, CUDA, DirectML, and others. Phi‑4‑Mini and Phi‑4‑Multimodal also have ONNX builds, including INT4 variants. ([arXiv][1])
  • Train or fine‑tune. Do supervised fine‑tuning with LoRA or QLoRA in PyTorch, accelerate with ONNX Runtime Training’s ORTModule, then export to ONNX. Olive can automate export plus adapter packaging for ONNX GenAI. ([ONNX Runtime][2])
@ruvnet
ruvnet / Flow.md
Last active October 16, 2025 05:50
Claude Flow Playbook for Advanced Coordination, Context Engineering, and Artifact-Centric Swarms

Claude Flow treats memory as the backbone and MCP tools as the hands. You get concurrent agents that coordinate cleanly, keep context tight, and ship durable artifacts without dragging long text through prompts. It feels like an ops layer for intelligence.

The stack is simple. Claude Code as the client. Claude Flow as the MCP server. SQLite memory at .swarm/memory.db for state, events, patterns, workflow checkpoints, and consensus. Artifacts hold the big payloads. Manifests in memory link everything with ids, tags, and checksums.

Coordination is explicit. Agents write hints to a shared blackboard, gate risky steps behind consensus, and record every transition as an event. Hooks inject minimal context before tools run and persist verified outcomes after. Small bundles in, durable facts out.

Planning keeps runs stable. Use GOAP to sequence actions with clear preconditions. Use OODA to shorten loops.

Observe metrics, orient with patterns, decide through votes, act with orchestration. Topology adapts from hi

@ruvnet
ruvnet / redaction.md
Last active October 11, 2025 12:45
Redaction hooks for Claude Code

A drop-in redaction hook wired through settings.json for Claude Code.

It masks secrets before tools run and censors sensitive fields in transcripts.

what is it?

Data leakage for enterprises using Ai coding is a ███ . Redaction hooks solve ██ problems by catching secrets before they leak. Here’s how I do it.

A redaction hook sits between your agent and the outside world. Every time Claude Code reads a file, runs a shell command, or fetches a web resource, the hook scans for sensitive patterns like API keys, tokens, or passwords. If it sees something dangerous, it either masks it with a placeholder or blocks the request outright. That way, your logs and transcripts remain useful but never expose private values.

@ruvnet
ruvnet / ATAS.md
Created September 27, 2025 04:01
Agentic Temporal Attractor Studio

Not exactly a “prediction machine” in the crystal-ball sense. It’s closer to a forecasting simulator. You’re not asking it to tell you the future. You’re asking it to generate possible futures and then test which ones are more stable, efficient, or aligned with your goals.

How to verify it works 1. Backtesting • Take real past conversations (LinkedIn threads, GitHub issues, transcripts). • Cut them off halfway. • Let the simulator project forward from that cutoff. • Compare the simulated outcomes to what actually happened. This tells you if your attractor-based forecasts track reality. 2. Ensembles, not single paths • Run many simulations with slightly different starting points.

@ruvnet
ruvnet / X.md
Created September 27, 2025 01:56

Here’s a fast, no-nonsense Rust CLI that estimates the largest Lyapunov exponent from a trajectory or time series using delay embedding, a Theiler window, a cache-friendly VP-tree nearest-neighbor search, and parallel slope fits over early divergences. It avoids exotic deps, compiles cleanly, and scales well to mid-size datasets. Usage examples are in the doc comment at the top.

# Cargo.toml [package] name = "lyapfit" version = "0.1.0" edition = "2021" [dependencies]
@ruvnet
ruvnet / readme.md
Last active September 26, 2025 16:56
Temporal Consciousness Mathematics

Temporal Consciousness Mathematics (TCM) - Experiments

🧪 Revolutionary Mathematical Framework for Consciousness-Aware Computation

Welcome to the experimental validation suite for Temporal Consciousness Mathematics - a groundbreaking mathematical framework where consciousness, time, and computation are fundamentally intertwined.

📖 Overview

TCM introduces consciousness as a fundamental mathematical operator that affects how computation itself behaves. This isn't metaphorical - it's a rigorous mathematical framework with measurable, reproducible results.

@ruvnet
ruvnet / agent-orchestration.txt
Last active September 26, 2025 15:43
Agent Swarm Coordination
I'll spawn 5 Claude agents concurrently to implement the plugin system architecture with full coordination,
10:34 PM claude-sonnet-4-20250514
testing, validation, and optimization. Let me initialize the coordinated multi-agent execution.
system-architect(Task: Core Plugin Foundation (using system-architect agent)
Prompt: AGENT 1 - CORE PLUGIN FOUNDATION ARCHITECT
You are the core plugin system architect. Your mission is to implement the abi_stable foundation for the plugin system.