The Same Hash, Two Separate Reviews
An empty search can hide another team's evidence while a duplicate check reveals it exists. A small database example shows why a hash needs a workspace.
Imagine two teams reviewing the same model evidence in private workspaces. The second team searches for the file and finds nothing. It uploads its copy and gets “already exists.” No report, comment or approval was shown. Yet the duplicate check has revealed that someone else already holds the file.
That combination is possible even when the database correctly hides the other team's rows. In a small PostgreSQL example, we observed zero visible records followed by a duplicate-key rejection for the same hash. Including the workspace in the record's identity allowed both teams to register it separately.
The example is deliberately constructed, not a finding about a deployed review service. It exposes a practical design question: which things should become one object when their content matches? The evidence bytes may be identical. The teams' access and review histories are separate facts.
An empty search does not settle the question
A cryptographic hash gives a file a repeatable fingerprint. A review system can use that fingerprint to recognize another copy of the same bytes. It still needs to know which workspace has registered those bytes and which review refers to them.
Our example uses two database roles, one per workspace, and two alternative tables. Both apply the same row-security rule: each role can read and insert only rows bearing its own workspace name. Neither role owns the tables, has administrator privileges, or can bypass row security.
The first table makes the digest unique across every workspace. The second makes the combination of workspace and digest unique. We registered one synthetic file under workspace A, then repeated the operations as workspace B.
| Operation as workspace B | Digest alone | Workspace + digest |
|---|---|---|
| Search before registering the file | 0 rows | 0 rows |
| Register the same file under B | Duplicate rejected | Insert succeeds |
Scroll horizontally to see every column.
With workspace-local identity, B then saw one row: its own. An administrator could see two workspace records with one distinct digest. The file's fingerprint stayed the same throughout.
PostgreSQL documents the underlying distinction: uniqueness and other referential-integrity checks operate beyond the rows a caller may read. Otherwise hidden records could break the database's integrity rules. A row-security policy and a uniqueness constraint therefore answer different questions.
If an application exposes a distinguishable duplicate response, that response can disclose existence even though search returns nothing. In this example it would reveal that the digest was registered elsewhere; it would not identify the other team or reveal its review outcome. The caller must also know or supply the matching content. We did not test an HTTP service or its error handling.
Put the workspace in the identity that users encounter
For the second table, the key is:
PRIMARY KEY (workspace, digest)
That permits (A, digest) and (B, digest) while rejecting a second registration of the same digest inside B. Our check also attempted to insert a different record under A while acting as B. Row security rejected it. The combined key preserves local uniqueness; the access rule controls who may use each workspace.
The distinction matters when a supplier sends identical evidence to two customers. Each recipient needs a local record to which it can attach its own review. Treating the second registration as an error confuses shared content with a shared workflow.
Workspace identity must come from the authenticated access context. Letting a request choose an arbitrary workspace would defeat the boundary. In the example, the database role supplies that context. A production application's authentication and role mapping need their own checks.
A second review needs another identity too
Adding the workspace is only part of the model. Suppose one team reviews the same unchanged evidence for two separate releases. If the system stores one mutable approval on (workspace, digest), the later review could overwrite the earlier decision or accidentally inherit it.
A useful design keeps three references distinct:
Same content, separate records and reviews
- Evidence digest
- Identifies the shared content under its declared hashing rule.
- Workspace record
- A + digest and B + digest identify separate team records for that content.
- Review ID
- Reviews A1 and A2 belong to workspace A; B1 belongs to workspace B. Each has its own history.
Matching content does not combine access or review history.
The digest identifies the content under a declared format and hashing rule. The workspace record identifies that team's relationship to it. The review ID identifies a particular decision process, including its requirements, participants and history. A new review can refer to the same workspace record without replacing an old review.
This is also why a model hash alone cannot name a complete evaluation result. InvarLock's native verification inputs separately identify the baseline, candidate, cases, runtime and policy. Keep those evidence identities intact beneath the local records. Creating a new review does not change what the signed comparison established.
Where Verification Ends and Governance Begins asks what a release owner still needs to decide. The question here comes earlier in the software: can the system store two owners' reviews of identical evidence without merging them or revealing one through the other's duplicate check?
Reuse bytes without sharing the decision
Separate workspace records do not necessarily require separate physical copies of a large file. A storage service could retain one content-addressed blob behind several authorized references. That is a storage choice, not permission for a caller to discover every reference or read the blob by presenting its hash.
The same separation belongs in a review cache. A cached file lookup may be reusable. A cached “approved” flag keyed only by that file's digest has lost the workspace and review that gave the flag meaning. Even a review-specific cached decision needs rules for changes in trust or policy. This example does not implement that cache; it explains which identities such a design must preserve.
Before relying on isolation, exercise both sides of the boundary. Search for a known file from the other workspace, then try registering it locally. Confirm that a local duplicate remains a local duplicate and that naming the other workspace does not grant access. An empty search alone leaves the write path unexamined.
The reproduction package contains the SQL, a disposable-container runner and the observed PostgreSQL 18.6 transcript. It uses one synthetic input, no model calls and no customer data. The result is narrow but useful: the correct unit of duplication depends on whether the system is identifying bytes, a team's record, or a review.
Limitations
- The executed example covers two roles, two tables, sequential inserts and one synthetic file digest. It does not audit InvarLock's platform or any deployed service.
- The possible existence disclosure depends on a caller knowing matching content and observing a distinguishable response. HTTP behavior, timing, concurrency and storage deduplication were not tested.
- Separate review histories and shared blob storage are design illustrations. The fixture does not implement approvals, revocation, retention or a complete authorization system.
- A hash identifies content under its hashing contract. It does not establish that an evaluation is valid, that a signer is trusted or that a recipient has approved use.
Sources
Website documentation explains the maintained workflow. The database observations come from the accompanying constructed PostgreSQL 18.6 example. The identity and review diagram is illustrative. InvarLock's verification reference is pinned to v0.17.3; no model evaluation or production-platform test was performed for this article.
- Evidence and verification
- Prepare a client review package
- Where Verification Ends and Governance Begins
- Database example and reproduction instructions
- Observed database transcript
- PostgreSQL row security policies
- PostgreSQL unique and primary-key constraints
- Released verification inputs and receipt checks
More in Evidence
Explore nearby related posts.
Research note
Where Verification Ends and Governance Begins
The candidate missed 219 questions. Only four were new misses. What does a passing benchmark tell a training team deciding whether learners can see unchecked answers?
Research note
When Two Evaluators Say “Exact Match”
Two evaluators can agree on every saved score and still treat another answer differently. InvarLock checks the scoring boundary before admitting those records.
Research note
What Signed Case Studies Add Beyond Conformance Fixtures
A small test with known answers checks the software. A signed case study records an actual model comparison. A reviewer needs to know which question each answers.