Feedback model: learn ranking from analyst decisions #12
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/feedback-model"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The AI feature requested for the RSD demo — a model that helps the analysis and learns from what the analyst decides, implemented the honest way for this project:
No neural net, no Python, no new dependencies: a 3-weight logistic model trained by deterministic gradient descent, fully inspectable (weights published in the model card), versioned by content hash. Learning improves as the analyst uses the tool — the journal is the labeled dataset.
Evidence
After:
POST /api/model/trainlearns from the journal (requires ≥4 decisions across both classes — honest 400s otherwise);GET /api/modelexposes the model card;candidates?use_model=truere-ranks by learned probability and recomputes the state from the suggested cutoff. Browser-verified loop: 5 fixtures → 4 decisions → train → badgelearned model fb1-… · 4 decisions,learned 75%per candidate, disclaimer caption, Relearn button.ranked.jsonand CLI parity are untouched (byte-compare test); training verifies each event's pinnedresult_sha256and skips tampered/mismatched evidence (test); fit numbers are labeled in-sample everywhere; suggestions never become confirmed findings (REPORT_SPEC distinction).module_gate.shPASS for pattern-engine (93.29% package, learn.rs 100%) and web (85.35%); 121 workspace tests, 0 failed; fmt/Clippy clean.docs/reviews/feedback-model.md. Commitd30bfbapassed Forgejo run 54.Merge Danger
Door: Two-way
Blast Radius: Additive endpoints + one UI surface; ranking evidence chain unchanged (test-pinned)
The model is a mechanism demo, not a validated classifier: with a handful of decisions the weights demonstrate learning, and the fit number says so in the UI and model card. No operational accuracy claim is made anywhere; suggestions require analyst confirmation like every other model output.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.