feat(lab): publish E37 R0 acceptance result
This commit is contained in:
@@ -299,6 +299,62 @@ function e35() {
|
||||
};
|
||||
}
|
||||
|
||||
function e37() {
|
||||
return {
|
||||
result_id: `e37-ravnoves-acceptance-${"7".repeat(64)}`,
|
||||
created_at_utc: "2026-07-27T23:27:02Z",
|
||||
source_session_id: "20260720T065719Z_viewer_live",
|
||||
source_display_name: "RAVNOVES00",
|
||||
status: "accepted-r0-source-scoped-contract",
|
||||
profile_id: "e37-ravnoves00-r0-acceptance/v1",
|
||||
worker_node: "DESKTOP-OPJ8J04",
|
||||
metrics: {
|
||||
reviewed_items: 486,
|
||||
development_items: 340,
|
||||
validation_items: 146,
|
||||
engineering_items: 484,
|
||||
human_exception_items: 2,
|
||||
terminal_outcomes: 486,
|
||||
accounting_fraction: 1,
|
||||
false_free_claims: 0,
|
||||
},
|
||||
dimension_distributions: {
|
||||
presence: {
|
||||
"object-present": 300,
|
||||
"occupied-environment": 104,
|
||||
"background-or-noise": 82,
|
||||
},
|
||||
geometry_association: {
|
||||
"object-associated": 108,
|
||||
"independent-occupied": 104,
|
||||
"insufficient-support": 100,
|
||||
unknown: 92,
|
||||
"rejected-nonobject": 82,
|
||||
},
|
||||
freshness: { current: 292, unavailable: 102, stale: 92 },
|
||||
},
|
||||
severity_distribution: { standard: 290, medium: 71, high: 125 },
|
||||
label_provenance: {
|
||||
engineering_items: 484,
|
||||
human_exception_items: 2,
|
||||
independent_ground_truth: false,
|
||||
},
|
||||
split: {
|
||||
strategy: "deterministic-source-stratum-range-holdout",
|
||||
validation_fraction: 0.3,
|
||||
},
|
||||
targets: {
|
||||
presence_target: 0.9,
|
||||
geometry_association_target: 0.9,
|
||||
freshness_target: 0.9,
|
||||
},
|
||||
quality_target_evaluated: false,
|
||||
limitations: ["source-scoped"],
|
||||
authority,
|
||||
access: "read-only",
|
||||
};
|
||||
}
|
||||
|
||||
before(async () => {
|
||||
server = await createServer({
|
||||
appType: "custom",
|
||||
@@ -315,9 +371,9 @@ after(async () => {
|
||||
await server?.close();
|
||||
});
|
||||
|
||||
test("decodes E31–E35 from separate read-only catalogs", async () => {
|
||||
test("decodes E31–E37 from separate read-only catalogs", async () => {
|
||||
const requests = [];
|
||||
const items = [e31(), e32(), e33(), e34(), e35()];
|
||||
const items = [e31(), e32(), e33(), e34(), e35(), e37()];
|
||||
const decoded = await fetchAdvancedLaboratoryResults({
|
||||
fetcher: async (input, init) => {
|
||||
requests.push({ input: String(input), method: init?.method });
|
||||
@@ -337,12 +393,16 @@ test("decodes E31–E35 from separate read-only catalogs", async () => {
|
||||
assert.equal(decoded.e35.metrics.variantFrameOutcomes, 26934);
|
||||
assert.equal(decoded.e35.scenarios[0].recoverySeconds, 0.086);
|
||||
assert.equal(decoded.e35.reviewScenarios[0].frames[0].faultPhase, "during");
|
||||
assert.equal(decoded.e37.metrics.reviewedItems, 486);
|
||||
assert.equal(decoded.e37.metrics.validationItems, 146);
|
||||
assert.equal(decoded.e37.qualityTargetEvaluated, false);
|
||||
assert.deepEqual(requests, [
|
||||
{ input: "/api/v1/laboratory/e31/results?limit=1", method: "GET" },
|
||||
{ input: "/api/v1/laboratory/e32/results?limit=1", method: "GET" },
|
||||
{ input: "/api/v1/laboratory/e33/results?limit=1", method: "GET" },
|
||||
{ input: "/api/v1/laboratory/e34/results?limit=1", method: "GET" },
|
||||
{ input: "/api/v1/laboratory/e35/results?limit=1", method: "GET" },
|
||||
{ input: "/api/v1/laboratory/e37/results?limit=1", method: "GET" },
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -357,7 +417,8 @@ test("rejects authority escalation in an accepted-looking result", async () => {
|
||||
String(input).includes("/e31/") ? forged
|
||||
: String(input).includes("/e32/") ? e32()
|
||||
: String(input).includes("/e33/") ? e33()
|
||||
: String(input).includes("/e34/") ? e34() : e35(),
|
||||
: String(input).includes("/e34/") ? e34()
|
||||
: String(input).includes("/e35/") ? e35() : e37(),
|
||||
)), { status: 200 }),
|
||||
}),
|
||||
AdvancedLaboratoryContractError,
|
||||
|
||||
Reference in New Issue
Block a user