Suppose a TLS control assessment returned PASS three months ago. Today, the evidence package passes integrity checks, the assessment runs again, and the replay comparator returns matched.
But what if someone had modified the recorded assessment during those three months and updated its SHA256 reference at the same time?
The files would still match their recorded hashes. The question is whether those hashes represent the original assessment or merely the version currently being presented.
Our previous Replay Comparison experiment verified artifact bindings, executed the TLS evaluator, and compared its output against a synthetic recorded baseline. The Windows tests confirmed that the comparator worked within its defined scope, but the baseline itself was not independently authenticated.
The next experiment examined where that reference digest came from.
When the baseline and its hash change together
SHA256 can establish whether a file matches a particular reference digest. It cannot establish that the reference digest is historically trustworthy.
Consider a baseline.json file stored alongside a sidecar containing its SHA256. If the same operator can modify both files, they can change the recorded control result, calculate a new digest, and update the sidecar.
The integrity check will still succeed. The comparator has performed its calculation correctly, but it cannot determine whether the original assessment was replaced.
We implemented Baseline Anchor Verification v0.1 to examine this limitation using two reference modes.
The first, self_supplied_sidecar, reads a digest packaged alongside the baseline. The second, operator_pinned_digest, accepts an expected SHA256 supplied separately through the command line.
The second method separates the reference from the file being checked, but the tool cannot determine whether the caller obtained that digest from a protected historical record. Even pinned_match is therefore not an authentication result.
Four tests, three possible outcomes
Using the existing synthetic TLS recorded assessment, we tested four scenarios with temporary files:
The original baseline matches its original sidecar:
self_consistent.The baseline is modified and the sidecar digest is updated: still
self_consistent.The modified baseline is checked against the unchanged original digest:
reference_mismatch.The modified baseline is checked against a newly supplied digest:
pinned_match.
The third case demonstrates why retaining an unchanged reference can be useful. It detects a modification that a rewritten sidecar would miss.
The fourth case exposes the remaining problem. If the expected digest can also be replaced, the comparison succeeds again.
These tests establish the behavior of the reference checker, not the independence of the reference itself. The distinction is documented in the Baseline Anchor Verification Contract.
What we verified on Windows
After implementing the tool, we ran all 23 unit tests against the exact PR commit on Windows. All passed, including the baseline replacement scenarios, invalid-input handling, duplicate JSON key detection, and checks that the tool did not modify the evidence or execute a control decision.
We then ran both CLI modes against the unchanged synthetic baseline committed to the repository.
The results were:
self_supplied_sidecar -> self_consistent
operator_pinned_digest -> pinned_match
digest_match = trueBoth commands exited with code 0, and the tracked Git working tree remained clean. The implementation and Windows verification record are available in merged PR #17.
The replacement scenarios were exercised by unit tests using temporary copies. The two CLI checks used the original repository fixture. Neither represents an authenticated historical assessment.
The receipt also preserves the boundaries of the verification:
reference_independence = not_assessed
reference_authentication = not_assessed
historical_replay_verified = false
decision_executed = falseThe tool checks digest correspondence. It does not execute the TLS control or authenticate the source of the baseline.
The reference needs its own trust boundary
One possible design is to retain the baseline digest outside the system that stores the assessment, under separate access controls and retention arrangements.
Later verification would obtain the original digest from that independent record rather than from the evidence package being examined.
However, storing a digest elsewhere is not sufficient by itself. The receiving party must be identifiable, the record must resist unauthorized replacement, and the digest must be bound to the assessment it is supposed to represent.
Our existing Evidence Custody and Authenticity Contract separates digest matching from origin authentication and custody verification. The Evidence Time Provenance Contract makes a related distinction between a timestamp recorded by a system and independently supported time evidence.
These are engineering models, not completed authentication services. The repository does not yet implement independent digest custody, signature verification, or trusted timestamping such as the mechanism described in RFC 3161.
This work follows a CodeYourCompliance MAS TRM-inspired engineering interpretation. The specific comparison methods and receipt structures are our design choices, not prescribed regulatory implementations.
PR #16 established that a new execution could match a supplied recorded assessment. PR #17 demonstrated why a matching baseline digest does not necessarily make that assessment historically authentic.
If the historical baseline and its reference digest remain within the same mutable trust boundary, a successful SHA256 comparison cannot independently establish that the original record was preserved.
Origin & Scope Boundary
CodeYourCompliance
Website: https://www.codeyourcompliance.com/
GitHub: https://github.com/codeyourcompliance
This experiment uses synthetic TLS assessment data. Windows tests verify tool behavior, not historical authenticity or production audit conclusions.
MAS TRM-inspired means engineering interpretation, not legal, regulatory, audit, or certification advice.
Attribution is requested for forks, references, adaptations, and technical discussions.
Public reference artifacts
The accompanying technical material is available in the CodeYourCompliance evidence-validation-pipeline repository:


