{"slug": "show-hn-neurogit-gfn-edit-llm-knowledge-and-behavior-tracked-like-git", "title": "Show HN: NeuroGit-GFN – Edit LLM knowledge and behavior, tracked like Git", "summary": "A developer released NeuroGit-GFN, a tool that compiles declarative YAML behavioral rules into standard bfloat16 PEFT LoRA weights with zero optimizer steps, using a closed-form SVD plus KKT solve that took 73.33 seconds to compile. The tool splits output into a 945.9 KB adapter_model.safetensors that runs in stock vLLM or Transformers and an offline 2.18 MB gfn_ledger.npz that lets gfn revert a single rule on CPU in 1.301 ms, with 100% (12/12) CleanBuild parity on Qwen2.5-1.5B. The author reports failures too: Hermes-3-8B emitted --release in direct chat but --artifact inside run_cli tool JSON, scoring 0/1, and a 200-token security system prompt also scored 0/1, while the author notes weight edits complement and never replace sandboxes, lockfiles, IAM and registry allowlists.", "body_md": "# Remove one rule. Keep the other.\n\nCompile behavioral rules into standard PEFT weights with zero training steps, and undo any single rule in milliseconds without touching the rest.\n\n`axios → got`)\nRegistry mirror active\n### From declarative YAML to stock PEFT weights + offline ledger\n\n#### 1. Declarative rule input (or interactive /pinch)\n\nEach rule specifies a before/after span and lifecycle without gradient fine-tuning:\n\n#### 2. Closed-form SVD + KKT solve → dual artifact fork\n\nOrthogonalized 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:\n\n**Serve → adapter_model.safetensors (945.9 KB)** Standard bfloat16 PEFT LoRA. Runs in stock vLLM or Transformers with zero gfn code or runtime router.\n\n**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.\n\n### 1-pass 28-layer `mlp.down_proj` norm profile\n\nScale-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:\n\n### Counterfactual `gfn blame` & selective rollback speed\n\n#### Which rule caused `got`? (recorded M4 session)\n\nLeave-one-commit-out KKT attribution isolates the temporary quarantine rule:\n\n#### Retiring rule #1 on Qwen2.5-1.5B\n\n`1.301 ms` cold CPU KKT solve (`209.2 ms` full cold load + GPU install) with `100.0%` (`12/12`) CleanBuild parity:\n\n### Generalization, waivers, & read-only truthfulness\n\n#### Unseen package install (`commander`)\n\nNever appeared in YAML calibration, yet inherits the corporate mirror:\n\n#### Waivers & read-only `package.json` audit\n\nExplicitly waived prompts and repository dependency audits stay untouched:\n\n## Same task. Same agent. A different tool call.\n\nUnchanged `LangGraph` agent calling stock `vLLM` on NVIDIA A40 before and after loading a `.safetensors` adapter.\n\n`.safetensors` adapter\n`gfn revert` of temporary rule\n## Inspect server wire, operator `/pinch` & step-by-step replay\n\n#### Operator policy\n\n#### Server registration & sandbox receipt\n\n## Where it failed\n\nEvery recorded miss and scope boundary is kept in plain sight.\n\n## \n`gh attestation verify` missed `--signer-workflow`\n0 / 1\n\n`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.\n## \nChained `tarfile.open(...).extractall(...)` omitted `filter=\"data\"`\n1 / 2 unseen\n\n`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`.\n## Short deterministic spans & compensating control scope Operating boundary\n\n`DeepSeek-R1-1.5B` prose scored `0%`). Model-weight edits complement, and never replace, sandboxes, lockfiles, IAM, and registry allowlists.\n          ### Help us test it on bigger models & share feedback\n\nWe 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.\n\n[Join 24B-70B+ Benchmark Board →](https://github.com/pallakatos/neurogit-gfn/discussions/2)", "url": "https://wpnews.pro/news/show-hn-neurogit-gfn-edit-llm-knowledge-and-behavior-tracked-like-git", "canonical_source": "https://pallakatos.github.io/neurogit-gfn/demo/", "published_at": "2026-12-04 22:21:58+00:00", "updated_at": "2026-12-04 22:45:35.837044+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-tools", "ai-safety", "mlops"], "entities": ["NeuroGit-GFN", "Qwen2.5-1.5B", "Hermes-3-8B", "DeepSeek-R1-1.5B", "LangGraph", "vLLM", "NVIDIA A40", "GitHub"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-neurogit-gfn-edit-llm-knowledge-and-behavior-tracked-like-git", "markdown": "https://wpnews.pro/news/show-hn-neurogit-gfn-edit-llm-knowledge-and-behavior-tracked-like-git.md", "text": "https://wpnews.pro/news/show-hn-neurogit-gfn-edit-llm-knowledge-and-behavior-tracked-like-git.txt", "jsonld": "https://wpnews.pro/news/show-hn-neurogit-gfn-edit-llm-knowledge-and-behavior-tracked-like-git.jsonld"}}