← Files TokenXARCHIVED FILE

schemas/smart-classifier.schema.json

2.14 KB · Oct 2, 2026 · 00:29 UTC

↓ Download file

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:tokenx:schema:smart-classifier:v3",
  "title": "TokenX smart classifier result",
  "type": "object",
  "additionalProperties": false,
  "required": ["route", "reason", "confidence", "taskProfile", "delegationMode", "assignments"],
  "properties": {
    "route": { "enum": ["economy", "standard", "deep"] },
    "reason": { "enum": ["routine_bounded", "normal_engineering", "complex_engineering", "safety_sensitive", "ambiguous_diagnosis", "parallelizable_work"] },
    "confidence": { "enum": ["low", "medium", "high"] },
    "taskProfile": { "enum": ["read", "file_edit", "implementation", "complex_implementation", "analysis", "architecture", "retry"] },
    "delegationMode": { "enum": ["none", "classifier_proposed"] },
    "assignments": {
      "type": "array",
      "minItems": 0,
      "maxItems": 4,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["assignmentId", "role", "profileKey", "reasoningEffort", "taskProfile", "promptTemplateKey", "ordinal", "objectiveKey", "evidenceKey"],
        "properties": {
          "assignmentId": { "type": "string", "minLength": 1, "maxLength": 32, "pattern": "^a[1-9][0-9]*$" },
          "role": { "enum": ["repo_reader", "repo_reviewer", "test_runner", "file_editor", "implementer"] },
          "profileKey": { "enum": ["economy", "standard", "deep"] },
          "reasoningEffort": { "enum": ["low", "medium", "high", "xhigh", "max", "ultra"] },
          "taskProfile": {
            "enum": ["read", "file_edit", "implementation", "complex_implementation", "analysis", "architecture"]
          },
          "promptTemplateKey": { "enum": ["repo_reader", "repo_reviewer", "test_runner", "file_editor", "implementer"] },
          "ordinal": { "type": "integer", "minimum": 1, "maximum": 4 },
          "objectiveKey": { "enum": ["repo_map", "independent_review", "focused_test", "scoped_file_edit", "implementation_slice"] },
          "evidenceKey": { "enum": ["facts_with_references", "ranked_findings", "command_results", "allowed_file_diff", "diff_and_verification"] }
        }
      }
    }
  }
}

SHA-256: 75a18e5066700db922a7892c047171c2702a0a3dfc919dd4c452865fde3cc9ee