{
  "schemaVersion": "deepseek-core-instrument-factorial-protocol/v2",
  "protocolRevision": 2,
  "frozenAt": "2026-07-26T22:35:37+07:00",
  "supersedes": {
    "protocolPath": "artifacts/derived/protocol-v1.json",
    "reason": "pre-paid evidence review required capture-authoritative raw bytes, source recomputation, atomic publication, and full-chain confirmation authorization",
    "paidCallsUnderSupersededProtocol": 0
  },
  "userApproval": {
    "scope": "prompt main effect and reasoning main effect, followed by conditional all-role confirmation",
    "screeningCalls": 24,
    "conditionalConfirmationCalls": 18,
    "maximumCalls": 42
  },
  "provider": "comfy-cloud/openrouter-partner-node",
  "modelId": "deepseek/deepseek-v4-pro",
  "factorialManifestHash": "3a36376394e7723adfc969ed9b1c991778a7b5003b7b7f8e2152ce0eff495482",
  "screening": {
    "design": "2x2_prompt_variant_by_reasoning_effort",
    "configs": [
      {
        "id": "baseline-v1--off",
        "promptVariant": "baseline-v1",
        "reasoningEffort": "off",
        "interventionOrder": 0
      },
      {
        "id": "semantic-v2--off",
        "promptVariant": "semantic-v2",
        "reasoningEffort": "off",
        "interventionOrder": 1
      },
      {
        "id": "baseline-v1--medium",
        "promptVariant": "baseline-v1",
        "reasoningEffort": "medium",
        "interventionOrder": 2
      },
      {
        "id": "semantic-v2--medium",
        "promptVariant": "semantic-v2",
        "reasoningEffort": "medium",
        "interventionOrder": 3
      }
    ],
    "languages": [
      "ru",
      "en"
    ],
    "role": "scenario",
    "seeds": [
      20260727,
      20260728,
      20260729
    ],
    "expectedCalls": 24,
    "callsPerConfig": 6,
    "retryPolicy": "none",
    "repairPolicy": "none"
  },
  "confirmation": {
    "condition": "one selected eligible screening config exists",
    "languages": [
      "ru",
      "en"
    ],
    "roles": [
      "scenario",
      "intent",
      "narration"
    ],
    "seeds": [
      20260730,
      20260731,
      20260732
    ],
    "expectedCalls": 18,
    "scenarioUsesSelectedConfig": true,
    "unchangedRoles": {
      "intent": {
        "promptVariant": "baseline-v1",
        "reasoningEffort": "off"
      },
      "narration": {
        "promptVariant": "baseline-v1",
        "reasoningEffort": "off"
      }
    },
    "retryPolicy": "none",
    "repairPolicy": "none"
  },
  "gates": {
    "screening": {
      "requiredDeterministicPassesPerConfig": 6,
      "semanticScoreFloorPerCell": 1,
      "allowedCriticalGroundingFailures": 0
    },
    "confirmation": {
      "requiredDeterministicPasses": 18,
      "semanticScoreFloorPerCell": 1,
      "allowedCriticalGroundingFailures": 0
    },
    "semanticRubricSha256": "3d90905f2649ad52663775805cfd7152313d272306fbb38d9ee3f4cbd35cb3f3",
    "unchangedFromStrongModelStudy": true
  },
  "ranking": [
    "semanticScoreTwoCells",
    "semanticScoreTotal",
    "lowerInterventionOrder"
  ],
  "noEligiblePolicy": "no_confirmation",
  "generation": {
    "outputTokenCap": null,
    "seedIsProviderHintOnly": true
  },
  "catalogBinding": {
    "nodeClass": "OpenRouterLLMNode",
    "inputName": "model",
    "exactModelMatch": true,
    "catalogEntryCount": 33,
    "catalogOptionsSha256": "aa6ec51e7958356c88c214ac63f35ae7a44aa5dcb6bb6946bd94871b81ab73b3",
    "reasoningEffortAppliesToExactModel": true,
    "reasoningEffortOptions": [
      "off",
      "low",
      "medium",
      "high"
    ]
  },
  "canonicalPreflight": {
    "root": "artifacts/derived/screening-preflight-v2",
    "manifestPath": "artifacts/derived/screening-preflight-v2/manifest.json",
    "manifestFileSha256": "034aa6a40bbffe798fdbc64522ca44f17e1832c526b4be1d5b468a7eb88af82c",
    "manifestHash": "3a36376394e7723adfc969ed9b1c991778a7b5003b7b7f8e2152ce0eff495482",
    "catalogPreflightFileSha256": "34d81c0b0b701d613d674b1b807a4598560ba3b7e064874131a00b0307808d8e",
    "treeSha256": "6ba93cc0137dee0962b910ce520aef243455a6b5eabb7e92c0a8468415fc5c35",
    "auditPath": "artifacts/derived/screening-preflight-v2-audit.json",
    "auditFileSha256": "ced0c45798ccf7a8006b5de7a418dc5bb37d671579094e3af6411f4ed90a618a",
    "requestCount": 24,
    "fileCount": 50,
    "hashChecksPassed": 72,
    "hashChecksExpected": 72,
    "reproductionByteMismatchCount": 0
  },
  "promptAndRubricHashes": {
    "semanticInvariantBlockSha256": "15fc3866392d1cfb1a3143af62fafef0a691f7565155719e67c30c049f391c47",
    "ruBaselinePromptSha256": "07fedbf8ec56e8f8b85db60338561294f0418b9ef8bb09c1a096cec7643d1c7b",
    "ruTreatmentPromptSha256": "ecd7a19207acb34b28668bb10bbfa3e1fd6716cefec93ef3ef1d09d087c87958",
    "enBaselinePromptSha256": "cb995c1879d845b2ed2690bcde5c18e4c2b4803fddc882e5778c16213883ef03",
    "enTreatmentPromptSha256": "2188edf9c458bad58a0b307ab47491a960898f1dc3c102534af99d73413282e1",
    "semanticRubricSha256": "3d90905f2649ad52663775805cfd7152313d272306fbb38d9ee3f4cbd35cb3f3"
  },
  "sourceHashes": {
    "prototype/artifact-publish.ts": "2e7065e4fb77b8349cfb13e5b2042d0f41db3e5be4ffb7c3105a03fec18c04dc",
    "prototype/artifact-publish.test.ts": "3ab6c9e00f8d1a89167060b6e7cc8e79030e9171c63109bdbbbc9a93923cb16f",
    "prototype/manifest.ts": "0c1e959fb7cc0759022ca2c1c2a303f129207276c37a0c8af377591c00181a94",
    "prototype/prompt-instrument.ts": "d14c0e16cce1c4f46ec76368987016d5e6cdd70a8d09774e4bc6625707aa52f5",
    "prototype/run.ts": "1869294bbfdceb71a2682d58153c2ca41d90834279d09e838b51361148427d43",
    "prototype/run.test.ts": "1c16d3ae6d2892f05a59128f3c01f22d34ab58119d6d3f39605d8e797f3528aa",
    "prototype/transport-capture.ts": "5b6121a34521ed93ffbaaacd828a131f71b4861b239599d90d16a8f531196ef8",
    "prototype/transport.ts": "f8fc37400a2fe81a3dffb305edaec4e6b23b583749960b055daebc0cf2550ae2",
    "prototype/transport.test.ts": "1f4051b017ad47e33dd6e29a34736467055204991b8ca550efef72d595fae8c4",
    "prototype/source-evidence.ts": "510182a3294834df79c136393994684c7a20ac29c36b0cf5b8b9900717b66c8e",
    "prototype/source-evidence.test.ts": "7ebe747b5f7a83c318c1ae87f6a54174cc37627a8ab6ade621b25d5138f11605",
    "prototype/semantic-packet.ts": "23c8577449719de3dabefe5239c1aaed7a091e047cf2e9b25108829f8aeea723",
    "prototype/semantic-packet.test.ts": "546209d012576faa70c8d6a309f6fd141790571eacb790db9df30b6bec6aab0a",
    "prototype/factorial-evidence.ts": "e8d70602a6155e79d196c568122365c62129829259be88418bec3eb36bf375e9",
    "prototype/factorial-evidence.test.ts": "4cc4e8194dbf79896be30f196939ada9f39e288556de4862dd3ea14279c0cac1",
    "prototype/finalize.ts": "6caa08ed4bc1f359e66457b6781620705af0d1e0b5da2c280edb8fabfa88dd54",
    "prototype/finalize.test.ts": "3e8f8d17412d3d2552022ce29912f691f0d5ca663e1332b7671b05f2e11c1600",
    "../2026-07-26-flash-llm-core-evaluation/prototype/evaluation.ts": "22f2877444133b149624018cea155efac0749025eaf70343a1e2811dd4f9f425",
    "../2026-07-26-strong-llm-core-escalation/prototype/manifest.ts": "c2be23eec45d76921b6afcf8de39908247c52816e015423e9f84b3eee1c0e670",
    "../2026-07-26-strong-llm-core-escalation/prototype/run.ts": "5cfffc104baed6882d75dfa4de9f577029ddb154b5b07607df21e826ac2d9250",
    "artifacts/raw/catalog/openrouter-model-options.json": "db0fb8c49fefda268ae71ac08730d30d95d119416644f12630c284d317aabaaa"
  },
  "evidenceChain": {
    "capture": {
      "schemaVersion": "deepseek-core-factorial-comfy-batch-capture/v1",
      "rawAuthority": "rawResponseBase64",
      "transportCopiesExactCaptureBytes": true
    },
    "transport": {
      "schemaVersion": "deepseek-core-factorial-transport/v2",
      "bindings": [
        "prepared request",
        "workflow",
        "request payload",
        "batch id",
        "job id",
        "captured raw bytes",
        "job metadata",
        "telemetry"
      ]
    },
    "deterministicScoring": "fresh recomputation from capture-authoritative raw bytes through the frozen evaluator, followed by byte-for-byte comparison with the stored canonical scorecard",
    "semanticReview": "source-bound blind aliases with private entropy tie-breaking and no request metadata exposed to the reviewer",
    "finalization": "re-verifies complete screening source chain and selection before any confirmation, then re-verifies the confirmation source chain"
  },
  "confirmationAuthorization": [
    "24 screening transport records completed and source-verified",
    "24 deterministic scores recomputed from captured raw bytes",
    "24 blind semantic reviews bound to response hashes",
    "one config passes every unchanged eligibility gate",
    "selection follows the preregistered ranking",
    "confirmation preparation re-verifies the complete screening chain"
  ],
  "publication": {
    "strategy": "staged same-parent atomic rename",
    "rejectExistingTargets": true,
    "rejectSymlinkTargetsAndAncestors": true,
    "cleanupFailedStaging": true,
    "threatModel": "trusted local operator and repository; protection targets accidental overwrite, partial publication, concurrent publication, and symlink redirection detectable through public Node/Bun filesystem APIs",
    "nativeOpenatAddon": false
  },
  "paidCallsAtFreeze": {
    "screening": 0,
    "confirmation": 0,
    "total": 0
  },
  "prohibitions": [
    "no gate weakening",
    "no fixture-specific gravity hints",
    "no retry, repair, or best-of selection",
    "no post-hoc prompt edits",
    "no post-hoc matrix or seed edits",
    "no confirmation without one eligible config",
    "no historical artifact overwrite",
    "no scoring from raw bytes that are not bound to the captured terminal batch record"
  ]
}
