Repository navigation
fix(zk-tls): pin one checked witness commit and reinstall when it changes - #294
Merged
Merged
Conversation
nicolasLuduena
force-pushed
the
fix/zk-tls-witness-pin
branch
from
November 25, 2026 01:55
d79a01f to
1812e84
Compare
nicolasLuduena
changed the base branch from
main
to
fix/zk-tls-empty-redaction
November 25, 2026 01:55
This was referenced Nov 25, 2026
This was referenced Nov 25, 2026
Contributor
|
lgtm |
lolaaimar
force-pushed
the
fix/zk-tls-witness-pin
branch
from
November 25, 2026 19:49
1812e84 to
66d829c
Compare
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
lolaaimar
force-pushed
the
fix/zk-tls-witness-pin
branch
from
November 25, 2026 20:47
66d829c to
79161d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of #211, split out of #248. Stack: #291 → #292 → #293 → #294; merge in that order. Based on #293. Developer tooling only; nothing here ships to dApps.
start-witnesses.shinstalled the witness clone's dependencies once, so changingWITNESS_REForPINNED_REFran the new commit's source on the oldnode_modules. It now records the commit it installed for:The attestor guide's manual setup cloned upstream's default branch with
--depth 1. It now checks out the script's commit:git clone --filter=blob:none https://github.com/reclaimprotocol/attestor-core cd attestor-core git checkout --detach f451eb3c3038efcf7c11b2497d7540d8f1e95752witness-pin.test.tsgets aVERIFIED_PINStable: attestor-core version → the commit verified with the live check. The test fails unless the script'sPINNED_REFis that commit, no two versions share a commit, and the guide checks the same commit out.Evidence
Before:
start-witnesses.test.ts's new reinstall test fails against main's script. The script checks out the new commit, skips the install, and starts witnesses without that commit's new dependency.After: these pass:
The guide's clone and checkout, run against upstream:
5.1.4 is expected: upstream never bumped
package.json, and this commit is the source of the npm 5.1.6 release.Build, types, Biome and the full suite pass with the stack up to this PR: 774 passed, 4 skipped (the opt-in live checks).
No verification skill in this repo.
Merge Danger
Door: two-way
Blast Radius: local dev
Existing witness clones have no stamp, so the first
npm run witnessesafter this merges reinstalls once.