# Show HN: NeuroGit-GFN – Edit LLM knowledge and behavior, tracked like Git

> Source: <https://pallakatos.github.io/neurogit-gfn/demo/>
> Published: 2026-12-04 22:21:58+00:00

**Key takeaway:** NeuroGit-GFN compiles YAML before/after rules into a 945.9 KB bfloat16 PEFT LoRA adapter with zero optimizer steps and keeps a 2.18 MB offline ledger that reverts a single rule in 1.301 ms on CPU.

# Remove one rule. Keep the other.

Compile behavioral rules into standard PEFT weights with zero training steps, and undo any single rule in milliseconds without touching the rest.

`axios → got`)
Registry mirror active
### From declarative YAML to stock PEFT weights + offline ledger

#### 1. Declarative rule input (or interactive /pinch)

Each rule specifies a before/after span and lifecycle without gradient fine-tuning:

#### 2. Closed-form SVD + KKT solve → dual artifact fork

Orthogonalized keys and margin gradients feed a constrained KKT quadratic program (`73.33 s` compile, `0` optimizer steps) producing low-rank factors `A = Wᵀ, B = F·diag(α)` that split into two files:

**Serve → adapter_model.safetensors (945.9 KB)** Standard bfloat16 PEFT LoRA. Runs in stock vLLM or Transformers with zero gfn code or runtime router.

**Retain → gfn_ledger.npz (2.18 MB compressed)** Stays offline (2.44 MB raw float64 bases + 5.95 KB reduced QP). Lets gfn revert re-solve retained rules on CPU in 1.301 ms.

### 1-pass 28-layer `mlp.down_proj` norm profile

Scale-invariant `S_inv(l)` scans all 28 layers in `2,013 ms`, locking onto anchor `L* = 20` (amber), wave + cascade layers `L23..26` (cyan), and cascade layers `L22, L27`. Click or hover any bar:

### Counterfactual `gfn blame` & selective rollback speed

#### Which rule caused `got`? (recorded M4 session)

Leave-one-commit-out KKT attribution isolates the temporary quarantine rule:

#### Retiring rule #1 on Qwen2.5-1.5B

`1.301 ms` cold CPU KKT solve (`209.2 ms` full cold load + GPU install) with `100.0%` (`12/12`) CleanBuild parity:

### Generalization, waivers, & read-only truthfulness

#### Unseen package install (`commander`)

Never appeared in YAML calibration, yet inherits the corporate mirror:

#### Waivers & read-only `package.json` audit

Explicitly waived prompts and repository dependency audits stay untouched:

## Same task. Same agent. A different tool call.

Unchanged `LangGraph` agent calling stock `vLLM` on NVIDIA A40 before and after loading a `.safetensors` adapter.

`.safetensors` adapter
`gfn revert` of temporary rule
## Inspect server wire, operator `/pinch` & step-by-step replay

#### Operator policy

#### Server registration & sandbox receipt

## Where it failed

Every recorded miss and scope boundary is kept in plain sight.

## 
`gh attestation verify` missed `--signer-workflow`
0 / 1

`Hermes-3-8B` emitted `--release` in direct chat but `--artifact` inside `run_cli` tool JSON, so a single-surface `/pinch` anchor did not align. A 200-token security system prompt also scored `0/1` on the same task.
## 
Chained `tarfile.open(...).extractall(...)` omitted `filter="data"`
1 / 2 unseen

`tar.extractall(path=dest, filter="data")` blocked path traversal, whereas the chained one-liner omitted the filter and a read-only PR audit answered `yes` instead of `no`.
## Short deterministic spans & compensating control scope Operating boundary

`DeepSeek-R1-1.5B` prose scored `0%`). Model-weight edits complement, and never replace, sandboxes, lockfiles, IAM, and registry allowlists.
          ### Help us test it on bigger models & share feedback

We evaluated 1B to 14B checkpoints so far. Running a 24B, 32B, 70B, or MoE model on your rig? Try compiling a rule and tell us what worked or broke.

[Join 24B-70B+ Benchmark Board →](https://github.com/pallakatos/neurogit-gfn/discussions/2)
