fix(experiments): validate PCAP coverage and cited artifact subjects

Verify complete page coverage at the SDK measurement boundary. Bind every cited Evidence subject digest and local path to the reference capture in the model grader, and reuse the reference page coverage. Add failing-then-passing regressions, real SDK consumer fault/control checks, and factual regrading of all four stored model answers without model reruns. Original measurements and resource uncertainty stay intact.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
This commit is contained in:
N0zoM1z0
2026-10-14 02:40:31 +08:00
committed by morluto
co-authored by factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Kaoru0822
parent e5abf4acf4
commit d688507563
4 changed files with 70 additions and 5 deletions
+10 -2
View File
@@ -572,6 +572,15 @@ const inspectPcapTarget = async () => {
view,
});
const page = normalized(selected);
const total = capture.retained_counts.http_request_uris;
const examined = Math.min(view.limit, total);
const expectedCoverage = {
status: "page",
examined,
total,
next_offset: examined < total ? examined : null,
exhausted: examined >= total,
};
if (
page.parent_evidence_id !== n.parent_evidence_id ||
page.parent_operation !== "inspect_pcap_capture" ||
@@ -579,8 +588,7 @@ const inspectPcapTarget = async () => {
!isDeepStrictEqual(page.view, view) ||
page.page.facet !== "http-uris" ||
page.source_coverage !== capture.coverage ||
page.coverage.total !== capture.retained_counts.http_request_uris ||
page.coverage.examined !== page.page.items.length ||
!isDeepStrictEqual(page.coverage, expectedCoverage) ||
page.artifact.path !== capture.target.path ||
page.artifact.sha256 !== capture.target.sha256
)