fix(rectification): share datedPrecision for quarter and range events
Training already counted quarter/range as dated, while the inference ledger mapped them to unknown and left the events unused. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -165,7 +165,7 @@ export function datePrecisionRank(precision: string): number {
|
||||
return PRECISION_RANK[precision] ?? -1;
|
||||
}
|
||||
|
||||
function datedPrecision(value: string): DatedEventInput["precision"] {
|
||||
export function datedPrecision(value: string): DatedEventInput["precision"] {
|
||||
if (value === "day" || value === "month" || value === "year" || value === "unknown") return value;
|
||||
return "year";
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ import { rankActive } from "../core/convergence-evaluator.ts";
|
||||
import { rangeFromTimes, unionStillValidRange } from "../core/credible-range.ts";
|
||||
import { previousInferenceFromReceipt } from "../core/compose-receipt.ts";
|
||||
import type { AnswerClass, ConflictProbe, InferenceState } from "../core/types.ts";
|
||||
import { datedPrecision } from "./evidence-model.ts";
|
||||
import {
|
||||
isHoldoutVerificationQuote,
|
||||
type ChoiceKey,
|
||||
@@ -28,8 +29,8 @@ function yearFrom(value: string | null | undefined): number | null {
|
||||
}
|
||||
|
||||
function asPrecision(value: string | null | undefined): EngineEventInput["precision"] {
|
||||
if (value === "day" || value === "month" || value === "year") return value;
|
||||
return "unknown";
|
||||
if (!value) return "unknown";
|
||||
return datedPrecision(value);
|
||||
}
|
||||
|
||||
export function askedProbeKeysFromReceipt(
|
||||
|
||||
Reference in New Issue
Block a user