MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / certaintyOf

Function certaintyOf

graph-ui/src/twin/render-model.ts:650–657  ·  view source on GitHub ↗

* How certain one row is, worded, whether or not anyone put a number on it. * * The 0.9.0 engine scores nothing: it reads its call, caller and raise * relations straight off the graph, so a recorded confidence is absent because * there was never anything to score rather than because a field went

(confidence: number | undefined, state: KnowledgeState)

Source from the content-addressed store, hash-verified

648 * a derived claim nobody scored, so both say which one they are.
649 */
650function certaintyOf(confidence: number | undefined, state: KnowledgeState): { label: string; note: string } {
651 if (confidence !== undefined) {
652 return { label: confidenceLabel(confidence), note: CONFIDENCE_SCORED_TOOLTIP };
653 }
654 return state === 'known'
655 ? { label: CONFIDENCE_EXACT, note: CONFIDENCE_EXACT_TOOLTIP }
656 : { label: CONFIDENCE_UNSCORED, note: CONFIDENCE_UNSCORED_TOOLTIP };
657}
658
659/**
660 * One row, with what a reviewer needs appended to it.

Callers 2

densifyRowFunction · 0.85
groundRowsFunction · 0.85

Calls 1

confidenceLabelFunction · 0.90

Tested by

no test coverage detected