fix(rectification): share datedPrecision for quarter and range events
Independent Staging Quality Gate / validate (push) Successful in 24m33s
Independent Staging Quality Gate / publish (push) Successful in 13m11s

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:
Jesse_Chen
2026-08-28 23:19:09 +08:00
parent 53eb815c95
commit 2c5e8bf2e6
5 changed files with 43 additions and 3 deletions
@@ -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(