← Back to Pull requests

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

Merged
justinsb merged 1 files (134 lines) on Jul 18, 2026 12:43 UTC
View on GitHub
justinsb justinsb commented on Jul 18, 2026 11:22 UTC
Author

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:

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.
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.
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: 134 lines (+100 / -34) across 1 files Reviewer: None requested Review duration: 81m
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.44) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 134 lines diff across 1 files
0.44
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
44%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.293
No Reviewer Assigned no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #152"
general weight: 0.35
Reviewers
None requested
Assignees
justinsb justinsb
Labels
risk: low confidence: 44.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.3% (MEDIUM) · Higher = larger blast radius
44.3%
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: 44.2% · Lower = rushed or shallow review
44.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: 24.7% · Safe to merge
24.7%