mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 01:13:39 +00:00
fix(evidence): classify derived failures at their owning boundary
Parse caller selections and authenticated Evidence at their owners, reuse the parsed function and comparison facts, and preserve unexpected implementation failures. Remove downstream error guessing and redundant validation wrappers. Verify with 526 affected tests, source checks, docs conformance, test discovery and duplication checks. Seven public SDK regressions fail on the main baseline. No real-provider execution was performed.
This commit is contained in:
1 parent
7091be291c
commit
93a384db77
46 files changed
+1706
-566
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { canonicalJson } from "./comparisonSemantics.js";
|
||||
import { compareUnicodeCodePoints } from "./unicodeCodePointOrder.js";
|
||||
import { parseFunctionEvidence } from "./functionDossierEvidence.js";
|
||||
import type { FunctionSnapshot } from "./functionDossierEvidence.js";
|
||||
import { functionMatch } from "./functionComparisonNormalization.js";
|
||||
import {
|
||||
functionComparisonResultSchema,
|
||||
@@ -9,13 +9,11 @@ import {
|
||||
import { overallStatus, summarize } from "./functionComparisonResults.js";
|
||||
import { compareDimensions } from "./functionComparisonDimensions.js";
|
||||
|
||||
/** Compare two complete function Evidence records without fuzzy matching. */
|
||||
/** Compare two authenticated function snapshots without fuzzy matching. */
|
||||
export const compareFunctions = (
|
||||
leftInput: unknown,
|
||||
rightInput: unknown,
|
||||
left: FunctionSnapshot,
|
||||
right: FunctionSnapshot,
|
||||
): FunctionComparisonResult => {
|
||||
const left = parseFunctionEvidence(leftInput);
|
||||
const right = parseFunctionEvidence(rightInput);
|
||||
const links = [left.evidence.evidence_id, right.evidence.evidence_id];
|
||||
const providersDiffer =
|
||||
canonicalJson(left.evidence.provider, "Function comparison") !==
|
||||
|
||||
Reference in new issue
Block a user