Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5bd247fe48 | ||
|
|
899905301e | ||
|
|
b28bfd2c68 |
@@ -0,0 +1,7 @@
|
||||
# Exact native observer admission hashes checkout bytes, not only the Git blob.
|
||||
scripts/process_audio_observer.py text eol=lf
|
||||
# Runtime font authority pins LF text; keep default Windows checkouts usable.
|
||||
comfyui_h3_context/fonts/LICENSE-OFL-1.1.txt text eol=lf
|
||||
comfyui_h3_context/fonts/font_manifest_v1.json text eol=lf
|
||||
# Compatibility retention hashes immutable checkout bytes; CRLF would reject this authority.
|
||||
comfyui_h3_context/contracts/authoring_renderer_qualification_v1.json text eol=lf
|
||||
+102
-6
@@ -5,7 +5,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- main
|
||||
- release-candidate/**
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
@@ -17,6 +17,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
import-smoke:
|
||||
timeout-minutes: 10
|
||||
name: Import smoke (${{ matrix.os }})
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -39,6 +40,7 @@ jobs:
|
||||
run: python -c "import comfyui_h3_context"
|
||||
|
||||
quality:
|
||||
timeout-minutes: 20
|
||||
name: Supply and quality
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -56,6 +58,8 @@ jobs:
|
||||
run: python -m pip install --disable-pip-version-check -e ".[dev]"
|
||||
- name: Validate acceptance baseline
|
||||
run: python scripts/acceptance_baseline.py validate
|
||||
- name: Check public consumer compatibility
|
||||
run: python scripts/public_consumer_compatibility.py --base v1.1.0
|
||||
- name: Reject pull-request policy relaxation
|
||||
if: github.event_name == 'pull_request'
|
||||
env:
|
||||
@@ -65,13 +69,29 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
env:
|
||||
POLICY_BASE_SHA: ${{ github.event.before }}
|
||||
run: python scripts/acceptance_baseline.py compare --base-ref "$POLICY_BASE_SHA"
|
||||
POLICY_DEFAULT_REF: ${{ format('refs/remotes/origin/{0}', github.event.repository.default_branch) }}
|
||||
run: |
|
||||
if [ "$POLICY_BASE_SHA" = "0000000000000000000000000000000000000000" ]; then
|
||||
POLICY_BASE_SHA="$(git rev-parse --verify "${POLICY_DEFAULT_REF}^{commit}")"
|
||||
fi
|
||||
python scripts/acceptance_baseline.py compare --base-ref "$POLICY_BASE_SHA"
|
||||
# CRITICAL: supply validates already-public inputs through the installed frontend parser.
|
||||
- name: Set up Node 24
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38
|
||||
with:
|
||||
node-version: "24.13.1"
|
||||
- name: Activate exact pnpm
|
||||
shell: bash
|
||||
run: corepack enable && corepack prepare pnpm@11.3.0 --activate
|
||||
- name: Install exact frontend dependencies
|
||||
run: pnpm --dir frontend install --frozen-lockfile
|
||||
- name: Validate supply manifest
|
||||
run: python scripts/supply_chain_manifest.py --emit validate
|
||||
- name: Run pinned hooks once
|
||||
run: python -m pre_commit run --all-files --show-diff-on-failure
|
||||
|
||||
backend:
|
||||
timeout-minutes: 120
|
||||
name: Backend tests and security
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -85,13 +105,61 @@ jobs:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
- name: Install development dependencies
|
||||
run: python -m pip install --disable-pip-version-check -e ".[dev]"
|
||||
run: python -m pip install --disable-pip-version-check -e ".[dev,host-tests]"
|
||||
# CPU tensors and owned-process monitoring are real test inputs, not optional mocks.
|
||||
- name: Install CPU perception test dependencies
|
||||
run: |
|
||||
python -m pip install --disable-pip-version-check --index-url https://download.pytorch.org/whl/cpu torch==2.14.0+cpu
|
||||
python -m pip install --disable-pip-version-check Pillow==12.3.0 psutil==7.2.2
|
||||
# CRITICAL: real process and canary assertions need these tools before backend execution.
|
||||
- name: Install and verify real media test tools
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install --yes --no-install-recommends ffmpeg
|
||||
ffmpeg -version
|
||||
ffprobe -version
|
||||
- name: Set up Node 24
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38
|
||||
with:
|
||||
node-version: "24.13.1"
|
||||
- name: Activate exact pnpm
|
||||
shell: bash
|
||||
run: corepack enable && corepack prepare pnpm@11.3.0 --activate
|
||||
- name: Install exact frontend dependencies
|
||||
run: pnpm --dir frontend install --frozen-lockfile
|
||||
# CRITICAL: minimum-runtime proof must execute in a clean public-source checkout.
|
||||
- name: Check public minimum-runtime contracts before the long suite
|
||||
run: python scripts/ci_preflight.py --public-minimum
|
||||
- name: Verify actual backend partition conservation
|
||||
run: python scripts/ci_preflight.py --backend-partition
|
||||
- name: Run backend tests with coverage
|
||||
run: python -m pytest --cov=comfyui_h3_context --cov-report=term-missing --cov-fail-under=75
|
||||
run: python -m pytest --cov=comfyui_h3_context --cov-report=term-missing --ignore=tests/test_m25_20_conformance_cases.py --ignore=tests/test_m25_20_conformance_expect.py --ignore=tests/test_m25_20_conformance_join.py --cov-fail-under=75
|
||||
- name: Run offline security audit
|
||||
run: python scripts/security_audit.py
|
||||
|
||||
conformance:
|
||||
name: Untraced semantic conformance
|
||||
timeout-minutes: 120
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
- name: Install development dependencies
|
||||
run: python -m pip install --disable-pip-version-check -e ".[dev,host-tests]"
|
||||
# CRITICAL: tracing multiplies exhaustive Python sweeps; keep their full population untraced.
|
||||
- name: Run complete conformance sweeps without coverage
|
||||
run: python -m pytest tests/test_m25_20_conformance_cases.py tests/test_m25_20_conformance_expect.py tests/test_m25_20_conformance_join.py --no-cov --durations=10
|
||||
|
||||
frontend:
|
||||
timeout-minutes: 30
|
||||
name: Frontend check, unit and build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -108,6 +176,8 @@ jobs:
|
||||
run: corepack enable && corepack prepare pnpm@11.3.0 --activate
|
||||
- name: Install exact dependencies
|
||||
run: pnpm --dir frontend install --frozen-lockfile
|
||||
- name: Install Chromium for fixture integration tests
|
||||
run: pnpm --dir frontend exec playwright install --with-deps chromium
|
||||
- name: Run static checks
|
||||
run: pnpm --dir frontend run check
|
||||
- name: Run unit tests
|
||||
@@ -116,17 +186,32 @@ jobs:
|
||||
run: pnpm --dir frontend run build
|
||||
|
||||
browser:
|
||||
timeout-minutes: 90
|
||||
name: Hermetic browser (${{ matrix.os }})
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
python: .venv/bin/python
|
||||
- os: windows-latest
|
||||
python: .venv/Scripts/python.exe
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1
|
||||
with:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
- name: Prepare local fixture interpreter
|
||||
shell: bash
|
||||
run: |
|
||||
python -m venv .venv
|
||||
${{ matrix.python }} -m pip install --disable-pip-version-check -e ".[dev,host-tests]"
|
||||
- name: Set up Node 24
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38
|
||||
with:
|
||||
@@ -139,6 +224,17 @@ jobs:
|
||||
- name: Install Chromium
|
||||
run: pnpm --dir frontend exec playwright install --with-deps chromium
|
||||
- name: Run hermetic browser lane
|
||||
run: pnpm --dir frontend run test:e2e:ci
|
||||
shell: bash
|
||||
run: ${{ matrix.python }} scripts/browser_ci.py --evidence-dir frontend/test-results/browser-ci
|
||||
- name: Upload hermetic browser failure evidence
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: hermetic-browser-failure-${{ matrix.os }}
|
||||
path: |
|
||||
frontend/test-results/browser-ci/results.json
|
||||
frontend/test-results/browser-ci/test-results/**/error-context.md
|
||||
if-no-files-found: ignore
|
||||
retention-days: 7
|
||||
|
||||
# The live supported-host suite remains an explicit compatibility/release lane and is not CI.
|
||||
|
||||
@@ -34,6 +34,7 @@ jobs:
|
||||
if: github.repository == 'rookiestar28/ComfyUI-MiniMaxH3-Studio'
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
env:
|
||||
COMFY_NO_TELEMETRY: "1"
|
||||
PYTHONDONTWRITEBYTECODE: "1"
|
||||
@@ -96,6 +97,16 @@ jobs:
|
||||
--expected-version "$EXPECTED_VERSION" \
|
||||
--github-output "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Require successful hosted CI on the exact public candidate
|
||||
if: steps.publish_guard.outputs.should_publish == 'true'
|
||||
shell: bash
|
||||
env:
|
||||
CANDIDATE_COMMIT: ${{ steps.publish_guard.outputs.candidate_commit }}
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
python scripts/public_ci_gate.py --candidate "$CANDIDATE_COMMIT"
|
||||
|
||||
- name: Skip unchanged push
|
||||
if: steps.publish_guard.outputs.should_publish != 'true'
|
||||
run: echo "Skipping Registry publication because project.version is unchanged."
|
||||
|
||||
@@ -22,6 +22,7 @@ roa*.md
|
||||
.cla*/
|
||||
|
||||
# Secrets and local environment
|
||||
.secrets.baseline
|
||||
.env
|
||||
.env.*
|
||||
*.env
|
||||
@@ -76,3 +77,9 @@ Thumbs.db
|
||||
.idea/
|
||||
CLA*.md
|
||||
cla*.md
|
||||
|
||||
# Maintainer process documents stay local; public contributor guidance lives in docs/.
|
||||
/tests/TEST_SOP.md
|
||||
/tests/E2E_TESTING_NOTICE.md
|
||||
/tests/E2E_TESTING_SOP.md
|
||||
/tests/CI_TEST_MATRIX.md
|
||||
|
||||
@@ -21,6 +21,9 @@ repos:
|
||||
rev: 41e691678310dfd3833f7ab4e180ddb014310356 # v2.3.0 # pragma: allowlist secret
|
||||
hooks:
|
||||
- id: mypy
|
||||
name: mypy (Python 3.10 / Linux)
|
||||
# CRITICAL: native-only stubs miss the other OS's absent APIs; keep both views pinned.
|
||||
args: ["--ignore-missing-imports", "--scripts-are-modules", "--python-version", "3.10", "--platform", "linux"]
|
||||
files: ^(?:comfyui_h3_context|tests|scripts)/.*\.py$
|
||||
additional_dependencies:
|
||||
- jsonschema==4.26.0
|
||||
@@ -32,6 +35,20 @@ repos:
|
||||
# must be listed here too. Without it `RuleBasedStateMachine` resolves to `Any` and the
|
||||
# stateful model silently stops being type-checked at all.
|
||||
- hypothesis==6.167.1
|
||||
# CRITICAL: keep the static comparator typed in the isolated minimum-runtime hook.
|
||||
- griffelib==2.3.0
|
||||
- id: mypy
|
||||
alias: mypy-windows
|
||||
name: mypy (Python 3.10 / Windows)
|
||||
args: ["--ignore-missing-imports", "--scripts-are-modules", "--python-version", "3.10", "--platform", "win32"]
|
||||
files: ^(?:comfyui_h3_context|tests|scripts)/.*\.py$
|
||||
additional_dependencies:
|
||||
- jsonschema==4.26.0
|
||||
- types-jsonschema==4.26.0.20260518
|
||||
- pytest==9.1.1
|
||||
- coverage==7.15.4
|
||||
- hypothesis==6.167.1
|
||||
- griffelib==2.3.0
|
||||
|
||||
- repo: https://github.com/Yelp/detect-secrets
|
||||
rev: 68e8b45440415753fff70a312ece8da92ba85b4a # v1.5.0 # pragma: allowlist secret
|
||||
|
||||
@@ -8,6 +8,8 @@ include NOTICE
|
||||
include MANIFEST.in
|
||||
include .comfyignore
|
||||
include .gitignore
|
||||
# IMPORTANT: root selectors must include Git attributes or issued-sdist rebuilds lose required bytes.
|
||||
include .gitattributes
|
||||
include public-source-inventory.json
|
||||
include pyproject.toml
|
||||
include __init__.py
|
||||
|
||||
@@ -18,6 +18,23 @@ implementation.
|
||||
|
||||
<details>
|
||||
|
||||
<summary><strong>1.2.0 — Title decorations, editor updates and local perception setup</strong></summary>
|
||||
|
||||
- Style titles with strokes, sharp shadows and background padding. Preserve literal line breaks
|
||||
in preview and final rendering, and enable or reset each decoration separately.
|
||||
- Save accepted title styles in project files and acknowledged draft recovery. Older 1.1.0
|
||||
readers refuse the new optional decoration settings rather than silently discarding them.
|
||||
- Configure qualified local visual or audio analysis through an operator-owned startup file,
|
||||
then inspect readiness in **Settings → Local perception**. Execution requires its supported
|
||||
native Windows setup; refreshing status does not launch a model or change configuration.
|
||||
- The timeline toggle is now called **Ripple edits** and keeps its existing edited-track scope.
|
||||
- Reduce repeated redraws of unchanged timeline, monitor and media controls during
|
||||
edits. Keep seeking and toolbar actions synchronized with the current editor state.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
|
||||
<summary><strong>1.1.0 — Project files, recovery and editor improvements</strong></summary>
|
||||
|
||||
- Save and open editable `.h3proj` projects, with explicit relinking when media is missing.
|
||||
@@ -251,10 +268,18 @@ Open **MiniMax H3 Studio** from the ComfyUI sidebar. It has three pages:
|
||||
| ---------- | --------------------------------------------------------------------------------------------- |
|
||||
| Context | Choose a task mode, describe the video, pick references, review the prompt and start App Mode |
|
||||
| Production | Your generated clips as a project, longer-video planning, and the entry to the clip editor |
|
||||
| Settings | Language, the media tools and the optional assisted-authoring provider |
|
||||
| Settings | Language, media tools, local-perception status and the optional assisted-authoring provider |
|
||||
|
||||
**Settings → Language** offers **Automatic (ComfyUI locale)**, English, 繁體中文 and 简体中文.
|
||||
|
||||
**Settings → Local perception** shows whether the host's existing visual and audio setup is
|
||||
available. **Refresh status** reads its readiness; it does not install dependencies, launch a
|
||||
model or reread startup configuration. Local perception runs only on its supported native
|
||||
Windows setup. Ask the host operator to configure it using the
|
||||
[local-perception setup instructions](docs/HOST_INTEGRATION.md#local-perception-visual-and-audio),
|
||||
then restart ComfyUI after changing the startup file. These host settings are separate from
|
||||
assisted-authoring provider connections and cannot be edited on this page.
|
||||
|
||||
The prompt is built on the ComfyUI host by the same nodes you can use on the canvas, so the sidebar
|
||||
and the canvas never disagree.
|
||||
|
||||
@@ -510,14 +535,14 @@ tracks, 128 clips and 2.5 minutes in total.
|
||||
With a clip focused, **Enter** starts a keyboard move: arrow keys move it, **Alt+Up/Down** changes
|
||||
track, **Enter** applies and **Escape** cancels.
|
||||
- **Trimming**: drag a selected clip's edge, or focus the edge and use the arrow keys, **Enter** and
|
||||
**Escape**. Turn on **Main-track ripple** to make trims and deletes shift the clips that follow on
|
||||
**Escape**. Turn on **Ripple edits** to make trims and deletes shift the clips that follow on
|
||||
the same track.
|
||||
- **Roll edits** move a shared cut between two neighbouring clips with the handle on the cut.
|
||||
- **Clip menu** (right-click a clip): one-frame trims, **Replace clip asset**, **Slip clip**,
|
||||
**Slide clip**, **Merge clips** with the next one, and **Clip enabled**. Menus close when you
|
||||
press elsewhere.
|
||||
- **Toolbar**: **Undo**, **Redo**, **Split at playhead**, **Trim start to playhead**, **Trim end to
|
||||
playhead**, **Delete** (or **Ripple delete**), **Snapping**, **Main-track ripple**, zoom and
|
||||
playhead**, **Delete** (or **Ripple delete**), **Snapping**, **Ripple edits**, zoom and
|
||||
**Fit timeline**. **More timeline tools** adds roll edits, numeric moves, selection, clip
|
||||
navigation and panning.
|
||||
- **Ruler**: click or drag to move the playhead. **Ctrl** + mouse wheel zooms; **Shift** + wheel
|
||||
@@ -563,12 +588,20 @@ Select a clip to edit its properties. The tabs depend on the clip:
|
||||
| Basic | Scale, position, rotation, anchor and alignment; opacity and blend mode |
|
||||
| Crop | The four edges |
|
||||
| Colour | Brightness, contrast and saturation (choose **Color adjustment** as the effect) |
|
||||
| Text | A title's text, size, weight and colour |
|
||||
| Text | Text, font style, alignment, spacing, colour, stroke, shadow and background |
|
||||
| Transition | A **Cross dissolve** with the neighbouring clip, and its length in frames |
|
||||
| Audio | Volume (−60 to +12 dB), mute, fade in and fade out (up to 10 seconds each) |
|
||||
|
||||
The **Text** tab appears for titles and the **Audio** tab for videos with sound.
|
||||
|
||||
Titles preserve literal line breaks, including blank and trailing lines. Text alignment places
|
||||
each line inside the title canvas; clip alignment in **Basic** places the whole canvas. Stroke
|
||||
width is 1–32 px, shadow offsets are −64 to +64 px, and background padding is 0–64 px. Zero
|
||||
padding removes the extra padding. Each decoration has its own enable switch and Reset; changing
|
||||
one group preserves the other title settings. Decoration opacity is 1–255, while fill and
|
||||
background opacity also allow zero. Shadows use a sharp edge and follow the clip's scale and
|
||||
rotation.
|
||||
|
||||
- Sliders apply when you release them. Number fields apply on **Enter** or the group's apply
|
||||
button; moving focus away does not apply them. **Escape** cancels a change, and **Reset** restores
|
||||
the whole group as one undo step.
|
||||
@@ -857,9 +890,11 @@ Review workflows and screenshots before sharing them. More detail is in
|
||||
- **Previews** in the monitor are approximate; check the rendered file.
|
||||
- **Quality**: validation and guide readiness check the prompt, not the visual result, and do not
|
||||
make this equivalent to MiniMax's own implementation.
|
||||
- **Visual timeline**: the **H3 Full Reference Timeline Producer** cannot be queued in this release,
|
||||
with or without a connected `visual_result` (validation reports `perception_profile_unavailable`).
|
||||
Write full-reference prompts with the Plan and Compiler nodes instead.
|
||||
- **Local perception** requires the qualified native Windows setup described in the host
|
||||
integration guide. An unavailable status does not install a model or fall back to a provider.
|
||||
- **Visual timeline**: the **H3 Full Reference Timeline Producer** needs a connected, qualified
|
||||
result from the **Visual Perception Producer** and an operator-configured local visual profile.
|
||||
Its timeline remains partial; without that setup, write prompts with the Plan and Compiler nodes.
|
||||
- **Official Context-IR** needs a host-supplied connection.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
@@ -1,3 +1,72 @@
|
||||
# Release 1.2.0
|
||||
|
||||
## Titles and editing
|
||||
|
||||
- Add strokes, sharp shadows and background padding to titles. Enable or reset
|
||||
each decoration separately while preserving the other text settings.
|
||||
- Preserve literal line breaks, including blank and trailing lines, in both the
|
||||
browser preview and native rendering. Text alignment places individual lines
|
||||
inside the title canvas; clip alignment places the whole canvas.
|
||||
- Save accepted decoration settings in project files and acknowledged draft
|
||||
recovery, with the existing undo/redo behavior.
|
||||
- Rename the ripple toggle to **Ripple edits**. Trims and ripple deletes keep
|
||||
their existing edited-track scope, including supported overlay tracks.
|
||||
- Separate timeline viewport, gestures, transport and presentation responsibilities
|
||||
while preserving the existing editor commands and interactions.
|
||||
- Reuse unchanged clip controls while keeping clip identities and action handlers
|
||||
synchronized with the current editor state.
|
||||
|
||||
- Reduce repeated redraws of unchanged timeline, monitor and media controls during
|
||||
edits. Keep seeking and toolbar actions synchronized with the current editor state.
|
||||
|
||||
## Optional local perception
|
||||
|
||||
- Configure the existing qualified visual or audio profile through an
|
||||
operator-owned startup file, or keep using the existing programmatic host
|
||||
registration. Configuration is separate from assisted-authoring provider settings.
|
||||
- Inspect finite local-perception readiness in Settings. The status read does not
|
||||
launch a model, edit host paths or install dependencies.
|
||||
- Queue the full-reference visual timeline when a qualified connected visual result,
|
||||
the configured local profile and explicit user consent are available. The resulting
|
||||
timeline remains partial.
|
||||
- Finish owned process termination before cleaning its temporary files, preserving
|
||||
cancellation and cleanup failures.
|
||||
|
||||
## Developer tools and distributions
|
||||
|
||||
- Strengthen Windows validation, subprocess accounting and CI admission while
|
||||
preserving complete test identities and native result reporting.
|
||||
- Provide independently stated native-behavior oracles and explicit catalogue gaps.
|
||||
- Check declared public Python interfaces against the released baseline with the
|
||||
static consumer compatibility tool.
|
||||
- Separate Production assembly execution and media-use responsibilities without
|
||||
changing public generation or persistence contracts.
|
||||
- Refresh generated contracts, inventories, fingerprints and provenance from their
|
||||
actual inputs, with a clean fixed point and explicit failure reporting.
|
||||
- Keep public source distributions complete for developers, including tests and
|
||||
support inputs, while omitting private maintainer material. Preserve executable
|
||||
source semantics through public comment/docstring redaction and audit the actual
|
||||
source, wheel and Registry archives.
|
||||
|
||||
## Upgrade and limits
|
||||
|
||||
Replace the complete package, restart ComfyUI and refresh the browser. Save editable
|
||||
projects and preserve media separately before updating.
|
||||
|
||||
Project format version 1 remains in use. Existing 1.1.0 project documents remain
|
||||
readable. A project using the new optional title decoration members requires the
|
||||
current reader; 1.1.0 readers refuse those members rather than silently discarding
|
||||
them. Project files do not embed media or restore execution permissions.
|
||||
|
||||
The prompt pipeline supports Windows, Linux and WSL. Local perception execution
|
||||
in this release supports only its qualified native Windows setup. The editor,
|
||||
Production import, assembly, native rendering and durable recovery retain their
|
||||
existing Windows and trusted-local-host requirements. This release does not extend
|
||||
those features to Linux or WSL. Models and dependencies are never downloaded or
|
||||
installed automatically; provider permission and costs remain under user control.
|
||||
|
||||
---
|
||||
|
||||
# Release 1.1.0
|
||||
|
||||
This release collects the completed improvements since 1.0.0, including the assisted-authoring
|
||||
|
||||
@@ -27,6 +27,7 @@ from .adapters.comfyui_generation_profile import (
|
||||
from .adapters.comfyui_input_geometry import ensure_input_geometry_route_registered
|
||||
from .adapters.comfyui_media_preview import ensure_media_preview_route_registered
|
||||
from .adapters.comfyui_media_runtime_setup import ensure_media_runtime_setup_route_registered
|
||||
from .adapters.comfyui_perception_status import ensure_perception_host_status_route_registered
|
||||
from .adapters.comfyui_production_workspace import ensure_production_route_registered
|
||||
from .adapters.comfyui_project_document import ensure_project_document_route_registered
|
||||
from .adapters.comfyui_provider_settings import (
|
||||
@@ -42,6 +43,7 @@ from .adapters.comfyui_sidebar_workspace import (
|
||||
)
|
||||
from .adapters.comfyui_workspace_state import ensure_workspace_state_route_registered
|
||||
from .adapters.managed_sequence_service import ensure_managed_sequence_route_registered
|
||||
from .adapters.perception_settings import activate_operator_perception_host
|
||||
from .adapters.production_authoring_import_service import (
|
||||
ensure_production_authoring_import_route_registered,
|
||||
)
|
||||
@@ -126,9 +128,13 @@ if os.environ.get("H3_CONTEXT_HOST_TWO_ENDED_BRIDGE_CANARY") == "1":
|
||||
TWO_ENDED_BRIDGE_CANARY_NODE_ID: "H3 Context (two-ended AV bridge canary)",
|
||||
}
|
||||
|
||||
__version__ = "1.1.0"
|
||||
__version__ = "1.2.0"
|
||||
WEB_DIRECTORY = "web"
|
||||
|
||||
# CRITICAL: this bounded operator attempt runs after node registration. Its module owner survives
|
||||
# root reload; missing host modules do not consume the attempt, and GET never retries the file.
|
||||
activate_operator_perception_host()
|
||||
|
||||
# IMPORTANT: route registration is optional and lazy; missing host modules preserve clean import.
|
||||
ensure_sidebar_route_registered()
|
||||
ensure_assisted_sidebar_route_registered()
|
||||
@@ -155,6 +161,7 @@ ensure_workspace_state_route_registered()
|
||||
ensure_retained_assets_routes_registered()
|
||||
ensure_project_document_route_registered()
|
||||
ensure_editor_recovery_route_registered()
|
||||
ensure_perception_host_status_route_registered()
|
||||
|
||||
__all__ = [
|
||||
"NODE_CLASS_MAPPINGS",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Hermetic-capable M22-12 binding from private provider authority to M22-05 drafting."""
|
||||
"""Hermetic-capable binding from private provider authority to drafting."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ class AuthoringDerivativeGeneratorError(RuntimeError):
|
||||
def _video_proxy_bitrate(facts: AuthoringVideoFacts, ceiling_bytes: int) -> int:
|
||||
"""The proxy's video target in bits per second, in exact integer arithmetic.
|
||||
|
||||
IMPORTANT (M25-45): the ceiling is a byte budget for the WHOLE proxy, so the target has to
|
||||
IMPORTANT: the ceiling is a byte budget for the WHOLE proxy, so the target has to
|
||||
fall as the source lengthens; a fixed rate that fits a five-second clip overruns a fifteen
|
||||
second one and the owned output lease refuses the result after paying for the encode. The
|
||||
duration comes from the source's own last landmark, never from a wall clock or a declared
|
||||
|
||||
@@ -446,7 +446,9 @@ def _load_packaged_font_manifest_from_root(package_root: Path) -> PackagedFontMa
|
||||
raise _fail("font_manifest_invalid", "the packaged font license artifact is invalid")
|
||||
license_payload = _read_bounded(license_path, _MAX_LICENSE_BYTES, "font_license_missing")
|
||||
license_hash = _sha256_value(license_wire["file_sha256"], "license.file_sha256")
|
||||
if _sha256(license_payload) != license_hash:
|
||||
# CRITICAL: Git for Windows can check these bounded text bytes out as CRLF. Hash only
|
||||
# CRLF -> LF equivalence; raw hashes reject valid installs, broader cleanup hides tampering.
|
||||
if _sha256(license_payload.replace(b"\r\n", b"\n")) != license_hash:
|
||||
raise _fail("font_license_hash_mismatch", "the packaged font license hash differs")
|
||||
license_revision = _git_oid(license_wire["upstream_revision"], "license.upstream_revision")
|
||||
if (
|
||||
@@ -642,7 +644,8 @@ def _load_packaged_font_manifest_from_root(package_root: Path) -> PackagedFontMa
|
||||
package_fingerprint = canonical_fingerprint(
|
||||
{
|
||||
"schema_version": FONT_MANIFEST_SCHEMA,
|
||||
"manifest_sha256": _sha256(payload),
|
||||
# Keep the package identity stable across Git's text checkout conversion, as above.
|
||||
"manifest_sha256": _sha256(payload.replace(b"\r\n", b"\n")),
|
||||
"license_sha256": license_hash,
|
||||
"font_files": [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Private generated VIDEO ownership for the M25-29 Authoring import bridge."""
|
||||
"""Private generated VIDEO ownership for the Authoring import bridge."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
@@ -556,7 +556,7 @@ class MediaLeaseAuthority:
|
||||
)
|
||||
if type(body) is not bytearray or type(facts) is not VerifiedDerivative:
|
||||
raise MediaLeaseError("generation_failed")
|
||||
# IMPORTANT (M25-45): a body that simply does not fit is a resource limit, not a
|
||||
# IMPORTANT: a body that simply does not fit is a resource limit, not a
|
||||
# generation failure. The browser's own body admission already answers
|
||||
# `resource_limit` for the same physical condition, and a client that sees two
|
||||
# different reasons for one fact cannot tell "this source is too big for the
|
||||
|
||||
@@ -13,6 +13,10 @@ from contextlib import ExitStack
|
||||
from dataclasses import replace
|
||||
from fractions import Fraction
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from _thread import LockType
|
||||
|
||||
from ..core.authoring_output_protocol import (
|
||||
OUTPUT_MAX_BYTES,
|
||||
@@ -129,6 +133,15 @@ class _Control:
|
||||
class NativeOutputPreview:
|
||||
"""Own one guarded staging session; no original artifact path is ever consumed."""
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# IMPORTANT: non-Windows construction raises before initialization; keep fields typed
|
||||
# without moving resource allocation ahead of that fail-closed platform check.
|
||||
_renderer_path: Path
|
||||
_probe_path: Path
|
||||
_stop: threading.Event
|
||||
_lock: LockType
|
||||
_store: RenderOutputStore
|
||||
|
||||
def __init__(self, *, root: Path, renderer_path: Path, probe_path: Path) -> None:
|
||||
if sys.platform != "win32" or not all(
|
||||
isinstance(path, Path) for path in (root, renderer_path, probe_path)
|
||||
|
||||
@@ -223,14 +223,14 @@ def prepare_render_text(
|
||||
font_path = stage.write_input(font_payload, suffix=".bin")
|
||||
text_path = stage.write_input(text_payload, suffix=".txt")
|
||||
lines: list[tuple[Path | None, str]] = []
|
||||
if "\t" in style.content and style.align != "left":
|
||||
# CRITICAL: native centered/right multiline tabs clip glyphs. Keep literal line bytes
|
||||
# separately for left-internal rasterization; never expand tabs or rewrite the snapshot.
|
||||
for line in style.content.split("\n"):
|
||||
_guard(control)
|
||||
payload = line.encode("utf-8")
|
||||
path = stage.write_input(payload, suffix=".txt") if payload else None
|
||||
lines.append((path, "sha256:" + hashlib.sha256(payload).hexdigest()))
|
||||
# CRITICAL: drawtext's multiline path rasterizes LF as .notdef with this qualified
|
||||
# face/runtime. Always stage literal LF-free lines, retaining empty layout bands and
|
||||
# the whole-content attestation; do not restore whole-block or non-left tab staging.
|
||||
for line in style.content.split("\n"):
|
||||
_guard(control)
|
||||
payload = line.encode("utf-8")
|
||||
path = stage.write_input(payload, suffix=".txt") if payload else None
|
||||
lines.append((path, "sha256:" + hashlib.sha256(payload).hexdigest()))
|
||||
_guard(control)
|
||||
stage.check_budget()
|
||||
return PreparedRenderText(
|
||||
|
||||
@@ -300,42 +300,100 @@ def build_render_graph(*, plan: RenderPlanV1, prepared: PreparedRenderAssets) ->
|
||||
style = layer.text
|
||||
text = texts[layer.clip_id]
|
||||
native_w, native_h = width, height
|
||||
alignment = {"left": "L", "center": "C", "right": "R"}[style.align]
|
||||
x = {"left": "0", "center": "(w-text_w)/2", "right": "w-text_w"}[style.align]
|
||||
line_spacing = round(style.size_px * (style.line_height_bp / 10000 - 1))
|
||||
draw = (
|
||||
f"drawtext=fontfile={text.font_path.name}:textfile={text.text_path.name}"
|
||||
f":expansion=none:reload=0:fontsize={style.size_px}:fontcolor={_rgba(style.fill_rgba)}"
|
||||
f":x={x}:y=(h-text_h)/2:text_align={alignment}:line_spacing={line_spacing}:fix_bounds=0"
|
||||
)
|
||||
if style.background_rgba is not None:
|
||||
draw += f":box=1:boxcolor={_rgba(style.background_rgba)}:boxborderw=0"
|
||||
if text.lines:
|
||||
# CRITICAL: align the literal line surface, not drawtext's glyph box. Its
|
||||
# non-left internal alignment clips tabs on unequal-width multiline text.
|
||||
line_height = round(style.size_px * style.line_height_bp / 10000)
|
||||
draws: list[str] = []
|
||||
for line_number, (line_path, _) in enumerate(text.lines):
|
||||
if line_path is None:
|
||||
continue
|
||||
y = (
|
||||
f"(h-{len(text.lines) * line_height})/2+"
|
||||
f"{line_number * line_height}+( {line_height}-font_a-font_d)/2"
|
||||
).replace(" ", "")
|
||||
line_draw = (
|
||||
f"drawtext=fontfile={text.font_path.name}:textfile={line_path.name}"
|
||||
f":expansion=none:reload=0:fontsize={style.size_px}"
|
||||
f":fontcolor={_rgba(style.fill_rgba)}:x={x}:y={y}"
|
||||
":y_align=font:text_align=L:tabsize=4:fix_bounds=0"
|
||||
if not text.lines:
|
||||
raise RenderGraphError()
|
||||
# CRITICAL: positive half-up must match Canvas Math.round. Python round's
|
||||
# ties-to-even changes legal half-pixel advances and shifts 32-line bands by 16px.
|
||||
line_height = (style.size_px * style.line_height_bp + 5000) // 10000
|
||||
backgrounds: list[str] = []
|
||||
glyphs: list[str] = []
|
||||
for line_number, (line_path, _) in enumerate(text.lines):
|
||||
if line_path is None:
|
||||
continue
|
||||
base_draw = (
|
||||
f"drawtext=fontfile={text.font_path.name}:textfile={line_path.name}"
|
||||
f":expansion=none:reload=0:fontsize={style.size_px}"
|
||||
":text_align=L:tabsize=4:fix_bounds=0"
|
||||
)
|
||||
band_top = f"(h-{len(text.lines) * line_height})/2+{line_number * line_height}"
|
||||
y = f"{band_top}+({line_height}-font_a-font_d)/2"
|
||||
if style.background_rgba is not None:
|
||||
# CRITICAL: a glyph's font-y box is not its line band. Anchor background
|
||||
# calls separately and paint ALL boxes first; interleaving erases shadows.
|
||||
backgrounds.append(
|
||||
f"{base_draw}:fontcolor=black@0:x={x}:y={band_top}"
|
||||
f":box=1:boxcolor={_rgba(style.background_rgba)}"
|
||||
f":boxh={line_height}:boxborderw={style.background_padding_px or 0}"
|
||||
)
|
||||
if style.background_rgba is not None:
|
||||
line_draw += f":box=1:boxcolor={_rgba(style.background_rgba)}:boxborderw=0"
|
||||
draws.append(line_draw)
|
||||
draw = ",".join(draws)
|
||||
source = (
|
||||
f"color=c=black@0:s={width}x{height}:r=24,format=rgba,{draw},"
|
||||
f"trim=end_frame={duration},settb=1/24,setpts=N"
|
||||
if style.shadow is not None:
|
||||
shadow = style.shadow
|
||||
# CRITICAL: built-in drawtext shadow skips legal (0,0). A separate glyph
|
||||
# pass also keeps stroke silhouette/offsets in native pre-transform space.
|
||||
shadow_draw = (
|
||||
f"{base_draw}:fontcolor={_rgba(shadow.rgba)}"
|
||||
f":x={x}+{shadow.offset_x_px}:y={y}+{shadow.offset_y_px}:y_align=font"
|
||||
)
|
||||
if style.stroke is not None:
|
||||
shadow_draw += (
|
||||
f":borderw={style.stroke.width_px}:bordercolor={_rgba(shadow.rgba)}"
|
||||
)
|
||||
glyphs.append(shadow_draw)
|
||||
fill_draw = (
|
||||
f"{base_draw}:fontcolor={_rgba(style.fill_rgba)}:x={x}:y={y}:y_align=font"
|
||||
)
|
||||
if style.stroke is not None:
|
||||
fill_draw += (
|
||||
f":borderw={style.stroke.width_px}:bordercolor={_rgba(style.stroke.rgba)}"
|
||||
)
|
||||
glyphs.append(fill_draw)
|
||||
decorated = (
|
||||
style.stroke is not None
|
||||
or style.shadow is not None
|
||||
or style.background_padding_px is not None
|
||||
)
|
||||
if decorated:
|
||||
passes = [*backgrounds, *glyphs]
|
||||
# CRITICAL: admitted drawtext blends colour alpha into alpha again. Compute
|
||||
# coverage independently or half-alpha backgrounds become quarter-alpha.
|
||||
mask_passes = [
|
||||
re.sub(
|
||||
r"(fontcolor|boxcolor|bordercolor)=[^:,@]+(@[^:,]+)?",
|
||||
lambda match: match[1] + "=white" + (match[2] or ""),
|
||||
draw,
|
||||
)
|
||||
for draw in passes
|
||||
]
|
||||
filters.extend(
|
||||
[
|
||||
f"color=c=black:s={width}x{height}:r=24,format=rgba,trim=end_frame=1,split=2[{prefix}tc][{prefix}ta]",
|
||||
f"[{prefix}tc]" + ",".join([*passes, "format=rgb24"]) + f"[{prefix}tcolor]",
|
||||
f"[{prefix}ta]"
|
||||
+ ",".join([*mask_passes, "format=gray"])
|
||||
+ f"[{prefix}talpha]",
|
||||
]
|
||||
)
|
||||
# CRITICAL: mark the merged pixels premultiplied; this binary otherwise
|
||||
# bypasses unpremultiply and straight overlay darkens the colour a second time.
|
||||
source = (
|
||||
f"[{prefix}tcolor][{prefix}talpha]alphamerge,"
|
||||
"setparams=alpha_mode=premultiplied,format=gbrap,"
|
||||
"unpremultiply=inplace=1,format=rgba"
|
||||
)
|
||||
# CRITICAL: a run's text is constant. Rasterize it once and cache ONE RGBA
|
||||
# frame; repeating 96 drawtext calls per frame exceeds the 600s CPU budget.
|
||||
# Hold before transforms/effects/fades so temporal operations still advance.
|
||||
source += ",loop=loop=-1:size=1:start=0"
|
||||
else:
|
||||
source = ",".join(
|
||||
[
|
||||
f"color=c=black@0:s={width}x{height}:r=24",
|
||||
"format=rgba",
|
||||
*backgrounds,
|
||||
*glyphs,
|
||||
]
|
||||
)
|
||||
source += f",trim=end_frame={duration},settb=1/24,setpts=N"
|
||||
else:
|
||||
if layer.asset_id is None or layer.asset_id not in media:
|
||||
raise RenderGraphError()
|
||||
@@ -358,7 +416,7 @@ def build_render_graph(*, plan: RenderPlanV1, prepared: PreparedRenderAssets) ->
|
||||
# CRITICAL: these holds come from resolved source_frame values. fps alone
|
||||
# on source timestamps would invent a second VFR selection rule.
|
||||
#
|
||||
# GUARD (measured 2026-09-10, M25-20 B-60): `tpad` stamps its clones from its own
|
||||
# GUARD (measured 2026-09-10, B-60): `tpad` stamps its clones from its own
|
||||
# frame count times one source-rate period, never from the pts `setpts` just
|
||||
# assigned. That coincides with the next output offset only when the selected
|
||||
# frames sit one source period apart -- a 24 fps source held once per frame, or
|
||||
|
||||
@@ -9,9 +9,10 @@ from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import re
|
||||
from dataclasses import asdict
|
||||
from pathlib import Path
|
||||
from typing import Final
|
||||
from typing import Any, Final
|
||||
|
||||
from ..core.authoring_render_jobs import RenderJobLimits
|
||||
from ..core.canonical import canonical_fingerprint
|
||||
@@ -21,15 +22,15 @@ from ..core.render_planner import (
|
||||
RENDERER_QUALIFICATION_ROW_IDS,
|
||||
required_unqualified_renderer_profile,
|
||||
)
|
||||
from .authoring_fonts import load_packaged_font_manifest
|
||||
from .authoring_fonts import AuthoringFontError, load_packaged_font_manifest
|
||||
from .authoring_render_service import RenderExecutionIdentity, RenderServiceError
|
||||
|
||||
# Exact executed corpus evidence; item acceptance still requires the native gate and review.
|
||||
_ACCEPTED_EVIDENCE: Final[str | None] = (
|
||||
"sha256:ad225dec772b348e4a2235a9bcabcd54e7cc0f350161c785c4563f7f66f1ada5"
|
||||
"sha256:d9fcad4d7d2713faf141f93a53e6f164f231a9972c7708e187681ab3719936f8"
|
||||
)
|
||||
_PACKAGE = Path(__file__).resolve().parents[1]
|
||||
_EVIDENCE = _PACKAGE / "contracts" / "authoring_renderer_qualification_v1.json"
|
||||
_EVIDENCE = _PACKAGE / "contracts" / "authoring_renderer_qualification_v2.json"
|
||||
_IMPLEMENTATION_PATHS: Final = (
|
||||
"core/canonical.py",
|
||||
"core/composition_contract.py",
|
||||
@@ -84,6 +85,131 @@ def renderer_implementation_fingerprints() -> dict[str, str]:
|
||||
return result
|
||||
|
||||
|
||||
_COMPLETE_REPORT_FIELDS: Final = frozenset(
|
||||
{
|
||||
"schema",
|
||||
"renderer",
|
||||
"probe",
|
||||
"profile",
|
||||
"font_package",
|
||||
"implementation",
|
||||
"limits",
|
||||
"commands",
|
||||
"primitives",
|
||||
"qualification_rows",
|
||||
"runtime",
|
||||
"runtime_boundary",
|
||||
"source_rows",
|
||||
"raster_rows",
|
||||
"native_service_rows",
|
||||
"title_rendering",
|
||||
"native_service_mode",
|
||||
"generated_source_rows",
|
||||
"tabbed_text_layout",
|
||||
}
|
||||
)
|
||||
_DIGEST = re.compile(r"sha256:[0-9a-f]{64}")
|
||||
|
||||
|
||||
def _pairs(pairs: list[tuple[str, Any]]) -> dict[str, Any]:
|
||||
result: dict[str, Any] = {}
|
||||
for key, value in pairs:
|
||||
if key in result:
|
||||
raise ValueError
|
||||
result[key] = value
|
||||
return result
|
||||
|
||||
|
||||
def _report_identity(
|
||||
report: Any, implementation: dict[str, str], *, complete: bool
|
||||
) -> RenderExecutionIdentity:
|
||||
if type(report) is not dict:
|
||||
raise ValueError
|
||||
if complete:
|
||||
if set(report) != _COMPLETE_REPORT_FIELDS:
|
||||
raise ValueError
|
||||
maps = {
|
||||
"runtime": 2,
|
||||
"runtime_boundary": 4,
|
||||
"source_rows": 11,
|
||||
"raster_rows": 49,
|
||||
"title_rendering": 7,
|
||||
}
|
||||
if any(
|
||||
type(report[key]) is not dict or len(report[key]) != size for key, size in maps.items()
|
||||
):
|
||||
raise ValueError
|
||||
if (
|
||||
type(report["native_service_rows"]) is not list
|
||||
or len(report["native_service_rows"]) != 8
|
||||
or type(report["generated_source_rows"]) is not list
|
||||
or len(report["generated_source_rows"]) != 1
|
||||
or any(
|
||||
type(report[key]) is not str
|
||||
for key in ("native_service_mode", "tabbed_text_layout")
|
||||
)
|
||||
or type(report["implementation"]) is not dict
|
||||
or set(report["implementation"]) != set(implementation)
|
||||
or any(
|
||||
type(value) is not str or _DIGEST.fullmatch(value) is None
|
||||
for value in report["implementation"].values()
|
||||
)
|
||||
or any(
|
||||
type(report[key]) is not dict
|
||||
for key in ("commands", "primitives", "qualification_rows")
|
||||
)
|
||||
):
|
||||
raise ValueError
|
||||
if (
|
||||
report["schema"] != "h3.authoring.native_renderer_qualification.v1"
|
||||
or report["limits"] != asdict(RenderJobLimits())
|
||||
or report["profile"] != required_unqualified_renderer_profile().profile_fingerprint
|
||||
or report["font_package"] != load_packaged_font_manifest().package_fingerprint
|
||||
or set(report["commands"]) != set(NLE_OPERATION_IDS)
|
||||
or set(report["primitives"]) != set(RENDER_PRIMITIVE_IDS)
|
||||
or set(report["qualification_rows"]) != set(RENDERER_QUALIFICATION_ROW_IDS)
|
||||
):
|
||||
raise ValueError
|
||||
return RenderExecutionIdentity(
|
||||
renderer_fingerprint=report["renderer"],
|
||||
probe_fingerprint=report["probe"],
|
||||
qualification_fingerprint=canonical_fingerprint(report),
|
||||
profile_fingerprint=report["profile"],
|
||||
)
|
||||
|
||||
|
||||
def _select_identity(document: Any) -> RenderExecutionIdentity:
|
||||
implementation = renderer_implementation_fingerprints()
|
||||
if type(document) is not dict:
|
||||
raise ValueError
|
||||
if document.get("schema") == "h3.authoring.native_renderer_qualification.v1":
|
||||
if document["implementation"] != implementation:
|
||||
raise ValueError
|
||||
return _report_identity(document, implementation, complete=False)
|
||||
if (
|
||||
set(document) != {"schema", "subjects"}
|
||||
or document["schema"] != "h3.authoring.native_renderer_qualification.v2"
|
||||
):
|
||||
raise ValueError
|
||||
subjects = document["subjects"]
|
||||
if (
|
||||
type(subjects) is not dict
|
||||
or not 1 <= len(subjects) <= 2
|
||||
or not set(subjects) <= {"source", "public"}
|
||||
):
|
||||
raise ValueError
|
||||
matches: list[RenderExecutionIdentity] = []
|
||||
for report in subjects.values():
|
||||
identity = _report_identity(report, implementation, complete=True)
|
||||
if report["implementation"] == implementation:
|
||||
matches.append(identity)
|
||||
# CRITICAL: match one whole executed subject; unioning individual file hashes would qualify
|
||||
# a mixed implementation that neither native corpus ever measured. Ambiguity also refuses.
|
||||
if len(matches) != 1:
|
||||
raise ValueError
|
||||
return matches[0]
|
||||
|
||||
|
||||
def load_renderer_qualification() -> RenderExecutionIdentity:
|
||||
"""Return identity only for exact packaged evidence and the still-matching implementation."""
|
||||
accepted_evidence = _ACCEPTED_EVIDENCE
|
||||
@@ -94,27 +220,13 @@ def load_renderer_qualification() -> RenderExecutionIdentity:
|
||||
body = stream.read(65_537)
|
||||
if len(body) > 65_536:
|
||||
raise ValueError
|
||||
report = json.loads(body)
|
||||
report = json.loads(body, object_pairs_hook=_pairs)
|
||||
# CRITICAL: check the reviewed evidence digest before trusting any report field.
|
||||
# A freshly re-signed, incomplete or forged report must not grant runtime capability.
|
||||
if canonical_fingerprint(report) != accepted_evidence:
|
||||
raise ValueError
|
||||
if (
|
||||
report["schema"] != "h3.authoring.native_renderer_qualification.v1"
|
||||
or report["implementation"] != renderer_implementation_fingerprints()
|
||||
or report["limits"] != asdict(RenderJobLimits())
|
||||
or report["profile"] != required_unqualified_renderer_profile().profile_fingerprint
|
||||
or report["font_package"] != load_packaged_font_manifest().package_fingerprint
|
||||
or set(report["commands"]) != set(NLE_OPERATION_IDS)
|
||||
or set(report["primitives"]) != set(RENDER_PRIMITIVE_IDS)
|
||||
or set(report["qualification_rows"]) != set(RENDERER_QUALIFICATION_ROW_IDS)
|
||||
):
|
||||
raise ValueError
|
||||
return RenderExecutionIdentity(
|
||||
renderer_fingerprint=report["renderer"],
|
||||
probe_fingerprint=report["probe"],
|
||||
qualification_fingerprint=accepted_evidence,
|
||||
profile_fingerprint=report["profile"],
|
||||
)
|
||||
except (OSError, ValueError, TypeError, KeyError):
|
||||
return _select_identity(report)
|
||||
# CRITICAL: font authority refusals must revoke capability through this closed boundary;
|
||||
# allowing the typed runtime exception to escape exposes a different failure to callers.
|
||||
except (OSError, ValueError, TypeError, KeyError, RecursionError, AuthoringFontError):
|
||||
raise RenderServiceError("runtime_unavailable") from None
|
||||
|
||||
@@ -750,7 +750,7 @@ class ProcessLocalAuthoringSourceBindingStore:
|
||||
|
||||
@runtime_checkable
|
||||
class AuthoringSourceBindingFactory(Protocol):
|
||||
"""M25-01 implementation seam; capture occurs beside the successful node return."""
|
||||
"""implementation seam; capture occurs beside the successful node return."""
|
||||
|
||||
def capture(
|
||||
self,
|
||||
@@ -904,7 +904,7 @@ def claim_transferred_authoring_source(
|
||||
if not isinstance(receipt, AuthoringSourceBindingReceipt) or receipt._exact_registry is None:
|
||||
raise AuthoringSourceBindingError("invalid_receipt")
|
||||
# CRITICAL: use the receipt-owned exact registry and generation. Accepting a reconstructed
|
||||
# registry here would reopen the fingerprint-only wrong-file claim M25-01 closed.
|
||||
# registry here would reopen the fingerprint-only wrong-file claim closed.
|
||||
return claim_exact_authoring_source(
|
||||
receipt,
|
||||
exact_registry=receipt._exact_registry,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Exact-path bounded FFmpeg inspection adapter for M17-11 private media."""
|
||||
"""Exact-path bounded FFmpeg inspection adapter for private media."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -989,7 +989,7 @@ def _silence_wav(sample_count: int) -> bytes:
|
||||
|
||||
|
||||
class _StreamSizeWatchdog:
|
||||
"""M20-08: a cancellation probe that also trips once the destination outgrows the
|
||||
"""a cancellation probe that also trips once the destination outgrows the
|
||||
declared length, bounding how much a misbehaving source can write into owned scratch.
|
||||
|
||||
The protocol boundary cannot force a foreign ``AVSegmentSource`` to respect ceilings; this
|
||||
@@ -3207,7 +3207,7 @@ class QualifiedAVMediaAdapter:
|
||||
temp_bytes = 0
|
||||
# SECURITY: public typed descriptors are assertions, not executable provenance. Every
|
||||
# exact staged source must be freshly probed and reconciled before the first transform.
|
||||
# M20-08: verification is one pass per segment (stage, pin, probe, reconcile); a
|
||||
# verification is one pass per segment (stage, pin, probe, reconcile); a
|
||||
# source-backed non-passthrough staged copy is released as soon as it verifies, so at
|
||||
# most one such copy is alive at a time. Its transform later re-streams the same
|
||||
# content-addressed bytes, and the fresh copy's hash transfers this pass's probe
|
||||
@@ -3300,7 +3300,7 @@ class QualifiedAVMediaAdapter:
|
||||
if segment.segment_id in staged_by_id:
|
||||
transform_source = staged_by_id[segment.segment_id].path
|
||||
else:
|
||||
# M20-08 rolling assembly: re-stream the verified content-addressed
|
||||
# rolling assembly: re-stream the verified content-addressed
|
||||
# bytes for this one transform; the hash equality below carries the
|
||||
# verification pass's probe verdict onto the fresh copy.
|
||||
transform_staged = create_output_lease(self._scratch_root, suffix=".media")
|
||||
@@ -3458,7 +3458,7 @@ class QualifiedAVMediaAdapter:
|
||||
|
||||
Per-segment normalization follows the base plan's exact operations into
|
||||
scratch leases (never published); only the seam aggregate leaves this
|
||||
method. Staged copies are whole-run here — the M20-08 rolling release
|
||||
method. Staged copies are whole-run here — the rolling release
|
||||
is an optimization of the legacy path, not part of its contract — and
|
||||
every ceiling from the base plan's limits still applies.
|
||||
"""
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Exact M17-11 plan-to-media-to-private-store integration boundary."""
|
||||
"""Exact plan-to-media-to-private-store integration boundary."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -102,7 +102,7 @@ def _assert_exact_input_payloads(
|
||||
):
|
||||
raise AVReconstructionPipelineError("input_identity_mismatch")
|
||||
continue
|
||||
# M20-08: an incremental source declares its content identity up front; byte
|
||||
# an incremental source declares its content identity up front; byte
|
||||
# verification happens inside the adapter's bounded stream, which hashes every
|
||||
# chunk and fails closed on any divergence before the copy is used.
|
||||
if (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Private receipt-last store for M17-11 reconstruction outputs.
|
||||
"""Private receipt-last store for reconstruction outputs.
|
||||
|
||||
The store owns one explicit caller-supplied root. Filesystem locators never enter
|
||||
portable receipts or public inspection projections. Immutable member files are
|
||||
@@ -358,7 +358,7 @@ class AVStoreReceipt(Protocol):
|
||||
class AVStoreReceiptCodec:
|
||||
"""Injected receipt contract for one store root.
|
||||
|
||||
The default codec is the exact M17-11 v1 receipt; the M20-09 seam path
|
||||
The default codec is the exact v1 receipt; the seam path
|
||||
instantiates the same store mechanics over its own root with the seam
|
||||
receipt codec. Two stores over one root must agree on the codec.
|
||||
"""
|
||||
@@ -482,7 +482,7 @@ def _hash_regular_file(path: Path, *, maximum_bytes: int) -> tuple[int, str]:
|
||||
|
||||
|
||||
class PrivateAVReconstructionStore:
|
||||
"""One bounded M17-11 store with receipt-last visibility and exact retry."""
|
||||
"""One bounded store with receipt-last visibility and exact retry."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -1311,7 +1311,7 @@ class PrivateAVReconstructionStore:
|
||||
return retired
|
||||
|
||||
def recover(self) -> AVStoreRecoveryReport:
|
||||
"""Remove only bounded, verified M17-11 crash state and unreachable members."""
|
||||
"""Remove only bounded, verified crash state and unreachable members."""
|
||||
|
||||
with self._lock:
|
||||
if self._coordination.active_execution_transactions:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M20-08: owned incremental segment transport over exact accepted artifacts.
|
||||
"""owned incremental segment transport over exact accepted artifacts.
|
||||
|
||||
The reconstruction executor used to require every admitted input as one complete in-memory
|
||||
``bytes`` payload. This module is the bounded alternative: an ``AVSegmentSource`` declares the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M25-02 bounded Authoring source-preview route and explicit runtime seam."""
|
||||
"""bounded Authoring source-preview route and explicit runtime seam."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ class AuthoringOutputRoutes:
|
||||
if request.method != ("POST" if post else "GET"):
|
||||
raise OutputProtocolError()
|
||||
if kind == "capability":
|
||||
# M25-16: a bodiless, unauthenticated-by-workspace read of the closed
|
||||
# a bodiless, unauthenticated-by-workspace read of the closed
|
||||
# capability projection. It takes no admission slot and touches no job.
|
||||
if request.query or request.can_read_body:
|
||||
raise OutputProtocolError()
|
||||
|
||||
@@ -161,7 +161,7 @@ def build_authoring_output_runtime(
|
||||
) -> AuthoringOutputRuntime:
|
||||
"""An output runtime with no registry, attached to the process media runtime manager.
|
||||
|
||||
CRITICAL: no environment reader and no registry built here. The M25-22 runtime read the
|
||||
CRITICAL: no environment reader and no registry built here. The runtime read the
|
||||
environment once at construction and cached an absent registry for the life of the process, so
|
||||
an install or a local selection could never enable final output without a restart. The manager
|
||||
now calls `attach` when a binding becomes active, on its worker thread.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""M20-03: the authoring-workspace adapter — one bounded door for reference and timeline commands.
|
||||
"""the authoring-workspace adapter — one bounded door for reference and timeline commands.
|
||||
|
||||
The Production editor needs the accepted M20-00 reference-set domain and M20-02 timeline domain
|
||||
The Production editor needs the accepted reference-set domain and timeline domain
|
||||
reachable from the sidebar. This adapter is that single door, and three rules shape it:
|
||||
|
||||
* **The domains stay canonical.** Every mutation is decoded, bounded, and handed verbatim to
|
||||
@@ -11,7 +11,7 @@ reachable from the sidebar. This adapter is that single door, and three rules s
|
||||
|
||||
* **Seeding is a claim, not a copy of content.** A workspace is created from one exact live
|
||||
Context workspace through `claim_sidebar_authoring_seed`; each accepted registry asset maps to
|
||||
an M20-00 admitted source with a canonical identity fingerprint and a duration fact. A timed
|
||||
an admitted source with a canonical identity fingerprint and a duration fact. A timed
|
||||
source without a duration fact — or one the H3-Base aggregate cannot hold — is recorded as
|
||||
not-admissible with its exact reason and shown, never guessed at and never dropped.
|
||||
|
||||
@@ -1092,7 +1092,7 @@ class AuthoringWorkspaceRegistry:
|
||||
entry = self._entry(snapshot.workspace_handle)
|
||||
current = entry.timeline_history_v2 or entry.timeline_history
|
||||
# CRITICAL: browser input must never initialize or replace this state. Only an exact
|
||||
# backend-accepted snapshot may bind once; replacement here would bypass M25-11 CAS and
|
||||
# backend-accepted snapshot may bind once; replacement here would bypass CAS and
|
||||
# let a later integration silently erase history.
|
||||
if current is not None:
|
||||
current_snapshot = self._render_snapshot(current)
|
||||
@@ -2048,7 +2048,7 @@ class AuthoringWorkspaceRegistry:
|
||||
)
|
||||
|
||||
def prepare_render_plan(self, handle: str) -> BoundAuthoringRenderPlan:
|
||||
"""Internal M25-18 handoff; no browser route or renderer execution is introduced."""
|
||||
"""Internal handoff; no browser route or renderer execution is introduced."""
|
||||
with self._lock:
|
||||
self._prune(self._clock())
|
||||
entry = self._entry(handle)
|
||||
|
||||
@@ -27,7 +27,7 @@ _ROUTE_POLICY = RoutePolicy(
|
||||
owner_attribute=_ROUTE_OWNER_ATTRIBUTE,
|
||||
method="GET",
|
||||
# CRITICAL: a browser omits `Origin` on a same-origin GET, so this read-only route admits an
|
||||
# absent header. Before M23-47 it read no origin at all, which let any page on any origin read
|
||||
# absent header. Before it read no origin at all, which let any page on any origin read
|
||||
# this host's bundle digest and build inputs.
|
||||
origin=OriginRule.EXACT_OR_ABSENT,
|
||||
refusals=(BuildProvenanceError, OSError),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""Read the explicitly supplied ComfyUI host and publish its capability.
|
||||
|
||||
`M17-20` `D1` splits this in two on purpose. The decision -- what a host state
|
||||
`` `D1` splits this in two on purpose. The decision -- what a host state
|
||||
means for each materialization basis -- lives in the pure
|
||||
`core.generation_profile`. This module only *observes*, and it observes in
|
||||
process: node-class presence, bounded template structure, whether each
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
"""Torch boundary for M20-04 joint AV latent checkpoints.
|
||||
"""Torch boundary for joint AV latent checkpoints.
|
||||
|
||||
The host's joint AV latent is ``{"samples": comfy.nested_tensor.NestedTensor((video, audio))}``
|
||||
-- a plain two-tensor wrapper from the pinned native source, not ``torch.nested`` -- so the
|
||||
codec here is exact per-domain dense decomposition and reconstruction. Decompose reads the
|
||||
two dense sub-tensors into the headerless video-bytes-then-audio-bytes payload the M20-04
|
||||
two dense sub-tensors into the headerless video-bytes-then-audio-bytes payload the
|
||||
store persists, building the authority-gated descriptor from observed shape/dtype facts.
|
||||
Reconstruct validates buffer lengths against the descriptor's exact byte arithmetic BEFORE
|
||||
any tensor is constructed, then reassembles the host pair.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
"""Torch boundary for dual-domain AV mask attachment (M20-06).
|
||||
"""Torch boundary for dual-domain AV mask attachment.
|
||||
|
||||
Builds the two dense per-domain mask tensors an admitted :class:`NestedAVMaskPlan` describes
|
||||
-- video ``(1, 1, T, H, W)`` and audio ``(1, 1, 2, L)`` at the exact latent grid, float32,
|
||||
values only ``MASK_PRESERVE``/``MASK_GENERATE`` -- assembles the host pair value
|
||||
``comfy.nested_tensor.NestedTensor((video_mask, audio_mask))``, and returns a NEW latent
|
||||
dict with ``noise_mask`` attached. The input latent is never mutated; the sampler consumes
|
||||
``noise_mask`` verbatim and applies one mask per domain (the M19-08-measured mechanism).
|
||||
``noise_mask`` verbatim and applies one mask per domain (the -measured mechanism).
|
||||
|
||||
The mask tensors carry the full spatial extent of their domain: the plan is temporal-only
|
||||
(suffix form), so every spatial position within a preserved step is preserved and within a
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"""Facades over the process media runtime manager for the existing media consumers.
|
||||
|
||||
M25-32 replaced the import-time environment activation with the composition-root manager
|
||||
replaced the import-time environment activation with the composition-root manager
|
||||
(`media_runtime_manager`). These names stay as the narrow seams consumers already call. None of
|
||||
them reads the environment or discovers a locator itself; the M25-30 resolver owns both.
|
||||
them reads the environment or discovers a locator itself; the resolver owns both.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -85,7 +85,7 @@ _REQUEST_KEYS: Mapping[str, frozenset[str]] = {
|
||||
}
|
||||
|
||||
# Closed wire vocabularies. The browser decoder refuses any value outside them, so every value the
|
||||
# service or the manager can emit belongs here, and the M25-33 parity fixture pins both sides.
|
||||
# service or the manager can emit belongs here, and the parity fixture pins both sides.
|
||||
FEATURE_STATES = ("ready", "setup_required", "unavailable")
|
||||
FEATURE_REASONS = frozenset(
|
||||
{"activating", "discovering", "activation_failed", "invalid_config"}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Explicit ComfyUI-native model adapter seam for M10-03.
|
||||
"""Explicit ComfyUI-native model adapter seam for.
|
||||
|
||||
The adapter consumes a host-owned ``CLIP`` object supplied by a node/host integration. It never
|
||||
loads a checkpoint, scans model directories, imports ComfyUI, or claims capability from a filename.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""ComfyUI-native exact OCR adapter seam for M11-03.
|
||||
"""ComfyUI-native exact OCR adapter seam for.
|
||||
|
||||
The adapter only consumes a host-owned CLIP supplied by the integration layer. It does not scan
|
||||
model directories, load checkpoints, invoke OCR packages, or select Ollama implicitly.
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
"""Optional read-only finite perception host status boundary."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from .comfyui_route_seam import OriginRule, RoutePolicy, RouteResult, register_owned_route
|
||||
from .perception_settings import SETTINGS_REASONS, read_perception_host_status
|
||||
|
||||
PERCEPTION_HOST_STATUS_ROUTE = "/h3-context/v1/perception/status"
|
||||
PERCEPTION_HOST_STATUS_SCHEMA = "h3.context.perception_host_status.v1"
|
||||
_ROUTE_OWNER_ATTRIBUTE = "__h3_context_perception_host_status_owner__"
|
||||
_ROUTE_REGISTERED = False
|
||||
_ROUTE_POLICY = RoutePolicy(
|
||||
path=PERCEPTION_HOST_STATUS_ROUTE,
|
||||
owner=PERCEPTION_HOST_STATUS_SCHEMA,
|
||||
owner_attribute=_ROUTE_OWNER_ATTRIBUTE,
|
||||
method="GET",
|
||||
origin=OriginRule.EXACT_OR_ABSENT,
|
||||
)
|
||||
|
||||
|
||||
async def _status(_payload: bytes, _context: object) -> RouteResult:
|
||||
wire = read_perception_host_status()
|
||||
# CRITICAL: serialize only the closed finite projection. Returning a binding/settings object
|
||||
# or extra metadata here would expose operator paths through this otherwise read-only GET.
|
||||
if (
|
||||
type(wire) is not dict
|
||||
or any(type(key) is not str for key in wire)
|
||||
or set(wire) != {"schema", "state", "visual", "audio", "reason", "cancellation_observed"}
|
||||
or type(wire["schema"]) is not str
|
||||
or wire["schema"] != PERCEPTION_HOST_STATUS_SCHEMA
|
||||
or type(wire["state"]) is not str
|
||||
or wire["state"] not in {"configured", "not_configured", "refused"}
|
||||
or type(wire["reason"]) is not str
|
||||
or wire["reason"] not in SETTINGS_REASONS
|
||||
or any(
|
||||
type(wire[name]) is not bool for name in ("visual", "audio", "cancellation_observed")
|
||||
)
|
||||
or (
|
||||
wire["state"] == "configured"
|
||||
and (not (wire["visual"] or wire["audio"]) or wire["reason"] != "none")
|
||||
)
|
||||
or (
|
||||
wire["state"] != "configured"
|
||||
and (
|
||||
wire["visual"]
|
||||
or wire["audio"]
|
||||
or wire["cancellation_observed"]
|
||||
or wire["reason"] == "none"
|
||||
)
|
||||
)
|
||||
):
|
||||
raise ValueError("perception_status_invalid")
|
||||
return RouteResult(200, wire)
|
||||
|
||||
|
||||
def _refusal_body(status: int, reason: str) -> dict[str, str]:
|
||||
return {"error": "perception_status_unavailable" if status == 500 else reason}
|
||||
|
||||
|
||||
def ensure_perception_host_status_route_registered() -> bool:
|
||||
global _ROUTE_REGISTERED
|
||||
_ROUTE_REGISTERED = register_owned_route(_ROUTE_POLICY, __name__, _status, _refusal_body)
|
||||
return _ROUTE_REGISTERED
|
||||
@@ -10,7 +10,7 @@ import time
|
||||
from collections import OrderedDict
|
||||
from collections.abc import Callable, Iterator, Mapping
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from contextlib import AbstractContextManager, ExitStack, contextmanager, nullcontext
|
||||
from contextlib import AbstractContextManager, contextmanager, nullcontext
|
||||
from dataclasses import dataclass, field, replace
|
||||
from hashlib import sha256
|
||||
from types import MappingProxyType
|
||||
@@ -102,7 +102,7 @@ from ..core.segment_workspace import (
|
||||
revise_workspace,
|
||||
)
|
||||
from .av_reconstruction_media import QualifiedAVMediaAdapter
|
||||
from .av_reconstruction_store import AVStoreError, PrivateAVReconstructionStore
|
||||
from .av_reconstruction_store import PrivateAVReconstructionStore
|
||||
from .comfyui_route_seam import (
|
||||
RoutePolicy,
|
||||
RouteResult,
|
||||
@@ -131,6 +131,8 @@ from .media_preview_authority import (
|
||||
build_media_preview_source_authority,
|
||||
build_segment_media_preview_source_authority,
|
||||
)
|
||||
from .production_assembly_execution import ProductionAssemblyExecutionService
|
||||
from .production_media_use import prepare_assembly_previews, run_with_media_runtime
|
||||
from .segment_artifact_store import PrivateSegmentArtifactStore
|
||||
|
||||
PRODUCTION_ACTION_SCHEMA = "h3.context.production_workbench.action.v1"
|
||||
@@ -1781,7 +1783,7 @@ class ProductionWorkspaceRegistry:
|
||||
self._assembly_runtime_provider = assembly_runtime_provider
|
||||
self._assembly_submitter = assembly_submitter
|
||||
self._media_lease = media_lease
|
||||
self._assembly_executor: ThreadPoolExecutor | None = None
|
||||
self._assembly_execution = ProductionAssemblyExecutionService()
|
||||
self._entries: dict[str, _ProductionEntry] = {}
|
||||
self._editable_projects: dict[str, _EditableProjectEntry] = {}
|
||||
self._authoring_anchors: dict[str, _ProjectAuthoringAnchor] = {}
|
||||
@@ -1867,7 +1869,7 @@ class ProductionWorkspaceRegistry:
|
||||
"""Register the authority that says whether a run still depends on a workspace.
|
||||
|
||||
CRITICAL: this registry cannot answer that question itself -- it has no run identity -- and
|
||||
before M23-31 nothing answered it at all, so `release_workspace` could remove a workspace a
|
||||
before nothing answered it at all, so `release_workspace` could remove a workspace a
|
||||
live generation sequence still depended on and strand it. That is the invariant
|
||||
`comfyui_h3_context.core.managed_run.NO_LIVE_SEQUENCE_GUARD` names. The probe is the
|
||||
ManagedRun aggregate, supplied by the coordinator that owns it, so the rule has exactly one
|
||||
@@ -2213,7 +2215,7 @@ class ProductionWorkspaceRegistry:
|
||||
# the exact ManagedRun. No caller may release these two authorities separately;
|
||||
# doing so leaks one workspace per serial child or strands a live run without its
|
||||
# workspace. The callback is supplied only by ManagedRunReleaseService after its
|
||||
# centralized M23-51 decision.
|
||||
# centralized decision.
|
||||
if self._editor_recovery_protected is not None and self._editor_recovery_protected(
|
||||
workspace_handle
|
||||
):
|
||||
@@ -4056,7 +4058,7 @@ class ProductionWorkspaceRegistry:
|
||||
sequence: GenerationSequenceProjection,
|
||||
context_workspace_handle: str | None = None,
|
||||
) -> ProductionWorkbenchProjection | None:
|
||||
"""Attach or stage one exact builder-owned M17-08 source for a Context handle.
|
||||
"""Attach or stage one exact builder-owned source for a Context handle.
|
||||
|
||||
This is an internal publisher seam, not a browser action. Missing, foreign or ambiguous
|
||||
ownership is deliberately non-retaining so a later unrelated workspace cannot inherit it.
|
||||
@@ -4669,23 +4671,19 @@ class ProductionWorkspaceRegistry:
|
||||
entry: _ProductionEntry,
|
||||
job: _ProductionAssemblyJob,
|
||||
) -> None:
|
||||
from .media_runtime_manager import MediaRuntimeBusy
|
||||
def unavailable() -> None:
|
||||
self._fail_assembly_job(
|
||||
handle,
|
||||
entry,
|
||||
job,
|
||||
"cancelled" if job.cancellation.is_cancelled() else "assembly_worker_unavailable",
|
||||
)
|
||||
|
||||
with ExitStack() as stack:
|
||||
try:
|
||||
stack.enter_context(self._media_lease())
|
||||
except MediaRuntimeBusy:
|
||||
# A binding transition is in progress: fail fast rather than queue behind it.
|
||||
self._fail_assembly_job(
|
||||
handle,
|
||||
entry,
|
||||
job,
|
||||
"cancelled"
|
||||
if job.cancellation.is_cancelled()
|
||||
else "assembly_worker_unavailable",
|
||||
)
|
||||
return
|
||||
self._run_leased_assembly_job(handle, entry, job)
|
||||
run_with_media_runtime(
|
||||
lease=self._media_lease,
|
||||
operation=lambda: self._run_leased_assembly_job(handle, entry, job),
|
||||
on_busy=unavailable,
|
||||
)
|
||||
|
||||
def _run_leased_assembly_job(
|
||||
self,
|
||||
@@ -4711,31 +4709,23 @@ class ProductionWorkspaceRegistry:
|
||||
entry.touched_at = self._clock()
|
||||
live_reconstructions = self._live_reconstruction_transaction_ids()
|
||||
snapshot_ms = self._clock_ms()
|
||||
# IMPORTANT (B-M2522-STORE-01): retire complete reconstructions no live workspace can
|
||||
# reach before this job needs quota; committed receipts otherwise fill the persistent store
|
||||
# after `max_transactions` assemblies and every later assembly fails. The reference set
|
||||
# and its instant are taken under the registry lock and include every job, in any state,
|
||||
# so a publication racing this one is kept. Retirement is best effort: a store that
|
||||
# refuses it reports its own typed failure through this job's execution.
|
||||
try:
|
||||
job.runtime.reconstruction_store.retire_unreferenced(
|
||||
keep_transaction_ids=live_reconstructions,
|
||||
completed_before_ms=snapshot_ms,
|
||||
)
|
||||
except AVStoreError:
|
||||
pass
|
||||
self._assembly_execution.retire_reconstructions(
|
||||
runtime=job.runtime,
|
||||
live_transaction_ids=live_reconstructions,
|
||||
snapshot_ms=snapshot_ms,
|
||||
)
|
||||
transaction_id = "m26tx_" + job.job_id.removeprefix("m26job_")
|
||||
try:
|
||||
execution = execute_m26_production_assembly(
|
||||
execution = self._assembly_execution.execute(
|
||||
runtime=job.runtime,
|
||||
transaction_id=transaction_id,
|
||||
authorization=job.authorization,
|
||||
automatic_plan=job.automatic_plan,
|
||||
generation_sequence=job.generation_sequence,
|
||||
artifact_receipts=job.artifact_receipts,
|
||||
cut_boundary_receipts=job.automatic_plan.cut_boundary_receipts,
|
||||
clock_ms=self._clock_ms,
|
||||
cancellation=job.cancellation,
|
||||
execute_factory=lambda **kwargs: execute_m26_production_assembly(**kwargs),
|
||||
)
|
||||
except M26ProductionAssemblyError as exc:
|
||||
self._fail_assembly_job(
|
||||
@@ -4750,41 +4740,27 @@ class ProductionWorkspaceRegistry:
|
||||
return
|
||||
|
||||
with self._lock:
|
||||
# IMPORTANT: snapshot after execution; capturing earlier falsely rejects a valid
|
||||
# equal-value authority replacement as stale. Services never commit publication.
|
||||
original_authorities = entry.accepted_authorities
|
||||
original_previews = entry.preview_sources
|
||||
workspace = entry.workspace
|
||||
authorities = replace(original_authorities, assembly_execution=execution)
|
||||
try:
|
||||
_validate_accepted_authorities(workspace, authorities)
|
||||
preview_sources = dict(original_previews)
|
||||
aggregate_output = next(
|
||||
output
|
||||
for output in execution.reconstruction_receipt.outputs
|
||||
if output.kind is AVOutputKind.RECONSTRUCTION_FULL
|
||||
retained_previews = prepare_assembly_previews(
|
||||
execution=execution,
|
||||
runtime=job.runtime,
|
||||
original_previews=original_previews,
|
||||
opaque_handle=lambda handle: _opaque_output_handle(handle),
|
||||
source_factory=lambda **kwargs: build_media_preview_source_authority(**kwargs),
|
||||
route_refusal=lambda: ProductionWorkbenchError("assembly_preview_unavailable", 422),
|
||||
clock=self._clock,
|
||||
admission_seconds=PRODUCTION_GENERATED_PREVIEW_ADMISSION_SECONDS,
|
||||
max_source_bytes=MAX_MEDIA_PREVIEW_SOURCE_BYTES,
|
||||
max_duration_ms=MAX_MEDIA_PREVIEW_DURATION_MS,
|
||||
cancellation=job.cancellation,
|
||||
)
|
||||
# IMPORTANT: the frozen preview size/duration bounds do not limit assembly. Only
|
||||
# these validated receipt bounds permit ready-without-preview; integrity failures do
|
||||
# not. Prepare eligible authority outside registry locks before exposing success.
|
||||
if (
|
||||
aggregate_output.byte_length <= MAX_MEDIA_PREVIEW_SOURCE_BYTES
|
||||
and aggregate_output.duration.fraction * 1000 <= MAX_MEDIA_PREVIEW_DURATION_MS
|
||||
):
|
||||
from .comfyui_media_preview import ensure_media_preview_route_registered
|
||||
|
||||
if not ensure_media_preview_route_registered():
|
||||
raise ProductionWorkbenchError("assembly_preview_unavailable", 422)
|
||||
aggregate_handle = _opaque_output_handle(aggregate_output.handle)
|
||||
preview_sources[aggregate_handle] = build_media_preview_source_authority(
|
||||
plan=execution.embedded_plan,
|
||||
receipt=execution.reconstruction_receipt,
|
||||
store=job.runtime.reconstruction_store,
|
||||
adapter=job.runtime.low_level_adapter,
|
||||
opaque_output_handle=aggregate_handle,
|
||||
deadline=self._clock() + PRODUCTION_GENERATED_PREVIEW_ADMISSION_SECONDS,
|
||||
cancellation=job.cancellation,
|
||||
clock=self._clock,
|
||||
)
|
||||
retained_previews = MappingProxyType(preview_sources)
|
||||
_preview_sources_wire_bytes(retained_previews)
|
||||
except Exception:
|
||||
self._fail_assembly_job(
|
||||
@@ -4886,19 +4862,12 @@ class ProductionWorkspaceRegistry:
|
||||
self._run_assembly_job(handle, entry, job)
|
||||
|
||||
try:
|
||||
if self._assembly_submitter is not None:
|
||||
self._assembly_submitter(callback)
|
||||
return
|
||||
with self._lock:
|
||||
if self._assembly_executor is None:
|
||||
# IMPORTANT: the executor is allocated only after exact authorization. Missing
|
||||
# media runtime therefore creates no thread, worker, output or temporary file.
|
||||
self._assembly_executor = ThreadPoolExecutor(
|
||||
max_workers=1,
|
||||
thread_name_prefix="h3-m26-assembly",
|
||||
)
|
||||
executor = self._assembly_executor
|
||||
executor.submit(callback)
|
||||
self._assembly_execution.submit(
|
||||
callback,
|
||||
submitter=self._assembly_submitter,
|
||||
allocation_lock=self._lock,
|
||||
executor_factory=ThreadPoolExecutor,
|
||||
)
|
||||
except Exception:
|
||||
self._fail_assembly_job(handle, entry, job, "assembly_worker_unavailable")
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Ten adapter modules register twelve routes, and ten of them each carried their o
|
||||
forty lines: the lazy host lookup, the already-owned scan, the content-type check, the origin check,
|
||||
the byte budget, the streaming read that has to re-check the budget because `Content-Length` is a
|
||||
claim rather than a fact, and the mapping from a typed refusal to a status. Copies drift, and by
|
||||
M23-47 these had drifted in five measurable ways.
|
||||
these had drifted in five measurable ways.
|
||||
|
||||
The one that matters is the origin check, which exists in four different forms across ten routes:
|
||||
|
||||
@@ -33,7 +33,7 @@ strings, watch for a closing transport and answer with streamed or deliberately
|
||||
edge is a different edge, and flattening it into this one would delete behaviour rather than share
|
||||
it. Their admission is not different: every edge asks `origin_accepted` below.
|
||||
|
||||
Which origin is "owned" is decided per request (M23-57). It used to be the literal
|
||||
Which origin is "owned" is decided per request. It used to be the literal
|
||||
`http://127.0.0.1:8188`, which refused the same page served at `localhost`, another port, IPv6
|
||||
loopback, a directly served interface address or through a proxy. The rule, and why a trusted
|
||||
alias never authorizes another, is in `core/request_target.py`; this module only gathers the
|
||||
@@ -135,7 +135,7 @@ class RouteResult:
|
||||
#: receives the status and this seam's stable reason and returns the wire body the owning route
|
||||
#: already answers with, or `None` for a bodiless response. Routes answer the same refusal with
|
||||
#: four different shapes today -- bodiless, `{"error": code}`, `{"schema", "category"}` and a
|
||||
#: typed envelope -- and unifying that is a wire change M23-34 owns. The seam therefore asks each
|
||||
#: typed envelope -- and unifying that is a wire change owns. The seam therefore asks each
|
||||
#: route for its own body rather than imposing one.
|
||||
RefusalBody = Callable[[int, str], object | None]
|
||||
|
||||
@@ -477,7 +477,7 @@ def register_owned_route(
|
||||
return refuse(415, "media_type_rejected")
|
||||
# CRITICAL: the origin check runs before the prelude and before the body is read, so a
|
||||
# foreign caller cannot make this process read a header it may not send or materialize a
|
||||
# request it was never entitled to send. Moving it later reopens M23-47's sidebar gap, where
|
||||
# request it was never entitled to send. Moving it later reopens 's sidebar gap, where
|
||||
# the check sat after the decode and only covered some of the route's actions.
|
||||
if not origin_accepted(request, policy.origin):
|
||||
return refuse(403, "origin_rejected")
|
||||
|
||||
@@ -1003,7 +1003,7 @@ _AGGREGATE_ENDED = frozenset(
|
||||
#: step. CRITICAL: `OUTPUT_VERIFICATION_FAILED` belongs here. It has no trigger of its own -- the
|
||||
#: run has not ended -- but omitting it from *both* places left the aggregate saying `submitted`
|
||||
#: while the coordinator said verification had failed, which made the `output_verification_failed`
|
||||
#: row of `tests/test_m23_31_coordinator_projection.py::_CONSISTENT` false. Nothing caught it,
|
||||
#: row of `tests/test__coordinator_projection.py::_CONSISTENT` false. Nothing caught it,
|
||||
#: because that row was the one the projection tests never drove.
|
||||
#: The job states in which the host may still be executing the prompt, and therefore the states a
|
||||
#: cancel must answer with `unknown_ownership` rather than `cancelled`. CRITICAL: this is the only
|
||||
@@ -1012,11 +1012,11 @@ _AGGREGATE_ENDED = frozenset(
|
||||
#: It is deliberately *not* claimed to be the same object as
|
||||
#: `core.managed_run.HOST_MAY_HOLD_THE_PROMPT`, and an earlier comment here said so wrongly. The two
|
||||
#: answer one question over two vocabularies related many-to-many by
|
||||
#: `tests/test_m23_31_coordinator_projection.py::_CONSISTENT`, and no choice of either set makes
|
||||
#: `tests/test__coordinator_projection.py::_CONSISTENT`, and no choice of either set makes
|
||||
#: them agree row for row: job `running` also covers aggregate `artifact_recorded`, while job
|
||||
#: `output_verification_failed` covers `running` and `artifact_recorded` yet is not a state in which
|
||||
#: the host may still hold the prompt -- verification failing proves it already ran. What is true,
|
||||
#: and what `tests/test_m23_31_cancel_predicate.py` pins, is the one-way implication: every
|
||||
#: and what `tests/test__cancel_predicate.py` pins, is the one-way implication: every
|
||||
#: aggregate state consistent with a job state in this set is in `HOST_MAY_HOLD_THE_PROMPT`.
|
||||
HOST_MAY_HOLD_JOB_STATES = frozenset(
|
||||
{
|
||||
@@ -2160,9 +2160,9 @@ class SequenceCoordinatorRegistry:
|
||||
|
||||
CRITICAL: this is called from `_publish`, which is the coordinator's only state mutation
|
||||
point, so a new handler cannot forget to mirror. The aggregate is a second record of the
|
||||
same run, which is only safe because `test_m23_31_coordinator_projection.py` asserts the two
|
||||
same run, which is only safe because `test__coordinator_projection.py` asserts the two
|
||||
never disagree; if that check is ever removed, this becomes exactly the divergent-authority
|
||||
defect M23-31 exists to remove.
|
||||
defect exists to remove.
|
||||
|
||||
CRITICAL: stay after Production publication (legacy) or validated private child projection
|
||||
(managed parent), and before entry mutation. Mirroring before a refused CAS/projection
|
||||
@@ -2198,7 +2198,7 @@ class SequenceCoordinatorRegistry:
|
||||
# name. `record_submission` without `prompt_id` leaves the aggregate in `submitted`
|
||||
# holding no prompt, and the aggregate is what a detached run is retained *as* -- a
|
||||
# returning client would then have no exact prompt id to read `/history/{prompt_id}`
|
||||
# with, and the M23-51 terminal proof would be computed over an absent field for every
|
||||
# with, and the terminal proof would be computed over an absent field for every
|
||||
# run alike. The missing prompt id raises rather than defaulting: a submission the
|
||||
# coordinator recorded without one is a coordinator defect, and silently storing
|
||||
# `None` is how it would stay invisible.
|
||||
@@ -2401,7 +2401,7 @@ class SequenceCoordinatorRegistry:
|
||||
# the two joins it has already made are recorded with the authoritative values `_prepare`
|
||||
# holds. The context and production facts predate the run handle, so recording them later
|
||||
# would mean reconstructing them from a second source -- which is the class of defect
|
||||
# M23-19 was.
|
||||
# was.
|
||||
self._managed.create(run_handle)
|
||||
self._managed.advance(
|
||||
run_handle, ManagedRunTrigger.STAGE_CONTEXT, context_revision=workspace.revision
|
||||
@@ -3963,7 +3963,7 @@ def build_coordinator(
|
||||
"""Construct the process coordinator. Called only by the composition root.
|
||||
|
||||
CRITICAL: the production registry arrives as an argument rather than being reached for here.
|
||||
Since M23-31 this constructor binds the process's live-sequence authority onto that registry
|
||||
Since this constructor binds the process's live-sequence authority onto that registry
|
||||
and binding twice is refused, so the coordinator and the production route must be handed the
|
||||
same instance. The composition root is what guarantees that, and it is also what makes the
|
||||
construction happen exactly once under one lock -- two route handlers run on `asyncio.to_thread`
|
||||
|
||||
@@ -843,7 +843,7 @@ class SidebarProductionSeed:
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class SidebarAuthoringSource:
|
||||
"""One content-free admitted source row for the authoring-workspace seed (M20-03)."""
|
||||
"""One content-free admitted source row for the authoring-workspace seed."""
|
||||
|
||||
asset_id: str
|
||||
kind: MediaKind
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
"""Torch boundary for two-ended bridge latent composition and interval masking (M20-07).
|
||||
"""Torch boundary for two-ended bridge latent composition and interval masking.
|
||||
|
||||
Composition is exact byte arithmetic first and tensors second. The M20-04 store hands each
|
||||
Composition is exact byte arithmetic first and tensors second. The store hands each
|
||||
boundary's domains back as headerless C-contiguous little-endian buffers, so the bridge
|
||||
input -- left tail context, zero-initialized middle, right head context, per domain -- is
|
||||
assembled by pure-Python block slicing over the declared plan extents (a temporal-axis
|
||||
slice of a C-contiguous buffer is a fixed-stride byte window; float zeros of every admitted
|
||||
dtype are zero bytes). Only the finished payloads become tensors, through the same default
|
||||
factories the reviewed M20-04 codec uses, and the pair is the host's
|
||||
factories the reviewed codec uses, and the pair is the host's
|
||||
``comfy.nested_tensor.NestedTensor``.
|
||||
|
||||
The interval mask renders the M20-06 sampler semantics (``0 = preserve, 1 = generate``,
|
||||
The interval mask renders the sampler semantics (``0 = preserve, 1 = generate``,
|
||||
one dense mask per domain at the exact latent grid) in the two-sided form the bridge plan
|
||||
declares: preserved prefix, generated middle, preserved suffix. Every binding gate --
|
||||
plan-to-descriptor fingerprints, byte lengths against descriptor arithmetic, mask-to-plan
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""ComfyUI-native VLM observation adapter for M11-02.
|
||||
"""ComfyUI-native VLM observation adapter for.
|
||||
|
||||
This module is an optional integration seam. It receives a host-owned CLIP and reuses
|
||||
``ComfyUINativeCLIPAdapter`` for the exact built-in Generate Text call order; it never discovers or
|
||||
|
||||
@@ -81,7 +81,7 @@ class CompositionError(RuntimeError):
|
||||
# CRITICAL: re-entrant, and construction stays inside it. The coordinator's constructor asks for
|
||||
# the production registry, so a non-re-entrant lock would deadlock on a cold start. Two route
|
||||
# handlers run on `asyncio.to_thread` worker threads and can both observe an empty table at once;
|
||||
# since M23-31 the coordinator's constructor binds the process's live-sequence authority onto the
|
||||
# since the coordinator's constructor binds the process's live-sequence authority onto the
|
||||
# production registry and binding twice is refused, so an unsynchronised double construction turns
|
||||
# a cold-start race into a 500 on a request that did nothing wrong. Re-checking inside the lock is
|
||||
# what makes the binding happen once, and hoisting either check out is the tempting simplification
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Explicit injected contact-sheet composition seam for M21-02.
|
||||
"""Explicit injected contact-sheet composition seam for.
|
||||
|
||||
Like `adapters/video_decode.py`, this adapter is a qualification fixture boundary rather than a
|
||||
compositor implementation. A later caller may replace the producer with a bounded image pipeline
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""Private durable checkpoint store for joint AV latent artifacts (M20-04).
|
||||
"""Private durable checkpoint store for joint AV latent artifacts.
|
||||
|
||||
One bounded private store rooted only at an explicit caller-owned directory, mirroring the
|
||||
accepted ``PrivateSegmentArtifactStore`` safety model for the M20-04 checkpoint family: same
|
||||
accepted ``PrivateSegmentArtifactStore`` safety model for the checkpoint family: same
|
||||
same-root policy/lock/quota coordination, same atomic no-clobber publication, same bounded
|
||||
aggregate-before-mutation recovery, same Windows junction/reparse/TOCTOU defenses -- imported
|
||||
from ``segment_artifact_store`` rather than reimplemented, per the accepted
|
||||
@@ -629,7 +629,7 @@ class PrivateJointAVLatentStore:
|
||||
) -> tuple[int, str]:
|
||||
"""Stream one exact reusable checkpoint into a caller-owned new file.
|
||||
|
||||
The M20-08 bounded-chunk primitive: the payload never exists in memory beyond one
|
||||
The bounded-chunk primitive: the payload never exists in memory beyond one
|
||||
chunk, the destination is created exclusively, and a length or fingerprint divergence
|
||||
removes the partial copy and fails closed.
|
||||
"""
|
||||
|
||||
@@ -11,6 +11,7 @@ from collections.abc import Callable, Iterator
|
||||
from contextlib import contextmanager
|
||||
from dataclasses import asdict, dataclass
|
||||
from pathlib import Path
|
||||
from typing import cast
|
||||
|
||||
from ..core.canonical import canonical_bytes
|
||||
from ..core.private_storage_layout import MANAGED_ARTIFACT_SUBTREE, MIB, private_subtree_path
|
||||
@@ -209,12 +210,17 @@ def _acquire_lock(path: Path, expected: bytes, budget: _Budget | None = None) ->
|
||||
if os.name == "nt":
|
||||
import msvcrt
|
||||
|
||||
msvcrt.locking(descriptor, msvcrt.LK_NBLCK, 1)
|
||||
# IMPORTANT: lazy native access preserves byte locking on Windows while POSIX
|
||||
# stubs omit the API; never replace either branch with a no-op or blocking lock.
|
||||
locking = cast(Callable[[int, int, int], None], getattr(msvcrt, "locking")) # noqa: B009
|
||||
locking(descriptor, int(getattr(msvcrt, "LK_NBLCK")), 1) # noqa: B009
|
||||
else:
|
||||
import fcntl
|
||||
|
||||
# Windows stubs omit POSIX lock APIs; this branch only runs on POSIX.
|
||||
fcntl.flock(descriptor, fcntl.LOCK_EX | fcntl.LOCK_NB) # type: ignore[attr-defined]
|
||||
flock = cast(Callable[[int, int], None], getattr(fcntl, "flock")) # noqa: B009
|
||||
exclusive = int(getattr(fcntl, "LOCK_EX")) # noqa: B009
|
||||
nonblocking = int(getattr(fcntl, "LOCK_NB")) # noqa: B009
|
||||
flock(descriptor, exclusive | nonblocking)
|
||||
except OSError as exc:
|
||||
raise ArtifactStoreError("scope_busy") from exc
|
||||
# IMPORTANT: read through the lock owner; reopening byte zero fails on Windows.
|
||||
@@ -365,7 +371,8 @@ def _unlink_exact(path: Path, expected: os.stat_result, parent_identity: tuple[i
|
||||
_windows_delete_exact(path, expected=expected)
|
||||
else:
|
||||
# Windows stubs omit these flags; do not weaken no-follow on the POSIX path.
|
||||
descriptor = os.open(path.parent, os.O_RDONLY | os.O_DIRECTORY | os.O_NOFOLLOW) # type: ignore[attr-defined]
|
||||
flags = os.O_RDONLY | int(getattr(os, "O_DIRECTORY")) | int(getattr(os, "O_NOFOLLOW")) # noqa: B009
|
||||
descriptor = os.open(path.parent, flags)
|
||||
try:
|
||||
if (
|
||||
_directory_identity(os.fstat(descriptor)) != parent_identity
|
||||
@@ -387,10 +394,8 @@ def _remove_empty_directory(
|
||||
if _directory_identity(validate_directory(path).lstat()) != expected:
|
||||
raise ArtifactStoreError("scope_identity_changed")
|
||||
if os.name != "nt":
|
||||
directory_descriptor = os.open(
|
||||
path.parent,
|
||||
os.O_RDONLY | os.O_DIRECTORY | os.O_NOFOLLOW, # type: ignore[attr-defined]
|
||||
)
|
||||
flags = os.O_RDONLY | int(getattr(os, "O_DIRECTORY")) | int(getattr(os, "O_NOFOLLOW")) # noqa: B009
|
||||
directory_descriptor = os.open(path.parent, flags)
|
||||
try:
|
||||
if (
|
||||
_directory_identity(os.fstat(directory_descriptor)) != parent_identity
|
||||
|
||||
@@ -4,7 +4,7 @@ The pure aggregate in `core/managed_run.py` decides what a run may do. This modu
|
||||
place that holds runs, so it owns the three things an immutable aggregate cannot: how many runs
|
||||
exist, when a stale one is pruned, and which lock serializes a transition.
|
||||
|
||||
The locking is two levels because one is not enough and a global one is what M23-31 is removing.
|
||||
The locking is two levels because one is not enough and a global one is what is removing.
|
||||
A single registry-wide lock made every handler running under `asyncio.to_thread` contend with
|
||||
every other handler, including handlers for unrelated runs.
|
||||
"""
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""The single owner of the release/detach decision and of the mutation it implies.
|
||||
|
||||
Plan section 3.4: the HTTP route, the coordinator table and the ManagedRun registry must not each
|
||||
derive their own predicate. Before M23-51 the coordinator's `release_sequence` branch *was* the
|
||||
derive their own predicate. Before the coordinator's `release_sequence` branch *was* the
|
||||
predicate -- it had none, and dropped whatever it was given -- and the obvious repair is to add a
|
||||
state check to that branch. That repair is the wrong shape: the same question would then be asked
|
||||
again by whatever next needs it, exactly as the cancel question was asked twice with two different
|
||||
@@ -117,7 +117,7 @@ class ManagedRunReleaseService:
|
||||
else:
|
||||
# IMPORTANT: M26 owns a private Production row per serial child. Let that owner
|
||||
# bracket this service's exact ManagedRun mutation, while this service remains the
|
||||
# sole authority deciding whether M23-51 permits removal at all.
|
||||
# sole authority deciding whether permits removal at all.
|
||||
removal_transaction(release_live_sequence)
|
||||
return ReleaseOutcome(
|
||||
disposition=ReleaseDisposition.RELEASED.value,
|
||||
|
||||
@@ -1799,7 +1799,7 @@ def build_managed_sequence_authorization(
|
||||
compiler_fingerprint: str,
|
||||
host_capability_fingerprint: str,
|
||||
) -> ManagedSequenceAuthorizationV1:
|
||||
"""Translate exactly one retained M26-03 authority into a content-free parent."""
|
||||
"""Translate exactly one retained authority into a content-free parent."""
|
||||
|
||||
if type(authority) is not ProductionAutomaticPlanAuthorityV2:
|
||||
raise ManagedSequenceServiceError("automatic_plan_semantic_authority_stale", 409)
|
||||
@@ -3161,7 +3161,7 @@ class ManagedSequenceService:
|
||||
request_id=authority.request_id,
|
||||
candidate=candidate,
|
||||
)
|
||||
# CRITICAL: compile/validation refusal must destroy the exact M26-03 Context before
|
||||
# CRITICAL: compile/validation refusal must destroy the exact Context before
|
||||
# publishing the parent pause. Reversing this order exposes a FAILED parent while its
|
||||
# supposedly compile-only mutable workspace is still live and no longer addressable.
|
||||
try:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""The one process-owned media runtime binding every media consumer shares.
|
||||
|
||||
M25-30 resolves which qualified ffmpeg/ffprobe pair this host may use and M25-31 can install one.
|
||||
resolves which qualified ffmpeg/ffprobe pair this host may use and can install one.
|
||||
Neither makes a feature usable: that needs one exact adapter constructed on the admitted pair,
|
||||
published to the Authoring preview seam and handed to the stateful consumers (final output, M26
|
||||
assembly stores, derivatives). This manager owns that step, so an absent runtime becomes ready in
|
||||
|
||||
@@ -539,7 +539,7 @@ def _host_locator(value: object, *, os_name: str) -> Path:
|
||||
# CRITICAL: this port is not media-runtime-only. The coordinator's App Mode closure stores every
|
||||
# verified copy under `private_root()` on every platform, so POSIX hosts must be judged by the
|
||||
# POSIX grammar. Sending them through the Windows drive-path grammar is what refused every
|
||||
# Linux root and failed the closure with `host_storage_unavailable` (M23-67, defect D1).
|
||||
# Linux root and failed the closure with `host_storage_unavailable` (, defect D1).
|
||||
if os_name == "nt":
|
||||
locator: object = lexical_local_directory(value)
|
||||
elif os_name == "posix":
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Explicit loopback Ollama native-API fallback for M10-03.
|
||||
"""Explicit loopback Ollama native-API fallback for.
|
||||
|
||||
This module is optional and never imported by the pure core. It exposes a narrow transport and
|
||||
adapter: only version/tags/show/ps/chat/generate paths are accepted, redirects and credentials are
|
||||
@@ -143,6 +143,18 @@ def _endpoint_parts(endpoint: str) -> tuple[SplitResult, str, int]:
|
||||
raise ModelTransportError("Ollama endpoint syntax is invalid")
|
||||
if parsed.scheme != "http" or parsed.username is not None or parsed.password is not None:
|
||||
raise ModelTransportError("Ollama endpoint must be credential-free loopback HTTP")
|
||||
if "[" in parsed.netloc or "]" in parsed.netloc:
|
||||
# CRITICAL: older urlsplit accepts stray brackets and invalid enclosed literals.
|
||||
# Validate the whole IPv6 authority here; a modern parser exception is not the boundary.
|
||||
bracketed = re.fullmatch(r"\[([^\[\]]+)\](?::[^\[\]]*)?", parsed.netloc)
|
||||
literal = None
|
||||
if bracketed is not None:
|
||||
try:
|
||||
literal = ipaddress.IPv6Address(bracketed.group(1))
|
||||
except ValueError:
|
||||
pass
|
||||
if literal is None:
|
||||
raise ModelTransportError("Ollama endpoint syntax is invalid")
|
||||
if parsed.query or parsed.fragment:
|
||||
raise ModelTransportError("Ollama endpoint must not contain query or fragment data")
|
||||
if parsed.path not in {"", "/", "/api"}:
|
||||
@@ -344,7 +356,7 @@ _SEMANTIC_CONNECT_PENDING = frozenset(
|
||||
|
||||
|
||||
class SemanticDeadlineOllamaTransport:
|
||||
"""Exact cumulative-deadline HTTP/1.1 transport for the M17-16 semantic lane."""
|
||||
"""Exact cumulative-deadline HTTP/1.1 transport for the semantic lane."""
|
||||
|
||||
def __init__(self, expected_model_id: str) -> None:
|
||||
if (
|
||||
@@ -1181,7 +1193,7 @@ _SEMANTIC_UNLOAD_KEYS = frozenset(
|
||||
|
||||
|
||||
class SemanticOllamaExecutionError(RuntimeError):
|
||||
"""A content-free, terminal M17-16 provider outcome."""
|
||||
"""A content-free, terminal provider outcome."""
|
||||
|
||||
def __init__(self, code: str) -> None:
|
||||
self.code = code
|
||||
@@ -1421,7 +1433,7 @@ def _validate_semantic_response_json(
|
||||
*,
|
||||
path: str | None = None,
|
||||
) -> dict[str, object]:
|
||||
"""Validate the complete decoded M17-16 response envelope before field selection."""
|
||||
"""Validate the complete decoded response envelope before field selection."""
|
||||
|
||||
def valid_text(item: object, maximum: int) -> bool:
|
||||
if type(item) is not str or not item or len(item) > maximum:
|
||||
@@ -1885,7 +1897,7 @@ def _semantic_chat_payload(
|
||||
profile: SemanticExecutionProfile,
|
||||
generation: ModelGenerationRequest,
|
||||
) -> dict[str, object]:
|
||||
"""Build the sole exact M17-16 chat payload without retaining private content."""
|
||||
"""Build the sole exact chat payload without retaining private content."""
|
||||
|
||||
payload: dict[str, object] = {
|
||||
"model": profile.model_id,
|
||||
|
||||
@@ -90,6 +90,14 @@ class DecodedCfrVideo:
|
||||
frame_rate: Decimal
|
||||
|
||||
|
||||
def _valid_profiles(profiles: object) -> bool:
|
||||
return profiles is None or (
|
||||
type(profiles) is frozenset
|
||||
and bool(profiles)
|
||||
and all(type(profile) is str and profile in PROFILE_MODELS for profile in profiles)
|
||||
)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class PerceptionHostSettings:
|
||||
python_executable: Path = field(repr=False)
|
||||
@@ -97,6 +105,7 @@ class PerceptionHostSettings:
|
||||
weight_path: Path | None = field(default=None, repr=False)
|
||||
processor_dir: Path | None = field(default=None, repr=False)
|
||||
cancelled: Callable[[], bool] = field(default=lambda: False, repr=False, compare=False)
|
||||
profiles: frozenset[str] | None = field(default=None, repr=False)
|
||||
|
||||
def __post_init__(self) -> None:
|
||||
for value in (
|
||||
@@ -109,6 +118,8 @@ class PerceptionHostSettings:
|
||||
raise ContractValidationError("host paths must be absolute operator configuration")
|
||||
if not callable(self.cancelled):
|
||||
raise ContractValidationError("host cancellation probe must be callable")
|
||||
if not _valid_profiles(self.profiles):
|
||||
raise ContractValidationError("host profile subset must be exact and admitted")
|
||||
|
||||
|
||||
@dataclass(frozen=True, eq=False)
|
||||
@@ -129,13 +140,18 @@ def _configuration(binding: PerceptionHostBinding) -> tuple[Any, ...]:
|
||||
settings.weight_path,
|
||||
settings.processor_dir,
|
||||
id(settings.cancelled),
|
||||
settings.profiles,
|
||||
)
|
||||
|
||||
|
||||
def _is_current(binding: PerceptionHostBinding) -> bool:
|
||||
# CRITICAL: frozen dataclasses alone do not attest nested configuration. Pin the
|
||||
# registration snapshot so changing paths/cancellation cannot reuse old authority.
|
||||
return _BINDING is binding and _SETTINGS.get(binding) == _configuration(binding)
|
||||
# CRITICAL: validate the subset's exact type before equality or membership. A mutated
|
||||
# subclass could forge admission; the pinned snapshot revokes changed paths/profiles/probes.
|
||||
return (
|
||||
_BINDING is binding
|
||||
and _valid_profiles(binding.settings.profiles)
|
||||
and _SETTINGS.get(binding) == _configuration(binding)
|
||||
)
|
||||
|
||||
|
||||
def configure_perception_host(settings: PerceptionHostSettings) -> PerceptionHostBinding:
|
||||
@@ -165,7 +181,9 @@ def perception_configured(profile_id: str) -> bool:
|
||||
return (
|
||||
binding is not None
|
||||
and _is_current(binding)
|
||||
and type(profile_id) is str
|
||||
and profile_id in PROFILE_MODELS
|
||||
and (binding.settings.profiles is None or profile_id in binding.settings.profiles)
|
||||
and (
|
||||
profile_id != AUDIO_PROFILE
|
||||
or (
|
||||
@@ -520,6 +538,9 @@ def execute_perception(
|
||||
local_service_consent: bool,
|
||||
request: RawContextRequest | None = None,
|
||||
) -> QualifiedPerceptionResult:
|
||||
# CRITICAL: unsupported platforms must refuse before probes, media decoding or worker IO.
|
||||
if os.name != "nt":
|
||||
raise PerceptionExecutionError("unsupported_platform")
|
||||
with _LOCK:
|
||||
binding = _BINDING
|
||||
if binding is None or not perception_configured(profile_id):
|
||||
|
||||
@@ -61,13 +61,19 @@ class _Accounting(ctypes.Structure):
|
||||
]
|
||||
|
||||
|
||||
class _ProcessIds(ctypes.Structure):
|
||||
_fields_ = [("assigned", wintypes.DWORD), ("count", wintypes.DWORD)]
|
||||
|
||||
|
||||
class OwnedWindowsJob:
|
||||
"""Assign before resuming: process enumeration alone cannot close the spawn race."""
|
||||
|
||||
def __init__(self, process: Any) -> None:
|
||||
psutil = import_module("psutil")
|
||||
|
||||
kernel = ctypes.WinDLL("kernel32", use_last_error=True)
|
||||
# IMPORTANT: keep the real Windows loader lazy; POSIX ctypes stubs omit WinDLL.
|
||||
win_dll = getattr(ctypes, "WinDLL") # noqa: B009
|
||||
kernel = win_dll("kernel32", use_last_error=True)
|
||||
signatures = {
|
||||
"CreateJobObjectW": ([ctypes.c_void_p, wintypes.LPCWSTR], wintypes.HANDLE),
|
||||
"SetInformationJobObject": (
|
||||
@@ -82,6 +88,12 @@ class OwnedWindowsJob:
|
||||
),
|
||||
"OpenThread": ([wintypes.DWORD, wintypes.BOOL, wintypes.DWORD], wintypes.HANDLE),
|
||||
"ResumeThread": ([wintypes.HANDLE], wintypes.DWORD),
|
||||
"OpenProcess": ([wintypes.DWORD, wintypes.BOOL, wintypes.DWORD], wintypes.HANDLE),
|
||||
"IsProcessInJob": (
|
||||
[wintypes.HANDLE, wintypes.HANDLE, ctypes.POINTER(wintypes.BOOL)],
|
||||
wintypes.BOOL,
|
||||
),
|
||||
"WaitForSingleObject": ([wintypes.HANDLE, wintypes.DWORD], wintypes.DWORD),
|
||||
"CloseHandle": ([wintypes.HANDLE], wintypes.BOOL),
|
||||
}
|
||||
for name, (arguments, result) in signatures.items():
|
||||
@@ -115,13 +127,48 @@ class OwnedWindowsJob:
|
||||
self.close()
|
||||
raise
|
||||
|
||||
def _capture_members(self, handles: list[Any], deadline: float) -> None:
|
||||
capacity = 16
|
||||
while True:
|
||||
buffer = ctypes.create_string_buffer(
|
||||
ctypes.sizeof(_ProcessIds) + ctypes.sizeof(ctypes.c_size_t) * capacity
|
||||
)
|
||||
header = _ProcessIds.from_buffer(buffer)
|
||||
result = self.kernel.QueryInformationJobObject(
|
||||
self.handle, 3, buffer, ctypes.sizeof(buffer), None
|
||||
)
|
||||
if header.assigned > capacity:
|
||||
if time.monotonic() >= deadline:
|
||||
raise RuntimeError("worker_cleanup_failed")
|
||||
capacity = int(header.assigned)
|
||||
continue
|
||||
if not result or header.count > capacity:
|
||||
raise RuntimeError("worker_cleanup_failed")
|
||||
ids = (ctypes.c_size_t * header.count).from_buffer(buffer, ctypes.sizeof(_ProcessIds))
|
||||
for pid in ids:
|
||||
handle = self.kernel.OpenProcess(0x00101000, False, pid)
|
||||
if not handle:
|
||||
raise RuntimeError("worker_cleanup_failed")
|
||||
handles.append(handle)
|
||||
member = wintypes.BOOL()
|
||||
# CRITICAL: validate the retained handle, not a PID that may have been reused.
|
||||
if not self.kernel.IsProcessInJob(
|
||||
handle, self.handle, ctypes.byref(member)
|
||||
) or not (member.value):
|
||||
raise RuntimeError("worker_cleanup_failed")
|
||||
return
|
||||
|
||||
def close(self) -> None:
|
||||
if not self.handle:
|
||||
return
|
||||
handles: list[Any] = []
|
||||
deadline = time.monotonic() + 5
|
||||
try:
|
||||
# CRITICAL: accounting zero precedes real process signalling on Windows. Retain
|
||||
# member handles before termination; otherwise inherited files can outlive cleanup.
|
||||
self._capture_members(handles, deadline)
|
||||
if not self.kernel.TerminateJobObject(self.handle, 1):
|
||||
raise RuntimeError("worker_cleanup_failed")
|
||||
start = time.monotonic()
|
||||
while True:
|
||||
accounting = _Accounting()
|
||||
if not self.kernel.QueryInformationJobObject(
|
||||
@@ -129,10 +176,16 @@ class OwnedWindowsJob:
|
||||
):
|
||||
raise RuntimeError("worker_cleanup_failed")
|
||||
if accounting.active == 0:
|
||||
return
|
||||
if time.monotonic() - start > 5:
|
||||
break
|
||||
if time.monotonic() >= deadline:
|
||||
raise RuntimeError("worker_cleanup_failed")
|
||||
time.sleep(0.01)
|
||||
for handle in handles:
|
||||
remaining = max(0, int((deadline - time.monotonic()) * 1000))
|
||||
if self.kernel.WaitForSingleObject(handle, remaining) != 0:
|
||||
raise RuntimeError("worker_cleanup_failed")
|
||||
finally:
|
||||
for handle in handles:
|
||||
self.kernel.CloseHandle(handle)
|
||||
self.kernel.CloseHandle(self.handle)
|
||||
self.handle = None
|
||||
|
||||
@@ -0,0 +1,335 @@
|
||||
"""Stateless operator-file boundary; activation belongs to the host lifetime owner."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import atexit
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import stat
|
||||
import sys
|
||||
import threading
|
||||
from collections.abc import Callable
|
||||
from pathlib import Path, PureWindowsPath
|
||||
from typing import Any, cast
|
||||
|
||||
from ..core.errors import ContractValidationError
|
||||
from ..core.perception_execution import AUDIO_PROFILE, PROFILE_MODELS, VISUAL_PROFILE
|
||||
from ..core.private_storage_layout import private_file_path
|
||||
from . import perception_host as host
|
||||
from .media_runtime_resolution import ComfyHostRootPort, _overlaps
|
||||
from .perception_host import PerceptionHostSettings
|
||||
|
||||
SETTINGS_SCHEMA = "h3-context-perception-host/1"
|
||||
STATUS_SCHEMA = "h3.context.perception_host_status.v1"
|
||||
MAX_SETTINGS_BYTES = 16384
|
||||
SETTINGS_REASONS = frozenset(
|
||||
{
|
||||
"none",
|
||||
"settings_missing",
|
||||
"settings_too_large",
|
||||
"settings_invalid",
|
||||
"settings_unavailable",
|
||||
"path_refused",
|
||||
"unsupported_platform",
|
||||
"host_unavailable",
|
||||
"configuration_revoked",
|
||||
"binding_exists",
|
||||
}
|
||||
)
|
||||
_REQUIRED = frozenset({"schema", "python_executable", "temporary_root", "profiles"})
|
||||
_OPTIONAL = frozenset({"weight_path", "processor_dir"})
|
||||
_RESERVED = re.compile(r"(?:CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])\Z", re.I)
|
||||
|
||||
|
||||
class PerceptionSettingsError(ContractValidationError):
|
||||
"""Finite content-free refusal at the operator-file boundary."""
|
||||
|
||||
def __init__(self, code: str) -> None:
|
||||
self.code = (
|
||||
code
|
||||
if type(code) is str and code in SETTINGS_REASONS and code != "none"
|
||||
else "settings_unavailable"
|
||||
)
|
||||
super().__init__(self.code)
|
||||
|
||||
|
||||
def _local_path(value: object) -> Path:
|
||||
if type(value) is not str or not value or "\x00" in value:
|
||||
raise PerceptionSettingsError("path_refused")
|
||||
pure = PureWindowsPath(value)
|
||||
# CRITICAL: reject Windows aliases/namespaces before filesystem normalization; accepting
|
||||
# drive-relative, device, stream or parent aliases could read a different operator target.
|
||||
if (
|
||||
re.fullmatch(r"[A-Za-z]:", pure.drive) is None
|
||||
or not pure.root
|
||||
or any(part in {".", ".."} for part in value.replace("\\", "/").split("/")[1:])
|
||||
or any(
|
||||
part.endswith((".", " "))
|
||||
or _RESERVED.fullmatch(part.split(".", 1)[0])
|
||||
or any(ord(char) < 32 or char in '<>:"|?*' for char in part)
|
||||
for part in pure.parts[1:]
|
||||
)
|
||||
):
|
||||
raise PerceptionSettingsError("path_refused")
|
||||
return Path(value)
|
||||
|
||||
|
||||
def _identity(metadata: Any) -> tuple[int, ...]:
|
||||
return (
|
||||
metadata.st_dev,
|
||||
metadata.st_ino,
|
||||
metadata.st_mode,
|
||||
getattr(metadata, "st_file_attributes", 0),
|
||||
)
|
||||
|
||||
|
||||
def _file_identity(metadata: Any) -> tuple[int, ...]:
|
||||
# CRITICAL: Windows path/descriptor ctime semantics differ after a rewrite. Compare stable
|
||||
# identity, size and mtime; including ctime falsely refuses unchanged valid operator files.
|
||||
return (*_identity(metadata), metadata.st_size, metadata.st_mtime_ns)
|
||||
|
||||
|
||||
def _inspect(
|
||||
path: Path, *, directory: bool, missing: str = "path_refused"
|
||||
) -> tuple[tuple[int, ...], ...]:
|
||||
components = (*reversed(path.parents), path)
|
||||
proof = []
|
||||
for index, component in enumerate(components):
|
||||
try:
|
||||
metadata = component.lstat()
|
||||
except FileNotFoundError:
|
||||
raise PerceptionSettingsError(missing) from None
|
||||
except OSError:
|
||||
raise PerceptionSettingsError("path_refused") from None
|
||||
leaf = index == len(components) - 1
|
||||
if (
|
||||
stat.S_ISLNK(metadata.st_mode)
|
||||
or getattr(metadata, "st_file_attributes", 0) & stat.FILE_ATTRIBUTE_REPARSE_POINT
|
||||
or not (
|
||||
stat.S_ISDIR(metadata.st_mode)
|
||||
if directory or not leaf
|
||||
else stat.S_ISREG(metadata.st_mode)
|
||||
)
|
||||
):
|
||||
raise PerceptionSettingsError("path_refused")
|
||||
proof.append(_file_identity(metadata) if leaf and not directory else _identity(metadata))
|
||||
return tuple(proof)
|
||||
|
||||
|
||||
def _unique_pairs(pairs: list[tuple[str, Any]]) -> dict[str, Any]:
|
||||
result: dict[str, Any] = {}
|
||||
for key, value in pairs:
|
||||
if key in result:
|
||||
raise ValueError("settings_invalid")
|
||||
result[key] = value
|
||||
return result
|
||||
|
||||
|
||||
def _non_finite(_value: str) -> None:
|
||||
raise ValueError("settings_invalid")
|
||||
|
||||
|
||||
def load_perception_settings(
|
||||
path: Path, *, cancelled: Callable[[], bool]
|
||||
) -> PerceptionHostSettings:
|
||||
if os.name != "nt":
|
||||
raise PerceptionSettingsError("unsupported_platform")
|
||||
if type(path) is not type(Path()) or not callable(cancelled):
|
||||
raise PerceptionSettingsError("settings_invalid")
|
||||
path = _local_path(str(path))
|
||||
before = _inspect(path, directory=False, missing="settings_missing")
|
||||
try:
|
||||
with path.open("rb") as stream:
|
||||
descriptor_before = os.fstat(stream.fileno())
|
||||
if (
|
||||
not stat.S_ISREG(descriptor_before.st_mode)
|
||||
or _file_identity(descriptor_before) != before[-1]
|
||||
):
|
||||
raise PerceptionSettingsError("path_refused")
|
||||
# CRITICAL: bound before UTF-8/JSON work, then recheck descriptor and every ancestor.
|
||||
# Publishing after a replaced/modified read would bind bytes from a stale file target.
|
||||
raw = stream.read(MAX_SETTINGS_BYTES + 1)
|
||||
if _file_identity(os.fstat(stream.fileno())) != before[-1]:
|
||||
raise PerceptionSettingsError("path_refused")
|
||||
except OSError:
|
||||
raise PerceptionSettingsError("settings_unavailable") from None
|
||||
if _inspect(path, directory=False) != before:
|
||||
raise PerceptionSettingsError("path_refused")
|
||||
if len(raw) > MAX_SETTINGS_BYTES:
|
||||
raise PerceptionSettingsError("settings_too_large")
|
||||
try:
|
||||
value = json.loads(
|
||||
raw.decode("utf-8"), object_pairs_hook=_unique_pairs, parse_constant=_non_finite
|
||||
)
|
||||
except (UnicodeError, ValueError, RecursionError):
|
||||
raise PerceptionSettingsError("settings_invalid") from None
|
||||
if (
|
||||
type(value) is not dict
|
||||
or not _REQUIRED <= value.keys()
|
||||
or not value.keys() <= _REQUIRED | _OPTIONAL
|
||||
or value["schema"] != SETTINGS_SCHEMA
|
||||
or type(value["schema"]) is not str
|
||||
or any(
|
||||
type(value[name]) is not str
|
||||
for name in ("python_executable", "temporary_root", *(_OPTIONAL & value.keys()))
|
||||
)
|
||||
):
|
||||
raise PerceptionSettingsError("settings_invalid")
|
||||
profiles = value["profiles"]
|
||||
if (
|
||||
type(profiles) is not list
|
||||
or not profiles
|
||||
or len(profiles) > len(PROFILE_MODELS)
|
||||
or any(type(profile) is not str or profile not in PROFILE_MODELS for profile in profiles)
|
||||
or len(set(profiles)) != len(profiles)
|
||||
or (AUDIO_PROFILE in profiles and not _OPTIONAL <= value.keys())
|
||||
):
|
||||
raise PerceptionSettingsError("settings_invalid")
|
||||
paths = {
|
||||
name: _local_path(value[name])
|
||||
for name in ("python_executable", "temporary_root", *(_OPTIONAL & value.keys()))
|
||||
}
|
||||
inspections = {
|
||||
name: _inspect(target, directory=name in {"temporary_root", "processor_dir"})
|
||||
for name, target in paths.items()
|
||||
}
|
||||
try:
|
||||
settings = PerceptionHostSettings(
|
||||
paths["python_executable"],
|
||||
paths["temporary_root"],
|
||||
paths.get("weight_path"),
|
||||
paths.get("processor_dir"),
|
||||
cancelled,
|
||||
profiles=frozenset(profiles),
|
||||
)
|
||||
except ContractValidationError:
|
||||
raise PerceptionSettingsError("settings_invalid") from None
|
||||
if _inspect(path, directory=False) != before or any(
|
||||
_inspect(paths[name], directory=name in {"temporary_root", "processor_dir"}) != proof
|
||||
for name, proof in inspections.items()
|
||||
):
|
||||
raise PerceptionSettingsError("path_refused")
|
||||
return settings
|
||||
|
||||
|
||||
class _OperatorSettingsOwner:
|
||||
"""Owns exactly one operator attempt and its binding; status reads never retry."""
|
||||
|
||||
def __init__(self) -> None:
|
||||
self._lock = threading.RLock()
|
||||
self._attempted = False
|
||||
self._binding: host.PerceptionHostBinding | None = None
|
||||
self._reason = "host_unavailable"
|
||||
self._observed = False
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return "<OperatorPerceptionSettingsOwner>"
|
||||
|
||||
def ensure_configured(self) -> bool:
|
||||
with self._lock:
|
||||
if self._attempted:
|
||||
with host._LOCK:
|
||||
return self._binding is not None and host._is_current(self._binding)
|
||||
if os.name != "nt":
|
||||
self._attempted = True
|
||||
self._reason = "unsupported_platform"
|
||||
return False
|
||||
if sys.modules.get("folder_paths") is None:
|
||||
return False
|
||||
self._attempted = True
|
||||
with host._LOCK:
|
||||
if host._BINDING is not None:
|
||||
self._reason = "binding_exists"
|
||||
return False
|
||||
try:
|
||||
port = ComfyHostRootPort()
|
||||
private, served = port.private_root(), port.served_roots()
|
||||
if any(_overlaps(private, root) for root in served):
|
||||
self._reason = "path_refused"
|
||||
return False
|
||||
path = private_file_path(private, "perception_host.json")
|
||||
except Exception:
|
||||
self._reason = "host_unavailable"
|
||||
return False
|
||||
try:
|
||||
# CRITICAL: optional loaded modules can raise from attribute lookup. Keep the
|
||||
# lookup inside the cached finite-refusal guard or package activation can escape.
|
||||
observer = getattr(
|
||||
sys.modules.get("comfy.model_management"), "processing_interrupted", None
|
||||
)
|
||||
observed = callable(observer)
|
||||
cancelled = cast(Callable[[], bool], observer) if observed else lambda: False
|
||||
settings = load_perception_settings(path, cancelled=cancelled)
|
||||
# CRITICAL: operator file IO runs outside the binding lock. Recheck at commit so
|
||||
# a manual binding registered during the read cannot be silently overwritten.
|
||||
with host._LOCK:
|
||||
if host._BINDING is not None:
|
||||
self._reason = "binding_exists"
|
||||
return False
|
||||
self._binding = host.configure_perception_host(settings)
|
||||
atexit.register(self.close)
|
||||
except PerceptionSettingsError as error:
|
||||
self._reason = error.code
|
||||
return False
|
||||
except Exception:
|
||||
if self._binding is not None:
|
||||
host.clear_perception_host(self._binding)
|
||||
self._binding = None
|
||||
self._reason = "settings_unavailable"
|
||||
return False
|
||||
self._observed = observed
|
||||
self._reason = "none"
|
||||
return True
|
||||
|
||||
def status(self) -> dict[str, object]:
|
||||
with self._lock, host._LOCK:
|
||||
if os.name != "nt":
|
||||
reason = "unsupported_platform"
|
||||
elif host._BINDING is not None:
|
||||
binding = host._BINDING
|
||||
if host._is_current(binding):
|
||||
visual, audio = (
|
||||
host.perception_configured(VISUAL_PROFILE),
|
||||
host.perception_configured(AUDIO_PROFILE),
|
||||
)
|
||||
if visual or audio:
|
||||
return {
|
||||
"schema": STATUS_SCHEMA,
|
||||
"state": "configured",
|
||||
"visual": visual,
|
||||
"audio": audio,
|
||||
"reason": "none",
|
||||
"cancellation_observed": self._observed and binding is self._binding,
|
||||
}
|
||||
reason = "settings_invalid"
|
||||
else:
|
||||
reason = "configuration_revoked"
|
||||
else:
|
||||
reason = "configuration_revoked" if self._binding is not None else self._reason
|
||||
return {
|
||||
"schema": STATUS_SCHEMA,
|
||||
"state": "not_configured"
|
||||
if reason in {"host_unavailable", "settings_missing"}
|
||||
else "refused",
|
||||
"visual": False,
|
||||
"audio": False,
|
||||
"reason": reason,
|
||||
"cancellation_observed": False,
|
||||
}
|
||||
|
||||
def close(self) -> None:
|
||||
with self._lock:
|
||||
if self._binding is not None:
|
||||
host.clear_perception_host(self._binding)
|
||||
|
||||
|
||||
_OWNER = _OperatorSettingsOwner()
|
||||
|
||||
|
||||
def activate_operator_perception_host() -> bool:
|
||||
return _OWNER.ensure_configured()
|
||||
|
||||
|
||||
def read_perception_host_status() -> dict[str, object]:
|
||||
return _OWNER.status()
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Explicit injected perception adapter seam for M11-05.
|
||||
"""Explicit injected perception adapter seam for.
|
||||
|
||||
This adapter is a qualification fixture boundary, not a detector/segmenter/re-ID implementation.
|
||||
It accepts caller-injected source-owned values and never launches a process, loads a model, or
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
"""Execution and component-scoped scheduling for already-authorized Production work."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from contextlib import AbstractContextManager
|
||||
from typing import Protocol
|
||||
|
||||
from ..core.generation_sequence import GenerationSequenceProjection
|
||||
from ..core.m26_assembly import M26AssemblyAuthorizationV1
|
||||
from ..core.production_import import (
|
||||
ProductionAutomaticPlanAuthorityV1,
|
||||
ProductionAutomaticPlanAuthorityV2,
|
||||
)
|
||||
from ..core.segment_artifacts import SegmentArtifactReceipt
|
||||
from .av_reconstruction_store import AVStoreError
|
||||
from .m26_production_assembly import M26ProductionAssemblyExecution, M26ProductionAssemblyRuntime
|
||||
from .media_subprocess import CancellationProbe
|
||||
|
||||
|
||||
class AssemblyExecutor(Protocol):
|
||||
def submit(self, callback: Callable[[], None], /) -> object: ...
|
||||
|
||||
|
||||
class ProductionAssemblyExecutionService:
|
||||
"""Own execution machinery, without Production entries, job state or publication rights."""
|
||||
|
||||
def __init__(self) -> None:
|
||||
self._executor: AssemblyExecutor | None = None
|
||||
|
||||
def submit(
|
||||
self,
|
||||
callback: Callable[[], None],
|
||||
*,
|
||||
submitter: Callable[[Callable[[], None]], object] | None,
|
||||
allocation_lock: AbstractContextManager[object],
|
||||
executor_factory: Callable[..., AssemblyExecutor],
|
||||
) -> None:
|
||||
if submitter is not None:
|
||||
submitter(callback)
|
||||
return
|
||||
with allocation_lock:
|
||||
if self._executor is None:
|
||||
# IMPORTANT: serialize lazy allocation after authorization; submit outside the
|
||||
# business lock. Eager allocation starts workers for refused/missing runtimes.
|
||||
self._executor = executor_factory(
|
||||
max_workers=1, thread_name_prefix="h3-m26-assembly"
|
||||
)
|
||||
executor = self._executor
|
||||
# Component replacement does not close the old executor or cancel retained callbacks.
|
||||
executor.submit(callback)
|
||||
|
||||
@staticmethod
|
||||
def retire_reconstructions(
|
||||
*,
|
||||
runtime: M26ProductionAssemblyRuntime,
|
||||
live_transaction_ids: frozenset[str],
|
||||
snapshot_ms: int,
|
||||
) -> None:
|
||||
# IMPORTANT: use the registry's locked reachability/time snapshot outside its lock.
|
||||
# Only AVStoreError is best effort; folding other errors into execution changes outcomes.
|
||||
try:
|
||||
runtime.reconstruction_store.retire_unreferenced(
|
||||
keep_transaction_ids=live_transaction_ids, completed_before_ms=snapshot_ms
|
||||
)
|
||||
except AVStoreError:
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def execute(
|
||||
*,
|
||||
runtime: M26ProductionAssemblyRuntime,
|
||||
transaction_id: str,
|
||||
authorization: M26AssemblyAuthorizationV1,
|
||||
automatic_plan: ProductionAutomaticPlanAuthorityV1 | ProductionAutomaticPlanAuthorityV2,
|
||||
generation_sequence: GenerationSequenceProjection,
|
||||
artifact_receipts: tuple[SegmentArtifactReceipt, ...],
|
||||
clock_ms: Callable[[], int],
|
||||
cancellation: CancellationProbe,
|
||||
execute_factory: Callable[..., M26ProductionAssemblyExecution],
|
||||
) -> M26ProductionAssemblyExecution:
|
||||
# IMPORTANT: pass the issued objects unchanged. Reminting/serializing breaks the
|
||||
# registry's identity-bound publication check even when fingerprints happen to match.
|
||||
return execute_factory(
|
||||
runtime=runtime,
|
||||
transaction_id=transaction_id,
|
||||
authorization=authorization,
|
||||
automatic_plan=automatic_plan,
|
||||
generation_sequence=generation_sequence,
|
||||
artifact_receipts=artifact_receipts,
|
||||
cut_boundary_receipts=automatic_plan.cut_boundary_receipts,
|
||||
clock_ms=clock_ms,
|
||||
cancellation=cancellation,
|
||||
)
|
||||
@@ -0,0 +1,75 @@
|
||||
"""Borrow operation media resources and prepare factory-owned Production previews."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable, Mapping
|
||||
from contextlib import AbstractContextManager, ExitStack
|
||||
from types import MappingProxyType
|
||||
|
||||
from ..core.av_reconstruction import AVOutputKind
|
||||
from .m26_production_assembly import M26ProductionAssemblyExecution, M26ProductionAssemblyRuntime
|
||||
from .media_preview_authority import MediaPreviewSourceAuthority
|
||||
from .media_subprocess import CancellationProbe
|
||||
|
||||
|
||||
def run_with_media_runtime(
|
||||
*,
|
||||
lease: Callable[[], AbstractContextManager[object]],
|
||||
operation: Callable[[], None],
|
||||
on_busy: Callable[[], None],
|
||||
) -> None:
|
||||
from .media_runtime_manager import MediaRuntimeBusy
|
||||
|
||||
with ExitStack() as stack:
|
||||
try:
|
||||
stack.enter_context(lease())
|
||||
except MediaRuntimeBusy:
|
||||
# IMPORTANT: catch entry transition only. Catching operation exceptions here
|
||||
# changes their original disposition and can double-report a completed worker.
|
||||
on_busy()
|
||||
return
|
||||
operation()
|
||||
|
||||
|
||||
def prepare_assembly_previews(
|
||||
*,
|
||||
execution: M26ProductionAssemblyExecution,
|
||||
runtime: M26ProductionAssemblyRuntime,
|
||||
original_previews: Mapping[str, MediaPreviewSourceAuthority],
|
||||
opaque_handle: Callable[[str], str],
|
||||
source_factory: Callable[..., MediaPreviewSourceAuthority],
|
||||
route_refusal: Callable[[], Exception],
|
||||
clock: Callable[[], float],
|
||||
admission_seconds: float,
|
||||
max_source_bytes: int,
|
||||
max_duration_ms: int,
|
||||
cancellation: CancellationProbe,
|
||||
) -> Mapping[str, MediaPreviewSourceAuthority]:
|
||||
previews = dict(original_previews)
|
||||
aggregate = next(
|
||||
output
|
||||
for output in execution.reconstruction_receipt.outputs
|
||||
if output.kind is AVOutputKind.RECONSTRUCTION_FULL
|
||||
)
|
||||
# IMPORTANT: preview byte/duration bounds permit ready-without-preview, not larger
|
||||
# assembly bounds or an integrity bypass. Registry publication validates the full result.
|
||||
if (
|
||||
aggregate.byte_length <= max_source_bytes
|
||||
and aggregate.duration.fraction * 1000 <= max_duration_ms
|
||||
):
|
||||
from .comfyui_media_preview import ensure_media_preview_route_registered
|
||||
|
||||
if not ensure_media_preview_route_registered():
|
||||
raise route_refusal()
|
||||
handle = opaque_handle(aggregate.handle)
|
||||
previews[handle] = source_factory(
|
||||
plan=execution.embedded_plan,
|
||||
receipt=execution.reconstruction_receipt,
|
||||
store=runtime.reconstruction_store,
|
||||
adapter=runtime.low_level_adapter,
|
||||
opaque_output_handle=handle,
|
||||
deadline=clock() + admission_seconds,
|
||||
cancellation=cancellation,
|
||||
clock=clock,
|
||||
)
|
||||
return MappingProxyType(previews)
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M22-03 local loopback prompt-model transports and the crash-isolated capability probe.
|
||||
"""local loopback prompt-model transports and the crash-isolated capability probe.
|
||||
|
||||
Two families are carried here: an externally managed OpenAI-compatible server and the Ollama daemon,
|
||||
both loopback-only. This module opens sockets and starts a subprocess; every decision about whether
|
||||
@@ -94,7 +94,7 @@ MAX_PROBE_TIMEOUT_SECONDS = 60.0
|
||||
MAX_RESOLUTION_ADDRESSES = 32
|
||||
MAX_RESOLUTION_OUTPUT_BYTES = 4_096
|
||||
|
||||
# M22-13 adds `/api/show` and stops there. `/api/pull`, `/api/create`, `/api/delete` and
|
||||
# adds `/api/show` and stops there. `/api/pull`, `/api/create`, `/api/delete` and
|
||||
# `/api/generate` are absent by intent, not by oversight: this lane observes and drafts, and
|
||||
# an allowlist is the only thing standing between a compromised catalog row and a route that
|
||||
# mutates the operator's model store.
|
||||
@@ -163,7 +163,7 @@ class PromptModelTransportError(RuntimeError):
|
||||
self.error_kind = (
|
||||
error_kind if error_kind in {"invalid_request_error", "INVALID_ARGUMENT"} else ""
|
||||
)
|
||||
# M22-23. Set only by the boundary backstop, and read by nobody: `detail` reaches the user
|
||||
# . Set only by the boundary backstop, and read by nobody: `detail` reaches the user
|
||||
# as provider-attributed prose, so the class name of an exception this repository did not
|
||||
# anticipate cannot go there without telling the user the provider said something it did
|
||||
# not. It is kept here instead so a novel failure mode stays nameable to a developer
|
||||
@@ -181,7 +181,7 @@ def _timeout(value: object, default: float) -> float:
|
||||
try:
|
||||
seconds = float(value)
|
||||
except OverflowError as exc:
|
||||
# M22-23. An int too large to be a float is still an int, so the check above admits it and
|
||||
# . An int too large to be a float is still an int, so the check above admits it and
|
||||
# the conversion is the first thing that can tell. This function's whole job is to turn a
|
||||
# bad timeout into a typed refusal, and without this it was the one input class that could
|
||||
# crash it instead -- from *before* either `request` method's `try`, so the boundary
|
||||
@@ -342,7 +342,7 @@ class LoopbackJsonExchange:
|
||||
payload, separators=(",", ":"), ensure_ascii=True, allow_nan=False
|
||||
).encode("utf-8")
|
||||
except (TypeError, ValueError, RecursionError) as exc:
|
||||
# M22-23. `json.dumps` recurses, so a deeply nested payload raises RecursionError,
|
||||
# . `json.dumps` recurses, so a deeply nested payload raises RecursionError,
|
||||
# which is neither TypeError nor ValueError and escaped this block untyped -- and
|
||||
# from before the `try`, so the boundary backstop never saw it either. The mirror
|
||||
# of `_refuse_deep_nesting`, which exists for exactly this on the decode side.
|
||||
@@ -392,7 +392,7 @@ class LoopbackJsonExchange:
|
||||
except PromptModelTransportError:
|
||||
raise
|
||||
except PromptModelContractError:
|
||||
# M22-23. Forward-looking rather than live: nothing this body currently calls raises a
|
||||
# . Forward-looking rather than live: nothing this body currently calls raises a
|
||||
# contract error -- the remote twin's route is `scrub_upstream_error`, which has no
|
||||
# equivalent here. It is present so that the two transports answer the same question
|
||||
# the same way, and so that adding a core call inside this `try` cannot silently start
|
||||
@@ -405,7 +405,7 @@ class LoopbackJsonExchange:
|
||||
except (OSError, http.client.HTTPException) as exc:
|
||||
raise PromptModelTransportError(PromptModelOutcomeId.TRANSPORT, "") from exc
|
||||
except Exception as exc:
|
||||
# M22-23. This family carries no credential, so the disclosure hazard that shapes the
|
||||
# . This family carries no credential, so the disclosure hazard that shapes the
|
||||
# remote twin does not apply here -- but an untyped escape is still an untyped escape,
|
||||
# and this is the family an ordinary user reaches first. The same form is used so the
|
||||
# two transports cannot drift into different answers for the same question.
|
||||
@@ -425,7 +425,7 @@ class LoopbackJsonExchange:
|
||||
|
||||
|
||||
def resolve_exact_identity(model_id: str, exchange: object) -> tuple[ExactTagsRow, ShowIdentity]:
|
||||
"""Ask the local runtime, strictly, what it is holding under one exact name (M22-13).
|
||||
"""Ask the local runtime, strictly, what it is holding under one exact name.
|
||||
|
||||
Two requests in a fixed order and no retry: tags first, because a name that is not present or
|
||||
is present twice must stop the check before a second request is spent on it, then show for the
|
||||
@@ -442,7 +442,7 @@ def resolve_exact_identity(model_id: str, exchange: object) -> tuple[ExactTagsRo
|
||||
def resolve_prechat_identity(
|
||||
profile: PromptModelProfile, exchange: object, model: ModelChoice | None = None
|
||||
) -> LiveModelIdentity | None:
|
||||
"""The identity check made immediately before one generation request (M22-13).
|
||||
"""The identity check made immediately before one generation request.
|
||||
|
||||
A qualified local Ollama profile is held to the strict digest-bearing tags reading: one exact
|
||||
row, no duplicate of the selected id, and a listing that is refused whole if any row is
|
||||
@@ -494,12 +494,12 @@ def resolve_show_identity(model_id: str, exchange: object) -> ShowIdentity:
|
||||
return parse_show_identity(detail)
|
||||
|
||||
|
||||
# M22-17. Google's OpenAI-compatibility surface spells one model two ways: the chat route takes the
|
||||
# . Google's OpenAI-compatibility surface spells one model two ways: the chat route takes the
|
||||
# bare id, while the listing route answers with the native Gemini resource name, `models/<id>`.
|
||||
# Comparing the request spelling against the catalog spelling reported a published model as missing
|
||||
# and ended the session before it sent a single request byte. The two domains are joined here, at
|
||||
# the single point where a listing row is first read -- the same place, and for the same reason, as
|
||||
# the M22-13 digest join below. The map is closed: a route with no entry keeps exact equality.
|
||||
# the digest join below. The map is closed: a route with no entry keeps exact equality.
|
||||
_CATALOG_IDENTIFIER_PREFIXES: Mapping[str, str] = {
|
||||
"/v1beta/openai/models": "models/",
|
||||
"/v1beta/models?pageSize=1000": "models/",
|
||||
@@ -538,7 +538,7 @@ def resolve_live_identity(
|
||||
if not isinstance(entry, Mapping):
|
||||
continue
|
||||
if entry.get("name") == model_id or entry.get("model") == model_id:
|
||||
# M22-13. Ollama reports `digest` as bare lowercase hex while every digest this
|
||||
# . Ollama reports `digest` as bare lowercase hex while every digest this
|
||||
# repository stores or compares is spelled `sha256:<hex>`. Handing the wire form
|
||||
# onward made a correct host fail its own digest check, so the domains are joined
|
||||
# here, at the single point where the wire value is first read.
|
||||
@@ -560,7 +560,7 @@ def resolve_live_identity(
|
||||
if not isinstance(data, list):
|
||||
raise PromptModelTransportError(PromptModelOutcomeId.MALFORMED_RESPONSE, "models")
|
||||
if family is PromptModelFamily.REMOTE_ANTHROPIC:
|
||||
# M22-19. One provider listing, one row ceiling, and this branch reads the same
|
||||
# . One provider listing, one row ceiling, and this branch reads the same
|
||||
# listing the census reads next. A private 256-row constant lived here and, being
|
||||
# the lower of the two, silently decided -- keeping this family refused at exactly
|
||||
# the hosted-catalogue sizes this item exists to admit.
|
||||
@@ -837,7 +837,7 @@ def run_prompt_model_session(
|
||||
except PromptModelContractError as retry_error:
|
||||
return _failure(PromptModelOutcomeId.MALFORMED_RESPONSE, str(retry_error))
|
||||
except PromptModelContractError as exc:
|
||||
# M22-23. The identity leg above has always had this; the chat leg did not, so a contract
|
||||
# . The identity leg above has always had this; the chat leg did not, so a contract
|
||||
# error raised inside `request` -- which the transport now deliberately lets through rather
|
||||
# than retyping -- would have left this function uncaught. Same closed code, same handling.
|
||||
return _failure(PromptModelOutcomeId.MALFORMED_RESPONSE, str(exc))
|
||||
@@ -954,7 +954,7 @@ def decode_probe_output(raw: bytes) -> NativeProbeReport:
|
||||
)
|
||||
|
||||
|
||||
# --- M22-04 consented remote family -------------------------------------------------------------
|
||||
# --- consented remote family -------------------------------------------------------------
|
||||
#
|
||||
# The remote path is deliberately a separate class from LoopbackJsonExchange. They share almost no
|
||||
# policy: one is plaintext to an address that cannot leave the machine, the other is TLS to a third
|
||||
@@ -1259,7 +1259,7 @@ class RemoteHttpsExchange:
|
||||
payload, separators=(",", ":"), ensure_ascii=True, allow_nan=False
|
||||
).encode("utf-8")
|
||||
except (TypeError, ValueError, RecursionError) as exc:
|
||||
# M22-23. `json.dumps` recurses, so a deeply nested payload raises RecursionError,
|
||||
# . `json.dumps` recurses, so a deeply nested payload raises RecursionError,
|
||||
# which is neither TypeError nor ValueError and escaped this block untyped -- and
|
||||
# from before the `try`, so the boundary backstop never saw it either. The mirror
|
||||
# of `_refuse_deep_nesting`, which exists for exactly this on the decode side.
|
||||
@@ -1402,7 +1402,7 @@ class RemoteHttpsExchange:
|
||||
except PromptModelTransportError:
|
||||
raise
|
||||
except PromptModelContractError:
|
||||
# M22-23. Not a provider failure. This is one of this repository's own invariants
|
||||
# . Not a provider failure. This is one of this repository's own invariants
|
||||
# breaking, and `run_prompt_model_session` already turns it into MALFORMED_RESPONSE
|
||||
# carrying its closed code. Letting the backstop below take it would report a bug in
|
||||
# here as a problem with the user's network, and hide the bug behind a remediation.
|
||||
@@ -1421,7 +1421,7 @@ class RemoteHttpsExchange:
|
||||
# error's `__context__`; `from None` only sets `__suppress_context__`, which stops the
|
||||
# default traceback printer from rendering the chain and drops no reference at all.
|
||||
# The object caught here is by definition one this build did not anticipate, next to a
|
||||
# live credential, and M22-22's instance held the entire `Authorization: Bearer <key>`
|
||||
# live credential, and 's instance held the entire `Authorization: Bearer <key>`
|
||||
# value in its `args`. Only the class name crosses, and it is an identifier fixed at
|
||||
# class-definition time, so it cannot carry provider content or a secret.
|
||||
unexpected = type(exc).__name__
|
||||
|
||||
@@ -226,7 +226,7 @@ def _census(
|
||||
)
|
||||
if not isinstance(raw, str) or _MODEL_IDENTIFIER.fullmatch(raw) is None or ".." in raw:
|
||||
raise PromptModelContractError("readiness_census")
|
||||
# M22-17. Validate the wire value exactly as received, then join it to the spelling the
|
||||
# . Validate the wire value exactly as received, then join it to the spelling the
|
||||
# profile pins. A provider whose listing route answers `models/<id>` while its chat route
|
||||
# takes the bare id would otherwise have every row judged UNPINNED, and the census would
|
||||
# report the selected model as absent from its own catalogue.
|
||||
@@ -371,7 +371,7 @@ def probe_provider_readiness(
|
||||
# configuration fact, and `CORRECT_ENDPOINT` is what an operator can do about it.
|
||||
return _failed(PromptModelOutcomeId.EGRESS_REFUSED)
|
||||
|
||||
# M22-20. Whether the provider ever answered has to be observable from the handler below, so
|
||||
# . Whether the provider ever answered has to be observable from the handler below, so
|
||||
# the recorder is bound before the block that can fail. A recorder that has heard nothing
|
||||
# carries `listing is None`, which is exactly the state "no response was received".
|
||||
recorder = _RecordingExchange(None)
|
||||
@@ -453,7 +453,7 @@ def probe_provider_readiness(
|
||||
# listing returned before cancellation, its census must not become selection authority.
|
||||
if error.outcome_id is PromptModelOutcomeId.CANCELLED:
|
||||
return _failed(PromptModelOutcomeId.CANCELLED)
|
||||
# M22-20. `_failed` says the provider could not be reached, and that is not what these
|
||||
# . `_failed` says the provider could not be reached, and that is not what these
|
||||
# errors mean once a body has already come back. Every `MALFORMED_RESPONSE` raised inside
|
||||
# `resolve_live_identity` is a judgement about a response that was received and parsed: a
|
||||
# listing longer than the ceiling, a row that will not read, a digest that will not
|
||||
@@ -463,7 +463,7 @@ def probe_provider_readiness(
|
||||
#
|
||||
# The recorder is the discriminator rather than the outcome id, because the exchange itself
|
||||
# can raise `MALFORMED_RESPONSE` for a body it could not decode, and that case is pinned at
|
||||
# `reachable=False` by an M22-15 test. The recorder answers the question actually being
|
||||
# `reachable=False` by an test. The recorder answers the question actually being
|
||||
# asked -- did the provider answer -- instead of a proxy for it. The outcome id is carried
|
||||
# through rather than relabelled, so a future outcome raised there is reported faithfully.
|
||||
#
|
||||
|
||||
@@ -458,7 +458,7 @@ def _copy_regular_file_into_new_pinned(
|
||||
) -> tuple[int, str]:
|
||||
"""Stream one pinned regular file into one freshly created file, hashing en route.
|
||||
|
||||
M20-08: the incremental-transport primitive. Read-side admission mirrors
|
||||
the incremental-transport primitive. Read-side admission mirrors
|
||||
``_read_regular_bytes_pinned`` and write-side admission mirrors ``_write_new_file_pinned``;
|
||||
the payload itself only ever exists one bounded chunk at a time.
|
||||
"""
|
||||
@@ -1886,7 +1886,7 @@ class PrivateSegmentArtifactStore:
|
||||
) -> tuple[int, str]:
|
||||
"""Stream one exact reusable artifact into a caller-owned new file.
|
||||
|
||||
M20-08: the incremental alternative to ``read`` — the payload never exists in memory
|
||||
the incremental alternative to ``read`` — the payload never exists in memory
|
||||
beyond one bounded chunk, the destination is created exclusively (no clobber), and a
|
||||
length or fingerprint divergence removes the partial copy and fails closed. The
|
||||
filesystem locator of the stored artifact never leaves this store.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Explicit injected temporal-visual adapter seam for M11-06.
|
||||
"""Explicit injected temporal-visual adapter seam for.
|
||||
|
||||
This is a qualification fixture boundary, not an action, motion, camera, edit, or style model.
|
||||
It accepts caller-injected source-owned claims and never launches a process or contacts a provider.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Explicit injected media-decode adapter seam for M11-04.
|
||||
"""Explicit injected media-decode adapter seam for.
|
||||
|
||||
This adapter is a qualification fixture boundary, not a decoder implementation. A later caller
|
||||
may replace the producer with a bounded ffprobe/ffmpeg integration after host and media gates pass;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Explicit injected visual-evidence fusion adapter seam for M11-07.
|
||||
"""Explicit injected visual-evidence fusion adapter seam for.
|
||||
|
||||
The adapter executes only a caller-supplied producer. It never discovers models, launches a
|
||||
process, contacts Ollama, opens media, or silently substitutes a provider.
|
||||
|
||||
@@ -123,7 +123,7 @@ class H3ContextRequestNode:
|
||||
"FLOAT",
|
||||
{
|
||||
# `MAX_FRAME_COUNT / FPS` is 150.0 s and was the bound here
|
||||
# until M17-25 distinct review: it admits about 313 ms of
|
||||
# until distinct review: it admits about 313 ms of
|
||||
# durations that always fail, because 3593..3600 frames sit
|
||||
# inside the host range yet align above it. The bound is now
|
||||
# the largest duration that actually resolves. Zero is kept
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
"schema": "h3.authoring.native_renderer_qualification.v1",
|
||||
"renderer": "sha256:abf5e1652dfdd3f8d7cfbb4900a4b590b7e8d192876164b7b7e9efaebe26d67f",
|
||||
"probe": "sha256:fb81e32ea05d77049291d9cffb0ec2677cfbe5e1ce2021bbcb9eb5abdc6ac576",
|
||||
"profile": "sha256:b4c3da8735c530a721fd3e1f270fe97ab22721d64d93fb3bfcb33797a83e4bae",
|
||||
"profile": "sha256:e99b2d9cfc15a19df8141af95ed9bcc8185161a27558fc540b4ebcf0aee1026e",
|
||||
"font_package": "sha256:ff39341b729a20b6bb75022dd96401cda5a613db118b858603a60e238cd584c7",
|
||||
"implementation": {
|
||||
"core_canonical_py": "sha256:3752d0ffbbe599db821c9fe45876091d743440f21a10f3e16e32f94469e292a2",
|
||||
"core_composition_contract_py": "sha256:a41ecbf0eb72e28022d81508062621a28200f8b10c0b48b74aaa9ada3c813b2b",
|
||||
"core_composition_contract_py": "sha256:d14bf107fbd0340f47b6c49fb314f2ee294ad6df45d6fc40af08b444e5cda8dc",
|
||||
"core_timeline_authoring_py": "sha256:bfd88ad2a7774f172a69e85079007051004a3afec88766f8034f30c7dcb09540",
|
||||
"core_nle_authoring_contract_py": "sha256:49cf4a3816612e89d1a55cd8506953e47af2aab07d8c77949d864e50aa3461a9",
|
||||
"core_safe_paths_py": "sha256:bbf3f7690dabd8c41bae612bb35497cd9e0174ef63f81e0d1efd26d1462389cf",
|
||||
"core_render_planner_py": "sha256:e83e8d041ac040d72f4d3d7100e46f2409f923bf25c3ffa47f47e2240eb5f0f4",
|
||||
"core_render_planner_py": "sha256:46eea838a63a283b30c1dd25b102ed8757da3409b19ffdf07ced6eb8e5a2dccd",
|
||||
"core_authoring_render_jobs_py": "sha256:f84602c1e40ab101225224993b50da1fadacfda678d4b157040064ab8530084f",
|
||||
"core_authoring_render_receipts_py": "sha256:5607426d43d123b5bf56c8c7b3b297b5df3b3cd799bd4b113ff8318eee979bd5",
|
||||
"core_clip_audio_py": "sha256:1d205c34ab7e5d8ae6b4fd3df09c501120606b310511465ad6a6d42735560340",
|
||||
"adapters_authoring_native_renderer_py": "sha256:0950ec8d5d141a576b49fbf5289deb3f7e783a12e9dc873bc291fe232e35d855",
|
||||
"adapters_authoring_render_executor_py": "sha256:ef5ddc79af8f3873f061697faccff2c8a0da40c00fc8cab9cdb66dfdbd8a5b45",
|
||||
"adapters_authoring_render_graph_py": "sha256:38bdd35ab80cfdeed312b4426d0bb535488fdacc47e31190d80e36eafdc6060f",
|
||||
"adapters_authoring_render_executor_py": "sha256:945c3c3034da597f0d0980ce4691c01f5f7509358d902294cea106b336892192",
|
||||
"adapters_authoring_render_graph_py": "sha256:20d8622d3ad2984fdb3609b38e92288ec2b590b8b13f7609ca454d0c5dac4979",
|
||||
"adapters_authoring_render_process_py": "sha256:05fe94efe3a6d531eaf6e1fd8a064e5dc1b11082b15157a8075799052e5130db",
|
||||
"adapters_authoring_render_probe_py": "sha256:bbf422b7ddd7e384b34695adee2b9384c1d5b5959e13b85a95f734b6185b9cab",
|
||||
"adapters_authoring_render_service_py": "sha256:151a6c7b48234f5eee7fb87567dc400a8d5a0b392d3200a32f987d1f2c67277b",
|
||||
@@ -28,7 +28,7 @@
|
||||
"adapters_retained_asset_use_py": "sha256:75dc99053e65f2afcc3f84ffc73707d459d67262724f614075b367ba659188a2",
|
||||
"adapters_authoring_video_facts_py": "sha256:b0cc47d38b13377905235b7c5d442a35c7ae812b983bef8f1c190efc63fdc1f9",
|
||||
"adapters_authoring_image_source_py": "sha256:fd4a4837a249dfb63da85707f1ee1296424fa131729aa99b18766da0ecc349f0",
|
||||
"adapters_authoring_fonts_py": "sha256:733b0311be8377ff0976db5b349da380e7867096c7da12669c77182e4d3728bb",
|
||||
"adapters_authoring_fonts_py": "sha256:f577eecc80d43fbcee4c2b88b7e450ed1b6aa4bec797c2e7a6a0903ba4f5cedc",
|
||||
"adapters_av_reconstruction_media_py": "sha256:106c85d9c7eb4a38fdf803739ef2bb599ca0ee31c2d7ad48d920f5851e8bf765",
|
||||
"adapters_segment_artifact_store_py": "sha256:62ef25422bb0d770bf6c0cf78bfdd2a97611dadad1bc46c32672a14454c8ca51"
|
||||
},
|
||||
@@ -56,40 +56,40 @@
|
||||
"cleanup_grace_seconds": 5
|
||||
},
|
||||
"commands": {
|
||||
"create_track": "sha256:0d5d15f0afe48efb40f116babd558824cf95f59937d14465502ac609e4fb7818",
|
||||
"remove_track": "sha256:7822ba35984ca3682f4db41afb82d21e4f3fbe3ab6fcb84f86ea6cd649753839",
|
||||
"reorder_track": "sha256:6817437409add30276e82711618f5ba82f37d24876c95b5e7f077de610e15adf",
|
||||
"set_track_enabled": "sha256:ad0f8f7adfcc0640b70b4676ff160224a239ffa3534519f449043fafe2cad4f2",
|
||||
"set_track_locked": "sha256:0c38e8d021ca671d01bebfeb2353f8d32ca7b82d5cde9aff4313ecbacf657c08",
|
||||
"insert_asset_clip": "sha256:3f41947acef851a40735e7603b77332b2572a21e4af1e0220d1b6561d862dbbe",
|
||||
"insert_title_clip": "sha256:e9f4283f29a69c2e6bb88d393b630f4f6e9a537e02fbf76d484230fd4596719d",
|
||||
"replace_clip_asset": "sha256:5ea3cb25b79246b889de83c5a3d684b662d91f28f45f78041ac6f8af7eb2c73a",
|
||||
"remove_clip": "sha256:2ecc366c001764dee72c0ef557ac01aab27f40646ab8a05683189f0b5e60dbfc",
|
||||
"move_clip": "sha256:101c5b7906e4e994959b94d0fdb9a908bbbabba07ec516ec0c2396c267811000",
|
||||
"move_group": "sha256:703e409ba4645f385a5c32e0f9152bdc3dbf78993e6e5540d275d3ecab9206b9",
|
||||
"trim_clip": "sha256:ed18daca9c85ac3f667cb3b9a6e715175cf7356998aad0157aff931c907f420a",
|
||||
"split_clip": "sha256:47d54b61db12b0a0eb511dafd8d83ae05f35d7fdd6c0e9b2be87b0a77440eda4",
|
||||
"merge_clips": "sha256:a546ab5d3c6bbb8527f0358de6a2679e07c5ef58dc16da0a1c2a3ce9fb246bb2",
|
||||
"insert_range": "sha256:38014fd5868f8e3dd01dae02d2dd27e748aacc0648a7405446331b1509df5c22",
|
||||
"overwrite_range": "sha256:59d2c78881229fd7068085f4e5054ef5bf23f1420b912494a09fc6942b2adeb8",
|
||||
"ripple_delete": "sha256:a4807bc36226980a18e667e9425b7cf4570c0183f258abb676109076f7a19803",
|
||||
"ripple_trim": "sha256:9ca049ca8f3a8284c15149bb93e67f3687879cc9424ba6d2e3e10e55bec891b0",
|
||||
"roll_edit": "sha256:2cffc7b6de1e7f457c16ced3b9ae18da9e8e42bb6879cad32fab2890e8741825",
|
||||
"slip_clip": "sha256:c229c202e4cdbe1ab11a69c75dc2a71bd617bf51ffa07dc57a4b355ffc66f4e7",
|
||||
"slide_clip": "sha256:2d333d655a0aa56b4d64ea6ce836bfeab92e44c6bba3da20cc519946fb3ca4cf",
|
||||
"set_clip_enabled": "sha256:6b82ad890d8e77df66ee6d8c917d52a51b81738cfc16b1fdd5133e45c6556c2c",
|
||||
"set_visual_transform": "sha256:6ecb8a4367dc00ea0f11384f0325c2ac8cc522e89b33f9b901a8957989e621b4",
|
||||
"set_crop": "sha256:caf8c7435e517aea986b4126ebbe06bfea672e65e442780f9e475847e3b707f7",
|
||||
"set_opacity_blend": "sha256:377f3572fac5dcaaea39c90e8ab61d202681ce1ca03543ec6a30c80f2ad053cd",
|
||||
"set_text_content": "sha256:b58668075444f32e95f10fb5366e70e56c5172b762ebaa883d82aa51fa2314f0",
|
||||
"set_text_style": "sha256:556a4ffd065eb68208360fe9c37a94e37630bc9b97c8c8ba86004fc56d061401",
|
||||
"set_transition": "sha256:a52d8d50e684fdd08d8c5fd9f08f45e983f4b3d44e8b34fbb35afdbe9bbe532c",
|
||||
"set_effect": "sha256:2334b7dcc485dfbf2f08db30d46b542b7fc493e130459dae04168b15e7144d7f",
|
||||
"set_clip_audio": "sha256:05587d742a91f925754a1bd31377fd789a7836d2992a29159f75e521935f952a",
|
||||
"select_clips": "sha256:299fb55b96477a83d4a93b5f646c4e5d7538007ca243318cc50f9d718cdc8b60",
|
||||
"undo": "sha256:62fae471d2873400bbdd7187537dd0b0830ba1638ddc7fedc787f4b9a246a1bb",
|
||||
"redo": "sha256:66c629e2759f331f536e1391e29358e6162b929f6b0ffa4c895c380656ebf1f5",
|
||||
"rebase_transaction": "sha256:92637882644955dbfa3b0d19da7846658330bd02384fd0239281756e4d4123c2"
|
||||
"create_track": "sha256:f52037e77477469dc4019d5bdd4e2094555de87c7284d71c9af6cc3e9435c693",
|
||||
"remove_track": "sha256:72ca150e9bb7653295dc3fe57f070bff6bfb5a2c14eb0191481a52d22f39b316",
|
||||
"reorder_track": "sha256:326f5012695902ab73a2a101bbaed4fbbf215764beb9dbcd375ce90970653eeb",
|
||||
"set_track_enabled": "sha256:e4c03f2a9d6ebd0f7dc309958b627d680cb9bfb750a1923956de41afabb632a0",
|
||||
"set_track_locked": "sha256:9345f31e4ab6a7059846b605b8b204f4db0022cae98a15152eb415fbe2ab4606",
|
||||
"insert_asset_clip": "sha256:aaa71420a1c5d35f15d0ad481c11156db7eebb0677f08f2ba0f846f66ca739bb",
|
||||
"insert_title_clip": "sha256:39c528ee12a53968c1c330557e286d01b3117adc2aec7c6439a47a70494ac63a",
|
||||
"replace_clip_asset": "sha256:41431672a426c4f90afb489061d5dbfee6b1de91974fc398482c1ed7a47aca25",
|
||||
"remove_clip": "sha256:691073a2bff9dfcf3c74a81b9f58c0306da10620dda277322b81fcb78a173c95",
|
||||
"move_clip": "sha256:4b91604e283e55d2a964cbc53e4370149b0775a87acab35200c9bfaa1172fb9f",
|
||||
"move_group": "sha256:16b464e783843f2f59c0a61cbf60ad9a78dfda8c6d3478f3a89edc27546fa64d",
|
||||
"trim_clip": "sha256:fc6e1e9144b117c5a771525fe2ab5c1030eb7b3dc29337dcb3d661ac8bbd2a7f",
|
||||
"split_clip": "sha256:95faf5134e6cd4ba2534b1777fdffa0d724b614b947c571e04cb3dc7645ba515",
|
||||
"merge_clips": "sha256:2c7b7f5f27cbdf2fdf6744f7671b35e1c025fef500355eb501dd0badee904ac8",
|
||||
"insert_range": "sha256:73d530bd5cfb76dc2218ab55967abcfa6d5858c2b51ae997933e3d2fe938ca5f",
|
||||
"overwrite_range": "sha256:51ee9ef6b1e0a264f3672ad290d298ae7279a6dad9e4453db706c2664658ceaa",
|
||||
"ripple_delete": "sha256:2fac76f52bfb04ee95bad165d33c8128579a9266912361773ebc62d81fb40b38",
|
||||
"ripple_trim": "sha256:d952b82919eb6f54e2fc2668f9718d7b846c63faf759787aa41f1d3cee46e3d7",
|
||||
"roll_edit": "sha256:3834a639b6e4631431353e460fba91b6f34a237fdb386c0caf935a7f00e80669",
|
||||
"slip_clip": "sha256:3f5f352a7955c0b42dee2805cf3a8a97c7ce4bbea92ead5906daf4bbdfdd116b",
|
||||
"slide_clip": "sha256:457a67be07e2e497405d2223be02f6d1a938dc744a4d9a3f3e6474c0bbc4377f",
|
||||
"set_clip_enabled": "sha256:39014338e6f3e7809edbc8d497b36cf925b080ec44ed0eedfb79f7f624afc07b",
|
||||
"set_visual_transform": "sha256:271f8c9c52f92c2ad5d3bc39d29856d1d206307acf3cab8bb897393690383eca",
|
||||
"set_crop": "sha256:03d2f58a22e00fd3341d9b401a474da484dcf96e9d80f6acc985dfdc4ae449ad",
|
||||
"set_opacity_blend": "sha256:891a2975c7eb7bfd914c69461f5dba26d8a1679af9108dcc6d0839cd367dd9e0",
|
||||
"set_text_content": "sha256:e43cc905d0f558e9b9865f249f7fee3459ebf51f89742729c3b4237e10d837cd",
|
||||
"set_text_style": "sha256:c0745ba925ca408b5c597cc4e2134f5c9ba95ce1ed22eeed78cb5059e2280aad",
|
||||
"set_transition": "sha256:005c0488b84e0515a439030085b5fafce235b5f06d407ad0b1e3930ae5e059c0",
|
||||
"set_effect": "sha256:c48e045e814d6f39862a8c731c7df4351958a785e1074fbae7fd1ab153f1a80e",
|
||||
"set_clip_audio": "sha256:92889d9d1b4c4a39e8ddbb2556ee352f5c9ceab2dc495c753dfd27492f211e24",
|
||||
"select_clips": "sha256:d769033fa73b97c4cdb368488c40c4d31cec5a16c53149ea1ae010b55d72ffbd",
|
||||
"undo": "sha256:4023963a6253ede0ba1584cabe66e44e8e00254fe832b86a2fa549c0d1a04c62",
|
||||
"redo": "sha256:5f1deba1d20d08544e40177a5b6b3a6df308b3d879b1e5ae2942d3702174ff1b",
|
||||
"rebase_transaction": "sha256:894fe85288ad41daf908c60786d13600023fa2d87f0171addcc36f63ffa2ee95"
|
||||
},
|
||||
"primitives": {
|
||||
"SelectSourceRangeV1": "sha256:38470d1ac0915f921770673d17c89378b35156de4e076b5ca48b733130d5f2f6",
|
||||
@@ -99,7 +99,8 @@
|
||||
"OpacityV1": "sha256:e967d0eada1de77be046943bcf25978a6cab9de37855a30f078313cf44d64e84",
|
||||
"BlendV1": "sha256:9658eb49c10a9061ea958ae86f20e5070de650606667f5ff185f10907af34599",
|
||||
"CrossDissolveV1": "sha256:888e625f5ac9cf6cac03ccad4e121a5b6d14b6a6135aee61fe919ecbae4f7e7b",
|
||||
"DrawTextV1": "sha256:5788d70f945d0307ed8142912c3fcd0ab7027dfdf2b09744d9154742c85a6fed",
|
||||
"DrawTextV1": "sha256:a097e3c2aabbc4ef2eb90a566854b45ed86631044e35f624eefad38f1654f95f",
|
||||
"TextDecorationV1": "sha256:582bfedcbd0bde68b80c237390ac46f04da99670c6ccb076698343a9ef5aa0f8",
|
||||
"PrimaryEmbeddedFollowVideoV1": "sha256:aba19b190c6f924dca845a1b081ea3970505d0dceff8dc3eb16d23bd32bb69d2"
|
||||
},
|
||||
"qualification_rows": {
|
||||
@@ -110,11 +111,11 @@
|
||||
"renderer_license": "sha256:e75cbbcdd9b5714b5c4fbc968c9e944d5442637682536711ca07569f2b84e1a4",
|
||||
"source_profile": "sha256:45294419dac14db42766d8cffca6617e3229ff2a4c1638fc76fad3e4b30c36ee",
|
||||
"source_color": "sha256:d9fc615813ef783709ca8fc8daad2826055f6d4e960fbc3708bc3edf81e4687f",
|
||||
"output_profile": "sha256:890d372fc7a53d3fb80da1a37dc6f52b11599034db64c4f99411342643ba0c23",
|
||||
"semantic_commands": "sha256:47c34d12cb573a53e95fc7c57c21b512e93ea9b014b5228788e93c27d8363853",
|
||||
"render_primitives": "sha256:742d5383712e4d743e5950ee112809b0ac9697600f0982a2b8fde5318381c08c",
|
||||
"output_profile": "sha256:23b11354a988690922a7b8615622837bfef3211839a2e7ba9aed8a3ace229f18",
|
||||
"semantic_commands": "sha256:42bfea9bf402d5d03ef66b8d8023a0335f426692178abd9291e69165e0c79972",
|
||||
"render_primitives": "sha256:7ae9568d537188055272bcf6c61c3ddc328977394c8926ddb633a897fa31394b",
|
||||
"embedded_audio": "sha256:d9fc615813ef783709ca8fc8daad2826055f6d4e960fbc3708bc3edf81e4687f",
|
||||
"resource_limits": "sha256:120ddcab5ffa70737fc1c09434de3cdfcba619bd3bddb8abd5e3f3a02ff09bdb"
|
||||
"resource_limits": "sha256:6072719c49976b63cb0a3b62b0cddaa01f6ddec811eaba023b22084dce95e878"
|
||||
},
|
||||
"runtime": {
|
||||
"renderer": {
|
||||
@@ -196,8 +197,8 @@
|
||||
"programs",
|
||||
"stream_groups"
|
||||
],
|
||||
"output": "sha256:3a35154de7d87805704e44159af2f53df1aef7d34fbd996505b8d81b63dd7e53",
|
||||
"metadata_fingerprint": "sha256:ea2e05289f484928992d5715cc287e1cbd0afe6c80fd9a862d1b6d518242949a"
|
||||
"output": "sha256:fdb1b49d94872bb689ffe62f52e969fdcb78f8da14b637bd5e842db23e5920d1",
|
||||
"metadata_fingerprint": "sha256:d5beea3f2067434eed53f75ce78a593456938f920803981101bb291bcd7fcdc7"
|
||||
},
|
||||
"silent": {
|
||||
"root_types": {
|
||||
@@ -239,8 +240,8 @@
|
||||
"programs",
|
||||
"stream_groups"
|
||||
],
|
||||
"output": "sha256:562bee2458c8e2f1b76a94721e9793cbc2f2e2cc062adb1f032de4e2a1da78b3",
|
||||
"metadata_fingerprint": "sha256:1b03eda322b81fc0b21e5756e9a91bdec0f13bb8c28b01879ca16b65e1bea51a"
|
||||
"output": "sha256:eaa29be7b195e01950cdabfb45bac226bf3b72bc40a4140fe5c9b644ff632908",
|
||||
"metadata_fingerprint": "sha256:65ca065ec1e22e43e57916edcea2f283b0edf2453835e2331566725ea7bf18fc"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -328,40 +329,40 @@
|
||||
"observation": "sha256:888e625f5ac9cf6cac03ccad4e121a5b6d14b6a6135aee61fe919ecbae4f7e7b"
|
||||
},
|
||||
"title": {
|
||||
"artifact": "sha256:4788af7234e27eca0f549994fbe0ccaf6d51056bfd40ce9fd3a121eff28253d4",
|
||||
"observation": "sha256:20ec8084019a70cdd95e759adaec271b0cd10acef45c3105b8ad95a341da3b58"
|
||||
"artifact": "sha256:9807e828547740f159553ae01064656f456a2e511e9b4deec1ba223ef5316ecf",
|
||||
"observation": "sha256:1dbb1499797499cb00776c68522992c8c0adc1d437b471a534da7c515e89fbbb"
|
||||
},
|
||||
"title_italic": {
|
||||
"artifact": "sha256:2bb7e5ddd6167d04cf7b521315320db179291c9ebdad478b8629175541ed3fdb",
|
||||
"observation": "sha256:864622c67b61af9f9de23cd8e12d8d4a093708a11ef37910c9d2be8bd7e8b343"
|
||||
"artifact": "sha256:ea2fc7617a242c975d0b0f3f245c0a9bf936f963b72b9d87fe0c6f8ee0fd536d",
|
||||
"observation": "sha256:b51cb394c0c487168abff36bd6de3974a536e1cb0a43f7992ef30af3a6c74168"
|
||||
},
|
||||
"title_bold": {
|
||||
"artifact": "sha256:d8e0ac520b4ffbe3cc8a3a2c2cd24229196ecfe5474f533804e2d9347be6d346",
|
||||
"observation": "sha256:6c041d811e5f58f5f89ad15e5e6190ffa07416081ceb9e271614960b156bd863"
|
||||
"artifact": "sha256:e8321cd9fcf6cf0a91773e4742a50e48ac6eeb744481ee60b5bb940551e4898c",
|
||||
"observation": "sha256:5dda063787ee790cd761aaf1a95151da93ef13e20f181ad72789635da2951c0c"
|
||||
},
|
||||
"title_bold_italic": {
|
||||
"artifact": "sha256:b1797d1c2287409fb1fdc90facc2822d910fc85cdd73f2402ac2cdad9210e475",
|
||||
"observation": "sha256:5788d70f945d0307ed8142912c3fcd0ab7027dfdf2b09744d9154742c85a6fed"
|
||||
"artifact": "sha256:fe595f6ba8f2f2ead77af83e565073e9cd2dea63cd33e4d3f7b68a5ee36f0e1f",
|
||||
"observation": "sha256:a097e3c2aabbc4ef2eb90a566854b45ed86631044e35f624eefad38f1654f95f"
|
||||
},
|
||||
"title_left": {
|
||||
"artifact": "sha256:10ebe6755ab6a6dac139f47234c3bf01cb632c8160fe63843872a9a5df0cbcd6",
|
||||
"observation": "sha256:83ebd77c625b543c795b87adbdbaf1b3f0b3befe3a34c16b064bb5e1924284f9"
|
||||
"artifact": "sha256:0464c5aaa48033e3b24818bcd1f5a8a7e26a95f9cd1b9b4f4d08f8c0bfa11938",
|
||||
"observation": "sha256:8d116f90b9cea4c753b5928adb283d2505c77f3ca182fda45492854f301bcd97"
|
||||
},
|
||||
"title_right": {
|
||||
"artifact": "sha256:c172e4e4c93219a1bef70a87473119ce0d2d4404ecb3e52f080b46446666ea5e",
|
||||
"observation": "sha256:06a686c0cde6edbe1db3d1ccead6abe9321768f3cf0e6c13ed55e4b0fd92c7d8"
|
||||
"artifact": "sha256:b9405e38e04f74878f9bfefb6366a60e9dd3aff4e89d287e99266296bc7ee14e",
|
||||
"observation": "sha256:d0680ddd8774b48c0b2f667b3c2d8475dffc58b3ee7c1b5c7fa7849eefd65be3"
|
||||
},
|
||||
"title_spacing": {
|
||||
"artifact": "sha256:5a1b23a6ddf254cdf697e4ec08e3118e2bbc47b9200d84ffb55c9125996aa402",
|
||||
"observation": "sha256:43a9244e90bc44da037fedb8f45d3989465f11d0bf33b5bcabe0890e02cda887"
|
||||
"artifact": "sha256:509836104649ac0b2530856294245e835f225c57b919474267d7fe401f3f8b34",
|
||||
"observation": "sha256:d4c0989c2ea73f6ffb23b96b0be3038283caab7e6e532ed9a353fe13cb0bb3eb"
|
||||
},
|
||||
"title_background": {
|
||||
"artifact": "sha256:d3b0664a20a72ee8512f665a590ac36b7c5d6bd0cdc826d3cad1a66f27e897e7",
|
||||
"observation": "sha256:4e3a624333a95457ee0ec0c2068c2aa7c17223768db3dcc2d7a103722f044074"
|
||||
"artifact": "sha256:89d05c8d20b191ad2d15f7fc33efbc5135bb5880428eb0f8311f9684bfca4911",
|
||||
"observation": "sha256:c6bd8c81bace05128c8f37cfe3abd05d977de6af3cbd1ac5ea70b50d63bdd57e"
|
||||
},
|
||||
"title_tab_left": {
|
||||
"artifact": "sha256:5d8aa2071ed23fd34bd756c37351b7a8eec31b03a342a7c013d190f297206b79",
|
||||
"observation": "sha256:58910ae75f23033a6d2b64b95d2c4012f30b54cdde7c62c97e78e52d36cab700"
|
||||
"artifact": "sha256:ed9f31f7bf339d5c27839cfa5735f45cf345d4e1e822e29cbd511bc64e32fe07",
|
||||
"observation": "sha256:3d1c7e666b8fe71b6127f730221ccf32d5066978a76aee5fe76923ec70b2feeb"
|
||||
},
|
||||
"title_tab_center": {
|
||||
"artifact": "sha256:2025360873d9092edfa7a2bb0081badd0542ec3e5c780a2fee73c01f95e1d178",
|
||||
@@ -376,8 +377,8 @@
|
||||
"observation": "sha256:e819890ca569095454c5442ba34c6be186b9dd258b3c952ea8523096fe68482b"
|
||||
},
|
||||
"title_tab_multi_left": {
|
||||
"artifact": "sha256:467792d25e2e6f1622a8674aa7aa5068a39c7aa2a3d2d9c553b77ac7053cd1c5",
|
||||
"observation": "sha256:83082cf56270ccbd1f0ef8cf864be6c17333f179c03e9071f55c318cc3edffad"
|
||||
"artifact": "sha256:0f830dfde4d0cb51bfe3aab9baf337c5b0c205d2005c364e9c60fae4958517b9",
|
||||
"observation": "sha256:bcf948c45cb4adcf4460e6044ebfa6b829930b34a5c368eada86227dbad61965"
|
||||
},
|
||||
"title_tab_multi_center": {
|
||||
"artifact": "sha256:87e919425811a82ad01e8c0c0254aaf240d61d27cfe39722f46fd1ed5b57ca01",
|
||||
@@ -386,6 +387,106 @@
|
||||
"title_tab_multi_right": {
|
||||
"artifact": "sha256:60eb7e99783e054c01490abd9d11c0fb41d7433d39fdeb99145e8e3fe1d31842",
|
||||
"observation": "sha256:d8467fac6e1dedf34b5b20d4464742a1f3fc3532b747bd3a718b963ba1cbe605"
|
||||
},
|
||||
"equal": {
|
||||
"artifact": "sha256:3f9db4836ff439958d500a8b5fcc432f2cdf3823f2b94b11c5dc7609dd25c8b8",
|
||||
"observation": "sha256:1ff5ac8d52d802cc191b1818e84b9ec08a06fc1de2f50f8938fbfce840329016"
|
||||
},
|
||||
"unequal-background": {
|
||||
"artifact": "sha256:e8965c6723a062b672dd02de813c54514a1f1fc80e2892fe88fe05c390e44341",
|
||||
"observation": "sha256:551a5ec36e35b5dcaa557c84f1617f90f976ab06b87f8cc31396dbd7a8e8cc1d"
|
||||
},
|
||||
"blank-trailing": {
|
||||
"artifact": "sha256:be23d082e4d8e548e88c135f25c375f7c9851725c9d22df54bc724770a5d3b61",
|
||||
"observation": "sha256:2ccf260d22e6af247f9dbb38a68eb96dcd64a049749d52bd817fd7f0e48ad984"
|
||||
},
|
||||
"all-blank": {
|
||||
"artifact": "sha256:4b84d88e35232a7c020dc725b601c9b4b0a01282c8a2eeb4db3daacf79f928f5",
|
||||
"observation": "sha256:1d4277fa40a2f37b592699c3750d3355b61f6027450133e3724d654760e3dad1"
|
||||
},
|
||||
"tabs-left": {
|
||||
"artifact": "sha256:9a32d0e479cf174663f6152ec521efbe24232c8f59462b7a4dd008cbb93108f7",
|
||||
"observation": "sha256:1741db98fc0e05e4150b5b71aa4c33238ce6f1832f6a19d96961846277888f41"
|
||||
},
|
||||
"tabs-center": {
|
||||
"artifact": "sha256:f4f344672428e846b3c18083283f17506a755a62d3b527e35dc228a69c750fe8",
|
||||
"observation": "sha256:aabfc51a602535dde48d2978319046ed6ecc6d0355ff9110a3ac87379699f364"
|
||||
},
|
||||
"tabs-right": {
|
||||
"artifact": "sha256:db1233aa7f5c1b1067d5b928c895a4c7c78355ce10c8f9ab20c59cd0babe22a8",
|
||||
"observation": "sha256:81a61df1d7f6d10fb3aeb5810580c2a67073901acf7db589b43b8f49cb94f681"
|
||||
},
|
||||
"stroke-1": {
|
||||
"artifact": "sha256:defc065796f7938263cec01ed3f91fc99330d3c9f7854e41fef472ffc2cda127",
|
||||
"observation": "sha256:ad2af2b6eece8a65004bd1756829aa7e78c7c2000b1f051f646cbe15b90c6469"
|
||||
},
|
||||
"stroke-32": {
|
||||
"artifact": "sha256:0896aaa988067aa6dc7744bd933dfb537dfd1daa10e483ac5ae87a8f80f9131d",
|
||||
"observation": "sha256:c97884395393267200fb335d6792a0ee38a3a462bca33237d66f4e9c9b54bedf"
|
||||
},
|
||||
"shadow-zero": {
|
||||
"artifact": "sha256:cacb2c0877441ffe6f856784534a7e72e39e12a939ab0704fe75febef8fc76ae",
|
||||
"observation": "sha256:54cbbb70b88aa57a30b08f78e0d5513598eb6d9fc36ba9c1926f84c0936147a0"
|
||||
},
|
||||
"shadow--64": {
|
||||
"artifact": "sha256:40573097cc3a87268f169c26db52de6caa4ee40c32ef92661978db0cc3d9e901",
|
||||
"observation": "sha256:d0a08c720dfbcd9dcc1bc024f6eb7d53949a7d99944e7b56474cc2261e3c8b4f"
|
||||
},
|
||||
"shadow-64": {
|
||||
"artifact": "sha256:3204fbf3954ffb896413ed3e4fad5ea9cbac8f6b0582ea369d3b3ca5d45e5720",
|
||||
"observation": "sha256:7ed5e0b356c2e0c08abd224ca681f7ba6b3bbfd812699fa74e62cb90f90ed1f5"
|
||||
},
|
||||
"padding-1": {
|
||||
"artifact": "sha256:ebb1124c7f7bde26e561a5b764a6b732da91b9271003a42263a96a9da28dc894",
|
||||
"observation": "sha256:784c89cdeedbc8d2d2862fc9d63cfda6310197145cab940e02ef0d535648cb47"
|
||||
},
|
||||
"padding-64": {
|
||||
"artifact": "sha256:7bf9e6e684370c92271555310760ab648247c7daf974c0cb7a5f999d20d7961b",
|
||||
"observation": "sha256:2a2ba58cf3bd38399f0e7b988e832764b22737e17aa09b5815b0e9b365278132"
|
||||
},
|
||||
"translucent": {
|
||||
"artifact": "sha256:22ad3a75b40da385cd93b7b242c7970ab0cbf4fd42ecad44c0b9af7cc8e6c279",
|
||||
"observation": "sha256:582bfedcbd0bde68b80c237390ac46f04da99670c6ccb076698343a9ef5aa0f8"
|
||||
},
|
||||
"overlap": {
|
||||
"artifact": "sha256:00258b71dbcf22374d55e5fa52cd4b4115e1a14aed906765ee04d303d79c222a",
|
||||
"observation": "sha256:32207aedf0de038092ab3d8b52090bf2e09119c95c1e44a0eb33b46a819aae66"
|
||||
},
|
||||
"rotate": {
|
||||
"artifact": "sha256:faeefb54141a1c0a6c0d50c51a6627f8d69cde85220232eaf15608eb971bde44",
|
||||
"observation": "sha256:83fde7989608c078b6226ffadeb594f16a2255b890e6113f62388f300373bd4c"
|
||||
},
|
||||
"scale-anchor": {
|
||||
"artifact": "sha256:0e6b099088d5c9c8cb580c3123b0b13211f74e4c2d51c8c5bc4a401279c8a34e",
|
||||
"observation": "sha256:49afd52fd70cf097514298568eb9c5dcaf793d51969732c07c6016301fb2bb62"
|
||||
},
|
||||
"delay-dissolve": {
|
||||
"artifact": "sha256:93c04f9c9aa8c88c9f3e470fd231fbce7cbb771900a2948af121bb6954c3b382",
|
||||
"observation": "sha256:8faa69a3cc67d238c1eae8b7ecb016afff04993a9391b9850023150ec33b2c24"
|
||||
},
|
||||
"32-terminal": {
|
||||
"artifact": "sha256:51835cd3123613d88df747e57985fb5926dbaa864a8b9e05c3d3b32d45da01e7",
|
||||
"observation": "sha256:f14db1a3dc0b45b08de0813898433b3b885eb88d263e24899d3ea7455bc3d335"
|
||||
},
|
||||
"half-line-plain": {
|
||||
"artifact": "sha256:856b75bdea8b6a654488b8ff896eafc5c1ad35b3cda4d42cc14d5560b54482ed",
|
||||
"observation": "sha256:b4758cf975d0ceb980e82de885f1a3c8193b646d7107fd8b0dd968bc4137bc40"
|
||||
},
|
||||
"half-line-plain-terminal": {
|
||||
"artifact": "sha256:3115f6bc259622ff85af53ee436f29cc8359dfed23004b3fc8f55ba1c0b33d02",
|
||||
"observation": "sha256:54d8a0fe76b98ffa0931d0d7c4ab253be457de12142a49d62b406f44a2174e7e"
|
||||
},
|
||||
"half-line-decorated": {
|
||||
"artifact": "sha256:1303a4041402cf68a404db5f80da65d833955a22d377bf5eaa68eb58f6fd2c81",
|
||||
"observation": "sha256:f1e73493eeeffa88f0d84135d7478e740f9a5885226c57c6810431d7321817bb"
|
||||
},
|
||||
"half-line-decorated-terminal": {
|
||||
"artifact": "sha256:96deaa0572a9ec856f28b4305eefe62e362e0df0588d4034450401e8b59f0730",
|
||||
"observation": "sha256:4b609ace7949f2eaf299e066f3054899978b866071d2deb3a2b00a631c200ed0"
|
||||
},
|
||||
"half-line-interior-blank": {
|
||||
"artifact": "sha256:2abe3d40afccd0ae0bf7dd0c7d954886e0960331860c8b5ae634a9c73d52681d",
|
||||
"observation": "sha256:a85d89dafd51fe657a928dac23f587a5151064390004aad86247452672649a79"
|
||||
}
|
||||
},
|
||||
"native_service_rows": [
|
||||
@@ -393,7 +494,7 @@
|
||||
"case": "audio",
|
||||
"status": "PASS",
|
||||
"artifact": "sha256:6c6f85b484e03308651a3204bcb9ed13677451dfb87df770eb458561a0e3b9f6",
|
||||
"receipt": "sha256:ff97fa1d8a07049b26980ec8fb3d11c97991970e321a9aa36893c3dbc3bf2156",
|
||||
"receipt": "sha256:f65b505b85945b012bc8e9b3ea8309538198b888e30873ee60081a83fde87ea2",
|
||||
"streams": 1,
|
||||
"stages": 0,
|
||||
"active": 0
|
||||
@@ -402,7 +503,7 @@
|
||||
"case": "silent",
|
||||
"status": "PASS",
|
||||
"artifact": "sha256:5032af17185f8c285c722d3bf097b04b54f44093c63e63ac2dac364602c59351",
|
||||
"receipt": "sha256:b2328f387b6f2eb25c656d0dafa6c86370e69d7c0dcc58bf779c4b5f510e7902",
|
||||
"receipt": "sha256:0c296bf9ee319b463805ef79e28e74c4a18f39a5c30a231cdf462e7536096dbd",
|
||||
"streams": 0,
|
||||
"stages": 0,
|
||||
"active": 0
|
||||
@@ -411,7 +512,7 @@
|
||||
"case": "overlay",
|
||||
"status": "PASS",
|
||||
"artifact": "sha256:5032af17185f8c285c722d3bf097b04b54f44093c63e63ac2dac364602c59351",
|
||||
"receipt": "sha256:26a7af32b1b9c9bf56e38dd6efabf8f5c4c6d5398d8d771202f66cf3be245cf7",
|
||||
"receipt": "sha256:31423b32625ad3deb5af863670506761e4d894adabdc32bb4a841d57873914bd",
|
||||
"streams": 0,
|
||||
"stages": 0,
|
||||
"active": 0
|
||||
@@ -420,7 +521,7 @@
|
||||
"case": "dual",
|
||||
"status": "PASS",
|
||||
"artifact": "sha256:6c6f85b484e03308651a3204bcb9ed13677451dfb87df770eb458561a0e3b9f6",
|
||||
"receipt": "sha256:1ff70c755a85eb91a918f35899bf01ecf1679df08995d69e49f40683a3cabd9d",
|
||||
"receipt": "sha256:b87f136e489ef354e1f7d9777f984640cab026b6980f89502ba5ea45a1514787",
|
||||
"streams": 1,
|
||||
"stages": 0,
|
||||
"active": 0
|
||||
@@ -429,7 +530,7 @@
|
||||
"case": "vfr",
|
||||
"status": "PASS",
|
||||
"artifact": "sha256:e263e2550af107aae29573a5da08eb59e26431d3176a8180b22b2ce1b2e16e2c",
|
||||
"receipt": "sha256:a049f644fcfb3f3043f3e1bda3e1a062b791b9427705d45ddbc1f04804a155cf",
|
||||
"receipt": "sha256:233c1708d8bb488d9cfbaff7e5cd0a66e75eaa4772157bf12f5eeea15daf23e2",
|
||||
"streams": 1,
|
||||
"stages": 0,
|
||||
"active": 0
|
||||
@@ -437,7 +538,7 @@
|
||||
{
|
||||
"case": "active_child_cancel",
|
||||
"status": "PASS",
|
||||
"cleanup_ms": 32,
|
||||
"cleanup_ms": 21,
|
||||
"active": 0,
|
||||
"stages": 0,
|
||||
"retained_unchanged": true
|
||||
@@ -455,7 +556,7 @@
|
||||
"status": "PASS",
|
||||
"frames": 3600,
|
||||
"artifact": "sha256:6a9efea7ede477e275dfd9e078068d66039af9cc2cc13396b8965ee356bb49b3",
|
||||
"receipt": "sha256:fc438e080afa5675d37bb736449a01f05e723ed8ed6d83cba9f42746b46addcb",
|
||||
"receipt": "sha256:90596919927854249668956d5d9ed6d7fa27871027d0f9b0854ea1f50722dd6f",
|
||||
"queued": "workspace_released",
|
||||
"new_admission": "workspace_released",
|
||||
"running": "succeeded",
|
||||
@@ -463,6 +564,32 @@
|
||||
"stages": 0
|
||||
}
|
||||
],
|
||||
"title_rendering": {
|
||||
"schema": "h3.authoring.title_rendering_observation.v1",
|
||||
"layout": "literal_lf_bands_all_backgrounds_before_glyphs_v1",
|
||||
"decorated_alpha": "independent_coverage_explicit_premultiplied_unpremultiply_v1",
|
||||
"static_hold": "single_rgba_frame_before_temporal_operations_v1",
|
||||
"preview_final_geometry": {
|
||||
"cases": 25,
|
||||
"frames": 75,
|
||||
"tolerance_pixels": 2,
|
||||
"observation": "sha256:5480194115e43d1584c60b3f7b144750f8455c6eaa07cd8b0e167d86716031d2"
|
||||
},
|
||||
"complete_decorated_budget": {
|
||||
"frames": 3600,
|
||||
"width": 1920,
|
||||
"height": 1080,
|
||||
"wall_milliseconds": 37973,
|
||||
"child_cpu_milliseconds": 100812,
|
||||
"peak_committed_bytes": 563908608,
|
||||
"peak_working_set_bytes": 550891520,
|
||||
"observation": "sha256:d98fbb4609e02cce63330cf3ed75d7ccc6adab50a88699818ddecd14150038bd"
|
||||
},
|
||||
"capabilities": {
|
||||
"loop": "sha256:521c5f2b42c0a35179b522016732c774d1525718f109023ecd344a24ca47ea1e",
|
||||
"alpha": "sha256:e65c37181e442c3a883f60ba160b899c908dfb493d38b8b6143e64f69f85a3b2"
|
||||
}
|
||||
},
|
||||
"native_service_mode": "bootstrap_actual_executor_without_packaged_admission",
|
||||
"generated_source_rows": [
|
||||
{
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -5,30 +5,30 @@
|
||||
},
|
||||
"bundle": {
|
||||
"path": "comfyui_h3_context/web/h3-context-sidebar.js",
|
||||
"sha256": "sha256:7a800097e9b9972ec264f5fdfe477d904dd1fdfecdf445f8faba237e20081082",
|
||||
"size": 1883569
|
||||
"sha256": "sha256:3b1731ddb750eefeed6ab16b1f9323f12081d7f15a824a8c7a3bd1600f90b770",
|
||||
"size": 1917831
|
||||
},
|
||||
"embedded_identity": {
|
||||
"builder_id": "scripts/frontend_build_report.py",
|
||||
"resolved_dependencies_sha256": "sha256:b633798aadb09cc3fe1fec5b42c7a4c613d695721e9d7fcafe604db6bbebd61a",
|
||||
"resolved_dependencies_sha256": "sha256:e8c5539b4443c29794b9d023d1a86e0f58b56d39f6237d1075704827413ed894",
|
||||
"schema": "h3-context-build-identity/1",
|
||||
"source_commit": "ac4661f79dc14b1ff6c703948858a88db6ab80e3",
|
||||
"source_inputs_sha256": "sha256:b78e3e18e01aaf8099072cb2184464afbd674cfe231a457ae13efbc4728c15d8",
|
||||
"source_tree": "1ce66d6e0881d0b12997d189e9bf8590c1aafbce"
|
||||
"source_commit": "196a4ff382547054e79c900af7499c877a4bec57",
|
||||
"source_inputs_sha256": "sha256:330bd587ee20fa3cb75346d455dc2521068f9663bfb8ed1541425f0a130e36c2",
|
||||
"source_tree": "853b024f65dcc508736e8272e747cc18d3ebad86"
|
||||
},
|
||||
"external_parameters": {
|
||||
"source_commit": "ac4661f79dc14b1ff6c703948858a88db6ab80e3",
|
||||
"source_inputs_sha256": "sha256:b78e3e18e01aaf8099072cb2184464afbd674cfe231a457ae13efbc4728c15d8",
|
||||
"source_tree": "1ce66d6e0881d0b12997d189e9bf8590c1aafbce"
|
||||
"source_commit": "196a4ff382547054e79c900af7499c877a4bec57",
|
||||
"source_inputs_sha256": "sha256:330bd587ee20fa3cb75346d455dc2521068f9663bfb8ed1541425f0a130e36c2",
|
||||
"source_tree": "853b024f65dcc508736e8272e747cc18d3ebad86"
|
||||
},
|
||||
"invocation": {
|
||||
"finished_on": "2026-10-07T19:49:54Z",
|
||||
"id": "sha256:09f76b9c5a4f75a6914105eff4dc1f4c541a60b7e365287f891ee253d6e5e323",
|
||||
"started_on": "2026-10-07T19:49:54Z"
|
||||
"finished_on": "2026-10-12T04:04:08Z",
|
||||
"id": "sha256:d173858c211ed1f890f6a9f0dfd1283de4610db0c3244a2c42924a10495b4776",
|
||||
"started_on": "2026-10-12T04:04:08Z"
|
||||
},
|
||||
"resolved_dependencies": [
|
||||
{
|
||||
"digest": "sha256:4021891f631280fd8797e0c3ac13672bc1b79fd659ecc8652ca864339116f488",
|
||||
"digest": "sha256:92ba0a9a5f29a5c3899eb98141b6c0005d227e7e1d6c04f294c2a82d8f0a6505",
|
||||
"uri": "contract:h3-context-contract-inventory/1"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -125,6 +125,7 @@
|
||||
"frontend/tests/nleMediaBin.test.tsx",
|
||||
"frontend/tests/nleMediaBinDecorationCount.test.tsx",
|
||||
"frontend/tests/nleMediaRebind.test.ts",
|
||||
"frontend/tests/publicAssetManifestSharing.test.ts",
|
||||
"governance/contracts/supply_chain_v1.json",
|
||||
"tests/test_m25_45_derivative_table_parity.py"
|
||||
],
|
||||
@@ -332,6 +333,7 @@
|
||||
"frontend/tests/canonicalFingerprint.test.ts",
|
||||
"frontend/tests/fixtures/entryHostModules.ts",
|
||||
"frontend/tests/productionManagedChildResolver.test.ts",
|
||||
"frontend/tests/publicAssetManifestSharing.test.ts",
|
||||
"frontend/tests/sidebarHost.test.ts",
|
||||
"governance/contracts/supply_chain_v1.json",
|
||||
"scripts/canonical_cross_language_vectors.py",
|
||||
@@ -366,14 +368,23 @@
|
||||
"frontend/src/components/nle/NleMonitor.tsx",
|
||||
"frontend/src/components/nle/NleTimeline.tsx",
|
||||
"frontend/src/components/nle/NleTimelineMenus.tsx",
|
||||
"frontend/src/components/nle/NleTimelineTrackRow.tsx",
|
||||
"frontend/src/components/nle/NleTimelineTracks.tsx",
|
||||
"frontend/src/components/nle/NleTimelineTrimRail.tsx",
|
||||
"frontend/src/components/nle/NleTrackHeader.tsx",
|
||||
"frontend/src/components/nle/NleWorkspace.tsx",
|
||||
"frontend/src/components/nle/nleCommandBuilders.ts",
|
||||
"frontend/src/components/nle/nleMediaBinModel.ts",
|
||||
"frontend/src/components/nle/nleTimelineSurface.ts",
|
||||
"frontend/src/components/nle/nleTimelineTools.ts",
|
||||
"frontend/src/components/nle/nleTimelineTypes.ts",
|
||||
"frontend/src/components/nle/nleTitleInsertion.ts",
|
||||
"frontend/src/components/nle/useNleFilmstrips.ts",
|
||||
"frontend/src/components/nle/useNleTimelineDirectGesture.ts",
|
||||
"frontend/src/components/nle/useNleTimelineInteraction.ts",
|
||||
"frontend/src/components/nle/useNleTimelineSelection.ts",
|
||||
"frontend/src/components/nle/useNleTimelineTrim.ts",
|
||||
"frontend/src/components/nle/useNleTimelineViewport.ts",
|
||||
"frontend/src/components/nle/useNleWaveforms.ts",
|
||||
"frontend/src/contracts/authoringOutputCodec.ts",
|
||||
"frontend/src/contracts/authoringWorkbenchCodec.ts",
|
||||
@@ -442,12 +453,14 @@
|
||||
"frontend/tests/previewLookahead.test.ts",
|
||||
"frontend/tests/productionAuthoringImportCodec.test.ts",
|
||||
"frontend/tests/prototypes/m25_56PtsSceneClockPrototype.ts",
|
||||
"frontend/tests/publicAssetManifestSharing.test.ts",
|
||||
"frontend/tests/sceneResolver.test.ts",
|
||||
"frontend/tests/semanticParity.test.ts",
|
||||
"frontend/tests/support/nleAssetPreparationFixture.ts",
|
||||
"frontend/tests/support/nleWorkspaceFixture.ts",
|
||||
"frontend/tests/support/productionAuthoringImportFixture.ts",
|
||||
"frontend/tests/support/semanticParity.ts",
|
||||
"frontend/tests/titleDecorations.test.ts",
|
||||
"frontend/tests/visualCompositionCancellation.test.ts",
|
||||
"frontend/tests/visualCompositionResources.test.ts",
|
||||
"frontend/tests/visualCompositionSession.test.ts",
|
||||
@@ -510,6 +523,7 @@
|
||||
"frontend/tests/durationResolutionClient.test.ts",
|
||||
"frontend/tests/fixtures/entryHostModules.ts",
|
||||
"governance/contracts/supply_chain_v1.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/duration_resolution_contract.py",
|
||||
"tests/fixtures/m23_48_derived_artifact_graph_v1.json",
|
||||
@@ -550,6 +564,7 @@
|
||||
"frontend/tests/clipAudioContract.test.ts",
|
||||
"frontend/tests/generatedSurface.test.ts",
|
||||
"governance/contracts/supply_chain_v1.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/cross_language_surface.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"tests/fixtures/m23_48_derived_artifact_graph_v1.json",
|
||||
@@ -784,6 +799,36 @@
|
||||
"reachability": "unsupported",
|
||||
"reachability_source": "none"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"frontend/src/contracts/perceptionHostCodec.ts"
|
||||
],
|
||||
"blockers": [],
|
||||
"boundary": "cross_language",
|
||||
"compatibility": "migration_required",
|
||||
"consumers": [
|
||||
"frontend/src/host/perceptionHostClient.ts",
|
||||
"frontend/src/state/managedJournal.ts",
|
||||
"frontend/src/state/perceptionHostState.ts",
|
||||
"frontend/tests/perceptionHostCodec.test.ts",
|
||||
"frontend/tests/perceptionHostSession.test.ts",
|
||||
"frontend/tests/perceptionHostStatus.test.tsx",
|
||||
"governance/contracts/supply_chain_v1.json"
|
||||
],
|
||||
"contract_id": "frontend/perceptionHostCodec",
|
||||
"dialect": "not_applicable",
|
||||
"disposition": "KEEP",
|
||||
"evidence": "cross_language boundary keeps a reader this repository cannot re-migrate",
|
||||
"fingerprint_domain": "none",
|
||||
"kind": "frontend_codec",
|
||||
"persistence": "transient",
|
||||
"producers": [
|
||||
"frontend/src/contracts/perceptionHostCodec.ts"
|
||||
],
|
||||
"publication": "repository_only",
|
||||
"reachability": "reachable",
|
||||
"reachability_source": "host_input"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"frontend/src/contracts/productionAccumulationCodec.ts"
|
||||
@@ -1571,6 +1616,7 @@
|
||||
"governance/contracts/architecture_inventory_v1.schema.json",
|
||||
"governance/contracts/m19_closeout_v1.json",
|
||||
"scripts/architecture_inventory.py",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/governance/architecture_inventory.py",
|
||||
"scripts/governance/relocate_packaged_artifacts.py",
|
||||
@@ -1604,6 +1650,7 @@
|
||||
"frontend/tests/buildProvenance.test.ts",
|
||||
"governance/contracts/build_provenance_v1.schema.json",
|
||||
"governance/contracts/supply_chain_v1.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/frontend_build_report.py",
|
||||
"scripts/supply_chain_manifest.py",
|
||||
@@ -1635,6 +1682,7 @@
|
||||
"compatibility": "migration_required",
|
||||
"consumers": [
|
||||
"governance/contracts/closeout_matrix_v1.schema.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/closeout_matrix.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/governance/closeout_matrix.py",
|
||||
@@ -1666,6 +1714,7 @@
|
||||
"frontend/src/contracts/generatedSurface.ts",
|
||||
"frontend/tests/generatedSurface.test.ts",
|
||||
"governance/contracts/cross_language_surface_v1.schema.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/cross_language_surface.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/governance/cross_language_surface.py",
|
||||
@@ -1698,8 +1747,10 @@
|
||||
"frontend/tests/buildMetadata.test.ts",
|
||||
"governance/contracts/installation_profiles_v1.schema.json",
|
||||
"governance/contracts/supply_chain_v1.json",
|
||||
"scripts/release_push_guard.py",
|
||||
"scripts/supply_chain_manifest.py",
|
||||
"tests/test_installation_profiles.py"
|
||||
"tests/test_installation_profiles.py",
|
||||
"tests/test_release_push_guard.py"
|
||||
],
|
||||
"contract_id": "h3-context-installation-profiles/1",
|
||||
"dialect": "not_applicable",
|
||||
@@ -1722,6 +1773,7 @@
|
||||
"compatibility": "migration_required",
|
||||
"consumers": [
|
||||
"governance/contracts/m19_closeout_v1.schema.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/governance/m19_closeout.py",
|
||||
"scripts/governance/relocate_packaged_artifacts.py",
|
||||
@@ -1752,6 +1804,7 @@
|
||||
"consumers": [
|
||||
"governance/contracts/m19_closeout_v1.json",
|
||||
"governance/contracts/node_surface_v1.schema.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/governance/node_surface.py",
|
||||
"scripts/governance/relocate_packaged_artifacts.py",
|
||||
@@ -1772,6 +1825,33 @@
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/public_redaction_allowlist_v1.json"
|
||||
],
|
||||
"blockers": [],
|
||||
"boundary": "persisted",
|
||||
"compatibility": "migration_required",
|
||||
"consumers": [
|
||||
"scripts/public_projection.py",
|
||||
"scripts/public_redaction.py",
|
||||
"tests/test_public_redaction.py",
|
||||
"tests/test_public_release_controller.py",
|
||||
"tests/test_redacting_public_projection.py",
|
||||
"tests/test_redaction_toolchain.py"
|
||||
],
|
||||
"contract_id": "h3-context-public-redaction-allowlist/1",
|
||||
"dialect": "not_applicable",
|
||||
"disposition": "KEEP",
|
||||
"evidence": "persisted boundary keeps a reader this repository cannot re-migrate",
|
||||
"fingerprint_domain": "none",
|
||||
"kind": "json_data",
|
||||
"persistence": "persisted",
|
||||
"producers": [
|
||||
"governance/contracts/public_redaction_allowlist_v1.json"
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/public_surface_v1.json"
|
||||
@@ -1783,6 +1863,7 @@
|
||||
"governance/contracts/m19_closeout_v1.json",
|
||||
"governance/contracts/public_surface_v1.schema.json",
|
||||
"scripts/build_provenance.py",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/governance/public_surface.py",
|
||||
"scripts/governance/relocate_packaged_artifacts.py",
|
||||
@@ -1813,6 +1894,7 @@
|
||||
"compatibility": "old_readers_unaffected",
|
||||
"consumers": [
|
||||
"governance/contracts/supply_chain_v1.schema.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/governance/relocate_packaged_artifacts.py",
|
||||
"scripts/supply_chain_manifest.py",
|
||||
@@ -1867,8 +1949,12 @@
|
||||
"compatibility": "migration_required",
|
||||
"consumers": [
|
||||
"comfyui_h3_context/adapters/authoring_renderer_qualification.py",
|
||||
"comfyui_h3_context/contracts/authoring_renderer_qualification_v2.json",
|
||||
"scripts/governance/relocate_packaged_artifacts.py",
|
||||
"scripts/nle_semantic_conformance.py",
|
||||
"tests/test_m25_native_renderer.py"
|
||||
"tests/test_m23_55_relocation.py",
|
||||
"tests/test_m25_native_renderer.py",
|
||||
"tests/test_renderer_qualification_subjects.py"
|
||||
],
|
||||
"contract_id": "h3.authoring.native_renderer_qualification.v1",
|
||||
"dialect": "not_applicable",
|
||||
@@ -1884,6 +1970,31 @@
|
||||
"reachability": "unsupported",
|
||||
"reachability_source": "none"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"comfyui_h3_context/contracts/authoring_renderer_qualification_v2.json"
|
||||
],
|
||||
"blockers": [],
|
||||
"boundary": "persisted",
|
||||
"compatibility": "migration_required",
|
||||
"consumers": [
|
||||
"comfyui_h3_context/adapters/authoring_renderer_qualification.py",
|
||||
"tests/test_renderer_qualification_subjects.py"
|
||||
],
|
||||
"contract_id": "h3.authoring.native_renderer_qualification.v2",
|
||||
"dialect": "not_applicable",
|
||||
"disposition": "KEEP",
|
||||
"evidence": "persisted boundary keeps a reader this repository cannot re-migrate",
|
||||
"fingerprint_domain": "none",
|
||||
"kind": "json_data",
|
||||
"persistence": "persisted",
|
||||
"producers": [
|
||||
"comfyui_h3_context/contracts/authoring_renderer_qualification_v2.json"
|
||||
],
|
||||
"publication": "packaged",
|
||||
"reachability": "unsupported",
|
||||
"reachability_source": "none"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/compatibility_matrix_v1.json"
|
||||
@@ -2438,6 +2549,30 @@
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/host_seam_census_transition_perception_host_v1.json"
|
||||
],
|
||||
"blockers": [],
|
||||
"boundary": "untrusted_input",
|
||||
"compatibility": "old_readers_unaffected",
|
||||
"consumers": [
|
||||
"frontend/tests/e2e/journeys/hostSeams/hc10HostSeamDrift.spec.ts",
|
||||
"frontend/tests/hostSeamDrift.test.ts",
|
||||
"frontend/tests/support/hostSeamDrift.ts"
|
||||
],
|
||||
"contract_id": "h3.context.host_seam_census_transition_perception_host.v1",
|
||||
"dialect": "not_applicable",
|
||||
"disposition": "KEEP",
|
||||
"evidence": "untrusted_input boundary keeps a reader this repository cannot re-migrate",
|
||||
"fingerprint_domain": "none",
|
||||
"kind": "json_data",
|
||||
"persistence": "persisted",
|
||||
"producers": [
|
||||
"governance/contracts/host_seam_census_transition_perception_host_v1.json"
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/host_seam_census_transition_project_persistence_v1.json"
|
||||
@@ -2614,6 +2749,7 @@
|
||||
"consumers": [
|
||||
"comfyui_h3_context/core/managed_run_machine.py",
|
||||
"governance/contracts/managed_run_stategraph_v1.schema.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/governance/relocate_packaged_artifacts.py",
|
||||
"scripts/managed_run_stategraph.py",
|
||||
@@ -2671,6 +2807,7 @@
|
||||
"frontend/tests/e2e/journeys/nleHardeningCommands.spec.ts",
|
||||
"frontend/tests/nleEvidenceCollection.test.ts",
|
||||
"governance/contracts/nle_hardening_coverage_manifest_v1.schema.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/nle_hardening_manifest.py",
|
||||
"tests/fixtures/m23_48_derived_artifact_graph_v1.json"
|
||||
@@ -2699,6 +2836,7 @@
|
||||
"frontend/tests/e2e/journeys/m25_77ClipAudioParity.spec.ts",
|
||||
"frontend/tests/nleEvidenceCollection.test.ts",
|
||||
"governance/contracts/nle_semantic_conformance_manifest_v1.schema.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/nle_semantic_conformance_manifest.py",
|
||||
"tests/fixtures/m23_48_derived_artifact_graph_v1.json",
|
||||
@@ -2758,8 +2896,10 @@
|
||||
"governance/contracts/package_compatibility_policy_v1.schema.json",
|
||||
"scripts/fingerprint_domain.py",
|
||||
"scripts/package_compatibility_policy.py",
|
||||
"scripts/public_consumer_compatibility.py",
|
||||
"tests/test_core_public_surface.py",
|
||||
"tests/test_package_compatibility_policy.py"
|
||||
"tests/test_package_compatibility_policy.py",
|
||||
"tests/test_public_consumer_compatibility.py"
|
||||
],
|
||||
"contract_id": "h3.context.package_compatibility_policy.v1",
|
||||
"dialect": "not_applicable",
|
||||
@@ -2773,6 +2913,55 @@
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/host_line_hashes_v1.json"
|
||||
],
|
||||
"blockers": [],
|
||||
"boundary": "untrusted_input",
|
||||
"compatibility": "old_readers_unaffected",
|
||||
"consumers": [
|
||||
"tests/test_native_behaviour_catalogue.py",
|
||||
"tests/test_tooling_contract.py"
|
||||
],
|
||||
"contract_id": "h3.host_line_hashes.v1",
|
||||
"dialect": "not_applicable",
|
||||
"disposition": "KEEP",
|
||||
"evidence": "untrusted_input boundary keeps a reader this repository cannot re-migrate",
|
||||
"fingerprint_domain": "none",
|
||||
"kind": "json_data",
|
||||
"persistence": "persisted",
|
||||
"producers": [
|
||||
"governance/contracts/host_line_hashes_v1.json"
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/native_behaviour_catalogue_v1.json"
|
||||
],
|
||||
"blockers": [],
|
||||
"boundary": "persisted",
|
||||
"compatibility": "migration_required",
|
||||
"consumers": [
|
||||
"governance/contracts/native_behaviour_catalogue_v1.schema.json",
|
||||
"scripts/native_behaviour_anchors.py",
|
||||
"scripts/native_behaviour_catalogue.py",
|
||||
"tests/test_native_behaviour_catalogue.py",
|
||||
"tests/test_tooling_contract.py"
|
||||
],
|
||||
"contract_id": "h3.native_behaviour_catalogue.v1",
|
||||
"dialect": "not_applicable",
|
||||
"disposition": "KEEP",
|
||||
"evidence": "persisted boundary keeps a reader this repository cannot re-migrate",
|
||||
"fingerprint_domain": "none",
|
||||
"kind": "json_data",
|
||||
"persistence": "persisted",
|
||||
"producers": [
|
||||
"governance/contracts/native_behaviour_catalogue_v1.json"
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/performance_profiles_v1.json"
|
||||
@@ -2975,6 +3164,7 @@
|
||||
"consumers": [
|
||||
"governance/contracts/supply_chain_v1.json",
|
||||
"governance/contracts/supply_chain_v1.schema.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"scripts/governance/relocate_packaged_artifacts.py",
|
||||
"scripts/m16_03_release_audit.py",
|
||||
@@ -3182,6 +3372,7 @@
|
||||
"compatibility": "old_readers_unaffected",
|
||||
"consumers": [
|
||||
"scripts/authoring_output_schemas.py",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"tests/fixtures/m23_48_derived_artifact_graph_v1.json"
|
||||
],
|
||||
@@ -3206,6 +3397,7 @@
|
||||
"compatibility": "old_readers_unaffected",
|
||||
"consumers": [
|
||||
"scripts/authoring_render_schemas.py",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"tests/fixtures/m23_48_derived_artifact_graph_v1.json",
|
||||
"tests/test_m25_authoring_render_jobs.py"
|
||||
@@ -3231,6 +3423,7 @@
|
||||
"compatibility": "migration_required",
|
||||
"consumers": [
|
||||
"scripts/authoring_render_schemas.py",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/derived_artifacts.py",
|
||||
"tests/fixtures/m23_48_derived_artifact_graph_v1.json",
|
||||
"tests/test_m25_authoring_render_receipts.py"
|
||||
@@ -4970,6 +5163,30 @@
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/perception_host_settings_v1.schema.json"
|
||||
],
|
||||
"blockers": [
|
||||
"unresolved_owner"
|
||||
],
|
||||
"boundary": "untrusted_input",
|
||||
"compatibility": "old_readers_unaffected",
|
||||
"consumers": [
|
||||
"tests/test_perception_settings.py"
|
||||
],
|
||||
"contract_id": "governance/contracts/perception_host_settings_v1.schema.json",
|
||||
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
||||
"disposition": "NEED_EVIDENCE",
|
||||
"evidence": "the authority declares no $id, so no identity can be attributed to it",
|
||||
"fingerprint_domain": "none",
|
||||
"kind": "json_schema",
|
||||
"persistence": "transient",
|
||||
"producers": [
|
||||
"governance/contracts/perception_host_settings_v1.schema.json"
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/training_authorization_v1.schema.json"
|
||||
@@ -5212,6 +5429,30 @@
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/native_behaviour_catalogue_v1.schema.json"
|
||||
],
|
||||
"blockers": [],
|
||||
"boundary": "public",
|
||||
"compatibility": "old_readers_unaffected",
|
||||
"consumers": [
|
||||
"governance/contracts/native_behaviour_catalogue_v1.json",
|
||||
"scripts/native_behaviour_catalogue.py",
|
||||
"tests/test_native_behaviour_catalogue.py"
|
||||
],
|
||||
"contract_id": "h3.native_behaviour_catalogue.v1",
|
||||
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
||||
"disposition": "KEEP",
|
||||
"evidence": "public boundary keeps a reader this repository cannot re-migrate",
|
||||
"fingerprint_domain": "none",
|
||||
"kind": "json_schema",
|
||||
"persistence": "transient",
|
||||
"producers": [
|
||||
"governance/contracts/native_behaviour_catalogue_v1.schema.json"
|
||||
],
|
||||
"publication": "repository_only"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"governance/contracts/perception_producer_v1.schema.json"
|
||||
@@ -5732,6 +5973,8 @@
|
||||
"frontend/tests/buildMetadata.test.ts",
|
||||
"frontend/tests/genericFixtureMediaCoverage.test.ts",
|
||||
"governance/contracts/supply_chain_v1.json",
|
||||
"scripts/change_lane.py",
|
||||
"scripts/ci_preflight.py",
|
||||
"scripts/contract_inventory.py",
|
||||
"scripts/gate_stages.py",
|
||||
"scripts/m16_03_release_audit.py",
|
||||
@@ -5742,16 +5985,20 @@
|
||||
"scripts/product_completeness.py",
|
||||
"scripts/public_build_backend.py",
|
||||
"scripts/public_projection.py",
|
||||
"scripts/public_redaction.py",
|
||||
"scripts/public_source_policy.py",
|
||||
"scripts/registration_smoke.py",
|
||||
"scripts/registry_publish_guard.py",
|
||||
"scripts/registry_release_controller.py",
|
||||
"scripts/release_matrix.py",
|
||||
"scripts/release_push_guard.py",
|
||||
"scripts/retirement_eligibility.py",
|
||||
"scripts/sdist_payload.py",
|
||||
"scripts/security_audit.py",
|
||||
"scripts/supply_chain_manifest.py",
|
||||
"scripts/validate_comfy_registry_metadata.py",
|
||||
"tests/test_change_lane.py",
|
||||
"tests/test_ci_preflight.py",
|
||||
"tests/test_comfy_registry_metadata.py",
|
||||
"tests/test_gate_stages.py",
|
||||
"tests/test_host_version_tolerance.py",
|
||||
@@ -5766,7 +6013,9 @@
|
||||
"tests/test_registry_payload.py",
|
||||
"tests/test_registry_publish_guard.py",
|
||||
"tests/test_release_matrix.py",
|
||||
"tests/test_release_push_guard.py",
|
||||
"tests/test_sdist_distribution.py",
|
||||
"tests/test_security_audit.py",
|
||||
"tests/test_supply_chain_manifest.py",
|
||||
"tests/test_supported_host_e2e.py",
|
||||
"tests/test_tooling_contract.py"
|
||||
@@ -6054,6 +6303,31 @@
|
||||
],
|
||||
"publication": "packaged"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"comfyui_h3_context/adapters/perception_settings.py"
|
||||
],
|
||||
"blockers": [],
|
||||
"boundary": "untrusted_input",
|
||||
"compatibility": "old_readers_unaffected",
|
||||
"consumers": [
|
||||
"governance/contracts/perception_host_settings_v1.schema.json",
|
||||
"tests/test_perception_settings.py"
|
||||
],
|
||||
"contract_id": "h3-context-perception-host/1",
|
||||
"dialect": "not_applicable",
|
||||
"disposition": "KEEP",
|
||||
"evidence": "untrusted_input boundary keeps a reader this repository cannot re-migrate",
|
||||
"fingerprint_domain": "h3-context-perception-host/1",
|
||||
"kind": "python_wire",
|
||||
"persistence": "transient",
|
||||
"producers": [
|
||||
"comfyui_h3_context/adapters/perception_settings.py"
|
||||
],
|
||||
"publication": "packaged",
|
||||
"reachability": "unsupported",
|
||||
"reachability_source": "none"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"comfyui_h3_context/core/preview.py"
|
||||
@@ -10013,6 +10287,7 @@
|
||||
"consumers": [
|
||||
"comfyui_h3_context/adapters/comfyui_retained_assets.py",
|
||||
"comfyui_h3_context/adapters/editor_recovery_service.py",
|
||||
"comfyui_h3_context/adapters/perception_settings.py",
|
||||
"comfyui_h3_context/adapters/retained_asset_service.py",
|
||||
"comfyui_h3_context/adapters/workspace_state_service.py",
|
||||
"frontend/src/contracts/mediaRuntimeCodec.ts",
|
||||
@@ -10166,6 +10441,50 @@
|
||||
"reachability": "reachable",
|
||||
"reachability_source": "host_input"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"comfyui_h3_context/adapters/comfyui_perception_status.py",
|
||||
"comfyui_h3_context/adapters/perception_settings.py"
|
||||
],
|
||||
"blockers": [
|
||||
"duplicate_schema_identity"
|
||||
],
|
||||
"boundary": "untrusted_input",
|
||||
"compatibility": "old_readers_unaffected",
|
||||
"consumers": [
|
||||
"comfyui_h3_context/adapters/comfyui_media_runtime_setup.py",
|
||||
"comfyui_h3_context/adapters/comfyui_retained_assets.py",
|
||||
"comfyui_h3_context/adapters/editor_recovery_service.py",
|
||||
"comfyui_h3_context/adapters/retained_asset_service.py",
|
||||
"comfyui_h3_context/adapters/workspace_state_service.py",
|
||||
"frontend/src/contracts/perceptionHostCodec.ts",
|
||||
"frontend/tests/e2e/journeys/perceptionHostStatus.spec.ts",
|
||||
"frontend/tests/perceptionHostClient.test.ts",
|
||||
"frontend/tests/perceptionHostCodec.test.ts",
|
||||
"frontend/tests/perceptionHostEntry.test.tsx",
|
||||
"frontend/tests/perceptionHostSession.test.ts",
|
||||
"frontend/tests/perceptionHostStatus.test.tsx",
|
||||
"tests/test_m25_31_media_runtime_setup.py",
|
||||
"tests/test_m25_32_media_runtime_activation.py",
|
||||
"tests/test_m25_33_media_setup_entry.py",
|
||||
"tests/test_perception_host_status.py",
|
||||
"tests/test_perception_settings_lifecycle.py"
|
||||
],
|
||||
"contract_id": "h3.context.perception_host_status.v1",
|
||||
"dialect": "not_applicable",
|
||||
"disposition": "NEED_EVIDENCE",
|
||||
"evidence": "one identity is declared by more than one authority; ownership is not inferred",
|
||||
"fingerprint_domain": "h3.context.perception_host_status.v1",
|
||||
"kind": "python_wire",
|
||||
"persistence": "transient",
|
||||
"producers": [
|
||||
"comfyui_h3_context/adapters/comfyui_perception_status.py",
|
||||
"comfyui_h3_context/adapters/perception_settings.py"
|
||||
],
|
||||
"publication": "packaged",
|
||||
"reachability": "unsupported",
|
||||
"reachability_source": "none"
|
||||
},
|
||||
{
|
||||
"authority_paths": [
|
||||
"comfyui_h3_context/core/perturbation_evaluation.py"
|
||||
@@ -11098,6 +11417,7 @@
|
||||
"consumers": [
|
||||
"comfyui_h3_context/adapters/comfyui_media_runtime_setup.py",
|
||||
"comfyui_h3_context/adapters/comfyui_retained_assets.py",
|
||||
"comfyui_h3_context/adapters/perception_settings.py",
|
||||
"comfyui_h3_context/adapters/retained_asset_service.py",
|
||||
"comfyui_h3_context/adapters/workspace_state_service.py",
|
||||
"frontend/src/contracts/projectRecoveryCodec.ts",
|
||||
@@ -11556,6 +11876,7 @@
|
||||
"comfyui_h3_context/adapters/comfyui_media_runtime_setup.py",
|
||||
"comfyui_h3_context/adapters/comfyui_retained_assets.py",
|
||||
"comfyui_h3_context/adapters/editor_recovery_service.py",
|
||||
"comfyui_h3_context/adapters/perception_settings.py",
|
||||
"comfyui_h3_context/adapters/workspace_state_service.py",
|
||||
"frontend/src/contracts/retainedAssetsCodec.ts",
|
||||
"frontend/tests/retainedAssetFixtures.ts",
|
||||
@@ -12635,6 +12956,7 @@
|
||||
"comfyui_h3_context/adapters/comfyui_media_runtime_setup.py",
|
||||
"comfyui_h3_context/adapters/comfyui_retained_assets.py",
|
||||
"comfyui_h3_context/adapters/editor_recovery_service.py",
|
||||
"comfyui_h3_context/adapters/perception_settings.py",
|
||||
"comfyui_h3_context/adapters/retained_asset_service.py",
|
||||
"frontend/src/contracts/workspaceStateCodec.ts",
|
||||
"tests/fixtures/workspace_state_v1.json",
|
||||
@@ -15222,6 +15544,6 @@
|
||||
"reachability_source": "none"
|
||||
}
|
||||
],
|
||||
"fingerprint": "sha256:4021891f631280fd8797e0c3ac13672bc1b79fd659ecc8652ca864339116f488",
|
||||
"fingerprint": "sha256:92ba0a9a5f29a5c3899eb98141b6c0005d227e7e1d6c04f294c2a82d8f0a6505",
|
||||
"schema": "h3-context-contract-inventory/1"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"fingerprint": "sha256:8e824af612c2551bf1f7d4853a64fc9c0448fb66997066d37a98a3be7bf48460",
|
||||
"fingerprint": "sha256:9cf245c43ad004246615d70297a2d01442b7a9ce70c718146dd7bbe0cb65039c",
|
||||
"schema": "h3-context-cross-language-surface/1",
|
||||
"shapes": [
|
||||
{
|
||||
@@ -652,10 +652,34 @@
|
||||
"workspace_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"class_name": "TextShadow",
|
||||
"export_name": "textShadowKeys",
|
||||
"module_path": "comfyui_h3_context/core/composition_contract.py",
|
||||
"required_keys": [
|
||||
"offset_x_px",
|
||||
"offset_y_px",
|
||||
"rgba"
|
||||
]
|
||||
},
|
||||
{
|
||||
"class_name": "TextStroke",
|
||||
"export_name": "textStrokeKeys",
|
||||
"module_path": "comfyui_h3_context/core/composition_contract.py",
|
||||
"required_keys": [
|
||||
"rgba",
|
||||
"width_px"
|
||||
]
|
||||
},
|
||||
{
|
||||
"class_name": "TextStyle",
|
||||
"export_name": "textStyleKeys",
|
||||
"module_path": "comfyui_h3_context/core/composition_contract.py",
|
||||
"optional_keys": [
|
||||
"background_padding_px",
|
||||
"shadow",
|
||||
"stroke"
|
||||
],
|
||||
"required_keys": [
|
||||
"align",
|
||||
"background_rgba",
|
||||
|
||||
@@ -150,6 +150,7 @@
|
||||
"frontend/src/host/managedQualificationActions.ts",
|
||||
"frontend/src/host/managedSequenceClient.ts",
|
||||
"frontend/src/host/mediaRuntimeClient.ts",
|
||||
"frontend/src/host/perceptionHostClient.ts",
|
||||
"frontend/src/host/productionActions.ts",
|
||||
"frontend/src/host/productionAuthoringImportClient.ts",
|
||||
"frontend/src/host/productionManagedChildResolver.ts",
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"profiles":[{"compatibility":["python>=3.10"],"distribution":"minimax-h3-studio==1.1.0","download_policy":"artifact_only","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"artifact","model_management":"none","owner":"package","profile_id":"core_manual","removal":"remove_package_owned_files","required":true,"rollback":"reinstall_previous_verified_artifact","runtime_entries":["comfyui_h3_context"],"storage_owner":"package"},{"compatibility":["comfyui-native-node-capabilities-v1","comfyui-frontend-extension-api-v1"],"distribution":"host-provided","download_policy":"forbidden","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"host_reuse","model_management":"host_only","owner":"host","profile_id":"comfyui_native","removal":"leave_host_runtime_unchanged","required":true,"rollback":"restore_previous_verified_node_artifact","runtime_entries":["comfyui_h3_context"],"storage_owner":"host"},{"compatibility":["h3-context-ollama-qualification/1"],"distribution":"external-user-managed","download_policy":"forbidden","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"external_runtime","model_management":"external_only","owner":"user","profile_id":"external_ollama","removal":"leave_external_runtime_unchanged","required":false,"rollback":"user_managed_external_rollback","runtime_entries":[],"storage_owner":"user"},{"compatibility":["openai-compatible-model-list-and-chat-v1"],"distribution":"external-user-managed","download_policy":"forbidden","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"external_runtime","model_management":"external_only","owner":"user","profile_id":"external_openai_compatible_loopback","removal":"leave_external_runtime_unchanged","required":false,"rollback":"user_managed_external_rollback","runtime_entries":[],"storage_owner":"user"},{"compatibility":["openai-compatible-model-list-and-chat-v1"],"distribution":"third-party-service","download_policy":"forbidden","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"remote_service","model_management":"provider_managed","owner":"provider","profile_id":"remote_openai_compatible_service","removal":"leave_remote_service_unchanged","required":false,"rollback":"revoke_session_consent_and_clear_selection","runtime_entries":[],"storage_owner":"provider"},{"compatibility":["anthropic-models-and-messages-v1"],"distribution":"third-party-service","download_policy":"forbidden","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"remote_service","model_management":"provider_managed","owner":"provider","profile_id":"remote_anthropic_service","removal":"leave_remote_service_unchanged","required":false,"rollback":"revoke_session_consent_and_clear_selection","runtime_entries":[],"storage_owner":"provider"},{"compatibility":["comfyui-frontend-extension-api-v1"],"distribution":"bundled-with-minimax-h3-studio","download_policy":"artifact_only","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"bundled_asset","model_management":"none","owner":"package","profile_id":"frontend_extension","removal":"remove_package_owned_bundle","required":true,"rollback":"reinstall_previous_verified_artifact","runtime_entries":["comfyui_h3_context/web/h3-context-sidebar.js"],"storage_owner":"package"}],"schema":"h3-context-installation-profiles/1","version":1}
|
||||
{"profiles":[{"compatibility":["python>=3.10"],"distribution":"minimax-h3-studio==1.2.0","download_policy":"artifact_only","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"artifact","model_management":"none","owner":"package","profile_id":"core_manual","removal":"remove_package_owned_files","required":true,"rollback":"reinstall_previous_verified_artifact","runtime_entries":["comfyui_h3_context"],"storage_owner":"package"},{"compatibility":["comfyui-native-node-capabilities-v1","comfyui-frontend-extension-api-v1"],"distribution":"host-provided","download_policy":"forbidden","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"host_reuse","model_management":"host_only","owner":"host","profile_id":"comfyui_native","removal":"leave_host_runtime_unchanged","required":true,"rollback":"restore_previous_verified_node_artifact","runtime_entries":["comfyui_h3_context"],"storage_owner":"host"},{"compatibility":["h3-context-ollama-qualification/1"],"distribution":"external-user-managed","download_policy":"forbidden","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"external_runtime","model_management":"external_only","owner":"user","profile_id":"external_ollama","removal":"leave_external_runtime_unchanged","required":false,"rollback":"user_managed_external_rollback","runtime_entries":[],"storage_owner":"user"},{"compatibility":["openai-compatible-model-list-and-chat-v1"],"distribution":"external-user-managed","download_policy":"forbidden","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"external_runtime","model_management":"external_only","owner":"user","profile_id":"external_openai_compatible_loopback","removal":"leave_external_runtime_unchanged","required":false,"rollback":"user_managed_external_rollback","runtime_entries":[],"storage_owner":"user"},{"compatibility":["openai-compatible-model-list-and-chat-v1"],"distribution":"third-party-service","download_policy":"forbidden","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"remote_service","model_management":"provider_managed","owner":"provider","profile_id":"remote_openai_compatible_service","removal":"leave_remote_service_unchanged","required":false,"rollback":"revoke_session_consent_and_clear_selection","runtime_entries":[],"storage_owner":"provider"},{"compatibility":["anthropic-models-and-messages-v1"],"distribution":"third-party-service","download_policy":"forbidden","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"remote_service","model_management":"provider_managed","owner":"provider","profile_id":"remote_anthropic_service","removal":"leave_remote_service_unchanged","required":false,"rollback":"revoke_session_consent_and_clear_selection","runtime_entries":[],"storage_owner":"provider"},{"compatibility":["comfyui-frontend-extension-api-v1"],"distribution":"bundled-with-minimax-h3-studio","download_policy":"artifact_only","end_user_node_lifecycle":"forbidden","fallback":"none","install_mode":"bundled_asset","model_management":"none","owner":"package","profile_id":"frontend_extension","removal":"remove_package_owned_bundle","required":true,"rollback":"reinstall_previous_verified_artifact","runtime_entries":["comfyui_h3_context/web/h3-context-sidebar.js"],"storage_owner":"package"}],"schema":"h3-context-installation-profiles/1","version":1}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M12-02 source-owned ASR, language, timing, and uncertainty contracts.
|
||||
"""source-owned ASR, language, timing, and uncertainty contracts.
|
||||
|
||||
Only bounded, redacted observations and injected descriptors cross this seam. Audio samples,
|
||||
decoders, ComfyUI model objects, Ollama, specialist runtimes, and network clients remain outside
|
||||
@@ -1082,7 +1082,7 @@ def _seed(value: str) -> str:
|
||||
|
||||
|
||||
def build_default_asr_benchmark_plan() -> ASRBenchmarkPlan:
|
||||
"""Build the frozen M12-02 metadata-only ASR benchmark."""
|
||||
"""Build the frozen metadata-only ASR benchmark."""
|
||||
|
||||
fixtures = (
|
||||
ASRBenchmarkFixture(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""M22-05 assisted drafting: one model pass, a deterministic audit, and at most one repair.
|
||||
"""assisted drafting: one model pass, a deterministic audit, and at most one repair.
|
||||
|
||||
A model may propose a prompt here. It may not decide that its proposal is good. The audit that
|
||||
judges the candidate is `M21-01`'s, unchanged; the conditions under which a repair replaces the
|
||||
judges the candidate is ``'s, unchanged; the conditions under which a repair replaces the
|
||||
original are fixed in this module; and both are pure functions of recorded inputs, so the whole
|
||||
decision replays from a transcript without a model.
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"""M22-12 fail-closed assisted-draft execution and content-free receipts.
|
||||
"""fail-closed assisted-draft execution and content-free receipts.
|
||||
|
||||
This pure boundary decides whether an exact catalog profile may construct an execution binding,
|
||||
wraps every model call with cancellation checks, delegates drafting and repair to the accepted
|
||||
M22-05 core, and emits a new browser-safe receipt rather than forwarding provider transport data.
|
||||
core, and emits a new browser-safe receipt rather than forwarding provider transport data.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M12-07 audio-perception acceptance and disposition contracts.
|
||||
"""audio-perception acceptance and disposition contracts.
|
||||
|
||||
The gate evaluates the frozen audio benchmark and explicitly supplied redacted profile evidence.
|
||||
It never discovers a provider, starts a process, opens media, contacts a server, or changes an
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M12-04 source-owned music, ambience, Foley, and sound-event contracts.
|
||||
"""source-owned music, ambience, Foley, and sound-event contracts.
|
||||
|
||||
Only bounded, redacted event descriptors and injected benchmark metadata cross this seam. Samples,
|
||||
decoders, ComfyUI, Ollama, PANNs, BEATs, CLAP, specialist runtimes, and network clients remain
|
||||
@@ -1002,7 +1002,7 @@ def _seed(value: str) -> str:
|
||||
|
||||
|
||||
def build_default_audio_event_benchmark_plan() -> AudioEventBenchmarkPlan:
|
||||
"""Build the frozen M12-04 metadata-only event bake-off benchmark."""
|
||||
"""Build the frozen metadata-only event bake-off benchmark."""
|
||||
|
||||
fixtures = (
|
||||
AudioEventBenchmarkFixture(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Provenance-preserving audio evidence fusion and confidence calibration for M12-06.
|
||||
"""Provenance-preserving audio evidence fusion and confidence calibration for.
|
||||
|
||||
This pure-core module consumes bounded, already-produced ASR, speaker, audio-event, reference, and
|
||||
audiovisual-grounding observations. It does not decode media, discover a provider, run an LLM/VLM,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M12-01 source-clock audio extraction and normalization contracts.
|
||||
"""source-clock audio extraction and normalization contracts.
|
||||
|
||||
Only redacted metadata and injected segment descriptors cross this seam. Samples, decoders,
|
||||
ComfyUI audio nodes, Ollama, and specialist runtimes remain outside the pure core.
|
||||
@@ -919,7 +919,7 @@ def _fixture(
|
||||
|
||||
|
||||
def build_default_audio_benchmark_plan() -> AudioBenchmarkPlan:
|
||||
"""Build the frozen M12-01 metadata-only benchmark."""
|
||||
"""Build the frozen metadata-only benchmark."""
|
||||
|
||||
fixtures = (
|
||||
_fixture(
|
||||
|
||||
@@ -628,7 +628,7 @@ class VerifiedDerivative:
|
||||
raise MediaLeaseError("stale")
|
||||
require_fingerprint(self.asset_fingerprint)
|
||||
require_fingerprint(self.generator_fingerprint)
|
||||
# IMPORTANT (M25-45): a body that simply does not fit the profile is a resource limit, at
|
||||
# IMPORTANT: a body that simply does not fit the profile is a resource limit, at
|
||||
# every boundary that decides it -- this contract, the lease authority's own admission and
|
||||
# the browser's bounded read. `require_integer` would answer `invalid_request`, which reads
|
||||
# as "the caller sent something malformed" and is indistinguishable from a wrong field.
|
||||
|
||||
@@ -25,7 +25,7 @@ OUTPUT_RESPONSE_SECONDS: Final = 120
|
||||
OUTPUT_WRITE_SECONDS: Final = 10
|
||||
OUTPUT_JOB_PATH: Final = "/h3-context/v1/authoring/render"
|
||||
OUTPUT_MEDIA_PATH: Final = "/h3-context/v1/authoring/output"
|
||||
#: M25-16: the read-only capability projection the expanded workspace reads before it mounts
|
||||
#: : the read-only capability projection the expanded workspace reads before it mounts
|
||||
#: the final-output leaf. Its path deliberately shares no prefix with the `{handle}` routes.
|
||||
OUTPUT_CAPABILITY_PATH: Final = "/h3-context/v1/authoring/output-capability"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Pure M17-11 audiovisual reconstruction planning and sole receipt contract.
|
||||
"""Pure audiovisual reconstruction planning and sole receipt contract.
|
||||
|
||||
This module deliberately owns no filesystem locator, media process, host API, or
|
||||
frontend wire. It validates exact predecessor truth and produces a deterministic
|
||||
@@ -464,7 +464,7 @@ class AVReconstructionLimits:
|
||||
|
||||
|
||||
def qualified_av_limits() -> AVReconstructionLimits:
|
||||
"""Return the finite Gate-0 M17-11 resource profile."""
|
||||
"""Return the finite Gate-0 resource profile."""
|
||||
|
||||
return AVReconstructionLimits(
|
||||
max_segments=64,
|
||||
@@ -642,7 +642,7 @@ def qualified_ffmpeg_capability() -> AVMediaCapability:
|
||||
video_encoders=("libx264",),
|
||||
audio_encoders=("aac",),
|
||||
filters=(
|
||||
# M20-09: seam-only filters are declared for the explicit seam policy;
|
||||
# seam-only filters are declared for the explicit seam policy;
|
||||
# presence in the exact pinned pair is measured by a real-binary probe.
|
||||
"acrossfade",
|
||||
"aformat",
|
||||
@@ -1148,7 +1148,7 @@ def _build_av_reconstruction_plan(
|
||||
planned_at_ms: int,
|
||||
_factory_token: object,
|
||||
) -> AVReconstructionPlan:
|
||||
"""Join exact M17-09/08/07/10 truth into one deterministic local plan."""
|
||||
"""Join exact /08/07/10 truth into one deterministic local plan."""
|
||||
|
||||
if type(selective_plan) is not SelectiveRerunPlan:
|
||||
raise AVReconstructionError("selective_plan_type")
|
||||
@@ -1268,7 +1268,7 @@ def _build_av_reconstruction_plan(
|
||||
raise AVReconstructionError("input_not_complete")
|
||||
if receipt.manifest_fingerprint != manifest_by_segment[receipt.segment_id]:
|
||||
# Reused receipts intentionally belong to the accepted predecessor revision, so their
|
||||
# manifest fingerprint can differ while the M17-09 exact decision remains authority.
|
||||
# manifest fingerprint can differ while the exact decision remains authority.
|
||||
if decision.disposition is not SelectiveRerunDisposition.REUSE:
|
||||
raise AVReconstructionError("input_identity_mismatch")
|
||||
if decision.disposition is SelectiveRerunDisposition.REUSE:
|
||||
@@ -1368,7 +1368,7 @@ def _build_av_reconstruction_plan(
|
||||
):
|
||||
raise AVReconstructionError("boundary_identity_mismatch")
|
||||
boundary_receipt = boundary.receipt
|
||||
# SECURITY: cut/restart receipts do not self-bind a segment pair in M17-10; the separate
|
||||
# SECURITY: cut/restart receipts do not self-bind a segment pair in ; the separate
|
||||
# accepted fingerprint mapping is therefore required before the process-local wrapper.
|
||||
if boundary_receipt.fingerprint != accepted_boundary_receipt_fingerprints[index]:
|
||||
raise AVReconstructionError("boundary_identity_mismatch")
|
||||
@@ -1853,7 +1853,7 @@ class AVReceiptSegmentResult:
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class AVReconstructionReceipt:
|
||||
"""The sole portable and persisted M17-11 contract."""
|
||||
"""The sole portable and persisted contract."""
|
||||
|
||||
transaction_id: str
|
||||
plan_fingerprint: str
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
"""Pure M20-09 explicit seam and crossfade policy with exact accounting.
|
||||
"""Pure explicit seam and crossfade policy with exact accounting.
|
||||
|
||||
This module owns the typed seam profile for the M17-11 aggregate join: direct
|
||||
This module owns the typed seam profile for the aggregate join: direct
|
||||
join (the compatibility baseline) and bounded audiovisual crossfade. It holds
|
||||
no filesystem locator, media process, host API or frontend wire. Every overlap
|
||||
is validated on a derived exact grid and accounted in whole target frames and
|
||||
samples before any execution; fractional or unsupported accounting refuses at
|
||||
construction time instead of rounding.
|
||||
|
||||
Master-audio ownership is bound at declaration level (the M20-07 D3 pattern):
|
||||
Master-audio ownership is bound at declaration level (the D3 pattern):
|
||||
the per-seam master source identifiers are caller-asserted bookkeeping recorded
|
||||
into the seam plan and receipt. They are not fingerprint-verified against the
|
||||
audio content — the M17-11 media layer carries no cross-layer audio provenance
|
||||
audio content — the media layer carries no cross-layer audio provenance
|
||||
channel — and admission therefore checks declared identity consistency, not
|
||||
acoustic identity.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M12-05 source-owned audiovisual synchronization contracts.
|
||||
"""source-owned audiovisual synchronization contracts.
|
||||
|
||||
Only bounded, redacted relation descriptors and injected benchmark metadata cross this seam. Media
|
||||
decoders, ComfyUI, Ollama, specialist runtimes, and network clients remain outside the pure core.
|
||||
|
||||
@@ -98,7 +98,7 @@ def migrate_base_assistant_widgets(legacy: Mapping[str, object]) -> BaseAssistan
|
||||
raise BaseAssistantMigrationError("legacy user_intent must be a string")
|
||||
if isinstance(frame_count, bool) or not isinstance(frame_count, int):
|
||||
raise BaseAssistantMigrationError("legacy frame_count must be an integer")
|
||||
# M17-25: the legacy widget authored a frame count. It is converted here into
|
||||
# the legacy widget authored a frame count. It is converted here into
|
||||
# the duration that produces exactly the length alignment would have given it,
|
||||
# and the conversion is reported through `snapped` rather than applied
|
||||
# silently. Values outside the accepted range fail rather than clamp.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M10-01 capability maturity and backend-owned binding manifest.
|
||||
"""capability maturity and backend-owned binding manifest.
|
||||
|
||||
This module is a pure facade over the declarative node contracts. It never imports ComfyUI or a
|
||||
frontend runtime, mutates a host registry, selects a provider, or executes a model. The manifest is
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M25-10: closed public composition contract and pure frame resolver.
|
||||
"""closed public composition contract and pure frame resolver.
|
||||
|
||||
This module deliberately owns values only. It imports no ComfyUI, media, HTTP, provider, GPU, or
|
||||
browser runtime and never accepts a source path or URL. Later runtime/render items consume its
|
||||
@@ -278,7 +278,7 @@ def _rational(
|
||||
|
||||
def _source_time_base(value: object, name: str) -> Rational:
|
||||
# IMPORTANT: source clocks are observed media facts, not output-rate controls. Keep their
|
||||
# exact-integer bound separate or the accepted 1/12288 M25-09 corpus is rejected as invalid.
|
||||
# exact-integer bound separate or the accepted 1/12288 corpus is rejected as invalid.
|
||||
return _rational(
|
||||
value,
|
||||
name,
|
||||
@@ -543,6 +543,29 @@ def _rgba(value: object, name: str, nullable: bool = False) -> tuple[int, int, i
|
||||
return tuple(_integer(member, f"{name}[{index}]", 0, 255) for index, member in enumerate(value)) # type: ignore[return-value]
|
||||
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class TextStroke:
|
||||
rgba: tuple[int, int, int, int]
|
||||
width_px: int
|
||||
|
||||
def to_wire(self) -> dict[str, object]:
|
||||
return {"rgba": list(self.rgba), "width_px": self.width_px}
|
||||
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class TextShadow:
|
||||
rgba: tuple[int, int, int, int]
|
||||
offset_x_px: int
|
||||
offset_y_px: int
|
||||
|
||||
def to_wire(self) -> dict[str, object]:
|
||||
return {
|
||||
"rgba": list(self.rgba),
|
||||
"offset_x_px": self.offset_x_px,
|
||||
"offset_y_px": self.offset_y_px,
|
||||
}
|
||||
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class TextStyle:
|
||||
content: str
|
||||
@@ -554,9 +577,12 @@ class TextStyle:
|
||||
line_height_bp: int
|
||||
fill_rgba: tuple[int, int, int, int]
|
||||
background_rgba: tuple[int, int, int, int] | None
|
||||
stroke: TextStroke | None = None
|
||||
shadow: TextShadow | None = None
|
||||
background_padding_px: int | None = None
|
||||
|
||||
def to_wire(self) -> dict[str, object]:
|
||||
return {
|
||||
wire: dict[str, object] = {
|
||||
"content": self.content,
|
||||
"font_asset_id": self.font_asset_id,
|
||||
"size_px": self.size_px,
|
||||
@@ -567,11 +593,23 @@ class TextStyle:
|
||||
"fill_rgba": list(self.fill_rgba),
|
||||
"background_rgba": None if self.background_rgba is None else list(self.background_rgba),
|
||||
}
|
||||
if self.stroke is not None:
|
||||
wire["stroke"] = self.stroke.to_wire()
|
||||
if self.shadow is not None:
|
||||
wire["shadow"] = self.shadow.to_wire()
|
||||
if self.background_padding_px is not None:
|
||||
wire["background_padding_px"] = self.background_padding_px
|
||||
return wire
|
||||
|
||||
|
||||
def _text(value: object, name: str) -> TextStyle | None:
|
||||
if value is None:
|
||||
return None
|
||||
optional = tuple(
|
||||
key
|
||||
for key in ("stroke", "shadow", "background_padding_px")
|
||||
if isinstance(value, Mapping) and key in value
|
||||
)
|
||||
wire = _mapping(
|
||||
value,
|
||||
(
|
||||
@@ -584,7 +622,8 @@ def _text(value: object, name: str) -> TextStyle | None:
|
||||
"line_height_bp",
|
||||
"fill_rgba",
|
||||
"background_rgba",
|
||||
),
|
||||
)
|
||||
+ optional,
|
||||
name,
|
||||
)
|
||||
content = wire["content"]
|
||||
@@ -607,6 +646,28 @@ def _text(value: object, name: str) -> TextStyle | None:
|
||||
fill = _rgba(wire["fill_rgba"], f"{name}.fill_rgba")
|
||||
if fill is None:
|
||||
raise _reject("invalid_contract", f"{name}.fill_rgba is required")
|
||||
stroke = None
|
||||
if "stroke" in wire:
|
||||
stroke_wire = _mapping(wire["stroke"], ("rgba", "width_px"), f"{name}.stroke")
|
||||
stroke_color = _decoration_rgba(stroke_wire["rgba"], f"{name}.stroke.rgba")
|
||||
stroke = TextStroke(
|
||||
stroke_color, _integer(stroke_wire["width_px"], f"{name}.stroke.width_px", 1, 32)
|
||||
)
|
||||
shadow = None
|
||||
if "shadow" in wire:
|
||||
shadow_wire = _mapping(
|
||||
wire["shadow"], ("rgba", "offset_x_px", "offset_y_px"), f"{name}.shadow"
|
||||
)
|
||||
shadow = TextShadow(
|
||||
_decoration_rgba(shadow_wire["rgba"], f"{name}.shadow.rgba"),
|
||||
_integer(shadow_wire["offset_x_px"], f"{name}.shadow.offset_x_px", -64, 64),
|
||||
_integer(shadow_wire["offset_y_px"], f"{name}.shadow.offset_y_px", -64, 64),
|
||||
)
|
||||
padding = None
|
||||
if "background_padding_px" in wire:
|
||||
padding = _integer(wire["background_padding_px"], f"{name}.background_padding_px", 1, 64)
|
||||
if wire["background_rgba"] is None:
|
||||
raise _reject("invalid_contract", f"{name}.padding requires a background")
|
||||
return TextStyle(
|
||||
content,
|
||||
_identifier(wire["font_asset_id"], f"{name}.font_asset_id"),
|
||||
@@ -617,9 +678,21 @@ def _text(value: object, name: str) -> TextStyle | None:
|
||||
_integer(wire["line_height_bp"], f"{name}.line_height_bp", 7_500, 30_000),
|
||||
fill,
|
||||
_rgba(wire["background_rgba"], f"{name}.background_rgba", nullable=True),
|
||||
stroke,
|
||||
shadow,
|
||||
padding,
|
||||
)
|
||||
|
||||
|
||||
def _decoration_rgba(value: object, name: str) -> tuple[int, int, int, int]:
|
||||
color = _rgba(value, name)
|
||||
# CRITICAL: absence is the canonical disabled decoration. Alpha-zero members would
|
||||
# give the same style two wires/fingerprints; zero-offset visible shadows remain valid.
|
||||
if color is None or color[3] == 0:
|
||||
raise _reject("invalid_contract", f"{name} disabled decoration must be omitted")
|
||||
return color
|
||||
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class Transition:
|
||||
kind: str
|
||||
@@ -1458,7 +1531,7 @@ def decode_public_snapshot(value: object) -> PublicCompositionSnapshot:
|
||||
and track_by_id[clip.track_id].kind in ("primary_video", "video_overlay")
|
||||
)
|
||||
# IMPORTANT: this is an admission bound from the accepted engine profile, not a runtime hint.
|
||||
# Allowing a third overlapping VIDEO here would force M25-12 either to hide a layer or allocate
|
||||
# Allowing a third overlapping VIDEO here would force either to hide a layer or allocate
|
||||
# outside its qualified owner budget, making the public fingerprint describe an
|
||||
# unrenderable scene.
|
||||
if any(
|
||||
@@ -1839,6 +1912,12 @@ def resolve_composition(snapshot: PublicCompositionSnapshot, frame: int) -> Reso
|
||||
operation_ids.append("CrossDissolveV1")
|
||||
if track.kind == "text_overlay":
|
||||
operation_ids.append("DrawTextV1")
|
||||
if clip.text is not None and (
|
||||
clip.text.stroke is not None
|
||||
or clip.text.shadow is not None
|
||||
or clip.text.background_padding_px is not None
|
||||
):
|
||||
operation_ids.append("TextDecorationV1")
|
||||
layers.append(
|
||||
ResolvedLayer(
|
||||
clip.clip_id,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Strict, provider-neutral semantic proposal validation for M13-08.
|
||||
"""Strict, provider-neutral semantic proposal validation for.
|
||||
|
||||
The model is an explicitly selected proposal engine. This module parses one complete JSON
|
||||
document, checks it against the accepted reduction/timeline hand-off, and emits a new immutable
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Deterministic ordered contact-sheet sampling and composition contracts for M21-02.
|
||||
"""Deterministic ordered contact-sheet sampling and composition contracts for.
|
||||
|
||||
A contact sheet is the *internal* visual representation of one video: a bounded, ordered set of
|
||||
frames sampled from an already-decoded document and composed into a single numbered image. This
|
||||
@@ -337,7 +337,7 @@ def plan_contact_sheet(
|
||||
def contact_sheet_declaration(plan: ContactSheetPlan, video_label: str) -> str:
|
||||
"""State exactly what the sheet is, and what it is not, in the request that carries it.
|
||||
|
||||
The vocabulary here is the vocabulary `M21-01` refuses in a rendered prompt. That is the
|
||||
The vocabulary here is the vocabulary `` refuses in a rendered prompt. That is the
|
||||
mechanical guarantee that this declaration cannot leak into product output: it is not a
|
||||
stylistic choice, it is the reason the audit rule was delivered first.
|
||||
"""
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M17-10 process-local continuity controls and the sole portable boundary receipt.
|
||||
"""process-local continuity controls and the sole portable boundary receipt.
|
||||
|
||||
Policy, limits, extraction evidence, binding evidence and runtime IMAGE values intentionally stay
|
||||
process-local. Only :class:`ContinuityBoundaryReceipt` crosses a persistence boundary. The pure
|
||||
@@ -54,7 +54,7 @@ QUALIFIED_MINIMAX_H3_NODE_SOURCE_SHA256 = (
|
||||
QUALIFIED_DECODER_NAME = "pyav"
|
||||
QUALIFIED_DECODER_VERSION = "16.1.0"
|
||||
|
||||
# Process-local acceptance fixture pinned from the accepted M17-08 sequence/graph contract. These
|
||||
# Process-local acceptance fixture pinned from the accepted sequence/graph contract. These
|
||||
# identities are deliberately not part of ContinuityBoundaryReceipt v1 or any public projection.
|
||||
QUALIFIED_M17_08_SUCCESSOR_FIXTURE_ID = "fixture.m17.08.accepted.successor.host"
|
||||
QUALIFIED_M17_08_SUCCESSOR_JOB_ID = "job.m17.08.accepted.successor.host"
|
||||
@@ -93,7 +93,7 @@ class ContinuityAdmissionError(ContinuityError):
|
||||
|
||||
|
||||
class ContinuityBindingError(ContinuityError):
|
||||
"""Raised when the exact accepted M17-08 job/graph/socket cannot be proven."""
|
||||
"""Raised when the exact accepted job/graph/socket cannot be proven."""
|
||||
|
||||
|
||||
class ContinuityTimeoutError(ContinuityError):
|
||||
@@ -528,10 +528,10 @@ def assert_accepted_m17_08_successor_identity(
|
||||
visible_graph: VisibleGraph,
|
||||
anchor: GraphAnchor,
|
||||
) -> None:
|
||||
"""Require the pinned accepted M17-08 successor fixture before host mutation.
|
||||
"""Require the pinned accepted successor fixture before host mutation.
|
||||
|
||||
The generic pure binding function remains reusable for ordinary unit fixtures. The qualified
|
||||
host path calls this stricter process-local guard so a newly fabricated M17-08-looking graph
|
||||
host path calls this stricter process-local guard so a newly fabricated -looking graph
|
||||
cannot be mistaken for the accepted successor sample.
|
||||
"""
|
||||
|
||||
@@ -732,7 +732,7 @@ _RECEIPT_RESTART_FIELDS = {"restart_root_id"}
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class ContinuityBoundaryReceipt:
|
||||
"""The sole M17-10 portable contract; native fields are conditionally present, never null."""
|
||||
"""The sole portable contract; native fields are conditionally present, never null."""
|
||||
|
||||
boundary_id: str
|
||||
mode: ContinuityMode
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Deterministic contract-surface inventory and boundary classification for M18-01.
|
||||
"""Deterministic contract-surface inventory and boundary classification for.
|
||||
|
||||
The inventory answers one question per contract: who owns it, who reads it, what boundary it sits
|
||||
on, and may it be simplified or retired. It records; it never changes a wire value, a fingerprint
|
||||
@@ -87,7 +87,7 @@ class ContractBoundary(str, Enum):
|
||||
HOST_CORE = "host_core"
|
||||
|
||||
|
||||
#: Boundaries a contract may never be retired from directly (AC-M18-01-04), whatever an override
|
||||
#: Boundaries a contract may never be retired from directly (AC--04), whatever an override
|
||||
#: says. Each of these has a reader this repository does not control or cannot re-migrate.
|
||||
PROTECTED_BOUNDARIES = frozenset(
|
||||
{
|
||||
@@ -307,7 +307,7 @@ class ContractEntry:
|
||||
raise ContractInventoryError(
|
||||
"a blocked contract cannot claim a disposition its evidence does not support"
|
||||
)
|
||||
# AC-M18-01-04: a reader this repository does not control cannot be retired past.
|
||||
# AC--04: a reader this repository does not control cannot be retired past.
|
||||
if (
|
||||
self.disposition is ContractDisposition.RETIRE_CANDIDATE
|
||||
and self.boundary in PROTECTED_BOUNDARIES
|
||||
@@ -315,12 +315,12 @@ class ContractEntry:
|
||||
raise ContractInventoryError(
|
||||
f"a {self.boundary.value} contract cannot be a direct retirement candidate"
|
||||
)
|
||||
# AC-M18-01-03: no discovered consumer is not proof of disuse.
|
||||
# AC--03: no discovered consumer is not proof of disuse.
|
||||
if not self.consumers and self.disposition not in _BLOCKED_DISPOSITIONS:
|
||||
raise ContractInventoryError(
|
||||
"a contract with no discovered consumer must fail closed as NEED_EVIDENCE"
|
||||
)
|
||||
# AC-M18-01-07: an injected fixture is evidence about a test, not about a runtime.
|
||||
# AC--07: an injected fixture is evidence about a test, not about a runtime.
|
||||
if (
|
||||
self.reachability_source is ReachabilitySource.INJECTED_FIXTURE
|
||||
and self.reachability is ReachabilityDisposition.REACHABLE
|
||||
@@ -390,7 +390,7 @@ class ContractInventory:
|
||||
if not all(isinstance(item, ContractEntry) for item in self.entries):
|
||||
raise ContractInventoryError("inventory entries contain an invalid value")
|
||||
keys = [item.sort_key for item in self.entries]
|
||||
# AC-M18-01-01: exactly once, and in one order, so a diff of the artifact is readable.
|
||||
# AC--01: exactly once, and in one order, so a diff of the artifact is readable.
|
||||
if len(set(keys)) != len(keys):
|
||||
raise ContractInventoryError("a contract appears more than once in the inventory")
|
||||
if keys != sorted(keys):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""M13-04 authority, conflict, clarification, and abstention projection.
|
||||
"""authority, conflict, clarification, and abstention projection.
|
||||
|
||||
The M6 directive resolver remains the source of action and precedence semantics. This module only
|
||||
projects that immutable result into a later-planning receipt; it does not interpret prose, resolve
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Deterministic M15-02 producer adapters over accepted pure-core contracts."""
|
||||
"""Deterministic producer adapters over accepted pure-core contracts."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""Deterministic, frame-grid-aligned audiovisual timeline planning.
|
||||
|
||||
The planner consumes an accepted M13-05 mode/retention report and caller-owned typed events. It
|
||||
The planner consumes an accepted mode/retention report and caller-owned typed events. It
|
||||
does not inspect media or ask a model to fill a gap. Its output is a bounded structural hand-off
|
||||
for later rendering: half-open shots cover the target duration, reference anchors remain ordered,
|
||||
and exact text/audio continuity is explicit.
|
||||
|
||||
@@ -10,9 +10,9 @@ domain. A consumer that needs a runtime semantic identity then asks for one
|
||||
|
||||
Two boundaries are deliberate.
|
||||
|
||||
The helper is **additive**. It is used by identities introduced from M18-02 onward; the 289
|
||||
The helper is **additive**. It is used by identities introduced onward; the 289
|
||||
existing fingerprint sites keep their exact bytes. Threading a domain tag through them would change
|
||||
every fingerprint value in the repository -- the outcome the M18-02 plan prohibits, because it
|
||||
every fingerprint value in the repository -- the outcome the plan prohibits, because it
|
||||
invalidates accepted artifacts, caches and receipts. Existing identities gain a *recorded* domain
|
||||
in :class:`FingerprintDomainAssignment`, not a new value.
|
||||
|
||||
@@ -56,7 +56,7 @@ class FingerprintDomainError(ContractValidationError):
|
||||
|
||||
|
||||
class IdentityDomain(str, Enum):
|
||||
"""What an identity is *for*. The inclusion rules are the frozen M18-02 matrix.
|
||||
"""What an identity is *for*. The inclusion rules are the frozen matrix.
|
||||
|
||||
`SEMANTIC` is the only domain a runtime may consume as an execution, cache or receipt identity.
|
||||
The other four exist so that a digest computed for a different question cannot silently answer
|
||||
@@ -67,7 +67,7 @@ class IdentityDomain(str, Enum):
|
||||
and `OUTPUT_PRODUCING_GRAPH` -- a different axis entirely: *which part of the graph* a recompute
|
||||
identity covers, where both members are semantic identities under this vocabulary. Renaming an
|
||||
accepted M17 public export for a naming preference is outside this item, so the collision is
|
||||
recorded here and belongs to M19-02, which owns core public API and export reduction.
|
||||
recorded here and belongs to, which owns core public API and export reduction.
|
||||
"""
|
||||
|
||||
#: Fields that decide execution, cache reuse or a receipt: prompt text, intent graph,
|
||||
@@ -94,8 +94,8 @@ NON_SEMANTIC_DOMAINS = frozenset(IdentityDomain) - {IdentityDomain.SEMANTIC}
|
||||
class FingerprintConsumerKind(str, Enum):
|
||||
"""Whether an assignment is about an inventoried contract or a named place in the code.
|
||||
|
||||
Both are needed and neither substitutes for the other. `CONTRACT` covers the M18-01
|
||||
inventory, which is what AC-M18-02-01 counts. `IDENTITY_SITE` covers a specific computation
|
||||
Both are needed and neither substitutes for the other. `CONTRACT` covers the
|
||||
inventory, which is what AC--01 counts. `IDENTITY_SITE` covers a specific computation
|
||||
whose domain is not a property of any one contract -- the browser's graph-projection digest is
|
||||
computed over a live graph object, and the sidebar prompt agreement is one field inside a
|
||||
projection whose other fields answer a different question.
|
||||
@@ -133,7 +133,7 @@ def _consumer_id(value: object, field_name: str) -> str:
|
||||
"""Admit a repository-owned `$id` URI by prefix, and everything else by the general text rule.
|
||||
|
||||
`KNOWN_IDENTITY_NAMESPACES` is imported rather than restated: which URI namespaces this
|
||||
repository declares is one fact, and the M18-01 inventory already owns it. A second copy here
|
||||
repository declares is one fact, and the inventory already owns it. A second copy here
|
||||
would be exactly the redundant authority the M18 chain exists to remove, and it would drift the
|
||||
first time a namespace is added.
|
||||
"""
|
||||
@@ -220,7 +220,7 @@ def require_semantic_identity(
|
||||
*,
|
||||
purpose: str = "a runtime semantic identity",
|
||||
) -> str:
|
||||
"""Return the digest of a semantic identity, refusing every other domain (AC-M18-02-03).
|
||||
"""Return the digest of a semantic identity, refusing every other domain (AC--03).
|
||||
|
||||
A release-integrity digest stays complete and usable for what it is for; what it may not do is
|
||||
stand in for an execution, cache or receipt identity. The same refusal covers presentation,
|
||||
@@ -309,7 +309,7 @@ class FingerprintDomainAssignment:
|
||||
class FingerprintDomainAssignmentSet:
|
||||
"""Every assigned consumer, once, in one order.
|
||||
|
||||
The "once" is the enforced half of AC-M18-02-01: a consumer named twice is a consumer with two
|
||||
The "once" is the enforced half of AC--01: a consumer named twice is a consumer with two
|
||||
domains, and there is no reading of that which is safe, so it is refused here rather than
|
||||
resolved by a precedence rule nobody would remember.
|
||||
"""
|
||||
@@ -337,7 +337,7 @@ class FingerprintDomainAssignmentSet:
|
||||
|
||||
@property
|
||||
def fingerprint(self) -> str:
|
||||
"""Fold per-assignment canonical bytes, as the M18-01 inventory does and for one reason.
|
||||
"""Fold per-assignment canonical bytes, as the inventory does and for one reason.
|
||||
|
||||
`canonical_fingerprint` bounds a collection at 256 items because a product wire that
|
||||
large is a defect. A repository-wide record is legitimately larger, so each row is
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""Backend-owned qualification of a directly generation-capable App Mode workflow.
|
||||
|
||||
`M17-20` `D1`: the browser must not decide whether generation is possible. It
|
||||
`` `D1`: the browser must not decide whether generation is possible. It
|
||||
receives a content-free capability projection produced here, and gates on it; it
|
||||
never derives eligibility, because deriving it in the browser is how a shell ends
|
||||
up queueing a graph the host cannot run.
|
||||
@@ -13,7 +13,7 @@ is a contract rather than a convenience.
|
||||
|
||||
Privacy is a design constraint, not a review note. A projection names **slots**
|
||||
-- `video_unet`, `text_encoder` and so on -- and never a filename, a path or the
|
||||
host's model inventory. `M17-20` `D2` requires exactly this: when a template's
|
||||
host's model inventory. `` `D2` requires exactly this: when a template's
|
||||
published default weight is absent, the user is told which slot is unsatisfied
|
||||
and resolves it on the canvas widget, and no part of that exchange needs to name
|
||||
what else the host happens to have installed.
|
||||
@@ -59,7 +59,7 @@ class AssetSlot(str, Enum):
|
||||
class ModeFamily(str, Enum):
|
||||
"""The two native anchors, and therefore the two sets of slots.
|
||||
|
||||
`M17-20` section 8.3: the four frame-driven task modes instantiate the same
|
||||
`` section 8.3: the four frame-driven task modes instantiate the same
|
||||
subgraph and the same `MiniMaxH3ImageToVideo` anchor, so they share a family;
|
||||
only `ref2va` is separate. A family is **not** a materialization basis --
|
||||
`t2va` and `i2va` share this family and load different template bytes -- so
|
||||
@@ -73,7 +73,7 @@ class ModeFamily(str, Enum):
|
||||
class SlotDisposition(str, Enum):
|
||||
"""What one required model role looks like on the host.
|
||||
|
||||
`M17-28` split the old two-state answer. "The weight is installed" and "the
|
||||
`` split the old two-state answer. "The weight is installed" and "the
|
||||
weight the materialized workflow will name is installed" are different facts,
|
||||
and collapsing them is what let a fully provisioned host be told its weights
|
||||
were missing.
|
||||
@@ -90,7 +90,7 @@ class SlotDisposition(str, Enum):
|
||||
|
||||
class FamilyDisposition(str, Enum):
|
||||
AVAILABLE = "available"
|
||||
#: `M17-28`. Every required role is installed, but at least one is not the name
|
||||
#: ``. Every required role is installed, but at least one is not the name
|
||||
#: the template materializes with. Not a missing weight and not a ready graph:
|
||||
#: the user picks the installed official file on the canvas widget.
|
||||
ASSET_RELOCATED = "asset_relocated"
|
||||
@@ -179,7 +179,7 @@ def materialization_bases() -> tuple[tuple[str, ModeFamily, tuple[str, ...]], ..
|
||||
return tuple((template, family, tuple(modes)) for template, (family, modes) in bases.items())
|
||||
|
||||
|
||||
#: Historical SHA-256 provenance for `PINNED_TEMPLATE_REVISION`. M23-01 keeps
|
||||
#: Historical SHA-256 provenance for `PINNED_TEMPLATE_REVISION`. keeps
|
||||
#: these exported for persisted consumers but never compares them for admission.
|
||||
# Template content digests, not credentials.
|
||||
PINNED_TEMPLATE_DIGESTS: tuple[tuple[str, str], ...] = ( # pragma: allowlist secret
|
||||
@@ -229,7 +229,7 @@ def _bounded_name(value: object, field: str) -> str:
|
||||
class SlotObservation:
|
||||
"""How one required model role resolves on the host.
|
||||
|
||||
`M17-28` widened this from a single boolean. The adapter now reports which of
|
||||
`` widened this from a single boolean. The adapter now reports which of
|
||||
the three `SlotDisposition` states it observed; what the repository still never
|
||||
does is *choose* a weight. A relocated role is reported and remediated on the
|
||||
canvas, never silently substituted.
|
||||
@@ -462,7 +462,7 @@ def qualify_generation_profile(
|
||||
|
||||
if type(observation) is not HostObservation:
|
||||
raise GenerationProfileError("invalid_observation")
|
||||
# Compatibility-only provenance input. M23-01 deliberately validates but
|
||||
# Compatibility-only provenance input. deliberately validates but
|
||||
# does not compare these identities: admission is based on the observed
|
||||
# anchor and prompt socket below.
|
||||
for name, digest in expected_template_digests:
|
||||
@@ -503,7 +503,7 @@ def qualify_generation_profile(
|
||||
elif absent:
|
||||
disposition = FamilyDisposition.MISSING_ASSET
|
||||
remediation = Remediation.SELECT_INSTALLED_ASSET_ON_CANVAS
|
||||
# M17-29: one remediation round names every role the materialized
|
||||
# one remediation round names every role the materialized
|
||||
# template has to resolve. Dropping relocated roles merely because
|
||||
# another role is absent made the notice incomplete and left those
|
||||
# widgets carrying unusable defaults.
|
||||
@@ -513,7 +513,7 @@ def qualify_generation_profile(
|
||||
if slots.get(slot, SlotDisposition.ABSENT) is not SlotDisposition.PRESENT
|
||||
)
|
||||
elif relocated:
|
||||
# M17-28. Everything is installed; the materialized graph would just
|
||||
# . Everything is installed; the materialized graph would just
|
||||
# name the wrong file. Reported apart from `missing_asset` because the
|
||||
# two send the user to different actions, and because telling someone
|
||||
# with a provisioned host that a weight is missing is what this item
|
||||
|
||||
@@ -59,16 +59,16 @@ class GenerationSequenceError(ValueError):
|
||||
class FingerprintDomain(str, Enum):
|
||||
"""Which graph `graph_fingerprint` and `compiled_prompt_fingerprint` cover.
|
||||
|
||||
`M17-20` `D6`. Before that item a job's graph identity covered the context
|
||||
`` `D6`. Before that item a job's graph identity covered the context
|
||||
subgraph alone, because that was the only thing App Mode materialized. It now
|
||||
covers the full output-producing graph -- sampler, decode and artifact sink
|
||||
included -- so the same segment yields a different fingerprint than it did
|
||||
before, and an observation carrying the older one is not a mismatch to
|
||||
reconcile but a different domain.
|
||||
|
||||
The domain is therefore declared rather than inferred. `M18-02` separates
|
||||
The domain is therefore declared rather than inferred. `` separates
|
||||
fingerprint domains further; declaring it here means that item does not have
|
||||
to guess which fingerprints `M17-20` widened. It covers exactly the two
|
||||
to guess which fingerprints `` widened. It covers exactly the two
|
||||
fingerprints named above: `model_fingerprint` and `runtime_fingerprint` are
|
||||
untouched by this widening and are not in its scope.
|
||||
"""
|
||||
@@ -1038,7 +1038,7 @@ def record_generation_projection(
|
||||
_identifier(transaction_id, "transaction_id")
|
||||
if runtime.transaction_id is not None and runtime.transaction_id != transaction_id:
|
||||
raise GenerationSequenceError("retry_transaction_id")
|
||||
# `M17-20` `D6`: compare the domain before any fingerprint value.
|
||||
# `` `D6`: compare the domain before any fingerprint value.
|
||||
if type(fingerprint_domain) is not FingerprintDomain:
|
||||
raise GenerationSequenceError("fingerprint_domain")
|
||||
if fingerprint_domain is not job.fingerprint_domain:
|
||||
|
||||
@@ -116,7 +116,7 @@ def build_default_installation_profiles() -> InstallationProfileManifest:
|
||||
profile_id="core_manual",
|
||||
owner="package",
|
||||
# IMPORTANT: match package and manifest versions; strict decoding rejects drift.
|
||||
distribution="minimax-h3-studio==1.1.0",
|
||||
distribution="minimax-h3-studio==1.2.0",
|
||||
compatibility=("python>=3.10",),
|
||||
required=True,
|
||||
install_mode="artifact",
|
||||
|
||||
@@ -550,7 +550,7 @@ class IntentGraph:
|
||||
GUARD: silence is a claim, never an absence. `EXPLICIT_COMPLETE_SILENCE` is what
|
||||
authorizes `overall_soundscape: N/A` downstream, so it cannot coexist with a declared
|
||||
audible item, and `DESCRIBED` cannot be asserted without an item that actually reaches the
|
||||
soundscape. Relaxing either direction re-creates the M24-05 defect one layer lower, where
|
||||
soundscape. Relaxing either direction re-creates the defect one layer lower, where
|
||||
the renderer can no longer tell an unstated soundscape from a requested silent one.
|
||||
"""
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""Typed identity for the joint audiovisual latent checkpoint artifact (M20-04).
|
||||
"""Typed identity for the joint audiovisual latent checkpoint artifact.
|
||||
|
||||
This pure module owns descriptor and receipt truth for the one latent family the M19-08
|
||||
This pure module owns descriptor and receipt truth for the one latent family the
|
||||
requalification measured: the native H3 joint AV latent, a NestedTensor pair whose two dense
|
||||
domains are video ``[B, 24, T, H/16, W/16]`` and audio ``[B, 32, 2, T40]`` at 40 latent fps.
|
||||
Native ``SaveLatent`` persistence is unavailable on the qualified subject, so this repository
|
||||
@@ -11,7 +11,7 @@ The serialized payload is deliberately not a container format: one blob per chec
|
||||
domains' raw C-contiguous little-endian bytes concatenated video-then-audio. Offsets derive
|
||||
from the validated descriptor, and ``byte_length == prod(shape) * itemsize`` is exact integer
|
||||
arithmetic this module verifies without any tensor library. A parser-bearing container inside
|
||||
the private root would add untrusted-input surface for no consumer: the only reader is M20-05,
|
||||
the private root would add untrusted-input surface for no consumer: the only reader is,
|
||||
in-repo.
|
||||
|
||||
Nothing here may promote a qualification row. Every descriptor and receipt is constructed
|
||||
@@ -28,7 +28,7 @@ from enum import Enum
|
||||
|
||||
from .canonical import canonical_bytes, canonical_fingerprint
|
||||
from .fingerprint_domain import IdentityDomain, domain_fingerprint
|
||||
from .length import MAX_FRAME_COUNT
|
||||
from .length import MAX_FRAME_COUNT, is_producible
|
||||
from .segment_artifacts import (
|
||||
ArtifactLifecycleState,
|
||||
redact_segment_artifact_fingerprint,
|
||||
@@ -40,7 +40,7 @@ JOINT_AV_LATENT_RECEIPT_SCHEMA = "h3.context.joint_av_latent_receipt.v1"
|
||||
JOINT_AV_LATENT_PUBLIC_SCHEMA = "h3.context.joint_av_latent_public.v1"
|
||||
JOINT_AV_LATENT_AUTHORITY_SCHEMA = "h3.context.joint_av_latent_authority.v1"
|
||||
|
||||
#: The M19-08 row this artifact family is bound to; the only row it may consume.
|
||||
#: The row this artifact family is bound to; the only row it may consume.
|
||||
JOINT_AV_LATENT_CAPABILITY = "joint_av_latent_descriptor"
|
||||
|
||||
MAX_JOINT_AV_LATENT_RECEIPT_BYTES = 32_768
|
||||
@@ -48,7 +48,7 @@ MAX_JOINT_AV_LATENT_TTL_MILLISECONDS = 30 * 24 * 60 * 60 * 1_000
|
||||
MAX_JOINT_AV_LATENT_PAYLOAD_BYTES = 2 * 1024 * 1024 * 1024
|
||||
MAX_JOINT_AV_LATENT_DIMENSION = 1_000_000
|
||||
|
||||
#: Measured layout pins (M19-08 `joint_av_latent_descriptor`, `descriptor_measured_live`).
|
||||
#: Measured layout pins ( `joint_av_latent_descriptor`, `descriptor_measured_live`).
|
||||
#: The pinned source allocates video `[B, 24, T, H/16, W/16]` and audio `[B, 32, 2, T40]`;
|
||||
#: the two domains do not share a rank. A shape that does not carry these axes is not a
|
||||
#: value this family measured, whatever produced it.
|
||||
@@ -256,6 +256,9 @@ class JointAVLatentDescriptor:
|
||||
if self.video.shape[0] != self.audio.shape[0]:
|
||||
raise JointAVLatentError("descriptor_batch_mismatch")
|
||||
_positive_integer(self.requested_frames, "requested_frames", MAX_FRAME_COUNT)
|
||||
# CRITICAL: requested extent uses the frame lattice; partial completion may be off-grid.
|
||||
if not is_producible(self.requested_frames):
|
||||
raise JointAVLatentError("requested_frames_off_lattice")
|
||||
_positive_integer(self.completed_frames, "completed_frames", self.requested_frames)
|
||||
_fingerprint(self.authority_fingerprint, "authority")
|
||||
if self.video.byte_length + self.audio.byte_length > MAX_JOINT_AV_LATENT_PAYLOAD_BYTES:
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user