← Back to Pull requests

Add model-manifest experiment: content-addressed model interchange #149

Closed
justinsb closed this pull request without merging on Jul 18, 2026 11:21 UTC
View on GitHub
justinsb justinsb commented on Jul 18, 2026 01:42 UTC
Author

What

An experiment in treating a model as a content-addressed interchange artifact: a thin client (no GPU, no CUDA, no weights) describes, captures, and ships a model; an executor rehydrates and runs it.

The artifact has three parts:
1. Manifest — architecture config + every tensor bound to (file_sha256, offset, length, dtype, shape), built entirely from Hub metadata (per-file LFS sha256 + range-fetched safetensors headers). Manifesting DeepSeek-R1's 689 GB / 91,991 tensors costs 11.9 MB of fetches and zero weight bytes; sha256 of the manifest is the model digest.
2. Weightless graphs — meta-device torch.export: dynamic-length prefill + constant-shape StaticCache decode. 5–10 MB .pt2 files referencing hundreds of MB of weights they don't contain.
3. Binding — classifies every graph tensor: bound (content ref), derived (config formula: RoPE frequencies, tied embeddings), state (zero-init KV cache + counters).

The executor fetches tensors by HTTP range request into a local CAS (docker-layer-style: warm start = 0 bytes, 1.6 s) and torch.compiles the decode step on arrival.

Diff: 141 lines (+105 / -36) across 1 files Reviewer: None requested Review duration: 579m
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.45) × (1 − Review Confidence (0.54)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 141 lines diff across 1 files
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
54%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.296
Shallow Review Depth shallow_review_depth
0.289
No Reviewer Assigned no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #149"
general weight: 0.35
Reviewers
None requested
Assignees
justinsb justinsb
Labels
risk: low confidence: 54.2% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 44.6% (MEDIUM) · Higher = larger blast radius
44.6%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 54.2% · Lower = rushed or shallow review
54.2%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 20.4% · Safe to merge
20.4%