Update vendored H3 Continuum to v3.9.11
This commit is contained in:
+3
@@ -97,3 +97,6 @@ write-h3-v39-reference-prompts/
|
||||
|
||||
# Current 3.9.10 repair/update notes.
|
||||
!docs/RELEASE_NOTES_V3910.md
|
||||
|
||||
# Current 3.9.11 repair/update notes.
|
||||
!docs/RELEASE_NOTES_V3911.md
|
||||
|
||||
@@ -7,7 +7,7 @@ permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: publish-comfy-registry-v3.9.10
|
||||
group: publish-comfy-registry-v3.9.11
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
@@ -15,10 +15,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Check out v3.9.10 release
|
||||
- name: Check out v3.9.11 release
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: v3.9.10
|
||||
ref: v3.9.11
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
@@ -27,14 +27,14 @@ jobs:
|
||||
- name: Verify release identity and source hashes
|
||||
shell: bash
|
||||
run: |
|
||||
test "$(git describe --tags --exact-match HEAD)" = "v3.9.10"
|
||||
test "$(git describe --tags --exact-match HEAD)" = "v3.9.11"
|
||||
python - <<'PY'
|
||||
import hashlib
|
||||
import pathlib
|
||||
import tomllib
|
||||
root = pathlib.Path(".")
|
||||
metadata = tomllib.loads((root / "pyproject.toml").read_text())
|
||||
assert metadata["project"]["version"] == "3.9.10"
|
||||
assert metadata["project"]["version"] == "3.9.11"
|
||||
assert metadata["tool"]["comfy"]["PublisherId"] == "ukr8b3g-cmyk"
|
||||
for name in ("REGISTRY_MANIFEST.sha256", "MANIFEST.sha256"):
|
||||
rows = (root / name).read_text().splitlines()
|
||||
|
||||
+16
-16
@@ -1,4 +1,4 @@
|
||||
name: Publish verified v3.9.10
|
||||
name: Publish verified v3.9.11
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
@@ -9,7 +9,7 @@ permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: publish-v3.9.10
|
||||
group: publish-v3.9.11
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
@@ -29,18 +29,18 @@ jobs:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASE_SHA: ${{ github.event.workflow_run.head_sha }}
|
||||
run: |
|
||||
test "$(python -c 'import tomllib;print(tomllib.load(open("pyproject.toml","rb"))["project"]["version"])')" = 3.9.10
|
||||
test "$(python -c 'import tomllib;print(tomllib.load(open("pyproject.toml","rb"))["project"]["version"])')" = 3.9.11
|
||||
test "$(gh api repos/$GITHUB_REPOSITORY/branches/main --jq .commit.sha)" = "$RELEASE_SHA"
|
||||
if gh release view v3.9.10 --json isDraft --jq .isDraft 2>/dev/null | grep -qx false; then
|
||||
if gh release view v3.9.11 --json isDraft --jq .isDraft 2>/dev/null | grep -qx false; then
|
||||
echo 'publish=false' >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
if EXISTING=$(gh api repos/$GITHUB_REPOSITORY/git/ref/tags/v3.9.10 --jq .object.sha 2>/dev/null); then
|
||||
if EXISTING=$(gh api repos/$GITHUB_REPOSITORY/git/ref/tags/v3.9.11 --jq .object.sha 2>/dev/null); then
|
||||
echo "Existing tag: $EXISTING"
|
||||
test "$EXISTING" = "$RELEASE_SHA"
|
||||
else
|
||||
echo "Creating v3.9.10 at $RELEASE_SHA"
|
||||
gh api repos/$GITHUB_REPOSITORY/git/refs -f ref=refs/tags/v3.9.10 -f sha="$RELEASE_SHA"
|
||||
echo "Creating v3.9.11 at $RELEASE_SHA"
|
||||
gh api repos/$GITHUB_REPOSITORY/git/refs -f ref=refs/tags/v3.9.11 -f sha="$RELEASE_SHA"
|
||||
fi
|
||||
echo 'publish=true' >> "$GITHUB_OUTPUT"
|
||||
tag-tests:
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: v3.9.10
|
||||
ref: v3.9.11
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
@@ -79,7 +79,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: v3.9.10
|
||||
ref: v3.9.11
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
@@ -89,14 +89,14 @@ jobs:
|
||||
python - <<'PY'
|
||||
import hashlib,pathlib,subprocess,zipfile,tomllib
|
||||
root=pathlib.Path('.')
|
||||
assert tomllib.loads((root/'pyproject.toml').read_text())['project']['version']=='3.9.10'
|
||||
assert tomllib.loads((root/'pyproject.toml').read_text())['project']['version']=='3.9.11'
|
||||
for name in ['MANIFEST.sha256','REGISTRY_MANIFEST.sha256']:
|
||||
rows=(root/name).read_text().splitlines()
|
||||
for row in rows:
|
||||
h,p=row.split(' ',1);assert hashlib.sha256((root/p).read_bytes()).hexdigest()==h,p
|
||||
print(name,len(rows),'matched')
|
||||
files=subprocess.check_output(['git','ls-tree','-r','--name-only','HEAD'],text=True).splitlines()
|
||||
target=root/'ComfyUI-H3-Continuum-v3.9.10.zip'
|
||||
target=root/'ComfyUI-H3-Continuum-v3.9.11.zip'
|
||||
with zipfile.ZipFile(target,'w',zipfile.ZIP_DEFLATED,compresslevel=9) as z:
|
||||
for p in files:z.write(root/p,'ComfyUI-H3-Continuum/'+p)
|
||||
with zipfile.ZipFile(target) as z:
|
||||
@@ -126,15 +126,15 @@ jobs:
|
||||
- name: Publish GitHub Release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: gh release create v3.9.10 ComfyUI-H3-Continuum-v3.9.10.zip SHA256SUMS.txt --verify-tag --title 'v3.9.10 — Spectrum reuse and Reference assignment display' --notes-file docs/RELEASE_NOTES_V3910.md --latest
|
||||
run: gh release create v3.9.11 ComfyUI-H3-Continuum-v3.9.11.zip SHA256SUMS.txt --verify-tag --title 'v3.9.11 — Spectrum signature stability / Review continuation' --notes-file docs/RELEASE_NOTES_V3911.md --latest
|
||||
- name: Download and verify public GitHub assets
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh release download v3.9.10 --dir public-download --pattern 'ComfyUI-H3-Continuum-v3.9.10.zip' --pattern SHA256SUMS.txt
|
||||
gh release download v3.9.11 --dir public-download --pattern 'ComfyUI-H3-Continuum-v3.9.11.zip' --pattern SHA256SUMS.txt
|
||||
python - <<'PY'
|
||||
import pathlib,hashlib
|
||||
for name in ['ComfyUI-H3-Continuum-v3.9.10.zip','SHA256SUMS.txt']:
|
||||
for name in ['ComfyUI-H3-Continuum-v3.9.11.zip','SHA256SUMS.txt']:
|
||||
assert pathlib.Path(name).read_bytes()==(pathlib.Path('public-download')/name).read_bytes(),name
|
||||
print('Public GitHub assets match verified local ZIP and checksum')
|
||||
PY
|
||||
@@ -147,8 +147,8 @@ jobs:
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: publication-v3.9.10
|
||||
name: publication-v3.9.11
|
||||
path: |
|
||||
ComfyUI-H3-Continuum-v3.9.10.zip
|
||||
ComfyUI-H3-Continuum-v3.9.11.zip
|
||||
SHA256SUMS.txt
|
||||
node.zip
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
## Scope
|
||||
|
||||
MiniMax H3 Continuum for ComfyUI. Package 3.9.10 provides the V3.9 Sampler and Reference Images helper, while retaining the separate V3.8X2 workflow. Source publication does not imply a GitHub Release or Registry package publication.
|
||||
MiniMax H3 Continuum for ComfyUI. Package 3.9.11 provides the V3.9 Sampler and Reference Images helper, while retaining the separate V3.8X2 workflow. Source publication does not imply a GitHub Release or Registry package publication.
|
||||
|
||||
Sampling Contract v6 and Graph Contract v4 apply to new generation. Keep original v5 history readable, without reusing its Takes in v6 generation or rewriting stored manifests. Public node IDs, socket/widget order, official workflows, Run Storage v3 and State/Session formats remain unchanged.
|
||||
|
||||
|
||||
+12
@@ -1,5 +1,17 @@
|
||||
# Changelog
|
||||
|
||||
## 3.9.11 — Spectrum loaded-code audit stability (2026-10-20)
|
||||
|
||||
- Avoid rejecting an unchanged audited Spectrum implementation when repeated
|
||||
imports produce different marshal encodings of equivalent code objects.
|
||||
Keep the legacy audit first; only code-digest differences can use the fixed,
|
||||
Python-specific supplemental audit of complete loaded descriptors.
|
||||
- Preserve the original provider metadata and persisted Sampling v6 identity.
|
||||
Existing safe Takes remain compatible; old unsafe/v5 history remains read-only.
|
||||
Unknown source, changed code/defaults/closures and extra runtime state remain
|
||||
non-reusable. Public inputs, workflows and generation/storage code are unchanged.
|
||||
- CPU/JS: 2,139 passed / 2 skipped / 2 known Inspector expected failures, zero unexpected failures. Targeted Spectrum + Kitchen browser/GPU continuation passed: enabled Review buttons, Chunk 1 preserved, Chunk 2 generated, one reused / one new; both AV outputs fully decoded. See docs/RELEASE_NOTES_V3911.md for scope and a separate third-party MP4 menu-thumbnail workaround.
|
||||
|
||||
## 3.9.10 — Spectrum reuse and Reference assignment display (2026-10-20)
|
||||
|
||||
- Normalize CRLF source line endings in both Spectrum file and module-closure audits. Keep the pinned source identities and existing Python 3.13 profile bytes unchanged.
|
||||
|
||||
+10
@@ -1,3 +1,13 @@
|
||||
ComfyUI-H3-Continuum 3.9.11 — Spectrum signature stability
|
||||
CPU/JS: 2139 passed / 2 skipped / 2 known Inspector xfailed; unexpected failures 0.
|
||||
Targeted Spectrum + Kitchen browser/GPU: Review enabled; Chunk 1 retained,
|
||||
Chunk 2 generated (1 reused / 1 new); both audio/video outputs fully decoded.
|
||||
Existing Takes and official workflows retained. Unknown-code reuse remains refused.
|
||||
Restart ComfyUI, hard-refresh browser, and check a new unique Run.
|
||||
Scope, limits and separate MP4-menu workaround: docs/RELEASE_NOTES_V3911.md
|
||||
|
||||
Historical package records follow; their test counts describe their own versions.
|
||||
------------------------------------------------------------------------
|
||||
ComfyUI-H3-Continuum 3.9.9 — public KJ / Review continuation
|
||||
CPU 2075 passed / 2 skipped / 2 known xfailed; upstream KJ GPU and installed local-KJ browser Continue PASS.
|
||||
既存Take・Workflowは維持。更新後は再起動・ブラウザー再読込。旧unsafe/v5は自動変換しません。
|
||||
|
||||
+22
-17
@@ -1,19 +1,19 @@
|
||||
ce319f06573b0b53709bae56d9b9ee0b3f4180eba961d7cbbac9e01e403a589e .comfyignore
|
||||
a42a85fb4dda2d4100c0f87d9836429e51aad187c8d07c8338360a3016a779dc .comfyignore
|
||||
3d681ded5d4c50cc20c2382e29fdc98d8a48e76d552c41ad5a195d941e66e612 .gitattributes
|
||||
c3fc30c17dc92c4c772f25392f3f63385ccd5de025798d13dcea51c03f1f81e8 .github/workflows/publish_registry.yml
|
||||
60392b0310924b7abcffbfa8070f0180e531a1fb1c030d85496a62b46291064e .github/workflows/publish_release.yml
|
||||
48b133ed878e191376ee940625c4604233366e5342813956ad2901628689c5b3 .github/workflows/publish_registry.yml
|
||||
a91be871ff06839fc93fd33a7fea9a974c1b7480e3ae40e2e8329e65e1473d11 .github/workflows/publish_release.yml
|
||||
3e22b441fe96bb6d099f0fcb92265f7a986c444f6c45be263c7905898aea4ac7 .github/workflows/tests.yml
|
||||
a28c4c592d56c57e0967f0adce5655313b942b8cc04f77766c0db1bec96c13e0 .gitignore
|
||||
fa9c99303d1a960db12ae2191cffcfbffe82e25e144eb6d16775c840fec4d573 CHANGELOG.md
|
||||
c7765c1229960ae75685a8a557ccfe8cf1b58d843f1fdec29d165ddc011e7217 CHANGELOG.md
|
||||
6e889c42490ccb5f376694b5944c693a84e7febedf38e631d687e96bc1e76376 H3-Continuum-LLM-System-Prompt-v1.zip
|
||||
144324850d4ba086938da5f4ed7b02ff0668dec554f092695328240e43fec3ec H3-Continuum-Skill-v1.zip
|
||||
fe29dafce4a6c5229e7e3aef1f946afba2346015702ed8cdda9927a80b6e65f3 INSTALL_JA.txt
|
||||
53f8300410cffd775b059f22e582e97af162d9f1b2d0ac69ad44e7a5a991ac4f INSTALL_JA.txt
|
||||
c44abbd789091bbead01250dbd5453e60539d2665c69f162335fdbd2936019c2 LICENSE
|
||||
656e417909695c5dcabf134b6f3240c44bd02bb2e33881b5247efd345cb932c2 PACKAGE_INFO_JA.txt
|
||||
57fa9ad77ab5b1d2da6ec43f7ba19118e253cb4a959b758b246755471df15591 PACKAGE_VALIDATION.txt
|
||||
da45eeb9f4950777bb63974cbf1d77856b287b05e3466be63571f2ad4561f12e README.md
|
||||
eed26374c7de5e9e19396836e0270fb46f37f3302dfd6f5533c8d703741cbf0f README_JA.md
|
||||
9a84b03b89f5889f2ed59bcb969711bc1de367ac109b14596483283d3ffa1174 REGISTRY_MANIFEST.sha256
|
||||
5bd811b25eaa7e3906718630bedad1b171ee1d47b4957d55f61e0ad5c7115261 PACKAGE_INFO_JA.txt
|
||||
c8b3ebfb8ac181e51ce62a16ec52a24ed97148eb1a784ea23fc4073d59a9e679 PACKAGE_VALIDATION.txt
|
||||
3d65caf035b56a6acffb006f40cde72f0ef62b66c14795c2252c9c67cbf9c88f README.md
|
||||
4d4bc762f339d64ebffe3cc4c79f520828b79d90d3a1933f96ed030d51aeacbb README_JA.md
|
||||
c3383b37c32e0c4937d19de2433ffa40121d9fc79cc2c8a05e9796b8c52514b1 REGISTRY_MANIFEST.sha256
|
||||
0dbe8a5f71c92f3523942343b40787104c8b96781461ba3ba82934a6bdbe5834 THIRD_PARTY_NOTICES.md
|
||||
02ea0951ce2e7ac2d5f3bbf02c596a9f9ea8adcdf2a113dca4c8db3cc19c36b3 __init__.py
|
||||
7fd122ff08232e114a6ef32171217ea6324e980eb7257d560c466b8177a3d3ec audio_compat.py
|
||||
@@ -32,7 +32,7 @@ c93a3e52e4deabe5ef0db7f34a7605856a543089574ba17227e697e9a2c0139a docs/ARCHITECT
|
||||
1d60cf5d4ef9c45885d4f90289c3b17aa70a6a2752c6b288288322a5e0568050 docs/FAILURE_SEMANTICS_BASELINE.md
|
||||
c6ea788a03c5f29f32fb6a4fd62db92f108e604493d818b9729e9d7fb967526e docs/FAILURE_SEMANTICS_DELTA_R5.md
|
||||
7660570840229b6fcbe62f0fbb52966d0099d64d7e6f01a739fbf9899293c8e4 docs/FUTURE_ROADMAP.md
|
||||
44377cbac9131daa3d1c88ccc154c325257767f4c52f3181f61525c7eae00531 docs/ISSUE31_SAMPLING_SIGNATURES.md
|
||||
edf01a9c718ad1c3825c6036c4c3f76237c51c35dc12a1d83e435e722cbd7ef3 docs/ISSUE31_SAMPLING_SIGNATURES.md
|
||||
b7ecd069d803cae7f86ad0ab89df144b5a5b157c168c73ee2962b47234d4ec0c docs/KJ_PREVIEW_OVERRIDE_V398.md
|
||||
77c225d1e49e06d00b04acf811177c9a4317e792d4bfe92df539de99420c3563 docs/LOADER_PERSISTENCE_REPAIR.md
|
||||
b30fe4640359bebfcdeeb94dbeec94cb346c8e3646509e1dcdb87d7021ba04ff docs/N2B_BRANCH_PROVENANCE_CONTRACT_V1.md
|
||||
@@ -42,6 +42,7 @@ bce0337cce903938b6b8df7f52c5c67e2d0ee14599c693687e4180debc606db2 docs/README_HI
|
||||
9ee92cdd3783e61e3bc71b99d5c0df7dd0a9f129c8a6b37701d7001a4f745e77 docs/README_HISTORY_JA.md
|
||||
cebf8462681796df807987d8afef2c78abb0953b54b2f5dcd12d583bde0ec806 docs/REGENERATE_INTENT_V396.md
|
||||
bbe74f802339b758d8874900e2617dd1a46844a58e0f872d95f34b9b40ba20ed docs/RELEASE_NOTES_V3910.md
|
||||
353c82a1350985c8a549fbf4dc46fc5c678f7dd8344318d00fe860fa39acf6cc docs/RELEASE_NOTES_V3911.md
|
||||
1e3156127e570f7eeda696cf1143f42a4b3144f3ab3a32c6e2deee2ed9e8e3be docs/RELEASE_NOTES_V395.md
|
||||
6de7daf79d0cf8e8bf03d01d030bc0db43df454b644c7fb277c4caa53bf0dae4 docs/RELEASE_NOTES_V396.md
|
||||
8b6f43df28d660e44e6d4bdecd161157091e8f30bd2305c686918d288c9a9f1e docs/RELEASE_NOTES_V397.md
|
||||
@@ -154,7 +155,7 @@ bf0556b076dbaca67c3405a7d86c333ca7fdf3d4381529b0a9edc906519943e9 guide_timeline
|
||||
12bf572a65d57bbc9a72b459f29691c2057768f4fb7a74f9db87f4775e995bda install_windows.ps1
|
||||
139546ec1ff459945aa89b50f74b5ee69f62a0e07bbddfcae06936091a409a83 layout_adapter.py
|
||||
d3e213005670e94dee33a240349a4d245cf9a3b6602099f11ed30cf5a32e2c21 media.py
|
||||
7ad8ea8859b666cb2771f19795ca8c04ab7aafb5c20cff4e80ad17295429ded3 metadata.ini
|
||||
1e6514845702225b36d6f993c4e37924d629449365cf67370829df3c7ffd5db6 metadata.ini
|
||||
fd23c7f32810788aaaf1709c4959c40ec72303aecc6f6afa5fa68d824cca97a8 minimax-h3-continuum-dance-director.zip
|
||||
d7e613e2cc24110213b477bdd1d390234a41f2af3b1ed006a809066d71d658eb model_patch.py
|
||||
ecb65a5dbf9e1683c5a3cadd82daaea3a90a2b776f6ebabfbe8b07aa93177422 nodes.py
|
||||
@@ -162,18 +163,20 @@ ecb65a5dbf9e1683c5a3cadd82daaea3a90a2b776f6ebabfbe8b07aa93177422 nodes.py
|
||||
d4cf474cbd1a98867075c45b53b2ab4d47752bb11611c916bac2a6831ca82c0b preview_override_provider_v1.json
|
||||
3b7e18bd2ba50fd6c8fe71c58ca79a0bf752f362ed78b7357ce1998efc934b4b preview_override_signature.py
|
||||
b470819f16fc179654dc1600721a63f0a5a14e777f4c004d574b499da6886ba5 public_api.py
|
||||
dc56e02aa94561076bee8a836c268c0e45a8b5248f3b40108bcb740252965ec6 pyproject.toml
|
||||
4dcda05d4e3a57e7d0941876329425bf49bed01d0be08d5de05e17973bb6cc31 pyproject.toml
|
||||
94fdc2d545b2d4077a4d70229fd22ba3ccac21d49d1097d2873f76d04e9a3c7a pytest.ini
|
||||
caa572ea65dafc86850db99f52433d360ac9c4ab36b854292a3dccd5ba32dc76 reference.py
|
||||
9539f5cb9fb695841073fa58d9246d5a7410bc372f6cd340378185004dfaf978 reference_audio.py
|
||||
5cb9bfd6810d3a93a637451980a4cc5c1436e5b84cfd1c7a111cd192e876351b reference_video.py
|
||||
467edb2c188d024c2392aafe7423b3f835e16b10f570da76e2f7dda8a962c1c5 requirements.txt
|
||||
985e7647bd2626af5df68ca702cf6ebb38cc09f3ffe0e239d3e8ef256352a5d8 run_storage.py
|
||||
1227d406008ee1463d3b8f0ac50adad1b3de2062186affef751b5627d978c866 spectrum_code_audit_v1_py312.json
|
||||
631807b6d9e009e60736985a4f943c4214502be3e80275410da481cab02a4ad0 spectrum_code_audit_v1_py313.json
|
||||
8f786989af6339be8cec8f2bf602da89344cf96202d29c980af5c07175eea3d3 spectrum_provider_v029.json
|
||||
8cdf37b165eb68462dd7accf4a1fd63043f02479f9c377778fb9d4b6feaddcc6 spectrum_provider_v029_py312.json
|
||||
0efc8d65cb6f59042457ad843fe1b77a4bee45e59d3732f5c83fbc75a31ae77b spectrum_provider_v1.json
|
||||
71801234f6d2e08b660803194653821ca648e5b9a0d0c3f138bc7ccc6fe9d8c6 spectrum_provider_v1_py312.json
|
||||
448213ae7670a6e231f833ca1901ca295eb5f6bfb8983ca37703bdb3fdf15f99 spectrum_signature.py
|
||||
81608cb2dff48e68b960dca2b58ce0bceb270197d9f1f44f906e3e8286bbc7eb spectrum_signature.py
|
||||
3a359a0467725cc292ccb4c86cf0c3d30bb6a114d01f5345792b09ea3d45441d state.py
|
||||
6056de6c0a5322a8a51ba5a114538dca2ef67788cd1afba10fedd483b95f6afa state_io.py
|
||||
660a9df28c7d62ad383cda5514c48c7efcb3576f435af023040116d533a56563 storage_api.py
|
||||
@@ -241,7 +244,7 @@ cd53a068ce0df4aa4c242d5ada4609beac0d90d0b9633ada766607ea684c08fc tests/test_pre
|
||||
3b9f938de680bc8abd61d1373472589df96112c50f2d46eb0f47e26c46c9f49f tests/test_preview_reuse_frontend.py
|
||||
1ae0369943ba2fb13f21ad0cf56ee58621ba09bf20174379595e157a1775c7fd tests/test_public_api.py
|
||||
892d3e3e022a527652dd995508c8bbb650c370caf9ee66fa3eb1f7fd288bba38 tests/test_public_workflow_integrity.py
|
||||
988d4f4973410d387ef66f11619021f8548b0447759ae0dae3f559ed5c65f11f tests/test_release_metadata.py
|
||||
533d52450f8ba25a9b0990e5720dd5a2098a78b2fefcfd7b7467a880bf255288 tests/test_release_metadata.py
|
||||
5f6caf1814052798f20571ebb863c098bec23d8f2e091fc1f30ce1ef9c58675a tests/test_review_identity_lifecycle.py
|
||||
5f7d3e01bc78fa076ecb17f8532b6d3f3137545da4028032ad6769407d80be07 tests/test_review_provenance_reroll.py
|
||||
d5e255a5fdd06ea18e70f4077f855ed2f02664f91caf79b66bfbdf7df44ad07b tests/test_review_rehydration.py
|
||||
@@ -251,6 +254,7 @@ cda09feb111efb8961e56c5f378f7925d63d0143b084c8248a9bc8be7f33ce6f tests/test_run
|
||||
5f701a84f43a04c85d6f68627defd958e7dc9a1c0023632265dd2b1d19635b87 tests/test_runtime_redesign_r4_coordinator.py
|
||||
4b03e1a9140ba32b3c24e1a2567ccbe90ecbe54f1b4e1ed760bc45da5fe9fb5b tests/test_runtime_redesign_r5_transactions.py
|
||||
fdaf52fbcaea3f85f4e568f4fbb217d33069d6de8b5537bd97d53fcbc3e169a0 tests/test_runtime_redesign_r6_node_facade.py
|
||||
ad94e0cb30b0a8c4e9422ce638b0ca088a93e0d4bf9d01e0cdcc9436c650b2db tests/test_spectrum_code_audit.py
|
||||
dc2f919e8540ad20272cc0bb45072e301a6d7b59e1aca22a5df9d6cf6f5cd720 tests/test_spectrum_portability.py
|
||||
5af6a16a2337e3483bb0f9197fe04756decd309e4737520c5557b527d68d51bb tests/test_state.py
|
||||
d4c53d2c260b635d70fa211029d608f63776e0a56c20253475fa47c58363f8a7 tests/test_state_io.py
|
||||
@@ -260,7 +264,7 @@ a1f60f01e9d86c1f2a010752612e373e85112c7054ffc31185b9b459eb2b34a5 tests/test_tem
|
||||
8a512b3afdf394af043a4d6bd7c4fca0c9326e1207930bf5d96b4d0bd7205b4e tests/test_temporary_storage.py
|
||||
7f518caa4d95fefd9794b7dafdb8b747963c98dad8473be73a00dff65f3c8ea4 tests/test_terminal_merge_diagnostics.py
|
||||
f175e9ebf39d6fcaac578b640422676d7f7a54bfdf0f77ec44a3da6aafefd7cd tests/test_timeline_video.py
|
||||
9388d33683b63dae2b51955f154d962237ddc93483437fa7c4e3c3165f17dde4 tests/test_v217_stable_facade.py
|
||||
c53fd2a3e413dfe67353bfe1e6525fc010211c054509729ff1bb0346a1fca5ff tests/test_v217_stable_facade.py
|
||||
dc8b9cf0e77b4983ee4eecc60f4acde7d0e063f3b7569402feca8a56165107fd tests/test_v2_decoder.py
|
||||
3cc94a6a7957ef285f58d373fbab001d926d2b43a754d60bb00bfce98675f32d tests/test_v2_prompts.py
|
||||
424a4b34fb391ff3729b38a9b202e36f5bc8b9689a2a9bbf9589254c6261d9c6 tests/test_v2_registration.py
|
||||
@@ -345,6 +349,7 @@ f218e1a93c42467c6057c5c1d04d57cc82f6331b97ec9257e4e2dfb9c831876a timeline_video
|
||||
2e5a4f468c8dc70b16a083c0fac0aadc6e1e80968fcd80a3241275efbd69c669 tools/a3c_selective_refine_probe_node/__init__.py
|
||||
58ed8a3e2818f5dbd2214849dc7d105fd399ec8c0b2b7c63f62102c1e18757f1 tools/audio_continuity_output_analyze.py
|
||||
ea0040b510f748bc69f0c8aa4cc6aa1893e292af620ddd6e76e7847dccac1f8c tools/audio_continuity_research_runner.py
|
||||
59a639d35754c62cb042e6eca4d72521309f05f26ef474bd4c46549c8c1318ac tools/build_spectrum_code_audit.py
|
||||
2876dc0f2760d6bffb0138ab4d6ef84da6f2db2d726cc442d7a6f732b7bc2061 tools/g4_sampling_diagnostic_node/__init__.py
|
||||
9062a3b9e2d03551c8e230a34779ccd74b7e9e38aa18d19939900f0072919f82 tools/g4_sampling_diagnostic_node/node.py
|
||||
0184162bf563e15b2681096732064e265c83696294e248c8a6981beb8255b568 tools/gpu_diagnostic_node/README.md
|
||||
@@ -457,7 +462,7 @@ d0a004aa3030c8adaa5ea788f9acc758fcb4a556f203f9a3f63fa4e4b5772063 v3/sampling_en
|
||||
26b13614ba0a5fd8b192a106c9503b2f4b6fe7f9268a0fcb0f544979a49cab34 v3/video_adapter_nodes.py
|
||||
2f07ace1462644f0bee553827b3571535de4d0c2d9ef847bd9e0ca73a4eed5cb v3/video_seam.py
|
||||
4178dcfa442abdb06ce276e05bd7bcbaa6da28469ba5e57d3da3c663de4e4a9d v3/video_seam_v35.py
|
||||
e124ded4bc8ddbf7b432c80d9900e40ee34214327bc6d83bd9fcf95cb55e7169 version.py
|
||||
755a4d8b3ce66e94efea1a23e45ff6702042931c417c337ed35273c7e19e7c12 version.py
|
||||
b935ad3bb729948bb3890ce967b0ecbef737a5e51ddfc47a0060fc20aa78dcda video_reference_modes.py
|
||||
685df8e0fa23e3663ab31da1e4470cd19bdaa0dc16362cb606e874d9d6153c2c web/decode_cache_helper.js
|
||||
fefafd4550511d80bd85ade46a0476f0cf3de13ddb94a908dff6b175f2a0e199 web/easy_bypass_toggle.js
|
||||
|
||||
+10
@@ -1,3 +1,13 @@
|
||||
ComfyUI-H3-Continuum 3.9.11 — Spectrum signature stability
|
||||
CPU/JS: 2139 passed / 2 skipped / 2 known Inspector xfailed; unexpected failures 0.
|
||||
Targeted Spectrum + Kitchen browser/GPU: Review enabled; Chunk 1 retained,
|
||||
Chunk 2 generated (1 reused / 1 new); both audio/video outputs fully decoded.
|
||||
Existing Takes and official workflows retained. Unknown-code reuse remains refused.
|
||||
Restart ComfyUI, hard-refresh browser, and check a new unique Run.
|
||||
Scope, limits and separate MP4-menu workaround: docs/RELEASE_NOTES_V3911.md
|
||||
|
||||
Historical package records follow; their test counts describe their own versions.
|
||||
------------------------------------------------------------------------
|
||||
ComfyUI-H3-Continuum 3.9.9 — public KJ / Review continuation
|
||||
CPU 2075 passed / 2 skipped / 2 known xfailed; upstream KJ GPU and installed local-KJ browser Continue PASS.
|
||||
既存Take・Workflowは維持。更新後は再起動・ブラウザー再読込。旧unsafe/v5は自動変換しません。
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
ComfyUI-H3-Continuum 3.9.11 — Spectrum signature stability
|
||||
CPU/JS: 2139 passed / 2 skipped / 2 known Inspector xfailed; unexpected failures 0.
|
||||
Targeted Spectrum + Kitchen browser/GPU: Review enabled; Chunk 1 retained,
|
||||
Chunk 2 generated (1 reused / 1 new); both audio/video outputs fully decoded.
|
||||
Existing Takes and official workflows retained. Unknown-code reuse remains refused.
|
||||
Restart ComfyUI, hard-refresh browser, and check a new unique Run.
|
||||
Scope, limits and separate MP4-menu workaround: docs/RELEASE_NOTES_V3911.md
|
||||
|
||||
Historical package records follow; their test counts describe their own versions.
|
||||
------------------------------------------------------------------------
|
||||
ComfyUI-H3-Continuum 3.9.9 — public KJ / Review continuation
|
||||
CPU 2075 passed / 2 skipped / 2 known xfailed; upstream KJ GPU and installed local-KJ browser Continue PASS.
|
||||
既存Take・Workflowは維持。更新後は再起動・ブラウザー再読込。旧unsafe/v5は自動変換しません。
|
||||
|
||||
+10
@@ -1,5 +1,15 @@
|
||||
# Public source status
|
||||
|
||||
## 3.9.11 — Spectrum code audit stability
|
||||
|
||||
Supplement the legacy code audit only for code-digest differences in the two
|
||||
already-audited Spectrum implementations on Python 3.12/3.13. Preserve the old
|
||||
provider metadata, persisted identity, safe Take reuse and unknown-code rejection.
|
||||
CPU/JS: 2,139 passed / 2 skipped / 2 known Inspector expected failures. Targeted
|
||||
Spectrum + Kitchen browser/GPU Review continuation passed with Chunk 1 preserved
|
||||
and one reused / one new chunk. Existing workflows and stored Takes are unchanged.
|
||||
Publication and asset integrity are verified separately; see docs/RELEASE_NOTES_V3911.md.
|
||||
|
||||
## 3.9.10 — Spectrum reuse and Reference assignment display
|
||||
|
||||
Normalize Spectrum CRLF source auditing and add fixed Python 3.12 profiles while
|
||||
|
||||
Vendored
+31
-5
@@ -1,14 +1,40 @@
|
||||
# ComfyUI-H3-Continuum 3.9.10 — V3.9
|
||||
# ComfyUI-H3-Continuum 3.9.11 — V3.9
|
||||
|
||||
Generate long-form MiniMax H3 video and audio in chunks, review each result,
|
||||
retry a section, and continue from compatible saved Takes.
|
||||
**V3.9 is the current workflow; V3.8X2 remains available separately.**
|
||||
|
||||
[Download v3.9.10](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/download/v3.9.10/ComfyUI-H3-Continuum-v3.9.10.zip) ·
|
||||
[Release notes](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/tag/v3.9.10) ·
|
||||
[Checksums](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/download/v3.9.10/SHA256SUMS.txt) ·
|
||||
[Download v3.9.11](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/download/v3.9.11/ComfyUI-H3-Continuum-v3.9.11.zip) ·
|
||||
[Release notes](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/tag/v3.9.11) ·
|
||||
[Checksums](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/download/v3.9.11/SHA256SUMS.txt) ·
|
||||
[日本語](README_JA.md)
|
||||
|
||||
## 3.9.11 — Spectrum signature stability / Review continuation
|
||||
|
||||
Fix another confirmed cause of false Sampling v6 read-only: repeated imports of
|
||||
unchanged audited Spectrum code can have different marshal encodings. A fixed,
|
||||
Python-specific supplemental audit checks the complete loaded descriptors while
|
||||
preserving the original saved identity. Unknown or modified code remains
|
||||
non-reusable; existing safe v6 Takes keep their compatibility.
|
||||
|
||||
CPU/JS: **2,139 passed / 2 skipped / 2 known Inspector expected failures**.
|
||||
Targeted browser/GPU checks with **Spectrum + Comfy Kitchen Attention** passed:
|
||||
Review buttons enabled, **Chunk 1 preserved / Chunk 2 generated, one reused and
|
||||
one new**, both audio/video outputs fully decoded. Scope: Python 3.13.12,
|
||||
Core 0.42.1, Kitchen 0.2.39, audited local Spectrum, 512×512, 24 fps,
|
||||
two 5-second chunks, 8-step Turbo, first pass only. These are targeted repair
|
||||
checks, not all-provider, quality or performance acceptance.
|
||||
|
||||
Update the existing installation through Manager or replace its custom-node
|
||||
package, **restart ComfyUI and hard-refresh the browser (Ctrl+F5)**. Use a new,
|
||||
unique Run Name with Spectrum and Review Each Chunk to verify Chunk 1 → 2.
|
||||
Keep existing Takes and workflows; old unsafe/v5 Takes are not promoted.
|
||||
|
||||
If a separate Custom Scripts menu thumbnail tries to load MP4 as an image,
|
||||
turn **Settings → Show Image On Menu OFF**. This tested workaround prevents
|
||||
new thumbnail HTTP errors; it is not a Continuum code fix and is not applied
|
||||
automatically. [Full release notes and limits](docs/RELEASE_NOTES_V3911.md).
|
||||
|
||||
## 3.9.10 — Spectrum reuse and Reference assignments
|
||||
|
||||
Fix false Sampling v6 read-only caused by Spectrum source CRLF line endings,
|
||||
@@ -90,7 +116,7 @@ git pull --ff-only origin main
|
||||
If Manager owns your installation, update that copy through Manager.
|
||||
Restart ComfyUI and refresh the browser after updating.
|
||||
Registry review, Manager's selected version and GitHub Releases are separate;
|
||||
the fixed-version links above identify the exact v3.9.9 package.
|
||||
the fixed-version links above identify the exact v3.9.11 package.
|
||||
|
||||
The package declares Python **3.10+** and ComfyUI **0.32.0+**.
|
||||
The minimum declaration is not a GPU acceptance result for every Core version.
|
||||
|
||||
+28
-5
@@ -1,14 +1,37 @@
|
||||
# ComfyUI-H3-Continuum 3.9.10 — V3.9
|
||||
# ComfyUI-H3-Continuum 3.9.11 — V3.9
|
||||
|
||||
MiniMax H3の映像・音声をチャンクに分けて生成し、結果を確認しながら
|
||||
一部分の再生成や、互換性のある保存Takeからの継続ができます。
|
||||
**現在のWorkflowはV3.9です。V3.8X2も別のWorkflowとして保持しています。**
|
||||
|
||||
[v3.9.10本体ZIP](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/download/v3.9.10/ComfyUI-H3-Continuum-v3.9.10.zip) ·
|
||||
[Release](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/tag/v3.9.10) ·
|
||||
[チェックサム](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/download/v3.9.10/SHA256SUMS.txt) ·
|
||||
[v3.9.11本体ZIP](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/download/v3.9.11/ComfyUI-H3-Continuum-v3.9.11.zip) ·
|
||||
[Release](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/tag/v3.9.11) ·
|
||||
[チェックサム](https://github.com/ukr8b3g-cmyk/ComfyUI-H3-Continuum/releases/download/v3.9.11/SHA256SUMS.txt) ·
|
||||
[English](README.md)
|
||||
|
||||
## 3.9.11 — Spectrum署名の安定化/Review継続
|
||||
|
||||
監査済みSpectrumを再読込すると、同じコードでもmarshalの表現が変わり、
|
||||
新規Takeが誤って「v6 read-only」になる条件を修正しました。旧監査を優先し、
|
||||
必要な場合だけ固定プロファイルで読込済みコード全体を検査します。
|
||||
正常な既存v6 Takeの署名は維持し、未知・改変コードの再利用拒否は緩めません。
|
||||
|
||||
CPU/JSは **2,139成功/2スキップ/既知Inspector期待失敗2件**。
|
||||
**Spectrum+Comfy Kitchen Attention**のブラウザー/GPU検証ではReviewボタンが有効となり、
|
||||
**Chunk 1保持・Chunk 2生成(再利用1/新規1)**と両出力の映像・音声の全デコードを確認しました。
|
||||
対象はPython 3.13.12、Core 0.42.1、Kitchen 0.2.39、監査済みローカルSpectrum、
|
||||
512×512・24fps・5秒×2・8-step Turbo・First Passのみです。
|
||||
全構成、画質、速度の受入を意味するものではありません。
|
||||
|
||||
Managerまたは既存custom-nodeフォルダーの更新後、**ComfyUIを再起動し、Ctrl+F5でブラウザー更新**。
|
||||
一意な新しいRun NameでSpectrumとReview Each Chunkを有効にしてChunk 1→2を確認してください。
|
||||
既存Take・ワークフローは維持します。過去のunsafe/v5 Takeの再利用許可は変更しません。
|
||||
|
||||
別拡張Custom ScriptsのメニューがMP4を画像として取得してHTTPエラーになる場合は、
|
||||
**Settingsで「Show Image On Menu」をOFF**にする回避方法を確認済みです。
|
||||
Continuumのコード修正ではなく、設定を自動変更する更新でもありません。
|
||||
[詳細・検証範囲](docs/RELEASE_NOTES_V3911.md)。
|
||||
|
||||
## 3.9.10 — Spectrum再利用とReference割り当て表示
|
||||
|
||||
SpectrumソースのCRLF改行でSampling v6 read-onlyになる判定を修正し、対応済みの
|
||||
@@ -82,7 +105,7 @@ git pull --ff-only origin main
|
||||
Managerで導入した場合は、そのコピーをManagerから更新してください。
|
||||
更新後はComfyUIを再起動し、ブラウザーを再読込します。
|
||||
Registry審査・Managerが選択する版・GitHub Releaseの状態は別です。
|
||||
正確なv3.9.9を使う場合は、冒頭の固定版リンクを参照してください。
|
||||
正確なv3.9.11を使う場合は、冒頭の固定版リンクを参照してください。
|
||||
|
||||
パッケージの宣言上の最低要件は**Python 3.10以降・ComfyUI 0.32.0以降**です。
|
||||
この最低要件の宣言だけで、すべてのCore版でのGPU動作確認を意味するものではありません。
|
||||
|
||||
+15
-12
@@ -1,11 +1,11 @@
|
||||
ce319f06573b0b53709bae56d9b9ee0b3f4180eba961d7cbbac9e01e403a589e .comfyignore
|
||||
fa9c99303d1a960db12ae2191cffcfbffe82e25e144eb6d16775c840fec4d573 CHANGELOG.md
|
||||
fe29dafce4a6c5229e7e3aef1f946afba2346015702ed8cdda9927a80b6e65f3 INSTALL_JA.txt
|
||||
a42a85fb4dda2d4100c0f87d9836429e51aad187c8d07c8338360a3016a779dc .comfyignore
|
||||
c7765c1229960ae75685a8a557ccfe8cf1b58d843f1fdec29d165ddc011e7217 CHANGELOG.md
|
||||
53f8300410cffd775b059f22e582e97af162d9f1b2d0ac69ad44e7a5a991ac4f INSTALL_JA.txt
|
||||
c44abbd789091bbead01250dbd5453e60539d2665c69f162335fdbd2936019c2 LICENSE
|
||||
656e417909695c5dcabf134b6f3240c44bd02bb2e33881b5247efd345cb932c2 PACKAGE_INFO_JA.txt
|
||||
57fa9ad77ab5b1d2da6ec43f7ba19118e253cb4a959b758b246755471df15591 PACKAGE_VALIDATION.txt
|
||||
da45eeb9f4950777bb63974cbf1d77856b287b05e3466be63571f2ad4561f12e README.md
|
||||
eed26374c7de5e9e19396836e0270fb46f37f3302dfd6f5533c8d703741cbf0f README_JA.md
|
||||
5bd811b25eaa7e3906718630bedad1b171ee1d47b4957d55f61e0ad5c7115261 PACKAGE_INFO_JA.txt
|
||||
c8b3ebfb8ac181e51ce62a16ec52a24ed97148eb1a784ea23fc4073d59a9e679 PACKAGE_VALIDATION.txt
|
||||
3d65caf035b56a6acffb006f40cde72f0ef62b66c14795c2252c9c67cbf9c88f README.md
|
||||
4d4bc762f339d64ebffe3cc4c79f520828b79d90d3a1933f96ed030d51aeacbb README_JA.md
|
||||
0dbe8a5f71c92f3523942343b40787104c8b96781461ba3ba82934a6bdbe5834 THIRD_PARTY_NOTICES.md
|
||||
02ea0951ce2e7ac2d5f3bbf02c596a9f9ea8adcdf2a113dca4c8db3cc19c36b3 __init__.py
|
||||
7fd122ff08232e114a6ef32171217ea6324e980eb7257d560c466b8177a3d3ec audio_compat.py
|
||||
@@ -19,7 +19,7 @@ cf255b8a635471229aebadc926acfdcacb65963adbcb9e0f9505d04eada2c6b5 continuation.p
|
||||
c2b44e3caed54c894556af547cd800328ed287a8cc90e0b5031f34bd6bd2224b decode_cache/nodes.py
|
||||
986cc7a3dc153ff1b41c427a86756e505ea6e17d8b065df1ab15b8ff904f090e decode_cache/service.py
|
||||
630ba3d2183964444c4341a8df507f7af61dac6a8e5aaca8cf387a5376d49f27 decode_cache/store.py
|
||||
44377cbac9131daa3d1c88ccc154c325257767f4c52f3181f61525c7eae00531 docs/ISSUE31_SAMPLING_SIGNATURES.md
|
||||
edf01a9c718ad1c3825c6036c4c3f76237c51c35dc12a1d83e435e722cbd7ef3 docs/ISSUE31_SAMPLING_SIGNATURES.md
|
||||
b7ecd069d803cae7f86ad0ab89df144b5a5b157c168c73ee2962b47234d4ec0c docs/KJ_PREVIEW_OVERRIDE_V398.md
|
||||
77c225d1e49e06d00b04acf811177c9a4317e792d4bfe92df539de99420c3563 docs/LOADER_PERSISTENCE_REPAIR.md
|
||||
b30fe4640359bebfcdeeb94dbeec94cb346c8e3646509e1dcdb87d7021ba04ff docs/N2B_BRANCH_PROVENANCE_CONTRACT_V1.md
|
||||
@@ -27,6 +27,7 @@ bce0337cce903938b6b8df7f52c5c67e2d0ee14599c693687e4180debc606db2 docs/README_HI
|
||||
9ee92cdd3783e61e3bc71b99d5c0df7dd0a9f129c8a6b37701d7001a4f745e77 docs/README_HISTORY_JA.md
|
||||
cebf8462681796df807987d8afef2c78abb0953b54b2f5dcd12d583bde0ec806 docs/REGENERATE_INTENT_V396.md
|
||||
bbe74f802339b758d8874900e2617dd1a46844a58e0f872d95f34b9b40ba20ed docs/RELEASE_NOTES_V3910.md
|
||||
353c82a1350985c8a549fbf4dc46fc5c678f7dd8344318d00fe860fa39acf6cc docs/RELEASE_NOTES_V3911.md
|
||||
49d02b7650d4a542307c9d4189dc217ba1db54c4eac959cc2e2a1ce57b501ae3 docs/RELEASE_NOTES_V399.md
|
||||
91ee4adf828415e84e2f413e3a4e20dc16356f139e8ef1f6756f584cad04f3c8 docs/REVIEW_RESTORATION_REPAIR.md
|
||||
4546ffb0cbaf270c52d1900908e46bfa2d3c0e2d0035ae5694680890e89aedd8 docs/TEMPORARY_STORAGE_JA.md
|
||||
@@ -62,24 +63,26 @@ bf0556b076dbaca67c3405a7d86c333ca7fdf3d4381529b0a9edc906519943e9 guide_timeline
|
||||
12bf572a65d57bbc9a72b459f29691c2057768f4fb7a74f9db87f4775e995bda install_windows.ps1
|
||||
139546ec1ff459945aa89b50f74b5ee69f62a0e07bbddfcae06936091a409a83 layout_adapter.py
|
||||
d3e213005670e94dee33a240349a4d245cf9a3b6602099f11ed30cf5a32e2c21 media.py
|
||||
7ad8ea8859b666cb2771f19795ca8c04ab7aafb5c20cff4e80ad17295429ded3 metadata.ini
|
||||
1e6514845702225b36d6f993c4e37924d629449365cf67370829df3c7ffd5db6 metadata.ini
|
||||
d7e613e2cc24110213b477bdd1d390234a41f2af3b1ed006a809066d71d658eb model_patch.py
|
||||
ecb65a5dbf9e1683c5a3cadd82daaea3a90a2b776f6ebabfbe8b07aa93177422 nodes.py
|
||||
6ba95639b52219fc37b4f51d52cf6879f75c7418a8d8815b3725b3f201a4f1e6 preview_override_provider_public_v1.json
|
||||
d4cf474cbd1a98867075c45b53b2ab4d47752bb11611c916bac2a6831ca82c0b preview_override_provider_v1.json
|
||||
3b7e18bd2ba50fd6c8fe71c58ca79a0bf752f362ed78b7357ce1998efc934b4b preview_override_signature.py
|
||||
b470819f16fc179654dc1600721a63f0a5a14e777f4c004d574b499da6886ba5 public_api.py
|
||||
dc56e02aa94561076bee8a836c268c0e45a8b5248f3b40108bcb740252965ec6 pyproject.toml
|
||||
4dcda05d4e3a57e7d0941876329425bf49bed01d0be08d5de05e17973bb6cc31 pyproject.toml
|
||||
caa572ea65dafc86850db99f52433d360ac9c4ab36b854292a3dccd5ba32dc76 reference.py
|
||||
9539f5cb9fb695841073fa58d9246d5a7410bc372f6cd340378185004dfaf978 reference_audio.py
|
||||
5cb9bfd6810d3a93a637451980a4cc5c1436e5b84cfd1c7a111cd192e876351b reference_video.py
|
||||
467edb2c188d024c2392aafe7423b3f835e16b10f570da76e2f7dda8a962c1c5 requirements.txt
|
||||
985e7647bd2626af5df68ca702cf6ebb38cc09f3ffe0e239d3e8ef256352a5d8 run_storage.py
|
||||
1227d406008ee1463d3b8f0ac50adad1b3de2062186affef751b5627d978c866 spectrum_code_audit_v1_py312.json
|
||||
631807b6d9e009e60736985a4f943c4214502be3e80275410da481cab02a4ad0 spectrum_code_audit_v1_py313.json
|
||||
8f786989af6339be8cec8f2bf602da89344cf96202d29c980af5c07175eea3d3 spectrum_provider_v029.json
|
||||
8cdf37b165eb68462dd7accf4a1fd63043f02479f9c377778fb9d4b6feaddcc6 spectrum_provider_v029_py312.json
|
||||
0efc8d65cb6f59042457ad843fe1b77a4bee45e59d3732f5c83fbc75a31ae77b spectrum_provider_v1.json
|
||||
71801234f6d2e08b660803194653821ca648e5b9a0d0c3f138bc7ccc6fe9d8c6 spectrum_provider_v1_py312.json
|
||||
448213ae7670a6e231f833ca1901ca295eb5f6bfb8983ca37703bdb3fdf15f99 spectrum_signature.py
|
||||
81608cb2dff48e68b960dca2b58ce0bceb270197d9f1f44f906e3e8286bbc7eb spectrum_signature.py
|
||||
3a359a0467725cc292ccb4c86cf0c3d30bb6a114d01f5345792b09ea3d45441d state.py
|
||||
6056de6c0a5322a8a51ba5a114538dca2ef67788cd1afba10fedd483b95f6afa state_io.py
|
||||
660a9df28c7d62ad383cda5514c48c7efcb3576f435af023040116d533a56563 storage_api.py
|
||||
@@ -155,7 +158,7 @@ d0a004aa3030c8adaa5ea788f9acc758fcb4a556f203f9a3f63fa4e4b5772063 v3/sampling_en
|
||||
26b13614ba0a5fd8b192a106c9503b2f4b6fe7f9268a0fcb0f544979a49cab34 v3/video_adapter_nodes.py
|
||||
2f07ace1462644f0bee553827b3571535de4d0c2d9ef847bd9e0ca73a4eed5cb v3/video_seam.py
|
||||
4178dcfa442abdb06ce276e05bd7bcbaa6da28469ba5e57d3da3c663de4e4a9d v3/video_seam_v35.py
|
||||
e124ded4bc8ddbf7b432c80d9900e40ee34214327bc6d83bd9fcf95cb55e7169 version.py
|
||||
755a4d8b3ce66e94efea1a23e45ff6702042931c417c337ed35273c7e19e7c12 version.py
|
||||
b935ad3bb729948bb3890ce967b0ecbef737a5e51ddfc47a0060fc20aa78dcda video_reference_modes.py
|
||||
685df8e0fa23e3663ab31da1e4470cd19bdaa0dc16362cb606e874d9d6153c2c web/decode_cache_helper.js
|
||||
fefafd4550511d80bd85ade46a0476f0cf3de13ddb94a908dff6b175f2a0e199 web/easy_bypass_toggle.js
|
||||
|
||||
Vendored
+25
@@ -1,5 +1,30 @@
|
||||
# Public development log
|
||||
|
||||
## 3.9.11 — Spectrum loaded-code audit stability
|
||||
|
||||
Retain the legacy marshal audit and its four metadata files. If only function
|
||||
code digests differ, compare complete loaded descriptors using fixed typed-code
|
||||
profiles for Python 3.12/3.13 and the two already-audited provider source sets.
|
||||
Validate profile provenance against the original metadata digest and full source
|
||||
set; do not generate profiles, import providers or learn identities at runtime.
|
||||
The supplemental audit never enters the stored contract. Preserve safe v6 Take
|
||||
reuse and unsafe/v5 read-only history, with no workflow or storage migration.
|
||||
Targeted browser/GPU checks passed with audited local Spectrum + Kitchen
|
||||
Attention: enabled Review buttons, Chunk 1 retained, Chunk 2 generated, one
|
||||
reused / one new; both AV outputs fully decoded. Generation completed without
|
||||
execution errors or OOM. Separate third-party MP4 menu-thumbnail HTTP errors
|
||||
were avoided by disabling Show Image On Menu, without product code changes.
|
||||
See docs/RELEASE_NOTES_V3911.md for exact scope and remaining limits.
|
||||
|
||||
Full CPU/JS gate: 2,139 passed / 2 skipped / 2 existing Inspector expected failures,
|
||||
with zero unexpected failures or CUDA initialization attempts. Python 3.12
|
||||
component checks: 155 passed / 1 skip, excluding 21 tests tied to the older
|
||||
Core's independent Attention limitation. Real-Core observer/storage fixtures
|
||||
matched 53 expected reuse/refusal decisions and the production JS predicate.
|
||||
Four normal pre-repair v6 Takes retained full contracts and reused Chunk 1;
|
||||
unsafe/v5 histories stayed read-only. Both supplemental profiles reproduced
|
||||
byte-for-byte with reverse import order. Compile/offline registration passed.
|
||||
|
||||
## 3.9.9 — KJ Preview Override / Review continuation
|
||||
|
||||
Fix new-Run v6 read-only with the separately audited upstream KJ profile, and
|
||||
|
||||
@@ -1,5 +1,66 @@
|
||||
# Issue #31 — Attention and Spectrum reuse signatures (3.9.5)
|
||||
|
||||
## 3.9.11 — stable supplemental loaded-code audit
|
||||
|
||||
Repeated imports of unchanged audited Spectrum source can produce different
|
||||
marshal bytes for equivalent normalized code objects, observed with Python
|
||||
3.13.12. This can mark a new Run read-only even though no source or settings
|
||||
changed. It is a signature observation failure; the reporter's exact environment
|
||||
has not been reproduced.
|
||||
|
||||
The original audit remains the first path. Only differences in function
|
||||
`code_sha256` fields can trigger a supplemental audit. Fixed
|
||||
`spectrum_code_audit_v1_py312.json` and `spectrum_code_audit_v1_py313.json`
|
||||
profiles check all loaded provider module descriptors: typed code fields and
|
||||
nested constants, defaults, keyword defaults, closures, class members and
|
||||
provider references. Float/complex bits and constant types are preserved.
|
||||
Source hashes, exact Python file sets, module provenance and runtime-state
|
||||
checks remain required. Unknown constants or missing/invalid profiles reject
|
||||
reuse; independent Attention failures remain failures.
|
||||
|
||||
The profiles are bound to the original metadata digest and complete audited
|
||||
source set. They are generated offline with `tools/build_spectrum_code_audit.py`,
|
||||
using explicit audited provider roots; opposite provider/module import orders
|
||||
must produce identical bytes. The runtime never builds a profile, executes
|
||||
provider functions, imports Spectrum or learns an approval from current code.
|
||||
|
||||
All four legacy provider metadata files and the returned persistent identity
|
||||
remain unchanged. Normal pre-repair v6 Takes retain compatibility. Stored unsafe
|
||||
Takes and v5 history stay readable and read-only; the repair never edits their
|
||||
flags or manifests. Use a new Run when checking a previously rejected setup.
|
||||
Sampling v6, Graph v4, Run Storage, public inputs and shipped workflows are
|
||||
unchanged. Targeted browser/GPU Review continuation passed with the audited
|
||||
local Spectrum provider and Kitchen Attention: Chunk 1 retained, Chunk 2
|
||||
generated, one reused / one new, both AV outputs fully decoded. The supplemental
|
||||
path is proven by CPU reproduction; its use during GPU execution is not traced.
|
||||
See RELEASE_NOTES_V3911.md for environment, limits and the separate third-party
|
||||
MP4 menu-thumbnail workaround.
|
||||
|
||||
CPU/JS validation: **2,139 passed / 2 skipped / 2 known Inspector expected
|
||||
failures**, zero unexpected failures or CUDA initialization attempts. This
|
||||
includes the existing 90-case Queue JS fixture. An additional 53 real-Core
|
||||
observer/storage cases matched the production UI's read-only predicate: 30
|
||||
reusable and 23 intentionally rejected. These use tiny CPU fixtures and actual
|
||||
Core function references; no Attention kernel or H3 inference runs. Four normal
|
||||
v6 Takes saved by pre-repair code kept identical full contracts and reused
|
||||
Chunk 1 without changing their source files. Existing tests also preserve
|
||||
unsafe/v5 history and reject reuse through the storage entry points.
|
||||
|
||||
Python 3.12 component coverage passed 155 tests with one skip; 21 tests tied to
|
||||
the older Core's separate Attention limitation were excluded. The storage matrix
|
||||
still checks that environment's eight Kitchen cases remain non-reusable for
|
||||
its unobservable helper. This repair does not resolve that independent failure.
|
||||
|
||||
### 日本語 — 3.9.11の補助監査
|
||||
|
||||
同じ監査済みSpectrumを再読込した際、同等のコードでもmarshalの保存表現が変わり、
|
||||
再利用不可になる条件へ対応します。旧監査を優先し、関数のコードハッシュだけが
|
||||
異なる場合に限り、固定プロファイルでコードと読込済み記述全体を再検査します。
|
||||
未知のコード・既定値やclosureの変更・追加状態の拒否は維持します。
|
||||
旧署名を変更せず、正常な既存v6 Takeの互換性を保ちます。過去のunsafe/v5 Takeを
|
||||
自動的に再利用可能にはしません。対象を限定したSpectrum+Kitchenの実ブラウザー・GPU検証で、
|
||||
Review操作とChunk 1保持/Chunk 2生成を確認しました。詳細と制約はRELEASE_NOTES_V3911.mdを参照。
|
||||
|
||||
## 3.9.10 — Spectrum audit portability
|
||||
|
||||
The repair treats source CRLF and LF line endings as equivalent
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
# v3.9.11 — Spectrum signature stability / Review continuation
|
||||
|
||||
## What changed
|
||||
|
||||
Fix an additional confirmed cause of false Sampling v6 read-only. Repeated
|
||||
imports of unchanged audited Spectrum source can produce different marshal
|
||||
bytes for equivalent normalized code objects, reproduced on Python 3.13.12.
|
||||
The legacy audit remains first. Only differences confined to function code
|
||||
digests can invoke fixed Python 3.12/3.13 supplemental profiles; all loaded
|
||||
descriptors, source hashes, provenance, defaults, closures and runtime state
|
||||
must still pass. Unknown or modified code remains non-reusable.
|
||||
|
||||
The original four provider metadata files and persisted Sampling v6 identity
|
||||
are unchanged. Four genuine pre-repair safe v6 Take fixtures retained identical
|
||||
full contracts and reused their saved Chunk 1. Old unsafe/v5 Takes stay readable
|
||||
and read-only; no flags or manifests are rewritten. Public node IDs, inputs,
|
||||
widget order, Graph v4, Run Storage and official workflow JSON/ZIP bytes remain
|
||||
unchanged. No provider import, profile generation or identity learning occurs
|
||||
in the runtime audit.
|
||||
|
||||
## Validation
|
||||
|
||||
- Full CPU/JavaScript gate: **2,139 passed / 2 skipped / 2 known Inspector
|
||||
expected failures / zero unexpected failures**, zero CUDA initialization.
|
||||
Existing 90-case Queue JS coverage is included, not an additional total.
|
||||
- Targeted Python 3.13: 212 passed / 1 skipped. Python 3.12.10 component gate:
|
||||
155 passed / 1 skipped / 21 deselected. Those 21 depend on an independent
|
||||
older-Core Attention observation limitation and are not accepted here.
|
||||
- Real-Core CPU observer/storage fixtures matched 53 expected decisions
|
||||
(30 reusable, 23 intentionally refused) and the production JS predicate.
|
||||
These fixtures execute no Attention kernels or H3 inference. Old unsafe/v5
|
||||
refusal and changed/unknown-code rejection remain tested.
|
||||
- Both supplemental profiles regenerated byte-for-byte with reversed provider
|
||||
and module import order. Compilation and offline twelve-node registration
|
||||
passed. Legacy metadata and official workflow bytes remained unchanged.
|
||||
- **Browser + GPU:** Review buttons enabled with Spectrum + Comfy Kitchen
|
||||
Attention. The browser's Continue From Here action retained **Chunk 1** and
|
||||
generated **Chunk 2**, **one reused / one new**. Both new Takes were reusable,
|
||||
parent links were correct, and the saved Chunk 1 raw/Take/manifest stayed
|
||||
unchanged. Two Queues completed without execution errors or OOM; both MP4s
|
||||
fully decoded video and audio (5 s / 120 frames; 10 s / 240 frames).
|
||||
|
||||
GPU scope: Windows, Python 3.13.12, ComfyUI Core 0.42.1, PyTorch 2.14.1+cu130,
|
||||
Comfy Kitchen 0.2.39, RTX 5060 Ti 16 GB, audited installed 44-file local Spectrum
|
||||
provider ON, Kitchen launch option and ModelAttentionBackend selected, Sage OFF.
|
||||
T2VA 512×512, 24 fps, two 5-second chunks, 8-step Turbo, Euler/simple, first pass
|
||||
only. Audited KJ Preview Override was enabled with optional VAEs disconnected
|
||||
and Tiny VAE none. This tests the repaired product payload before release
|
||||
branding; it is not a fresh GPU run of the published tag.
|
||||
|
||||
No reporter-exact reproduction, all-provider GPU matrix, Second Pass acceptance,
|
||||
subjective visual/audio quality, benchmark or CUDA-kernel return tracing is
|
||||
claimed. The supplemental path was demonstrated by CPU reproduction; whether it
|
||||
was invoked in the live GPU run was not traced. Older Core 0.39.2 with Kitchen
|
||||
0.2.37 has a separate unobservable prequantize_int8_attention helper; that setup
|
||||
remains non-reusable and is not fixed by this release.
|
||||
|
||||
## Update and check
|
||||
|
||||
Update the existing copy through ComfyUI Manager, or replace the custom-node
|
||||
package in `ComfyUI/custom_nodes/ComfyUI-H3-Continuum`. For a Git installation,
|
||||
update that same folder from main. Avoid duplicate installations. **Fully restart
|
||||
ComfyUI and hard-refresh the browser with Ctrl+F5.** Keep existing Takes,
|
||||
workflows and model files.
|
||||
|
||||
Use a **new, unique Run Name**, enable Spectrum and Review Each Chunk, and
|
||||
generate Chunk 1. Select its new Take in Render History; check Use This Take /
|
||||
Continue From Here, then continue to Chunk 2. Existing read-only Takes are not
|
||||
automatically made reusable. No workflow rewiring or Take deletion is required.
|
||||
|
||||
## Separate MP4 menu-thumbnail workaround
|
||||
|
||||
Custom Scripts' Show Image On Menu can request an MP4 through Core's image
|
||||
preview endpoint, causing an HTTP error despite successful generation and valid
|
||||
video files. If encountered, search Settings for **Show Image On Menu** and
|
||||
turn it **OFF**. A browser load/save of an existing MP4 after this setting change
|
||||
produced **zero new thumbnail HTTP errors**. The test performed no new inference.
|
||||
This is a separately verified setting workaround, not a Continuum/Core/Custom
|
||||
Scripts code change; this update does not alter the setting automatically.
|
||||
|
||||
## 日本語
|
||||
|
||||
同じ監査済みSpectrumを再読込した際、コードが同等でもmarshalの保存表現が変わり、
|
||||
新規Takeが誤ってv6 read-onlyになる条件を修正しました。旧監査を優先し、コードハッシュ
|
||||
だけが異なる場合に限り固定プロファイルで全記述を照合します。未知・改変コードの
|
||||
再利用拒否、元のSampling v6署名、正常な既存Takeの互換性を維持します。
|
||||
過去のunsafe/v5 Takeを自動的に再利用可能にせず、既存Take・公式ワークフローを変更しません。
|
||||
|
||||
CPU/JSは2,139成功・2スキップ・既知Inspector期待失敗2件、予期しない失敗0。
|
||||
Spectrum+Kitchen Attentionの対象を限定したブラウザー/GPU検証ではReviewボタンが
|
||||
有効となり、Chunk 1保持・Chunk 2生成(再利用1/新規1)と両出力の映像・音声の全デコードを確認。
|
||||
検証は上記構成の修正版payloadに対するもので、公開タグのGPU再実行、全構成、画質・速度、
|
||||
報告者環境の完全再現を保証するものではありません。旧Core/Kitchenの独立した制約も残ります。
|
||||
|
||||
Managerまたは既存custom-nodeフォルダーを更新し、ComfyUIを完全に再起動、Ctrl+F5で更新。
|
||||
一意な新しいRun NameでSpectrumとReview Each Chunkを有効にしてChunk 1→2を確認してください。
|
||||
MP4メニューサムネイルの別拡張由来HTTPエラーは、SettingsのShow Image On MenuをOFFに
|
||||
する回避方法を確認済みです。コード修正や設定の自動変更は含みません。
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
[project]
|
||||
name = H3 Continuum
|
||||
version = 3.9.10
|
||||
version = 3.9.11
|
||||
description = Native MiniMax H3 masked AV continuation, Second Pass, and disk-backed assembly.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "comfyui-h3-continuum"
|
||||
version = "3.9.10"
|
||||
version = "3.9.11"
|
||||
description = "Integrated N-chunk continuation for ComfyUI native MiniMax H3 video and audio"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+96
-11
@@ -11,6 +11,7 @@ import inspect
|
||||
import json
|
||||
import marshal
|
||||
import math
|
||||
import struct
|
||||
import sys
|
||||
import types
|
||||
from pathlib import Path
|
||||
@@ -92,19 +93,19 @@ def _relative_name(value):
|
||||
return module + "." + getattr(value, "__qualname__", type(value).__qualname__)
|
||||
|
||||
|
||||
def _callable_value(value, seen=(), provider_prefix=None):
|
||||
def _callable_value(value, seen=(), provider_prefix=None, *, code_digest=None):
|
||||
if inspect.ismethod(value):
|
||||
owner = value.__self__
|
||||
state = {"class": _relative_name(owner)} if inspect.isclass(owner) else {
|
||||
"type": _relative_name(type(owner)), "state": _scalar(vars(owner))}
|
||||
return {"bound_method": _callable_value(value.__func__, seen, provider_prefix), "owner": state}
|
||||
return {"bound_method": _callable_value(value.__func__, seen, provider_prefix, code_digest=code_digest), "owner": state}
|
||||
if inspect.isfunction(value):
|
||||
if id(value) in seen:
|
||||
return {"reference": _relative_name(value)}
|
||||
seen = (*seen, id(value))
|
||||
return {"function": _relative_name(value), "code_sha256": _code_digest(value.__code__),
|
||||
return {"function": _relative_name(value), "code_sha256": (code_digest or _code_digest)(value.__code__),
|
||||
"defaults": _scalar(value.__defaults__), "kwdefaults": _scalar(value.__kwdefaults__),
|
||||
"closure": [_callable_value(cell.cell_contents, seen, provider_prefix) for cell in (value.__closure__ or ())]}
|
||||
"closure": [_callable_value(cell.cell_contents, seen, provider_prefix, code_digest=code_digest) for cell in (value.__closure__ or ())]}
|
||||
if inspect.isclass(value):
|
||||
return {"class": _relative_name(value)}
|
||||
if value is object.__setattr__:
|
||||
@@ -127,17 +128,17 @@ def _callable_value(value, seen=(), provider_prefix=None):
|
||||
return _scalar(value)
|
||||
|
||||
|
||||
def _module_callables(module):
|
||||
def _module_callables(module, *, code_digest=None):
|
||||
values, members, references = {}, {}, {}
|
||||
prefix = module.__name__.split(".comfyui_spectrum_h3", 1)[0] + ".comfyui_spectrum_h3"
|
||||
for name, value in sorted(vars(module).items()):
|
||||
owner = getattr(value, "__module__", "")
|
||||
if owner != module.__name__:
|
||||
if ".comfyui_spectrum_h3" in owner and (inspect.isfunction(value) or inspect.isclass(value)):
|
||||
references[name] = _callable_value(value, provider_prefix=prefix)
|
||||
references[name] = _callable_value(value, provider_prefix=prefix, code_digest=code_digest)
|
||||
continue
|
||||
if inspect.isfunction(value):
|
||||
values[name] = _callable_value(value, provider_prefix=prefix)
|
||||
values[name] = _callable_value(value, provider_prefix=prefix, code_digest=code_digest)
|
||||
elif inspect.isclass(value):
|
||||
node_classes = tuple(getattr(module, "NODE_CLASS_MAPPINGS", {}).values())
|
||||
registration = {"RELATIVE_PYTHON_MODULE"} if value in node_classes else set()
|
||||
@@ -148,16 +149,92 @@ def _module_callables(module):
|
||||
elif isinstance(method, property):
|
||||
method = method.fget
|
||||
if inspect.isfunction(method):
|
||||
values[name + "." + member] = _callable_value(method, provider_prefix=prefix)
|
||||
values[name + "." + member] = _callable_value(method, provider_prefix=prefix, code_digest=code_digest)
|
||||
return {"callables": values, "class_members": members, "provider_references": references}
|
||||
|
||||
|
||||
_CODE_AUDIT_FIELDS = (
|
||||
"co_argcount", "co_posonlyargcount", "co_kwonlyargcount", "co_nlocals", "co_stacksize", "co_flags",
|
||||
"co_code", "co_consts", "co_names", "co_varnames", "co_freevars", "co_cellvars", "co_name", "co_qualname",
|
||||
"co_linetable", "co_exceptiontable",
|
||||
)
|
||||
|
||||
|
||||
def _audit_json(value):
|
||||
return json.dumps(value, ensure_ascii=True, sort_keys=True, separators=(",", ":"))
|
||||
|
||||
|
||||
def _code_audit_value(value):
|
||||
kind = type(value)
|
||||
if value is None:
|
||||
return ["none"]
|
||||
if value is Ellipsis:
|
||||
return ["ellipsis"]
|
||||
if kind is bool:
|
||||
return ["bool", value]
|
||||
if kind is int:
|
||||
return ["int", str(value)]
|
||||
if kind is str:
|
||||
return ["str", value]
|
||||
if kind is bytes:
|
||||
return ["bytes", value.hex()]
|
||||
if kind is float:
|
||||
return ["float64", struct.pack(">d", value).hex()]
|
||||
if kind is complex:
|
||||
return ["complex", _code_audit_value(value.real), _code_audit_value(value.imag)]
|
||||
if kind is tuple:
|
||||
return ["tuple", [_code_audit_value(item) for item in value]]
|
||||
if kind is frozenset:
|
||||
return ["frozenset", sorted((_code_audit_value(item) for item in value), key=_audit_json)]
|
||||
if kind is types.CodeType:
|
||||
return ["code-v1", {name: _code_audit_value(getattr(value, name)) for name in _CODE_AUDIT_FIELDS}]
|
||||
raise ValueError("unsupported code audit constant: " + kind.__name__)
|
||||
|
||||
|
||||
def _stable_code_digest(code):
|
||||
# marshal can encode equivalent objects differently after another import.
|
||||
# Audit explicit typed fields without changing the persisted legacy digest.
|
||||
payload = "H3-SPECTRUM-CODE-AUDIT/1\n" + _audit_json(_code_audit_value(code))
|
||||
return hashlib.sha256(payload.encode("ascii")).hexdigest()
|
||||
|
||||
|
||||
def _same_except_code_digest(actual, expected):
|
||||
if type(actual) is not type(expected):
|
||||
return False
|
||||
if isinstance(actual, dict):
|
||||
if actual.keys() != expected.keys():
|
||||
return False
|
||||
return all((key == "code_sha256" and "function" in actual) or
|
||||
_same_except_code_digest(actual[key], expected[key]) for key in actual)
|
||||
if isinstance(actual, list):
|
||||
return len(actual) == len(expected) and all(_same_except_code_digest(a, b) for a, b in zip(actual, expected))
|
||||
return actual == expected
|
||||
|
||||
|
||||
def _verify_stable_code_audit(source, metadata_content, loaded):
|
||||
minor = list(sys.version_info[:2])
|
||||
if minor not in ([3, 12], [3, 13]):
|
||||
raise ValueError("unsupported provider Python runtime")
|
||||
path = Path(__file__).with_name(f"spectrum_code_audit_v1_py{minor[0]}{minor[1]}.json")
|
||||
audit = json.loads(path.read_bytes())
|
||||
if audit.get("format_version") != 1 or audit.get("python_minor") != minor:
|
||||
raise ValueError("unsupported Spectrum code audit profile")
|
||||
original_digest = hashlib.sha256(metadata_content).hexdigest()
|
||||
profile = audit.get("profiles", {}).get(original_digest)
|
||||
if not profile or profile.get("source_sha256") != source or set(profile.get("modules", {})) != set(source):
|
||||
raise ValueError("Spectrum code audit provenance differs")
|
||||
for filename, module in loaded.items():
|
||||
if _module_callables(module, code_digest=_stable_code_digest) != profile["modules"][filename]:
|
||||
raise ValueError("provider stable implementation differs: " + filename)
|
||||
|
||||
|
||||
def _provider(prefix, folder):
|
||||
source, metadata_file = _select_source_profile(folder)
|
||||
metadata_file = _runtime_metadata_file(metadata_file)
|
||||
metadata_content = Path(__file__).with_name(metadata_file).read_bytes()
|
||||
metadata = json.loads(metadata_content)
|
||||
constants = {}
|
||||
constants, loaded = {}, {}
|
||||
needs_code_audit = False
|
||||
for filename, digest in sorted(source.items()):
|
||||
path = folder / filename
|
||||
if _source_digest(path) != digest:
|
||||
@@ -167,13 +244,21 @@ def _provider(prefix, folder):
|
||||
continue
|
||||
if Path(module.__file__).resolve() != path.resolve():
|
||||
raise ValueError("provider module provenance differs")
|
||||
if _module_callables(module) != metadata["modules"].get(filename):
|
||||
raise ValueError("provider loaded implementation differs: " + filename)
|
||||
actual = _module_callables(module)
|
||||
expected = metadata["modules"].get(filename)
|
||||
if actual != expected:
|
||||
if not _same_except_code_digest(actual, expected):
|
||||
raise ValueError("provider loaded implementation differs: " + filename)
|
||||
needs_code_audit = True
|
||||
loaded[filename] = module
|
||||
if path.stem in {"sampling", "runtime", "config", "forecast", "model_aware"}:
|
||||
for name, value in sorted(vars(module).items()):
|
||||
if name.isupper() and name not in {"LOG", "_PROFILE_CACHE", "_PROFILE_CACHE_LOCK"} and not inspect.isclass(value) and not callable(value):
|
||||
try: constants[path.stem + "." + name] = _scalar(value)
|
||||
except ValueError as exc: raise ValueError(path.stem + "." + name + ": " + str(exc)) from exc
|
||||
if needs_code_audit:
|
||||
_verify_stable_code_audit(source, metadata_content, loaded)
|
||||
# Supplemental audits never enter the persistent generation identity.
|
||||
# The audited source set, not the current subset of lazy imports, is identity.
|
||||
return {"source_sha256": source,
|
||||
"loaded_implementation_contract_sha256": hashlib.sha256(metadata_content).hexdigest(),
|
||||
|
||||
@@ -6,7 +6,7 @@ import tomllib
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
EXPECTED_VERSION = "3.9.10"
|
||||
EXPECTED_VERSION = "3.9.11"
|
||||
|
||||
|
||||
def test_v35_release_metadata_is_consistent():
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
"""Supplemental code audits retain legacy identities and reject altered implementations."""
|
||||
import importlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import types
|
||||
|
||||
import pytest
|
||||
|
||||
from ComfyUI_H3_Continuum_Join import spectrum_signature as adapter
|
||||
from .test_issue31_spectrum_signature import binding, signature, spectrum
|
||||
|
||||
|
||||
def _sample(a, *, b=2):
|
||||
return a + b
|
||||
|
||||
|
||||
@pytest.mark.parametrize("field", adapter._CODE_AUDIT_FIELDS)
|
||||
def test_each_code_field_remains_observable(field):
|
||||
code = _sample.__code__
|
||||
replacements = {
|
||||
"co_argcount": 0, "co_posonlyargcount": 1, "co_kwonlyargcount": 0,
|
||||
"co_nlocals": code.co_nlocals + 1, "co_stacksize": code.co_stacksize + 1,
|
||||
"co_flags": code.co_flags ^ 0x40, "co_code": code.co_code + b"\x09\x00",
|
||||
"co_consts": code.co_consts + ("changed",), "co_names": code.co_names + ("foreign",),
|
||||
"co_varnames": ("other",) + code.co_varnames[1:], "co_freevars": ("foreign",),
|
||||
"co_cellvars": ("foreign",), "co_name": "other", "co_qualname": "other",
|
||||
"co_linetable": code.co_linetable + b"\0", "co_exceptiontable": code.co_exceptiontable + b"\0",
|
||||
}
|
||||
kwargs = {field: replacements[field]}
|
||||
if field == "co_nlocals":
|
||||
kwargs["co_varnames"] = code.co_varnames + ("extra",)
|
||||
assert adapter._stable_code_digest(code.replace(**kwargs)) != adapter._stable_code_digest(code)
|
||||
|
||||
|
||||
def test_constant_bits_and_types_are_preserved():
|
||||
assert adapter._code_audit_value(0.0) != adapter._code_audit_value(-0.0)
|
||||
assert adapter._code_audit_value(True) != adapter._code_audit_value(1)
|
||||
assert adapter._code_audit_value((1,)) != adapter._code_audit_value(frozenset([1]))
|
||||
with pytest.raises(ValueError, match="unsupported code audit constant"):
|
||||
adapter._code_audit_value([])
|
||||
code = _sample.__code__
|
||||
assert adapter._stable_code_digest(code.replace(co_filename="elsewhere", co_firstlineno=999)) == adapter._stable_code_digest(code)
|
||||
|
||||
|
||||
def test_second_import_keeps_complete_legacy_identity(spectrum):
|
||||
before = signature(binding(spectrum))
|
||||
root = Path(spectrum[0].__file__).resolve().parent.parent
|
||||
namespace = types.ModuleType("supplemental_" + spectrum[0].__name__.split('.')[0])
|
||||
namespace.__path__ = [str(root)]
|
||||
sys.modules[namespace.__name__] = namespace
|
||||
prefix = namespace.__name__ + ".comfyui_spectrum_h3"
|
||||
sampling = importlib.import_module(prefix + ".sampling")
|
||||
runtime = importlib.import_module(prefix + ".runtime")
|
||||
config = importlib.import_module(prefix + ".config")
|
||||
item = sampling.SpectrumH3Binding(runtime.SpectrumH3Runtime(config.SpectrumH3Config()))
|
||||
assert signature(item) == before
|
||||
|
||||
|
||||
def test_fallback_returns_original_identity(spectrum, monkeypatch):
|
||||
item = binding(spectrum)
|
||||
before = signature(item)
|
||||
monkeypatch.setattr(adapter, "_code_digest", lambda code: "0" * 64)
|
||||
assert signature(item) == before
|
||||
|
||||
|
||||
@pytest.mark.parametrize("change", ["code", "default", "kwdefault", "member", "runtime"])
|
||||
def test_fallback_does_not_certify_changed_provider(spectrum, monkeypatch, change):
|
||||
item = binding(spectrum)
|
||||
signature(item)
|
||||
monkeypatch.setattr(adapter, "_code_digest", lambda code: "0" * 64)
|
||||
assert adapter.spectrum_binding_signature(item)[1]
|
||||
function = spectrum[1].SpectrumH3Runtime.__init__
|
||||
if change == "code":
|
||||
monkeypatch.setattr(function, "__code__", function.__code__.replace(co_consts=function.__code__.co_consts + ("changed",)))
|
||||
elif change == "default":
|
||||
monkeypatch.setattr(function, "__defaults__", (12345,))
|
||||
elif change == "kwdefault":
|
||||
monkeypatch.setattr(function, "__kwdefaults__", {"foreign": True})
|
||||
elif change == "member":
|
||||
monkeypatch.setattr(spectrum[1].SpectrumH3Runtime, "foreign", 1, raising=False)
|
||||
else:
|
||||
item.runtime.foreign = True
|
||||
descriptor, safe = adapter.spectrum_binding_signature(item)
|
||||
assert not safe and descriptor.get("unsupported")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("change", ["missing", "malformed", "version", "python", "provenance", "modules"])
|
||||
def test_bad_supplemental_profile_stays_unsafe(spectrum, monkeypatch, change):
|
||||
item = binding(spectrum)
|
||||
signature(item)
|
||||
monkeypatch.setattr(adapter, "_code_digest", lambda code: "0" * 64)
|
||||
assert adapter.spectrum_binding_signature(item)[1]
|
||||
read = Path.read_bytes
|
||||
def replacement(path):
|
||||
if path.name.startswith("spectrum_code_audit_v1_"):
|
||||
if change == "missing":
|
||||
raise FileNotFoundError(str(path))
|
||||
if change == "malformed":
|
||||
return b"{invalid"
|
||||
value = json.loads(read(path))
|
||||
if change == "version": value["format_version"] = 999
|
||||
elif change == "python": value["python_minor"] = [3, 99]
|
||||
elif change == "provenance": value["profiles"] = {}
|
||||
else:
|
||||
for profile in value["profiles"].values(): profile["modules"] = {}
|
||||
return json.dumps(value).encode()
|
||||
return read(path)
|
||||
monkeypatch.setattr(Path, "read_bytes", replacement)
|
||||
assert not adapter.spectrum_binding_signature(item)[1]
|
||||
@@ -145,4 +145,4 @@ def test_v217_result_pack_expands_legacy_outputs():
|
||||
def test_v217_has_no_frontend_display_controller():
|
||||
assert not (ROOT / "web" / "h3_continuum_v2.js").exists()
|
||||
version_source = (ROOT / "version.py").read_text(encoding="utf-8")
|
||||
assert 'PACKAGE_VERSION = "3.9.10"' in version_source
|
||||
assert 'PACKAGE_VERSION = "3.9.11"' in version_source
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
"""Developer-only generator for fixed, source-verified Spectrum audit profiles."""
|
||||
import argparse
|
||||
import hashlib
|
||||
import importlib
|
||||
import importlib.util
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import types
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--local-root", type=Path, required=True)
|
||||
parser.add_argument("--public-root", type=Path, required=True)
|
||||
parser.add_argument("--output", type=Path, required=True)
|
||||
parser.add_argument("--reverse", action="store_true")
|
||||
args = parser.parse_args()
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
spec = importlib.util.spec_from_file_location("spectrum_audit_builder", root / "spectrum_signature.py")
|
||||
adapter = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(adapter)
|
||||
result = {"format_version": 1, "python_minor": list(sys.version_info[:2]), "profiles": {}}
|
||||
providers = [("local", args.local_root), ("public", args.public_root)]
|
||||
if args.reverse:
|
||||
providers.reverse()
|
||||
for name, provider_root in providers:
|
||||
folder = provider_root / "comfyui_spectrum_h3"
|
||||
source, metadata_file = adapter._select_source_profile(folder)
|
||||
for filename, digest in source.items():
|
||||
if adapter._source_digest(folder / filename) != digest:
|
||||
raise ValueError("unaudited provider source: " + filename)
|
||||
metadata_bytes = (root / adapter._runtime_metadata_file(metadata_file)).read_bytes()
|
||||
metadata = json.loads(metadata_bytes)
|
||||
namespace = types.ModuleType("spectrum_code_audit_" + name)
|
||||
namespace.__path__ = [str(provider_root)]
|
||||
sys.modules[namespace.__name__] = namespace
|
||||
prefix = namespace.__name__ + ".comfyui_spectrum_h3"
|
||||
filenames = sorted(source, reverse=args.reverse)
|
||||
modules = {}
|
||||
for filename in filenames:
|
||||
module = importlib.import_module(prefix if filename == "__init__.py" else prefix + "." + Path(filename).stem)
|
||||
if Path(module.__file__).resolve() != (folder / filename).resolve():
|
||||
raise ValueError("unexpected provider module path")
|
||||
if not adapter._same_except_code_digest(adapter._module_callables(module), metadata["modules"][filename]):
|
||||
raise ValueError("legacy provider structure differs: " + filename)
|
||||
modules[filename] = adapter._module_callables(module, code_digest=adapter._stable_code_digest)
|
||||
result["profiles"][hashlib.sha256(metadata_bytes).hexdigest()] = {"source_sha256": source, "modules": modules}
|
||||
args.output.write_text(json.dumps(result, ensure_ascii=True, sort_keys=True, separators=(",", ":")) + "\n", encoding="ascii")
|
||||
print(json.dumps({"output": str(args.output), "python_minor": result["python_minor"],
|
||||
"modules": [len(p["modules"]) for p in result["profiles"].values()]}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
"""Package version and public schema identifiers."""
|
||||
|
||||
PACKAGE_VERSION = "3.9.10"
|
||||
PACKAGE_VERSION = "3.9.11"
|
||||
STATE_SCHEMA_VERSION = 1
|
||||
PLAN_SCHEMA_VERSION = 1
|
||||
PUBLIC_API_VERSION = 3
|
||||
|
||||
Reference in New Issue
Block a user