{
  "generatedAt": "2026-09-07T05:08:45.041Z",
  "runtime": {
    "node": "v22.14.0",
    "platform": "darwin",
    "arch": "arm64"
  },
  "sourceCommit": "3684ec4063583c66c80e34e90c655a71d65dad1b",
  "summary": {
    "groups": 15,
    "passed": 15,
    "failed": 0
  },
  "scope": "Executed unmodified pinned production modules in Node. Fetch, object URLs, image decoder and video DOM are controlled doubles. No real provider, SDK login, browser codec, React hook, CORS or timeline UI was executed. Negative findings are observed production control flow, not passing acceptance criteria.",
  "controls": {
    "network": "all fetches mocked; unspecified fetches fail",
    "icons": "three @phosphor-icons/react exports resolve to no-op functions via boundary-loader.mjs",
    "decoder": "accepts only byte-identical 1×1 fixture, returns 1×1; rejects every other byte sequence",
    "video": "controlled metadata error event",
    "objectURLs": "instrumented strings",
    "comfyPolling": "900ms sleep accelerated to next timer turn"
  },
  "checks": [
    {
      "name": "source fingerprints",
      "passed": true,
      "input": {
        "commit": "3684ec4063583c66c80e34e90c655a71d65dad1b"
      },
      "output": {
        "filesVerified": 14,
        "sourceTransformed": false
      }
    },
    {
      "name": "registered manifests and invalid manifest rejection",
      "passed": true,
      "input": {
        "schemaVersion": 1,
        "id": "fixture-provider",
        "runtime": "loopback",
        "auth": "none",
        "capabilities": [
          "text-to-image"
        ]
      },
      "output": {
        "registered": [
          "puter",
          "comfyui",
          "webui"
        ],
        "invalidVariantsRejected": [
          {
            "name": "Error",
            "message": "Unsupported generation provider schema: 2"
          },
          {
            "name": "Error",
            "message": "Invalid generation provider id: Bad ID"
          },
          {
            "name": "Error",
            "message": "Invalid generation provider runtime: remote-script"
          },
          {
            "name": "Error",
            "message": "Invalid generation provider auth mode: cookie"
          },
          {
            "name": "Error",
            "message": "Invalid generation provider capabilities: fixture-provider"
          }
        ],
        "frozen": "top-level object and capabilities array"
      }
    },
    {
      "name": "loopback endpoint acceptance and rejection",
      "passed": true,
      "input": {
        "accept": [
          "",
          "localhost:8188/",
          "http://[::1]:8188/",
          "https://127.0.0.1:8188/api/?x=1#fragment"
        ],
        "reject": [
          "http://192.168.1.25:8188",
          "https://example.com",
          "http://localhost.example.com",
          "ftp://127.0.0.1:8188",
          "http://127.0.0.2:8188"
        ]
      },
      "output": {
        "accepted": [
          "http://127.0.0.1:8188",
          "http://localhost:8188",
          "http://[::1]:8188",
          "https://127.0.0.1:8188/api"
        ],
        "rejected": [
          {
            "value": "http://192.168.1.25:8188",
            "error": {
              "name": "Error",
              "message": "为保护本地生成服务，只允许连接 localhost、127.0.0.1 或 ::1。"
            }
          },
          {
            "value": "https://example.com",
            "error": {
              "name": "Error",
              "message": "为保护本地生成服务，只允许连接 localhost、127.0.0.1 或 ::1。"
            }
          },
          {
            "value": "http://localhost.example.com",
            "error": {
              "name": "Error",
              "message": "为保护本地生成服务，只允许连接 localhost、127.0.0.1 或 ::1。"
            }
          },
          {
            "value": "ftp://127.0.0.1:8188",
            "error": {
              "name": "Error",
              "message": "为保护本地生成服务，只允许连接 localhost、127.0.0.1 或 ::1。"
            }
          },
          {
            "value": "http://127.0.0.2:8188",
            "error": {
              "name": "Error",
              "message": "为保护本地生成服务，只允许连接 localhost、127.0.0.1 或 ::1。"
            }
          }
        ]
      }
    },
    {
      "name": "image signature corrects declared MIME",
      "passed": true,
      "input": {
        "bytes": "known 1×1 PNG fixture",
        "declaredMime": "application/octet-stream",
        "decoder": "byte-equality double"
      },
      "output": {
        "mimeType": "image/png",
        "width": 1,
        "height": 1
      }
    },
    {
      "name": "empty, wrong format and decoder rejection",
      "passed": true,
      "input": {
        "variants": [
          "empty image",
          "text/html bytes",
          "invalid bytes labelled image/png"
        ]
      },
      "output": {
        "empty": {
          "name": "Error",
          "message": "The provider returned an empty image."
        },
        "wrongFormat": {
          "name": "Error",
          "message": "The provider returned text/html instead of an image."
        },
        "corrupt": {
          "name": "Error",
          "message": "The provider returned an image that the browser could not decode."
        }
      }
    },
    {
      "name": "valid image batch enters assets once",
      "passed": true,
      "input": {
        "names": [
          "first.png",
          "second.png"
        ]
      },
      "output": {
        "commits": 1,
        "newestFirst": [
          {
            "type": "image",
            "kind": "generated-image",
            "name": "second.png",
            "meta": "1×1",
            "width": 1,
            "height": 1,
            "provider": "LOCAL FIXTURE — no provider request",
            "generated": true,
            "prompt": "",
            "blobBytes": 70,
            "mimeType": "image/png"
          },
          {
            "type": "image",
            "kind": "generated-image",
            "name": "first.png",
            "meta": "1×1",
            "width": 1,
            "height": 1,
            "provider": "LOCAL FIXTURE — no provider request",
            "generated": true,
            "prompt": "",
            "blobBytes": 70,
            "mimeType": "image/png"
          }
        ],
        "selected": "second.png",
        "notificationCount": 1,
        "timelineServiceProvided": false
      }
    },
    {
      "name": "empty result and URL-only result reject",
      "passed": true,
      "input": {
        "outputs": [
          [],
          [
            {
              "type": "image",
              "url": "https://example.invalid/temporary.png"
            }
          ]
        ]
      },
      "output": {
        "empty": {
          "name": "Error",
          "message": "The provider returned no media outputs."
        },
        "urlOnly": {
          "name": "Error",
          "message": "The provider did not return downloadable bytes for an output."
        },
        "commits": 0
      }
    },
    {
      "name": "mixed batch rejects without asset commit but retains earlier URL",
      "passed": true,
      "input": {
        "outputs": [
          "valid image",
          "empty image"
        ]
      },
      "output": {
        "error": {
          "name": "Error",
          "message": "The provider did not return downloadable bytes for an output."
        },
        "commits": 0,
        "retainedObjectUrls": 1,
        "revokedWithinCommit": 0
      }
    },
    {
      "name": "unknown output type follows image path",
      "passed": true,
      "input": {
        "outputType": "audio",
        "bytes": "valid PNG fixture"
      },
      "output": {
        "importedType": "image",
        "commits": 1
      }
    },
    {
      "name": "nonvideo bytes with video dimensions bypass metadata inspection",
      "passed": true,
      "input": {
        "outputType": "video",
        "bytes": "This is plain UTF-8 text, not video media.",
        "width": 640,
        "height": 360
      },
      "output": {
        "metadataInspections": 0,
        "commits": 1,
        "asset": {
          "type": "video",
          "kind": "generated-video",
          "name": "not-a-video.mp4",
          "meta": "640×360",
          "duration": 0,
          "width": 640,
          "height": 360,
          "generated": true,
          "prompt": "",
          "blobBytes": 42,
          "mimeType": "video/mp4"
        }
      }
    },
    {
      "name": "video metadata error resolves to fallback",
      "passed": true,
      "input": {
        "bytes": "This is plain UTF-8 text, not video media.",
        "videoElement": "controlled error event, zero dimensions, NaN duration"
      },
      "output": {
        "durationSeconds": 0,
        "width": 1280,
        "height": 720,
        "temporaryUrlsRevoked": 1,
        "threw": false
      }
    },
    {
      "name": "transport failures, HTTP errors and abort retain distinct meaning",
      "passed": true,
      "input": {
        "transport": "mocked fetch"
      },
      "output": {
        "network": {
          "name": "Error",
          "message": "无法访问本地服务。请确认服务已启动，并允许当前编辑器地址跨域访问（CORS）。"
        },
        "http": {
          "name": "Error",
          "message": "本地服务返回 HTTP 503：fixture unavailable"
        },
        "cancelled": {
          "name": "AbortError",
          "message": "Fixture cancelled"
        }
      }
    },
    {
      "name": "WebUI mocked batch and malformed response",
      "passed": true,
      "input": {
        "mode": "txt2img",
        "prompt": "offline test",
        "negativePrompt": "",
        "width": 512,
        "height": 512,
        "steps": 20,
        "seed": 42
      },
      "output": {
        "outputs": [
          {
            "type": "image",
            "mimeType": "image/png",
            "fileName": "offline test-1.png",
            "width": 1,
            "height": 1,
            "prompt": "offline test",
            "providerLabel": "Stable Diffusion WebUI",
            "bytes": 70
          },
          {
            "type": "image",
            "mimeType": "image/png",
            "fileName": "offline test-2.png",
            "width": 1,
            "height": 1,
            "prompt": "offline test",
            "providerLabel": "Stable Diffusion WebUI",
            "bytes": 70
          }
        ],
        "malformed": {
          "name": "Error",
          "message": "WebUI 没有返回图片。"
        },
        "missingReference": {
          "name": "Error",
          "message": "图生图需要先选择一张参考图片。"
        },
        "remoteGenerationPerformed": false
      }
    },
    {
      "name": "ComfyUI mocked workflow result and remote interrupt ambiguity",
      "passed": true,
      "input": {
        "prompt": "offline test",
        "negativePrompt": "",
        "seed": 42,
        "workflowTemplate": "{\"1\":{\"inputs\":{\"text\":\"{{prompt}}\"}},\"2\":{\"inputs\":{\"seed\":\"{{seed}}\"}}}"
      },
      "output": {
        "jobId": "fixture-job",
        "outputNames": [
          "fixture.png",
          "fixture-2.png"
        ],
        "submittedWorkflow": {
          "1": {
            "inputs": {
              "text": "offline test"
            }
          },
          "2": {
            "inputs": {
              "seed": 42
            }
          }
        },
        "states": [
          "queued",
          "running"
        ],
        "interrupt500": "resolved",
        "interruptNetworkFailure": "resolved",
        "remoteGenerationPerformed": false
      }
    },
    {
      "name": "WebUI generation receives an actual AbortSignal",
      "passed": true,
      "input": {
        "fetch": "pending test double rejects on signal abort"
      },
      "output": {
        "aborted": true,
        "error": {
          "name": "AbortError",
          "message": "Fixture aborted"
        },
        "remoteCancellationClaimed": false
      }
    }
  ],
  "observedLimitations": [
    "A later invalid batch member prevents setUserAssets, but an object URL made for the earlier valid member remains in imageUrlRefs. This function does not revoke it on failure; later application cleanup is outside this experiment.",
    "The host does not explicitly reject unknown output.type values: any value other than video takes the image branch. Audio-labelled PNG fixture bytes were imported as an image.",
    "Nonempty bytes labelled video are accepted without browser metadata inspection when width and height are supplied. The intentionally nonvideo text fixture was committed as a video asset.",
    "The video metadata error event resolves inspection rather than rejecting; zero dimensions become 1280×720 and invalid duration becomes zero. The fake DOM verifies control flow, not an actual browser decode.",
    "ComfyUI cancel sends POST /interrupt but both an HTTP 500 response and a rejected fetch resolved without error. This adapter does not prove remote compute stopped."
  ],
  "requests": [
    {
      "url": "http://127.0.0.1:8188/system_stats",
      "method": "GET"
    },
    {
      "url": "http://127.0.0.1:8188/system_stats",
      "method": "GET"
    },
    {
      "url": "http://127.0.0.1:8188/system_stats",
      "method": "GET"
    },
    {
      "url": "http://127.0.0.1:7860/sdapi/v1/txt2img",
      "method": "POST",
      "body": {
        "prompt": "offline test",
        "negative_prompt": "",
        "width": 512,
        "height": 512,
        "steps": 20,
        "seed": 42
      }
    },
    {
      "url": "http://127.0.0.1:7860/sdapi/v1/txt2img",
      "method": "POST",
      "body": {
        "prompt": "offline test",
        "negative_prompt": "",
        "width": 512,
        "height": 512,
        "steps": 20,
        "seed": 42
      }
    },
    {
      "url": "http://127.0.0.1:8188/prompt",
      "method": "POST",
      "body": {
        "prompt": {
          "1": {
            "inputs": {
              "text": "offline test"
            }
          },
          "2": {
            "inputs": {
              "seed": 42
            }
          }
        },
        "client_id": "[runtime UUID]"
      }
    },
    {
      "url": "http://127.0.0.1:8188/history/fixture-job",
      "method": "GET"
    },
    {
      "url": "http://127.0.0.1:8188/view?filename=fixture.png&subfolder=&type=output",
      "method": "GET"
    },
    {
      "url": "http://127.0.0.1:8188/view?filename=fixture-2.png&subfolder=&type=output",
      "method": "GET"
    },
    {
      "url": "http://127.0.0.1:8188/interrupt",
      "method": "POST"
    },
    {
      "url": "http://127.0.0.1:8188/interrupt",
      "method": "POST"
    },
    {
      "url": "http://127.0.0.1:7860/sdapi/v1/txt2img",
      "method": "POST",
      "body": {
        "prompt": "offline test",
        "negative_prompt": "",
        "width": 512,
        "height": 512,
        "steps": 20,
        "seed": 42
      }
    }
  ]
}
