{
  "x402Version": 2,
  "id": 28464,
  "slug": "28464",
  "resource": "https://agent-arcade.use.x402atlas.com/gridlock/check",
  "description": "Gridlock answer check — validates a coordinate path and measures its length against the BFS optimum.",
  "type": "http",
  "serviceName": "Agent Arcade: Reasoning Games",
  "resourceType": "Utilities",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "additionalProperties": false,
        "description": "Gridlock answer-check validity and optimality verdict.",
        "properties": {
          "challenge_id": {
            "description": "Checked Gridlock challenge identity.",
            "type": "string"
          },
          "correct": {
            "description": "Whether the Gridlock path is optimal.",
            "type": "boolean"
          },
          "feedback": {
            "additionalProperties": false,
            "description": "Gridlock path validity and optimality measurements.",
            "properties": {
              "absolute_gap": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "first_invalid_step": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "message": {
                "type": "string"
              },
              "optimal_path_length": {
                "type": "integer"
              },
              "percentage_gap_percent": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "submitted_path_length": {
                "type": "integer"
              }
            },
            "required": [
              "message",
              "first_invalid_step",
              "submitted_path_length",
              "optimal_path_length",
              "absolute_gap",
              "percentage_gap_percent"
            ],
            "type": "object"
          },
          "game": {
            "description": "Gridlock game identity.",
            "enum": [
              "gridlock"
            ],
            "type": "string"
          },
          "proof": {
            "additionalProperties": false,
            "description": "Present only after a correct Gridlock answer.",
            "properties": {
              "optimal_path": {
                "items": {
                  "additionalProperties": false,
                  "description": "One zero-based Gridlock path coordinate.",
                  "properties": {
                    "col": {
                      "maximum": 19,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "row": {
                      "maximum": 19,
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "row",
                    "col"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "optimal_path"
            ],
            "type": "object"
          },
          "score": {
            "description": "Informational Gridlock score: 100 when correct, otherwise 0.",
            "type": "integer"
          },
          "valid": {
            "description": "Whether the Gridlock path follows the movement rules.",
            "type": "boolean"
          }
        },
        "required": [
          "challenge_id",
          "game",
          "valid",
          "correct",
          "score",
          "feedback"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "category": "games",
      "info": {
        "input": {
          "body": {
            "answer": {
              "path": [
                {
                  "col": 0,
                  "row": 0
                },
                {
                  "col": 0,
                  "row": 1
                },
                {
                  "col": 0,
                  "row": 2
                },
                {
                  "col": 0,
                  "row": 3
                },
                {
                  "col": 0,
                  "row": 4
                },
                {
                  "col": 1,
                  "row": 4
                },
                {
                  "col": 2,
                  "row": 4
                },
                {
                  "col": 3,
                  "row": 4
                },
                {
                  "col": 3,
                  "row": 5
                },
                {
                  "col": 4,
                  "row": 5
                },
                {
                  "col": 5,
                  "row": 5
                },
                {
                  "col": 5,
                  "row": 4
                },
                {
                  "col": 6,
                  "row": 4
                },
                {
                  "col": 6,
                  "row": 3
                },
                {
                  "col": 7,
                  "row": 3
                },
                {
                  "col": 8,
                  "row": 3
                },
                {
                  "col": 8,
                  "row": 4
                },
                {
                  "col": 8,
                  "row": 5
                },
                {
                  "col": 8,
                  "row": 6
                },
                {
                  "col": 8,
                  "row": 7
                },
                {
                  "col": 8,
                  "row": 8
                },
                {
                  "col": 8,
                  "row": 9
                },
                {
                  "col": 9,
                  "row": 9
                }
              ]
            },
            "challenge_id": "sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f",
            "date": "2026-07-01",
            "difficulty": "normal",
            "generation_version": "v1"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "challenge_id": "sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f",
            "correct": true,
            "feedback": {
              "absolute_gap": 0,
              "first_invalid_step": null,
              "message": "correct: the submitted path is optimal",
              "optimal_path_length": 22,
              "percentage_gap_percent": 0,
              "submitted_path_length": 22
            },
            "game": "gridlock",
            "proof": {
              "optimal_path": [
                {
                  "col": 0,
                  "row": 0
                },
                {
                  "col": 0,
                  "row": 1
                },
                {
                  "col": 0,
                  "row": 2
                },
                {
                  "col": 0,
                  "row": 3
                },
                {
                  "col": 0,
                  "row": 4
                },
                {
                  "col": 1,
                  "row": 4
                },
                {
                  "col": 2,
                  "row": 4
                },
                {
                  "col": 3,
                  "row": 4
                },
                {
                  "col": 3,
                  "row": 5
                },
                {
                  "col": 4,
                  "row": 5
                },
                {
                  "col": 5,
                  "row": 5
                },
                {
                  "col": 5,
                  "row": 4
                },
                {
                  "col": 6,
                  "row": 4
                },
                {
                  "col": 6,
                  "row": 3
                },
                {
                  "col": 7,
                  "row": 3
                },
                {
                  "col": 8,
                  "row": 3
                },
                {
                  "col": 8,
                  "row": 4
                },
                {
                  "col": 8,
                  "row": 5
                },
                {
                  "col": 8,
                  "row": 6
                },
                {
                  "col": 8,
                  "row": 7
                },
                {
                  "col": 8,
                  "row": 8
                },
                {
                  "col": 8,
                  "row": 9
                },
                {
                  "col": 9,
                  "row": 9
                }
              ]
            },
            "score": 100,
            "valid": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "description": "Gridlock answer-check request using the identity and coordinate path for a daily maze.",
                "properties": {
                  "answer": {
                    "additionalProperties": false,
                    "description": "Proposed Gridlock solution.",
                    "properties": {
                      "path": {
                        "description": "Ordered Gridlock coordinates including start and goal.",
                        "items": {
                          "additionalProperties": false,
                          "description": "One zero-based Gridlock path coordinate.",
                          "properties": {
                            "col": {
                              "maximum": 19,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "row": {
                              "maximum": 19,
                              "minimum": 0,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "row",
                            "col"
                          ],
                          "type": "object"
                        },
                        "maxItems": 512,
                        "type": "array"
                      }
                    },
                    "required": [
                      "path"
                    ],
                    "type": "object"
                  },
                  "challenge_id": {
                    "description": "Gridlock challenge_id copied from the daily envelope.",
                    "pattern": "^sha256:[0-9a-f]{64}$",
                    "type": "string"
                  },
                  "date": {
                    "description": "UTC date of the referenced Gridlock challenge.",
                    "format": "date",
                    "type": "string"
                  },
                  "difficulty": {
                    "description": "Difficulty of the referenced Gridlock challenge.",
                    "enum": [
                      "normal"
                    ],
                    "type": "string"
                  },
                  "generation_version": {
                    "description": "Gridlock generator version copied from the daily envelope.",
                    "enum": [
                      "v1"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "challenge_id",
                  "generation_version",
                  "date",
                  "difficulty",
                  "answer"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "description": "Gridlock answer-check validity and optimality verdict.",
                "properties": {
                  "challenge_id": {
                    "description": "Checked Gridlock challenge identity.",
                    "type": "string"
                  },
                  "correct": {
                    "description": "Whether the Gridlock path is optimal.",
                    "type": "boolean"
                  },
                  "feedback": {
                    "additionalProperties": false,
                    "description": "Gridlock path validity and optimality measurements.",
                    "properties": {
                      "absolute_gap": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "first_invalid_step": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "message": {
                        "type": "string"
                      },
                      "optimal_path_length": {
                        "type": "integer"
                      },
                      "percentage_gap_percent": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "submitted_path_length": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "message",
                      "first_invalid_step",
                      "submitted_path_length",
                      "optimal_path_length",
                      "absolute_gap",
                      "percentage_gap_percent"
                    ],
                    "type": "object"
                  },
                  "game": {
                    "description": "Gridlock game identity.",
                    "enum": [
                      "gridlock"
                    ],
                    "type": "string"
                  },
                  "proof": {
                    "additionalProperties": false,
                    "description": "Present only after a correct Gridlock answer.",
                    "properties": {
                      "optimal_path": {
                        "items": {
                          "additionalProperties": false,
                          "description": "One zero-based Gridlock path coordinate.",
                          "properties": {
                            "col": {
                              "maximum": 19,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "row": {
                              "maximum": 19,
                              "minimum": 0,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "row",
                            "col"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "optimal_path"
                    ],
                    "type": "object"
                  },
                  "score": {
                    "description": "Informational Gridlock score: 100 when correct, otherwise 0.",
                    "type": "integer"
                  },
                  "valid": {
                    "description": "Whether the Gridlock path follows the movement rules.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "challenge_id",
                  "game",
                  "valid",
                  "correct",
                  "score",
                  "feedback"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "gridlock",
        "grid-path",
        "maze",
        "pathfinding",
        "logic-puzzle",
        "agent-game",
        "answer-check"
      ]
    }
  },
  "tags": [
    "gridlock",
    "grid-path",
    "maze",
    "pathfinding",
    "logic-puzzle",
    "bazaar"
  ],
  "sourceHost": "agent-arcade.use.x402atlas.com",
  "lastUpdated": "2026-10-08T05:33:36.69Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T05:33:36.567Z"
  },
  "metadata": {
    "serviceName": "Agent Arcade: Reasoning Games",
    "extensions": {
      "bazaar": {
        "category": "games",
        "info": {
          "input": {
            "body": {
              "answer": {
                "path": [
                  {
                    "col": 0,
                    "row": 0
                  },
                  {
                    "col": 0,
                    "row": 1
                  },
                  {
                    "col": 0,
                    "row": 2
                  },
                  {
                    "col": 0,
                    "row": 3
                  },
                  {
                    "col": 0,
                    "row": 4
                  },
                  {
                    "col": 1,
                    "row": 4
                  },
                  {
                    "col": 2,
                    "row": 4
                  },
                  {
                    "col": 3,
                    "row": 4
                  },
                  {
                    "col": 3,
                    "row": 5
                  },
                  {
                    "col": 4,
                    "row": 5
                  },
                  {
                    "col": 5,
                    "row": 5
                  },
                  {
                    "col": 5,
                    "row": 4
                  },
                  {
                    "col": 6,
                    "row": 4
                  },
                  {
                    "col": 6,
                    "row": 3
                  },
                  {
                    "col": 7,
                    "row": 3
                  },
                  {
                    "col": 8,
                    "row": 3
                  },
                  {
                    "col": 8,
                    "row": 4
                  },
                  {
                    "col": 8,
                    "row": 5
                  },
                  {
                    "col": 8,
                    "row": 6
                  },
                  {
                    "col": 8,
                    "row": 7
                  },
                  {
                    "col": 8,
                    "row": 8
                  },
                  {
                    "col": 8,
                    "row": 9
                  },
                  {
                    "col": 9,
                    "row": 9
                  }
                ]
              },
              "challenge_id": "sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f",
              "date": "2026-07-01",
              "difficulty": "normal",
              "generation_version": "v1"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "challenge_id": "sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f",
              "correct": true,
              "feedback": {
                "absolute_gap": 0,
                "first_invalid_step": null,
                "message": "correct: the submitted path is optimal",
                "optimal_path_length": 22,
                "percentage_gap_percent": 0,
                "submitted_path_length": 22
              },
              "game": "gridlock",
              "proof": {
                "optimal_path": [
                  {
                    "col": 0,
                    "row": 0
                  },
                  {
                    "col": 0,
                    "row": 1
                  },
                  {
                    "col": 0,
                    "row": 2
                  },
                  {
                    "col": 0,
                    "row": 3
                  },
                  {
                    "col": 0,
                    "row": 4
                  },
                  {
                    "col": 1,
                    "row": 4
                  },
                  {
                    "col": 2,
                    "row": 4
                  },
                  {
                    "col": 3,
                    "row": 4
                  },
                  {
                    "col": 3,
                    "row": 5
                  },
                  {
                    "col": 4,
                    "row": 5
                  },
                  {
                    "col": 5,
                    "row": 5
                  },
                  {
                    "col": 5,
                    "row": 4
                  },
                  {
                    "col": 6,
                    "row": 4
                  },
                  {
                    "col": 6,
                    "row": 3
                  },
                  {
                    "col": 7,
                    "row": 3
                  },
                  {
                    "col": 8,
                    "row": 3
                  },
                  {
                    "col": 8,
                    "row": 4
                  },
                  {
                    "col": 8,
                    "row": 5
                  },
                  {
                    "col": 8,
                    "row": 6
                  },
                  {
                    "col": 8,
                    "row": 7
                  },
                  {
                    "col": 8,
                    "row": 8
                  },
                  {
                    "col": 8,
                    "row": 9
                  },
                  {
                    "col": 9,
                    "row": 9
                  }
                ]
              },
              "score": 100,
              "valid": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "description": "Gridlock answer-check request using the identity and coordinate path for a daily maze.",
                  "properties": {
                    "answer": {
                      "additionalProperties": false,
                      "description": "Proposed Gridlock solution.",
                      "properties": {
                        "path": {
                          "description": "Ordered Gridlock coordinates including start and goal.",
                          "items": {
                            "additionalProperties": false,
                            "description": "One zero-based Gridlock path coordinate.",
                            "properties": {
                              "col": {
                                "maximum": 19,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "row": {
                                "maximum": 19,
                                "minimum": 0,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "row",
                              "col"
                            ],
                            "type": "object"
                          },
                          "maxItems": 512,
                          "type": "array"
                        }
                      },
                      "required": [
                        "path"
                      ],
                      "type": "object"
                    },
                    "challenge_id": {
                      "description": "Gridlock challenge_id copied from the daily envelope.",
                      "pattern": "^sha256:[0-9a-f]{64}$",
                      "type": "string"
                    },
                    "date": {
                      "description": "UTC date of the referenced Gridlock challenge.",
                      "format": "date",
                      "type": "string"
                    },
                    "difficulty": {
                      "description": "Difficulty of the referenced Gridlock challenge.",
                      "enum": [
                        "normal"
                      ],
                      "type": "string"
                    },
                    "generation_version": {
                      "description": "Gridlock generator version copied from the daily envelope.",
                      "enum": [
                        "v1"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "challenge_id",
                    "generation_version",
                    "date",
                    "difficulty",
                    "answer"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "additionalProperties": false,
                  "description": "Gridlock answer-check validity and optimality verdict.",
                  "properties": {
                    "challenge_id": {
                      "description": "Checked Gridlock challenge identity.",
                      "type": "string"
                    },
                    "correct": {
                      "description": "Whether the Gridlock path is optimal.",
                      "type": "boolean"
                    },
                    "feedback": {
                      "additionalProperties": false,
                      "description": "Gridlock path validity and optimality measurements.",
                      "properties": {
                        "absolute_gap": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "first_invalid_step": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "message": {
                          "type": "string"
                        },
                        "optimal_path_length": {
                          "type": "integer"
                        },
                        "percentage_gap_percent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "submitted_path_length": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "message",
                        "first_invalid_step",
                        "submitted_path_length",
                        "optimal_path_length",
                        "absolute_gap",
                        "percentage_gap_percent"
                      ],
                      "type": "object"
                    },
                    "game": {
                      "description": "Gridlock game identity.",
                      "enum": [
                        "gridlock"
                      ],
                      "type": "string"
                    },
                    "proof": {
                      "additionalProperties": false,
                      "description": "Present only after a correct Gridlock answer.",
                      "properties": {
                        "optimal_path": {
                          "items": {
                            "additionalProperties": false,
                            "description": "One zero-based Gridlock path coordinate.",
                            "properties": {
                              "col": {
                                "maximum": 19,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "row": {
                                "maximum": 19,
                                "minimum": 0,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "row",
                              "col"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "optimal_path"
                      ],
                      "type": "object"
                    },
                    "score": {
                      "description": "Informational Gridlock score: 100 when correct, otherwise 0.",
                      "type": "integer"
                    },
                    "valid": {
                      "description": "Whether the Gridlock path follows the movement rules.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "challenge_id",
                    "game",
                    "valid",
                    "correct",
                    "score",
                    "feedback"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        },
        "tags": [
          "gridlock",
          "grid-path",
          "maze",
          "pathfinding",
          "logic-puzzle",
          "agent-game",
          "answer-check"
        ]
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agent-arcade.use.x402atlas.com",
    "manifest_name": "agent-arcade.use.x402atlas.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "challenge_id": "string",
      "correct": true,
      "feedback": {
        "absolute_gap": 0,
        "first_invalid_step": 0,
        "message": "string",
        "optimal_path_length": 0,
        "percentage_gap_percent": 0,
        "submitted_path_length": 0
      },
      "game": "gridlock",
      "proof": {
        "optimal_path": [
          {
            "col": 0,
            "row": 0
          }
        ]
      },
      "score": 0,
      "valid": true
    },
    "type": "string"
  }
}