{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://failurerebooting.jordanwick.com/schema/submission/v0.2.json",
  "title": "Failure Rebooting Challenge submission",
  "description": "Draft v0.2. One entry proposing that an old, abandoned hypothesis be revisited.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "title",
    "summary",
    "original_hypothesis",
    "why_abandoned",
    "what_changed",
    "revival_proposal",
    "submitters",
    "ai_use"
  ],
  "properties": {
    "schema_version": {
      "const": "0.2"
    },
    "title": {
      "type": "string",
      "minLength": 5,
      "maxLength": 120
    },
    "summary": {
      "type": "string",
      "minLength": 50,
      "maxLength": 500,
      "description": "Plain-language pitch: the old idea, why it was dropped, why now."
    },
    "fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "maxItems": 4,
      "description": "Use the LabSpan field vocabulary, e.g. neuroscience, materials_science."
    },
    "original_hypothesis": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "statement",
        "first_proposed_year",
        "sources"
      ],
      "properties": {
        "statement": {
          "type": "string",
          "minLength": 20,
          "maxLength": 1000,
          "description": "The claim as originally made, in your words."
        },
        "first_proposed_year": {
          "type": "integer",
          "minimum": 1600,
          "maximum": 2100
        },
        "sources": {
          "type": "array",
          "minItems": 1,
          "maxItems": 20,
          "items": {
            "$ref": "#/$defs/source"
          }
        }
      }
    },
    "why_abandoned": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "category",
        "explanation",
        "evidence"
      ],
      "properties": {
        "category": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "enum": [
              "lacked_tools",
              "lacked_data",
              "too_expensive",
              "failed_replication_flawed",
              "contradicted_by_later_work",
              "funding_ended",
              "fashion_or_paradigm",
              "language_or_access_barrier",
              "political",
              "key_people_left",
              "commercial_shelving",
              "other",
              "unknown"
            ]
          }
        },
        "explanation": {
          "type": "string",
          "minLength": 50,
          "maxLength": 2000
        },
        "evidence": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/source"
          }
        },
        "known_counter_evidence": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/source"
          },
          "description": "Work that argues against the hypothesis, and why it is not decisive."
        },
        "prior_revival_attempts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/source"
          }
        },
        "other_reason": {
          "type": "string",
          "minLength": 3,
          "maxLength": 200,
          "description": "Required when category includes \"other\": your own short name for the abandonment reason. Recurring answers get promoted into the vocabulary."
        }
      },
      "if": {
        "properties": {
          "category": {
            "contains": {
              "const": "other"
            }
          }
        },
        "required": [
          "category"
        ]
      },
      "then": {
        "required": [
          "other_reason"
        ]
      }
    },
    "what_changed": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "explanation",
        "enablers"
      ],
      "properties": {
        "explanation": {
          "type": "string",
          "minLength": 50,
          "maxLength": 2000
        },
        "enablers": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "kind",
              "description"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "tool_or_instrument",
                  "dataset",
                  "method",
                  "theory",
                  "cost_drop",
                  "compute_or_ai",
                  "other"
                ]
              },
              "description": {
                "type": "string",
                "maxLength": 500
              },
              "year_available": {
                "type": "integer"
              },
              "source": {
                "$ref": "#/$defs/source"
              }
            }
          }
        }
      }
    },
    "revival_proposal": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "hypothesis_today",
        "prediction",
        "kill_criterion",
        "first_test"
      ],
      "properties": {
        "hypothesis_today": {
          "type": "string",
          "minLength": 20,
          "maxLength": 1000,
          "description": "The claim restated so it can be tested with today's tools."
        },
        "prediction": {
          "type": "string",
          "maxLength": 1000,
          "description": "What the first test should show if the hypothesis is right."
        },
        "kill_criterion": {
          "type": "string",
          "maxLength": 1000,
          "description": "The result that would make you drop it again."
        },
        "first_test": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "description",
            "mode",
            "estimated_cost_usd",
            "estimated_duration_weeks"
          ],
          "properties": {
            "description": {
              "type": "string",
              "minLength": 50,
              "maxLength": 3000
            },
            "mode": {
              "enum": [
                "computational",
                "wet_lab",
                "field",
                "clinical",
                "mixed"
              ]
            },
            "needs_equipment": {
              "type": "boolean"
            },
            "equipment": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "access_route": {
                    "enum": [
                      "own_lab",
                      "core_facility",
                      "national_user_facility",
                      "cro",
                      "cloud_lab",
                      "unknown"
                    ]
                  },
                  "labspan_org_unit_id": {
                    "type": "string"
                  }
                }
              }
            },
            "datasets_needed": {
              "type": "array",
              "description": "Resolved against LabSpan where possible. Entries with exists=false become dataset requests.",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "description",
                  "exists"
                ],
                "properties": {
                  "description": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "exists": {
                    "enum": [
                      true,
                      false,
                      "unknown"
                    ]
                  },
                  "labspan_dataset_id": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "access": {
                    "enum": [
                      "open",
                      "open_with_account",
                      "on_request",
                      "restricted",
                      "paywalled",
                      "unknown"
                    ]
                  }
                }
              }
            },
            "estimated_cost_usd": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "low",
                "high"
              ],
              "properties": {
                "low": {
                  "type": "number",
                  "minimum": 0
                },
                "high": {
                  "type": "number",
                  "minimum": 0
                },
                "basis": {
                  "type": "string",
                  "maxLength": 500,
                  "description": "Quote, price list or reasoning behind the number."
                }
              }
            },
            "estimated_duration_weeks": {
              "type": "number",
              "minimum": 0,
              "maximum": 520
            },
            "skills_needed": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "next_steps_if_positive": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 500
          },
          "maxItems": 10
        }
      }
    },
    "impact": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "if_true": {
          "type": "string",
          "maxLength": 1500
        },
        "who_benefits": {
          "type": "string",
          "maxLength": 500
        }
      }
    },
    "risks_and_ethics": {
      "type": "string",
      "maxLength": 1500,
      "description": "Safety, dual-use, human/animal subjects, and reasons it could be a dead end."
    },
    "video": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "url"
      ],
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "duration_seconds": {
          "type": "integer",
          "minimum": 1,
          "maximum": 180
        },
        "transcript_url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "submitters": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "role"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "orcid": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]$"
          },
          "affiliation": {
            "type": "string"
          },
          "role": {
            "enum": [
              "lead",
              "contributor",
              "domain_advisor"
            ]
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Never shown publicly."
          }
        }
      }
    },
    "ai_use": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "enum": [
            "human_only",
            "ai_assisted",
            "fully_ai_agent"
          ],
          "description": "fully_ai_agent: an AI agent found and wrote the entry end to end; a named human still vouches for it."
        },
        "tools": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": "string",
          "maxLength": 1000
        }
      }
    },
    "tools_used": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Search tools and corpora used, e.g. openalex, scite, labspan, jprs."
    },
    "conflicts_of_interest": {
      "type": "string",
      "maxLength": 1000
    },
    "willing_to_run_test": {
      "type": "boolean"
    }
  },
  "$defs": {
    "source": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id_type",
        "id",
        "year"
      ],
      "properties": {
        "id_type": {
          "enum": [
            "doi",
            "openalex",
            "pmid",
            "osti",
            "ntrs",
            "dtic",
            "jprs",
            "patent",
            "clinicaltrials_gov",
            "isbn",
            "url",
            "other"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 3
        },
        "year": {
          "type": "integer",
          "minimum": 1600,
          "maximum": 2100
        },
        "title": {
          "type": "string"
        },
        "original_language": {
          "type": "string",
          "description": "BCP 47 code of the language the source was written in, e.g. ru, zh, de. Non-English sources earn the \"lost in translation\" badge."
        },
        "translation_source": {
          "type": "string",
          "description": "If read in translation: which translation (e.g. JPRS report number, Springer cover-to-cover journal)."
        },
        "quote": {
          "type": "string",
          "maxLength": 1500,
          "description": "The passage that supports your claim."
        }
      }
    }
  }
}