feat(v3): Source Trust Weighting (Sprint 1 PR 2) #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "a1/sentinel-v3-trust"
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
src/source-trust.js: Neues Modul —getWeight/getWeightedConsensus/updateWeightsFromFeedback/seedDefaultWeights/getWeightsForCustomersrc/db.js: Tabellesource_trust_weights(additive, safe on existing DBs) +getJobSnapshotsFlat()src/feedback-handler.js: Lernschritt viaupdateWeightsFromFeedbacknach jedem Feedback-Event (TRUE_POSITIVE/FALSE_POSITIVE)src/verdict-emitter.js: Trust-gewichtete KonfidenzHIGH/MEDIUM/LOWauf Basis vonip+hostname-Konsens, Fallback auf mode-basiert wenn keine Snapshots vorhandensrc/app.js:GET /trust/:customerId(auth)src/index.js:seedDefaultWeights()beim Starttest/source-trust.test.js: 16 neue TestsTest plan
npm test)GET /trust/:customerIdgibt Gewichte zurückhandleFeedback(...): Log[source-trust] updated N weightsconfidenceändert sich bei Quellen-Konflikt aufLOWwenn CMDB ≠ snmp_arp