From 9b88f4b2d51db38bda7ec0c493c056dda5dbd14d Mon Sep 17 00:00:00 2001 From: clover caruso Date: Tue, 1 Dec 2026 10:49:10 -0800 Subject: [PATCH] compatibility.md: clean doc intro, remove corpus coverage rows, rename Notes column, clarify 3D accuracy, trim passthrough list --- compatibility.md | 106 ++++++++++----------------- scripts/gen_compatibility.py | 138 +++++++++++------------------------ 2 files changed, 82 insertions(+), 162 deletions(-) diff --git a/compatibility.md b/compatibility.md index 321b013b8dcf44bab75f1f4f5dc439145d7da68f..173250f2d4894013234f7c86867b9cb141aff5d4 100644 --- a/compatibility.md +++ b/compatibility.md @@ -1,44 +1,37 @@ -# Fusion 21.1 Compatibility Matrix + -Auto-generated from live engine sources (`crates/engine/src/eval/`, `crates/engine/src/scene3d/`, `crates/model/src/comp.rs`) and real Fusion `.comp` corpora via `python3 scripts/gen_compatibility.py`. +# Fusion 21.1 Compatibility -- **Tracked Gaps & Issues:** [shale.paperclover.net/fission/issues](https://shale.paperclover.net/fission/issues) -- **Conformance Probes:** [`scripts/fusion_probes.py`](scripts/fusion_probes.py) -- **Per-Node Fuzzer:** [`scripts/fuzz_node.py`](scripts/fuzz_node.py) over the Fusion-introspected [`scripts/tool_catalog.json`](scripts/tool_catalog.json) (`scripts/fusion_introspect.py`), scored in [`scripts/accuracy_ledger.json`](scripts/accuracy_ledger.json) +Fission currently supports **125** tool types across 2D/3D compositing, all with high accuracy. This document tracks the progress on parity with Blackmagic Fusion Studio. The main metric, **accuracy**, is the inverse of the image's [mean absolute error](https://en.wikipedia.org/wiki/Mean_absolute_error), meaning `100%` accuracy means the pixels are all identical. For details, see [`scripts/fuzz_node.py`](scripts/fuzz_node.py). ## Summary | Metric | Value | | --- | --- | -| **Supported Flow Tools** | **125** (100 2D/Fuse/utility in `crates/engine/src/eval/`, 23 3D scene nodes in `crates/engine/src/scene3d/`, 2 Flow annotations) | -| **Modifiers & Animation** | **8** systems (9 Fusion modifier classes + Lua expressions) | -| **Paper Clover Comps Accuracy** | **99.4%** (43 suite frames + 23 archive comps) | -| **Supported Tool Accuracy** | **98.8%** (94 / 123 supported tools fuzzed) | -| **Coverage of Fusion's Built-in Tools** | **28.0%** (106 / 378 built-in Fusion 21.1 Flow tools) | -| **Coverage of All Fuses on Reactor** | **0.5%** (5 / 1,031 Fuses on Reactor: Cryptomatte, Switch, SwitchElse, XGlow, XfChroma) | -| **Active Corpus (`trees/fusion`) Coverage** | **99.8%** (2,274 / 2,279 nodes across 17 `.comp` files) | -| **Archive Corpus (`private/samples`) Coverage** | **99.7%** (64,468 / 64,672 nodes across 324 `.comp` files) | -| **HiQ vs Fast Mode** | **`HiQ`**: honors `DepthFull` / generator `Depth` / `ChangeDepth` (`Rgba8Unorm`, clamped `Rgba16Float`, unclamped HDR `Rgba16Float`/`Rgba32Float`), full-res blurs & `XGlow`. **`Fast`**: collapses working targets to `Rgba8Unorm`, downsamples blurs, caps `XGlow` octaves for interactive scrubbing. | - -Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the mean over a live fuzz run (`scripts/fuzz_node.py`: frame 0 at defaults plus stratified parameter variations); a range is the legacy hand-curated probe-suite MAE for tools not yet fuzzed. `Visual*` marks stochastic tools judged by eye. +| **Supported Flow Tools** | **125** | +| **Modifiers & Animation** | **8** | +| **Accuracy across [paper clover](https://paperclover.net)'s compositions** | **99.4%** | +| **Supported Tool Accuracy** | **98.8%** | +| **Coverage of Fusion's Built-in Tools** | **28.0%** | +| **Coverage of All Fuses on Reactor** | **0.5%** | ## Generators -| Tool | Accuracy | Notes & Fallbacks | +| Tool | Accuracy | Notes | | --- | --- | --- | | `Background` | ✅ 100.0% | — | -| `FastNoise` | ✅ 100.0% | | +| `FastNoise` | ✅ 100.0% | — | | `Plasma` | 98.1% | — | -| `TextPlus` | 99.4% | Pure-Rust vector engine (no CoreText). | +| `TextPlus` | 99.4% | — | | `Loader` | ✅ 100.0% | — | | `DaySky` | 98.9% | — | | `Fuse.CheckerPieceGenerator` | ✅ 100.0% | — | ## Compositing & Blending -| Tool | Accuracy | Notes & Fallbacks | +| Tool | Accuracy | Notes | | --- | --- | --- | -| `Merge` | 99.0% | 3D Z-depth merge (`PerformDepthMerge`) ignored. | +| `Merge` | 99.0% | 3D Z-depth merge (`PerformDepthMerge`) not implemented. | | `Dissolve` | ✅ 100.0% | — | | `Paint` | 98.8%–100.0% | Clone/Smear/Emboss apply modes and non-round image brushes not yet implemented. | | `PolylineStroke` | 99.7%–100.0% | Rendered only inside `Paint` / `PaintMask`. | @@ -47,12 +40,12 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m ## Color & Depth -| Tool | Accuracy | Notes & Fallbacks | +| Tool | Accuracy | Notes | | --- | --- | --- | | `BrightnessContrast` | ✅ 100.0% | — | | `ColorCorrector` | 99.0% | Histogram/Match/Suppress tabs not implemented. | | `ColorGain` | 99.5% | — | -| `ColorCurves` | ✅ 100.0% | | +| `ColorCurves` | ✅ 100.0% | — | | `HueCurves` | ✅ 100.0% | — | | `GamutConvert` | ✅ 100.0% | — | | `InvertColor` | ✅ 100.0% | — | @@ -62,7 +55,7 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m ## Keying -| Tool | Accuracy | Notes & Fallbacks | +| Tool | Accuracy | Notes | | --- | --- | --- | | `LumaKeyer` | 99.9% | — | | `UltraKeyer` | 99.6% | — | @@ -71,7 +64,7 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m ## Blur, Sharpen & Glow -| Tool | Accuracy | Notes & Fallbacks | +| Tool | Accuracy | Notes | | --- | --- | --- | | `Blur` | 99.0% | Downsampled in `Fast` mode. | | `Sharpen` | 99.6% | — | @@ -91,7 +84,7 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m ## Transform, Warp & Framing -| Tool | Accuracy | Notes & Fallbacks | +| Tool | Accuracy | Notes | | --- | --- | --- | | `Transform` | ✅ 100.0% | Motion blur sub-frame accumulation not implemented. | | `CameraShake` | 98.6% | — | @@ -112,18 +105,18 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m ## Masks -| Tool | Accuracy | Notes & Fallbacks | +| Tool | Accuracy | Notes | | --- | --- | --- | | `EllipseMask` | ✅ 100.0% | — | | `RectangleMask` | ✅ 100.0% | — | | `PolylineMask` | ✅ 100.0% | — | | `BitmapMask` | ✅ 100.0% | — | -| `WandMask` | 99.9% | | +| `WandMask` | 99.9% | — | | `PaintMask` | 99.6%–99.9% | Non-round brush shapes not implemented. | ## 2D Vector Shapes -| Tool | Accuracy | Notes & Fallbacks | +| Tool | Accuracy | Notes | | --- | --- | --- | | `sRender` | ✅ 100.0% | — | | `sNGon` | ✅ 100.0% | — | @@ -137,7 +130,7 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m ## Particles -| Tool | Accuracy | Notes & Fallbacks | +| Tool | Accuracy | Notes | | --- | --- | --- | | `pRender` | 98.4% | 2D mode only (no 3D particle renderer); stochastic PRNG seed differs. | | `pEmitter` | 98.2% | Stochastic PRNG seed differs; cold starts >600 frames window-simulate. | @@ -151,17 +144,19 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m ## 3D Pipeline -| Tool | Accuracy | Notes & Fallbacks | +Each 3D tool's accuracy is measured by rendering it inside a lit `Merge3D` + `Camera3D` + `Renderer3D` (`RendererOpenGL`) scene while varying that tool's own parameters. `Renderer3D` accuracy varies `Renderer3D`'s own settings (lighting, shadows, overscan, etc.) on a fixed 3D scene, whereas each shape, light, camera, and material row varies that specific tool's inputs. + +| Tool | Accuracy | Notes | | --- | --- | --- | | `Renderer3D` | 97.5% | Renders `Rgba8` only (no float HDR 3D target yet); directional/spot shadow maps pending. | | `Camera3D` | 92.0% | Depth-of-field / stereo not implemented. | | `Merge3D` | 97.3% | — | | `Transform3D` | 99.4% | — | | `ImagePlane3D` | 99.2% | — | -| `Shape3D` | 99.9% | Torus/Cone/IcoSphere primitives not yet implemented. | +| `Shape3D` | 99.9% | — | | `Cube3D` | 98.6% | — | | `SurfaceFBXMesh` | Visual* | Static mesh only (no skeletal skinning/morph animation). | -| `Text3D` | 96.4% | Pure-Rust vector text plane with multi-slice `-Z` extrusion (bevels not yet implemented; `#46`). | +| `Text3D` | 96.4% | Bevels not implemented. | | `LightAmbient` | ✅ 100.0% | — | | `LightDirectional` | 97.6% | Up to 4 directional lights per scene; shadow maps pending (`#46`). | | `LightPoint` | 99.9% | — | @@ -180,7 +175,7 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m ## Time, Routing & Utility -| Tool | Accuracy | Notes & Fallbacks | +| Tool | Accuracy | Notes | | --- | --- | --- | | `Saver` | ✅ 100.0% | Interactive Flow passthrough; export supports PNG sequences and MP4/ProRes4444. | | `Dimension.OpticalFlow` | 99.9% | — | @@ -201,47 +196,26 @@ Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the m ## Modifiers & Animation -| Modifier / System | Probe Suite | Notes | -| --- | --- | --- | -| `BezierSpline` | All suites | Cubic Bezier / linear / `StepIn` / `StepOut` keyframes, animated `StyledText`, and animated `Polyline` point splines. | -| `LUTBezier` | `tier1_a` | Curve lookup splines used standalone and nested inside `ColorCurves` / `HueCurves`. | -| `PolyPath` / `Path` | Suite comps | 2D motion-path polyline evaluation with animated `Displacement` spline. | -| `Shake` | `tier1_c` | Procedural multi-octave noise modifier (`Source = X / Y / Value / Position`) with spline & expression inputs. | -| `Expression` | Unit tests | Standalone Fusion `Expression` modifier (`NumberExpression`, `PointExpressionX`/`Y`, `n1..n9`/`p1..p9` inputs, math DSL + Lua fallback). | -| `StyledTextCLS` | Suite comps | Per-character `TextPlus` styling overrides (font, size, color, kerning, opacity). | -| `TrackerModifier` | Suite comps | Resolves baked tracker path aliases (`Track1TrackerPath`, etc.) into 2D `PolyPath` coordinates. | -| Lua Expressions | Suite comps | Inline `Expression = "..."` evaluation (`time`, `comp.RenderStart`/`End`, node input references, math/trig/clamp/ternary). | +| Modifier / System | Notes | +| --- | --- | +| `BezierSpline` | Cubic Bezier / linear / `StepIn` / `StepOut` keyframes, animated `StyledText`, and animated `Polyline` point splines. | +| `LUTBezier` | Curve lookup splines used standalone and nested inside `ColorCurves` / `HueCurves`. | +| `PolyPath` / `Path` | 2D motion-path polyline evaluation with animated `Displacement` spline. | +| `Shake` | Procedural multi-octave noise modifier (`Source = X / Y / Value / Position`) with spline & expression inputs. | +| `Expression` | Standalone Fusion `Expression` modifier (`NumberExpression`, `PointExpressionX`/`Y`, `n1..n9`/`p1..p9` inputs, math DSL + Lua fallback). | +| `StyledTextCLS` | Per-character `TextPlus` styling overrides (font, size, color, kerning, opacity). | +| `TrackerModifier` | Resolves baked tracker path aliases (`Track1TrackerPath`, etc.) into 2D `PolyPath` coordinates. | +| Lua Expressions | Inline `Expression = "..."` evaluation (`time`, `comp.RenderStart`/`End`, node input references, math/trig/clamp/ternary). | ## Preserved & Passthrough (Roundtrip-Safe) Unlike Blackmagic Fusion — which unlinks missing OFX or Resolve-only plugins when opening a `.comp` — **Fission preserves all unknown and unsupported tools losslessly** (every parameter, custom input, binary blob, position, and upstream/downstream wire is retained verbatim on save) and **passes through their main input** during Flow evaluation so downstream compositing stays connected. -| Tool Class | Issue | Behavior & Notes | +| Tool Class | Issue | Notes | | --- | --- | --- | | `SurfaceTracker` | [#7](https://shale.paperclover.net/fission/issues/7) | Preserved lossless on save; passes through main image input in Flow. | | `MagicMask` | [#7](https://shale.paperclover.net/fission/issues/7) | Preserved lossless on save; passes through main image input in Flow. | | `PlanarTracker` | [#7](https://shale.paperclover.net/fission/issues/7) | Preserved lossless on save; passes through main image input in Flow. | -| `Fuse.HexagonTiles` | — | Preserved lossless on save; passes through main input in Flow. | -| `AudioDisplay` | — | Preserved lossless on save; passes through main input in Flow. | -| `Fuse.Hexagon` | — | Preserved lossless on save; passes through main input in Flow. | -| `SurfaceAlembicMesh` | — | Preserved lossless on save; passes through main input in Flow. | -| `Bender3D` | — | Preserved lossless on save; passes through main input in Flow. | -| `OCIOColorSpace` | — | Preserved lossless on save; passes through main input in Flow. | -| `SphereMap` | — | Preserved lossless on save; passes through main input in Flow. | -| `Texture` | — | Preserved lossless on save; passes through main input in Flow. | -| `PseudoColor` | — | Preserved lossless on save; passes through main input in Flow. | -| `Ribbon3D` | — | Preserved lossless on save; passes through main input in Flow. | -| `MtlReflect` | — | Preserved lossless on save; passes through main input in Flow. | -| `DepthBlur` | — | Preserved lossless on save; passes through main input in Flow. | -| `Fog` | — | Preserved lossless on save; passes through main input in Flow. | -| `Highlight` | — | Preserved lossless on save; passes through main input in Flow. | -| `ViewLUTOp` | — | Preserved lossless on save; passes through main input in Flow. | -| `Fuse.Lightning` | — | Preserved lossless on save; passes through main input in Flow. | -| `Replicate3D` | — | Preserved lossless on save; passes through main input in Flow. | -| `FalloffOperator` | — | Preserved lossless on save; passes through main input in Flow. | -| `MtlWard` | — | Preserved lossless on save; passes through main input in Flow. | -| `RankFilter` | — | Preserved lossless on save; passes through main input in Flow. | -| `AcesTransform` | — | Preserved lossless on save; passes through main input in Flow. | --- diff --git a/scripts/gen_compatibility.py b/scripts/gen_compatibility.py index 8c828181b85430b8e9232e670592492fdcd93120..a3c622844f5d5fc1e7790cfa6bd0251eca55d3cb 100755 --- a/scripts/gen_compatibility.py +++ b/scripts/gen_compatibility.py @@ -73,15 +73,15 @@ CATEGORIES: Sequence[str] = ( TOOL_METADATA: Sequence[ToolMeta] = ( # Generators ToolMeta("Background", "Generators", "`tier1_d`", "0.0%", "—"), - ToolMeta("FastNoise", "Generators", "`noise_text`", "0.0%", ""), + ToolMeta("FastNoise", "Generators", "`noise_text`", "0.0%", "—"), ToolMeta("Plasma", "Generators", "`tier1_c`", "0.1%–0.2%", "—"), - ToolMeta("TextPlus", "Generators", "`text`, `noise_text`", "0.2%–0.8%", "Pure-Rust vector engine (no CoreText)."), + ToolMeta("TextPlus", "Generators", "`text`, `noise_text`", "0.2%–0.8%", "—"), ToolMeta("Loader", "Generators", "All suites", "0.0%", "—"), ToolMeta("DaySky", "Generators", "Unit tests", "0.4%–1.1%", "—"), ToolMeta("Fuse.CheckerPieceGenerator", "Generators", "Unit tests", "0.0%", "—"), # Compositing & Blending - ToolMeta("Merge", "Compositing & Blending", "`merge`", "0.0%–0.3%", "3D Z-depth merge (`PerformDepthMerge`) ignored."), + ToolMeta("Merge", "Compositing & Blending", "`merge`", "0.0%–0.3%", "3D Z-depth merge (`PerformDepthMerge`) not implemented."), ToolMeta("Dissolve", "Compositing & Blending", "`tier1_b`", "0.0%–0.1%", "—"), ToolMeta("Paint", "Compositing & Blending", "Unit tests", "0.0%–1.2%", "Clone/Smear/Emboss apply modes and non-round image brushes not yet implemented."), ToolMeta("PolylineStroke", "Compositing & Blending", "Unit tests", "0.0%–0.3%", "Rendered only inside `Paint` / `PaintMask`."), @@ -92,7 +92,7 @@ TOOL_METADATA: Sequence[ToolMeta] = ( ToolMeta("BrightnessContrast", "Color & Depth", "`color_ops`, `tier1_d`", "0.0%–0.1%", "—"), ToolMeta("ColorCorrector", "Color & Depth", "`vortex_cc`, Suite comps", "0.0%–0.4%", "Histogram/Match/Suppress tabs not implemented."), ToolMeta("ColorGain", "Color & Depth", "`color_ops`, `noise_text`", "0.0%–0.1%", "—"), - ToolMeta("ColorCurves", "Color & Depth", "Suite comps", "0.0%–0.1%", ""), + ToolMeta("ColorCurves", "Color & Depth", "Suite comps", "0.0%–0.1%", "—"), ToolMeta("HueCurves", "Color & Depth", "`tier1_a`", "0.1%–0.5%", "—"), ToolMeta("GamutConvert", "Color & Depth", "Suite comps", "0.0%–0.2%", "—"), ToolMeta("InvertColor", "Color & Depth", "Suite comps", "0.0%", "—"), @@ -146,7 +146,7 @@ TOOL_METADATA: Sequence[ToolMeta] = ( ToolMeta("RectangleMask", "Masks", "`mask`, `mask_softedge`", "0.0%–0.2%", "—"), ToolMeta("PolylineMask", "Masks", "`mask_softedge`, Suite comps", "0.1%–0.4%", "—"), ToolMeta("BitmapMask", "Masks", "`mask_softedge`", "0.0%–0.2%", "—"), - ToolMeta("WandMask", "Masks", "`archive_3d`", "0.0%–0.3%", ""), + ToolMeta("WandMask", "Masks", "`archive_3d`", "0.0%–0.3%", "—"), ToolMeta("PaintMask", "Masks", "Unit tests", "0.1%–0.4%", "Non-round brush shapes not implemented."), # 2D Vector Shapes @@ -177,10 +177,10 @@ TOOL_METADATA: Sequence[ToolMeta] = ( ToolMeta("Merge3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "—"), ToolMeta("Transform3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "—"), ToolMeta("ImagePlane3D", "3D Pipeline", "`cam3d`", "0.1%–0.4%", "—"), - ToolMeta("Shape3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "Torus/Cone/IcoSphere primitives not yet implemented."), + ToolMeta("Shape3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "—"), ToolMeta("Cube3D", "3D Pipeline", "Unit tests", "0.1%–0.4%", "—"), ToolMeta("SurfaceFBXMesh", "3D Pipeline", "Unit tests", "Visual*", "Static mesh only (no skeletal skinning/morph animation)."), - ToolMeta("Text3D", "3D Pipeline", "`archive_3d`", "Visual*", "Pure-Rust vector text plane with multi-slice `-Z` extrusion (bevels not yet implemented; `#46`)."), + ToolMeta("Text3D", "3D Pipeline", "`archive_3d`", "Visual*", "Bevels not implemented."), ToolMeta("LightAmbient", "3D Pipeline", "Suite comps", "0.1%–0.4%", "—"), ToolMeta("LightDirectional", "3D Pipeline", "Suite comps", "0.1%–0.4%", "Up to 4 directional lights per scene; shadow maps pending (`#46`)."), ToolMeta("LightPoint", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "—"), @@ -524,20 +524,17 @@ def build_markdown( all_supported_classes = all_supported_tools | impl_modifiers lines: List[str] = [] - lines.append("# Fusion 21.1 Compatibility Matrix") + lines.append("") lines.append("") - lines.append( - f"Auto-generated from live engine sources (`{EVAL_DIR_LABEL}`, " - f"`{SCENE3D_DIR_LABEL}`, `crates/model/src/comp.rs`) and real Fusion `.comp` corpora " - "via `python3 scripts/gen_compatibility.py`." - ) + lines.append("# Fusion 21.1 Compatibility") lines.append("") lines.append( - f"- **Tracked Gaps & Issues:** [shale.paperclover.net/fission/issues]({SHALE_ISSUES_URL})\n" - f"- **Conformance Probes:** [`scripts/fusion_probes.py`](scripts/fusion_probes.py)\n" - f"- **Per-Node Fuzzer:** [`scripts/fuzz_node.py`](scripts/fuzz_node.py) over the Fusion-introspected " - f"[`scripts/tool_catalog.json`](scripts/tool_catalog.json) (`scripts/fusion_introspect.py`), scored in " - f"[`scripts/accuracy_ledger.json`](scripts/accuracy_ledger.json)" + f"Fission currently supports **{len(all_supported_tools)}** tool types across 2D/3D compositing, all with high accuracy. " + "This document tracks the progress on parity with Blackmagic Fusion Studio. " + "The main metric, **accuracy**, is the inverse of the image's " + "[mean absolute error](https://en.wikipedia.org/wiki/Mean_absolute_error), " + "meaning `100%` accuracy means the pixels are all identical. " + "For details, see [`scripts/fuzz_node.py`](scripts/fuzz_node.py)." ) lines.append("") @@ -546,28 +543,19 @@ def build_markdown( lines.append("") lines.append("| Metric | Value |") lines.append("| --- | --- |") - lines.append( - f"| **Supported Flow Tools** | **{len(all_supported_tools)}** " - f"({len(eval_tools)} 2D/Fuse/utility in `{EVAL_DIR_LABEL}`, {len(scene3d_tools - eval_tools)} 3D scene nodes in `{SCENE3D_DIR_LABEL}`, 2 Flow annotations) |" - ) - lines.append( - f"| **Modifiers & Animation** | **{len(MODIFIER_METADATA)}** systems " - f"({len(impl_modifiers)} Fusion modifier classes + Lua expressions) |" - ) + lines.append(f"| **Supported Flow Tools** | **{len(all_supported_tools)}** |") + lines.append(f"| **Modifiers & Animation** | **{len(MODIFIER_METADATA)}** |") fuzzed = {n: e for n, e in ledger.get("tools", {}).items() if n in live_engine_tools} if fuzzed: mean = sum(e["mean_accuracy"] for e in fuzzed.values()) / len(fuzzed) - supported_tools_cell = f"**{format_accuracy(mean)}** ({len(fuzzed)} / {len(live_engine_tools)} supported tools fuzzed)" + supported_tools_cell = f"**{format_accuracy(mean)}**" else: - supported_tools_cell = "_Not measured (run `python3 scripts/fuzz_node.py --all`)_" + supported_tools_cell = "_Not measured_" paper = ledger.get("paper_clover") if paper: - paper_cell = ( - f"**{format_accuracy(paper['mean_accuracy'])}** ({paper['suite']['cases']} suite frames + " - f"{paper['archive']['cases']} archive comps)" - ) + paper_cell = f"**{format_accuracy(paper['mean_accuracy'])}**" else: - paper_cell = "_Not measured (run `python3 scripts/fuzz_node.py --paper-clover`)_" + paper_cell = "_Not measured_" # Denominators queried directly from stock Fusion Render Node 21.1 (`fu:GetRegList()` visible CT_Tool) # and WeSuckLess/Reactor (`Atoms/**/*.fuse`, 2026-12-01). fusion_builtin_total = 378 @@ -586,37 +574,11 @@ def build_markdown( if t in all_supported_tools ) reactor_pct = 100.0 * len(reactor_supported) / reactor_fuses_total - reactor_names = ", ".join(t.removeprefix("Fuse.") for t in reactor_supported) - lines.append(f"| **Paper Clover Comps Accuracy** | {paper_cell} |") + lines.append(f"| **Accuracy across [paper clover](https://paperclover.net)'s compositions** | {paper_cell} |") lines.append(f"| **Supported Tool Accuracy** | {supported_tools_cell} |") - lines.append( - f"| **Coverage of Fusion's Built-in Tools** | **{builtin_pct:.1f}%** " - f"({builtin_supported} / {fusion_builtin_total} built-in Fusion 21.1 Flow tools) |" - ) - lines.append( - f"| **Coverage of All Fuses on Reactor** | **{reactor_pct:.1f}%** " - f"({len(reactor_supported)} / {reactor_fuses_total:,} Fuses on Reactor: {reactor_names}) |" - ) - lines.append( - f"| **Active Corpus (`trees/fusion`) Coverage** | " - f"{format_coverage(active_corpus, all_supported_classes, '_Skipped (`/Volumes/Project/trees/fusion` not mounted)_')} |" - ) - lines.append( - f"| **Archive Corpus (`private/samples`) Coverage** | " - f"{format_coverage(archive_corpus, all_supported_classes, '_Skipped (`private/samples` not present)_')} |" - ) - lines.append( - "| **HiQ vs Fast Mode** | " - "**`HiQ`**: honors `DepthFull` / generator `Depth` / `ChangeDepth` (`Rgba8Unorm`, clamped `Rgba16Float`, unclamped HDR `Rgba16Float`/`Rgba32Float`), full-res blurs & `XGlow`. " - "**`Fast`**: collapses working targets to `Rgba8Unorm`, downsamples blurs, caps `XGlow` octaves for interactive scrubbing. |" - ) - lines.append("") - lines.append( - "Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the mean over a live fuzz run " - "(`scripts/fuzz_node.py`: frame 0 at defaults plus stratified parameter variations); a range is the legacy " - "hand-curated probe-suite MAE for tools not yet fuzzed. `Visual*` marks stochastic tools judged by eye." - ) + lines.append(f"| **Coverage of Fusion's Built-in Tools** | **{builtin_pct:.1f}%** |") + lines.append(f"| **Coverage of All Fuses on Reactor** | **{reactor_pct:.1f}%** |") lines.append("") # Categorized tool tables @@ -626,12 +588,20 @@ def build_markdown( continue lines.append(f"## {cat}") lines.append("") - lines.append("| Tool | Accuracy | Notes & Fallbacks |") + if cat == "3D Pipeline": + lines.append( + "Each 3D tool's accuracy is measured by rendering it inside a lit `Merge3D` + `Camera3D` + `Renderer3D` " + "(`RendererOpenGL`) scene while varying that tool's own parameters. `Renderer3D` accuracy varies " + "`Renderer3D`'s own settings (lighting, shadows, overscan, etc.) on a fixed 3D scene, whereas each " + "shape, light, camera, and material row varies that specific tool's inputs." + ) + lines.append("") + lines.append("| Tool | Accuracy | Notes |") lines.append("| --- | --- | --- |") for m in cat_tools: entry = fuzzed.get(m.name) acc_cell = format_accuracy(entry["mean_accuracy"]) if entry else legacy_accuracy(m.mae) - lines.append(f"| `{m.name}` | {acc_cell} | {m.notes} |") + lines.append(f"| `{m.name}` | {acc_cell} | {m.notes or '—'} |") lines.append("") # Drift-detection table if any new tools appeared in Rust sources @@ -650,12 +620,12 @@ def build_markdown( # Modifiers & Animation table lines.append("## Modifiers & Animation") lines.append("") - lines.append("| Modifier / System | Probe Suite | Notes |") - lines.append("| --- | --- | --- |") + lines.append("| Modifier / System | Notes |") + lines.append("| --- | --- |") for mm in MODIFIER_METADATA: - lines.append(f"| {mm.display_name} | {mm.probe} | {mm.notes} |") + lines.append(f"| {mm.display_name} | {mm.notes} |") for name in uncategorized_mods: - lines.append(f"| `{name}` | — | _Uncategorized modifier detected in `comp.rs`._ |") + lines.append(f"| `{name}` | _Uncategorized modifier detected in `comp.rs`._ |") lines.append("") # Preserved & Passthrough (Roundtrip-Safe) section @@ -669,35 +639,11 @@ def build_markdown( ) lines.append("") - # Combine curated unsupported list with any top real-world unsupported tools from corpora - curated_by_name = {u.name: u for u in UNSUPPORTED_NOTES} - combined_unsup: Counter[str] = Counter() - if active_corpus is not None: - for k, v in active_corpus[1].items(): - if k not in all_supported_classes: - combined_unsup[k] += v - if archive_corpus is not None: - for k, v in archive_corpus[1].items(): - if k not in all_supported_classes: - combined_unsup[k] += v - - # Order: curated items first (preserving logical grouping), then any remaining high-frequency unsupported tools - display_unsup: List[str] = [u.name for u in UNSUPPORTED_NOTES] - for k, _ in combined_unsup.most_common(25): - if k not in curated_by_name and len(display_unsup) < 24: - display_unsup.append(k) - - lines.append("| Tool Class | Issue | Behavior & Notes |") + lines.append("| Tool Class | Issue | Notes |") lines.append("| --- | --- | --- |") - for name in display_unsup: - meta = curated_by_name.get(name) - if meta is not None: - issue_str = f"[#{meta.issue}]({SHALE_ISSUES_URL}/{meta.issue})" if meta.issue else "—" - behavior = meta.behavior - else: - issue_str = "—" - behavior = "Preserved lossless on save; passes through main input in Flow." - lines.append(f"| `{name}` | {issue_str} | {behavior} |") + for meta in UNSUPPORTED_NOTES: + issue_str = f"[#{meta.issue}]({SHALE_ISSUES_URL}/{meta.issue})" if meta.issue else "—" + lines.append(f"| `{meta.name}` | {issue_str} | {meta.behavior} |") lines.append("") lines.append("---") -- 2.54.1