fix(bridge): smoke-import binary extensions after dependency reconcile (#969) - #990
Merged
Merged
Conversation
jinon86
approved these changes
Aug 6, 2026
jinon86
left a comment
Contributor
There was a problem hiding this comment.
Approved after explicit operator authorization using the Seoseo-held jinon86 credential.
#969) On both Termux nodes cryptography's _rust.abi3.so installs cleanly but cannot be loaded at all — the extension is not linked against libpython and Android's loader does not resolve symbols from the interpreter executable the way glibc does. The artifact is inert today only because the bridge never imports it (pyjwt[crypto] comes in transitively via mcp); the first RS256/ES256 JWT path would fail at runtime with a dlopen error that looks nothing like its cause. The CVE-2026-69247 bump (#921) bought these nodes nothing — the patched code cannot load. sync_dependencies now smoke-imports the binary extensions in the venv interpreter after every reconcile — on the hash-match fast path too, because "inputs unchanged" says nothing about whether the on-disk artifact loads. Default module set is (cryptography,), overridable via CCC_DEPS_SMOKE_IMPORTS. Failures print the artifact's real name and exception with a Termux-specific unlinked-extension diagnosis, and stay warn-only by default: a hard failure would convert the latent break into a self-inflicted outage on two healthy bridges. CCC_DEPS_SMOKE_STRICT=1 opts into the closed gate. Issue proposals 2 (drop pyjwt[crypto] on Android — blocked while mcp hard-requires the extra) and 3 (relink the extension against libpython — needs a live Termux rebuild cycle) are follow-ups; this PR makes the gap visible at the bootstrap boundary first. Co-Authored-By: Kimi K3 <noreply@moonshot.cn>
seoseo-ai
force-pushed
the
fix/969-deps-binary-import-smoke
branch
from
August 6, 2026 11:59
2ddaba5 to
95dad3c
Compare
This was referenced Aug 6, 2026
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.
What
Termux 2노드에서 cryptography의
_rust.abi3.so가 설치는 되지만 dlopen 실패하는 latent 결함(#969)을 bootstrap 경계에서 가시화합니다. "install ok ≠ usable".sync_dependencies가 reconcile 성공 후(해시 매치 fast path 포함) venv 인터프리터로 바이너리 확장 모듈을 smoke-import(cryptography,),CCC_DEPS_SMOKE_IMPORTS로 재정의 가능CCC_DEPS_SMOKE_STRICT=1이 fail-closed 게이트mcp가 extra를 hard-require해 막힘)/제안 3(libpython 재링크 — Termux 실기 리빌드 필요)는 후속으로 명시Evidence
ruff check·mypycleanCloses #969