Judge a derived pin by its pattern's output at upstream's tip (issue btclib-org/btclib#3133) #210
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.50) × (1 − Review Confidence (0.55)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 562 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 79% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.379
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #210"
general
weight: 0.35
fametrano
This is base58-bech32's copy of the change ISS btclib-org/btclib#3133 asks for, which landed in btclib as e0b34057, in ecc as 88352b8e, in btclib-wallet as 3a399ed0, in bip32-descriptors as 328a1941 and in btclib-secp256k1 as b289e653. A ledger entry may now name its derivation in a
patternline, and.github/scripts/check_vendored_vectors.pyjudges such an entry, where itsbehindreads zero, by what that pattern derives at the tip of the entry's path, read through the API: it fetches upstream's tarball at that commit, holds each regular file under the path to its blob in the recursive tree, finds the matches asLC_ALL=C git grep -aohPdoes, sorts them bytewise and deduplicates them, and reports the entry where the result is not the file here, naming the lines only the derivation holds and those only the file holds, or where the file is not here at all. The value of the entry'scommitdecides nothing; an entry without apatternline is judged by its commit, as before. This is the maintainer's option 1 on the issue: the change goes in the shared checker every tree's copy runs.base58-bech32's ledger holds no entry with a
patternline, so this carries the capability, its tests and the ledger's paragraphs on what such a line means, as bip32-descriptors' copy does. This copy callsghthroughsubprocess.runat each call site and has no shared helper or retry, so_derivedmakes its two calls the same way: the tree as text, the tarball as bytes. The helper and its retry are ISS btclib-org/base58-bech32#209. This copy's exact match of the issue title is kept.Prose corrected beyond the port: the header's copy paragraph no longer says this copy's code departs from bip39-slip39's in nothing, which was already false (bip39-slip39's retries a server error); and two sentences of
tests/_data/README.md(on the weekly job, and on what the suite does not ask upstream) now say a pin that moved is reported unless its entry carries apattern.What this breaks:
find_driftreturns a third list, the derived entries found current with their tip; stdout prints "No checked pin has drifted from upstream's tip." where it printed "Every checked pin is still at upstream's tip."; the issue body's first line and the closing comment are reworded to match; a derived entry prints aDERIVEDor aDIFFERSline.Evidence
| Gate on 1e6ab285 | Command | Exit |
| --- | --- | --- |
| Suite, coverage lane |
uv run --locked --no-default-groups --group test pytest -n 2: 1878 passed, 100.00% | 0 || Hooks |
uv run --locked --only-group lint pre-commit run --all-files --show-diff-on-failure| 0 || Build and sdist lane |
uv build,twine check --strict,check-wheel-contents,pyroma --min 10; the suite from the unpacked sdist on Python 3.15: 1726 passed, 100.00% | 0 || Docs |
sphinx-build -n -W, the href grep andcheck_included_links.py| 0 || Sign-off |
check_sign_off.py 8a18a44d..1e6ab285; control463f194exits 1 | 0 |merge-tree --write-treeagainstmainat 8a18a44d, the branch's parent, merges clean._derivedoffline the real tree and tarball of bitcoin-core/secp256k1 at a0e2e23a and got btclib'stests/_data/secp256k1_symbols.txtbyte for byte; the dedicated reviewer held_matchestogit grepon 162 inputs, none differing. Their non-blocking findings are in the findings record; the two that apply to every copy are filed on ISS btclib-org/btclib#3155.path; the copying in_line_matches), both already filed for every copy on ISS btclib-org/btclib#3155.os-*sweeps and the dist job's other steps run in CI.(issue btclib-org/btclib#3133)
🤖 Generated with Claude Code