CoolFace
Datasetpublic

ValidatorMasterHeartcodeProtocol/heartcode-evaluation-fixtures

Heartcode Experimental Action Evidence v0.1 Eight original synthetic fixtures for an experimental action-submission boundary. GitHub is canonical: release directory. Hugging Face is a distribution copy of these exact files. What this measures A host-owned test grant allows exactly one bound RESET proposal. Missing, expired, revoked, stale, mismatched or unverifiable authority blocks submission to a fake environment. Expected records include deterministic decisions… See the full description on the dataset page: https://huggingface.co/datasets/ValidatorMasterHeartcodeProtocol/heartcode-evaluation-fixtures.

sourceHugging Facemitupdated 10d agoView on Hugging Face
1likes41downloads
verify.test.mjs22 linesDownload Raw Back to root
1import { test } from "node:test";2import assert from "node:assert/strict";3import { readFileSync } from "node:fs";4import { verifyBundle, verifyRecords } from "./verify.mjs";5const rows = name => readFileSync(new URL(name, import.meta.url), "utf8").trim().split("\n").map(JSON.parse);6test("bundle passes offline verification", () => assert.match(verifyBundle(), /Verified 8/));7test("modified input is rejected", () => {8  const fixtures = rows("fixtures.jsonl");9  fixtures[0].input.proposal.action = "CHANGED";10  assert.throws(() => verifyRecords(fixtures, rows("expected.jsonl")), /Input hash mismatch/);11});12test("modified decision is rejected", () => {13  const expected = rows("expected.jsonl");14  expected[0].evidence.decision = "block";15  assert.throws(() => verifyRecords(rows("fixtures.jsonl"), expected), /Evidence hash mismatch/);16});17test("missing or duplicate output is rejected", () => {18  const expected = rows("expected.jsonl");19  expected[1] = expected[0];20  assert.throws(() => verifyRecords(rows("fixtures.jsonl"), expected), /Duplicate outputs/);21});22