| id | 64 |
|---|---|
| title | Spike Pure-Go Embedded Weasel Classifier |
| status | ✅ |
Evaluate a fully embedded, pure-Go classifier path for weasel-language
(or verbose-actionable) detection with no runtime dynamic libraries.
- Define a pure-Go model family to evaluate first (for example sparse linear classifier over cue and n-gram features).
- Build a minimal prototype inference package that runs with stdlib-only runtime dependencies and deterministic scoring.
- Define a weight packaging path that is fully embedded in the mdsmith
binary (for example
go:embedplus checksum verification). - Measure CPU latency and memory on the same benchmark corpus used in previous weasel spikes.
- Measure binary-size impact versus current mdsmith and compare with the yzma spike artifact footprint.
- Define integration boundaries and fallback behavior for MDS029: backend mode switch, timeout policy, and diagnostic stability.
- Document maintenance workflow: training export format, versioning, and safe model update procedure.
See eval/conciseness/spikes/go-native-linear-classifier/README.md.
Highlights from the spike:
- Prototype is fully pure-Go with stdlib-only runtime dependencies.
- Weights are embedded with
go:embedand verified by pinned SHA256. - Spike report includes classifier implementation details and raw captured benchmark output in markdown.
- Cue lexicons were moved into the embedded artifact with validation gates to keep list expansion maintainable and correctness-checked.
- Determinism was confirmed across in-process and process-restart runs
(
unique_hashes=1). - Latency and memory metrics were captured on the same six-sample corpus used in the yzma spike.
- mdsmith binary delta for embedded artifact was measured at +480 bytes, versus yzma's +0.5 MB binary delta plus external model/library artifacts.
- Recommendation: adopt this path as the CPU fallback candidate for plan 58, pending full dataset quality validation.
- Prototype runs with no
YZMA_LIBor external dynamic libraries. - Embedded weights load from binary-only assets.
- Deterministic outputs are confirmed across repeat runs.
- CPU latency and memory metrics are captured.
- Binary-size delta is measured and documented.
- Recommendation is made: adopt, defer, or reject this path.