fix(experiments): bind native claims to observed source evidence
Check derived view identities against all earlier producer references. Grade DOS load-image claims only from completed, referenced producer responses, including their actual target and entry identity. Focused synthetic negative transcripts and original real transcript regrades verify the boundary without model reruns. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent
aada535dea
commit
0667f7cb7c
@@ -4,11 +4,17 @@ import { isDeepStrictEqual } from "node:util";
|
||||
export const NATIVE_ARTIFACTS = ["jq", "sharex.exe", "freedos.edlin.exe"];
|
||||
const normalized = (value) => value.normalized_result;
|
||||
|
||||
const retainedEntryViews = async (call, info, inputSha, ToolFailure) => {
|
||||
const retainedEntryViews = async (
|
||||
call,
|
||||
info,
|
||||
inputSha,
|
||||
ToolFailure,
|
||||
sourceEvidenceIds,
|
||||
) => {
|
||||
const n = normalized(info);
|
||||
const retainedViews = [];
|
||||
const retainedViewEvidence = [];
|
||||
const observedEvidenceIds = new Set([info.evidence_id]);
|
||||
const observedEvidenceIds = new Set([info.evidence_id, ...sourceEvidenceIds]);
|
||||
let nativeSummaryOutcome, summaryEvidenceId;
|
||||
for (const facet of ["procedure", "pseudocode", "callers", "callees"]) {
|
||||
const selected = await call("inspect_analysis_view", {
|
||||
@@ -175,7 +181,10 @@ export const measureNativeEntry = async ({
|
||||
const n = normalized(info);
|
||||
const selected =
|
||||
values["native-question"] === "entry-views"
|
||||
? await retainedEntryViews(call, info, inputSha, ToolFailure)
|
||||
? await retainedEntryViews(call, info, inputSha, ToolFailure, [
|
||||
containing.evidence_id,
|
||||
...(loadImageEvidenceId === undefined ? [] : [loadImageEvidenceId]),
|
||||
])
|
||||
: {};
|
||||
const { main, mainEvidenceIds = [] } =
|
||||
values["native-question"] === "entry-and-main"
|
||||
|
||||
Reference in New Issue
Block a user