{
  "status": "SOURCE_ONLY_PARAMETERIZED_NOT_EXECUTABLE_NO_FRESH_PERMISSION",
  "marker": "CDXPPFORM11",
  "scope": {
    "future_sides": [
      "B",
      "C"
    ],
    "current_DB": 0,
    "current_SQL": 0,
    "current_DML": 0,
    "current_DDL": 0,
    "current_HTTP": 0,
    "current_Auth": 0,
    "no_payments": true,
    "no_device_outbound": true
  },
  "prerequisites": [
    "Root accepts independent final old2/date-map/other22/6index/definition audit of actual formal receipt723550...; formal code may never replay",
    "Separate Root fresh approval for current equipment/prepay/meal_order/config/actor/restaurant/auth/financial protections",
    "Fresh complete meal_order field set per side; C prior111→112 bank_user_name; never hard-code111 or invent extra schema",
    "Only Root959/AI accepted full source/runtime included hashes; separately frozen private real appkey/signature/new short-token auth chain",
    "Resolve every bind and PHP/PDO type; freeze immutable private executable machine plan before any equipment/API write"
  ],
  "equipment_prepare": {
    "columns": [
      "code",
      "name",
      "type",
      "print_receipt",
      "sn",
      "restaurant_id",
      "status",
      "del_flag",
      "mate_flag",
      "hearttime",
      "create_time",
      "create_by",
      "update_time",
      "update_by"
    ],
    "SQL_B": "INSERT INTO ydy_equipment (code,name,type,print_receipt,sn,restaurant_id,status,del_flag,mate_flag,hearttime,create_time,create_by,update_time,update_by) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
    "SQL_C": "INSERT INTO ZHCT_APP.YDY_EQUIPMENT (CODE,NAME,TYPE,PRINT_RECEIPT,SN,RESTAURANT_ID,STATUS,DEL_FLAG,MATE_FLAG,HEARTTIME,CREATE_TIME,CREATE_BY,UPDATE_TIME,UPDATE_BY) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
    "binds": [
      "CDXPPFORM11_E1",
      "CDXPPFORM11_E1",
      60,
      0,
      "CDXPPFORM11_M1",
      {
        "resolve": "fresh.owned_restaurant_id",
        "PHP_type": "integer"
      },
      2,
      0,
      0,
      0,
      {
        "resolve": "fresh.local_clock19",
        "PHP_type": "string"
      },
      "CDXPPFORM11",
      {
        "resolve": "fresh.local_clock19",
        "PHP_type": "string"
      },
      "CDXPPFORM11"
    ],
    "PDO_types": [
      2,
      2,
      1,
      1,
      2,
      1,
      1,
      1,
      1,
      1,
      2,
      2,
      2,
      2
    ],
    "max_rows": 1,
    "current_permission": false,
    "gate": "Only if every other actual equipment field has original valid default/nullable/identity; audit four explicit values mandatory; SN/code collision0. No UUID field guess."
  },
  "requests": [
    {
      "ordinal": 1,
      "label": "NEW_STORE_CODE",
      "method": "POST",
      "path": "/api/prepayOrder/code",
      "content_type": "application/x-www-form-urlencoded",
      "ordered_fields": [
        [
          "orderid",
          "CDXPPFORM11_A1"
        ],
        [
          "machid",
          "CDXPPFORM11_M1"
        ],
        [
          "timestamp",
          {
            "resolve": "private.fresh_timestamp_decimal_string"
          }
        ],
        [
          "randstr",
          {
            "resolve": "private.fresh_unique_ascii_randstr"
          }
        ],
        [
          "sign",
          {
            "resolve": "private.sha1_sort_string_real_appkey_timestamp_randstr"
          }
        ],
        [
          "trackno",
          "P1"
        ],
        [
          "name",
          "CDXPPFORM11_COFFEE"
        ],
        [
          "price",
          "1"
        ],
        [
          "channelid",
          "POC"
        ]
      ],
      "Store_Access_Token": "NONE: original beforeActionList empty, not an Auth stub",
      "expected_original_response": {
        "orderid": {
          "PHP_type": "string",
          "value": "CDXPPFORM11_A1"
        },
        "torderid": {
          "PHP_type": "string",
          "resolve": "new_actual_prepay_identity"
        },
        "twocode": {
          "PHP_type": "string",
          "template": "type=200&torderid=<actual-new-prepay-ID>"
        },
        "code": {
          "PHP_type": "string",
          "value": "1"
        },
        "msg": {
          "PHP_type": "string",
          "value": "成功"
        }
      },
      "once": "Persist original response before observer; error/unknown or postINSERT failure never replay."
    },
    {
      "ordinal": 2,
      "label": "NEW_AI_SCAN_FIRST_BIND",
      "method": "POST",
      "path": "/api/PrepayOrder/scan",
      "headers": {
        "Access-Token": {
          "resolve": "private.new_owned_short_token_via_original_cache_profile_storeUser_password_version_checks"
        }
      },
      "body": {
        "type": "200",
        "torderid": {
          "resolve": "code.original.torderid",
          "PHP_type": "string"
        }
      },
      "expected_original_response": {
        "status": {
          "PHP_type": "integer",
          "value": 200
        },
        "message": {
          "PHP_type": "string",
          "value": "订单创建成功"
        },
        "data": {
          "orderId": {
            "PHP_type": "integer",
            "resolve": "new_pending_meal_identity"
          },
          "isPay": {
            "PHP_type": "integer",
            "value": 1
          }
        },
        "trace_id": {
          "PHP_type": "string",
          "gate": "original nonempty"
        }
      },
      "once": "One real first bind; never old P1/reset/repeat/payResult/fulfillResult/DirectPay."
    }
  ],
  "between_requests": {
    "wait_outside_worker_ms": 1100,
    "one_clock_read": true,
    "clock_gate": "actual same-DB CURRENT_TIMESTAMP(0) strictly greater than code snapshot UPDATE_TIME; otherwise stop before scan, never resubmit code"
  },
  "physical_oracle": {
    "code_new_prepay": "27 actual columns; prepay_status2/ship_status0/meal_order_id0/user_id0, fresh real identity/device/R/rawpost/QR; fivefsp0 whole seconds",
    "scan_prepay_allowed_delta": [
      "MEAL_ORDER_ID",
      "MEAL_ORDER_NO",
      "USER_ID",
      "UPDATE_BY",
      "UPDATE_TIME"
    ],
    "scan_prepay_frozen_columns": 22,
    "scan_all4LOB_bytes_native_types": "strict code->scan unchanged",
    "scan_update_time": "strictly later than code value and within actual before/after sameDB whole clock",
    "scan_new_meal_order": "Fresh full current schema field set including bank_user_name actual default empty string; server amount CAST0.01, source8, pay_status10, order_status10, pay_method balance, restaurant_method1; pending not paid",
    "old_preprotected": "Every frozen old P1/0.01/0.02/order/wallet/staff/storeUser/settlement/fund/log full row/type/bytes unchanged; use fresh exact balances, not old report numeric assumption"
  },
  "proposed_later_caps": {
    "per_side_HTTP": 2,
    "explicit_equipment_prepare_INSERT": 1,
    "source_internal_code": {
      "INSERT": 1,
      "UPDATE": 1
    },
    "source_internal_scan": {
      "INSERT": 1,
      "UPDATE": 1
    },
    "total_per_side": {
      "INSERT": 3,
      "UPDATE": 2,
      "DELETE": 0,
      "DDL": 0,
      "payment_calls": 0,
      "device_calls": 0
    },
    "fresh_and_observer_readonly_ceiling_per_side": 120,
    "Store_code_native_statement_upper_bound": {
      "B": 24,
      "C": 48
    },
    "AI_scan_native_statement_upper_bound": {
      "B": 30,
      "C": 60
    },
    "status": "PROPOSAL_ONLY_NOT_CURRENT_AUTHORIZATION; exact read ledger/native SQL shape/binds need fresh freeze"
  },
  "retention": "Leave only NEW own equipment/P/pendingorder marked for Root review; no business delete/cancel/expiry. Remove only later-authorized new token/cache/worker/port, not Root/other runtime.",
  "formal_schema_receipt": {
    "status": "ROOT_ACTUAL_COMPLETE_INDEPENDENT_FINAL_AUDIT_PENDING",
    "executor": "ROOT_ONLY_NOT_WORKER",
    "raw_canonical": "/Users/wiscourper/Documents/workspace/local/dm8-prepay-formal-root-evidence-20261011.6Sibqq/events.jsonl",
    "raw_sha256": "7235505367496cf281c30ea7c2fb570b850a31ee747d2d8c0dcd16b645337aca",
    "bytes": 373903,
    "actual_counts": {
      "read": 52,
      "DDL": 2,
      "DML": 0,
      "HTTP": 0,
      "Auth": 0
    },
    "new_schema": "All5 Prepay datesfsp0/source defaults0; TRG_YDY_PREPAY_ORDER_UT actually exists. Never replay formal launch.",
    "future_old_prepay_baseline": "Use accepted Root receipt AFTER calibration, not old preALTER date/raw hash. Other22 fullnative/LOB remain protected; all ten old date cells allow only exact approved map."
  }
}
