PromptKing

Published evaluation · Synthetic cases

SHA-256 and SHA3-512 — Survive an Algorithm Break — #1

Can a record keep a working integrity check if SHA-256 on its own can no longer be trusted?

Named for data origin only. No endorsement implied.

Setup

Two steps. First, a read-only inventory of where SHA-256 is computed and stored across the repository. Second, a synthetic dual-digest envelope (pk-dual-digest-v0): every file carries SHA-256 and SHA3-512, plus both digests of the canonical manifest. Sealing writes a temporary file, flushes it to disk and renames it. No historical record was rewritten and nothing in production changed.

Pass bars, set before testing

  • Test requirements (the source does not record whether they were frozen before the code): verification must fail closed on an interrupted seal, a partial seal, an unknown format or algorithm, a dropped algorithm (no silent downgrade), a duplicate path, an unlisted file, omitted evidence, a size mismatch, or a mismatch in either digest.
  • A simulated SHA-256 collision (content swapped, SHA-256 forged) must be caught by SHA3-512.
  • Legacy records that carry only SHA-256 must still verify, labelled LEGACY_SHA256_ONLY.

Every recorded run

2 entries · failures retained

Inventory (P0)

INVENTORY

SHA-256 is computed at 191 sites across lib, scripts, artifacts, app, tools and the verifier. No SHA3, SHAKE or BLAKE3 is used anywhere today. The algorithm label appears in two spellings ("SHA-256" and "sha256"), so a verifier must normalise it and refuse labels it does not know. Most stored digests sit in frozen contracts and golden artifacts; those stay SHA-256, and only new records get the second digest.

Cost per run
not recorded
Time per run
not recorded
Artifacts · 1

Private repository paths. No repository access is implied.

research/pk-pq-0/INVENTORY.md

Commit: 09c9c2d74fe8755875436033684fd58356ae6c63

SHA256: 99048b9619ba4d2366bf167adf51e7c9bc1852932f9923fbb5e3eb0969d499d5

Dual-digest fixture (P1/P2)

PASS 10/10 tests (synthetic)

Every listed failure mode is refused. The simulated SHA-256 collision is caught by SHA3-512. Legacy SHA-256-only records still verify and are labelled as such.

Cost per run
not recorded
Time per run
not recorded
Artifacts · 3

Private repository paths. No repository access is implied.

research/pk-pq-0/INVENTORY.md

Commit: 09c9c2d74fe8755875436033684fd58356ae6c63

SHA256: 99048b9619ba4d2366bf167adf51e7c9bc1852932f9923fbb5e3eb0969d499d5

research/pk-pq-0/dual-digest.mts

Commit: 09c9c2d74fe8755875436033684fd58356ae6c63

SHA256: bcf966557701541fea7dbb9852e72cad0a39b02447d40c712e234a6af8627c4d

research/pk-pq-0/dual-digest.test.mts

Commit: 09c9c2d74fe8755875436033684fd58356ae6c63

SHA256: cd4b8c45b3d3f1296fb29b7e79c1fe8b5386628f5c706d73d41c4a341d3bc767

Source and field provenance

origin/eval/pk-pq-0
09c9c2d74fe8755875436033684fd58356ae6c63

Field sources
slug
research/pk-pq-0/INVENTORY.md
title
research/pk-pq-0/INVENTORY.md
question
research/pk-pq-0/INVENTORY.md
setup
research/pk-pq-0/INVENTORY.md
synthetic
research/pk-pq-0/INVENTORY.md
passBars
research/pk-pq-0/INVENTORY.md
limits
research/pk-pq-0/INVENTORY.md
sourceBranch
research/pk-pq-0/INVENTORY.md
sourceCommit
research/pk-pq-0/INVENTORY.md
casesScored
research/pk-pq-0/INVENTORY.md
runs.0.id
research/pk-pq-0/INVENTORY.md
runs.0.date
research/pk-pq-0/INVENTORY.md
runs.0.verdict
research/pk-pq-0/INVENTORY.md
runs.0.summary
research/pk-pq-0/INVENTORY.md
runs.0.costUsd
research/pk-pq-0/INVENTORY.md
runs.0.durationMin
research/pk-pq-0/INVENTORY.md
runs.0.artifacts
research/pk-pq-0/INVENTORY.md
runs.1.id
research/pk-pq-0/INVENTORY.md
runs.1.date
research/pk-pq-0/INVENTORY.md
runs.1.verdict
research/pk-pq-0/INVENTORY.md
runs.1.summary
research/pk-pq-0/INVENTORY.md
runs.1.costUsd
research/pk-pq-0/INVENTORY.md
runs.1.durationMin
research/pk-pq-0/INVENTORY.md
runs.1.artifacts
research/pk-pq-0/INVENTORY.md
SHA-256 and SHA3-512 — Survive an Algorithm Break — #1 | PromptKing