=== META ===
{
  "id": "GTPX-SEMANTICS",
  "title": "GTPX Semantics",
  "version": "0.1.0",
  "status": "draft",
  "updated": "2026-04-25",
  "authority": "03_language/GTPX-SEMANTICS.gtpx",
  "type": "language_semantics",
  "project": "GTPX",
  "depends_on": [
    "03_language/GTPX-DICTIONARY.gtpx",
    "03_language/GTPX-SYNTAX.gtpx"
  ]
}

=== DATA ===
{
  "purpose": "Defines the meaning of GTPX structural elements, states, and execution terms.",

  "semantic_policy": {
    "meaning_must_be_explicit": true,
    "same_term_must_have_same_meaning_everywhere": true,
    "contextual_redefinition_is_forbidden": true,
    "implicit_meaning_is_forbidden": true
  },

  "states": {
   "planned": "Defined as intended future work, not yet active.",
   "draft": "Written but not yet accepted as stable.",
   "review": "Under analysis for correctness, completeness, and conflicts.",
   "accepted": "Approved for use but not yet locked as stable.",
   "stable": "Accepted, validated, and treated as authoritative.",
   "deprecated": "No longer recommended but retained for compatibility.",
   "rejected": "Invalid and not allowed for use."
  },

  "execution_terms": {
    "complete": "All required data is present.",
    "valid": "All required data satisfies structure and rules.",
    "blocked": "Execution cannot continue.",
    "fail_closed": "Execution must stop when required data or validation is missing."
  },

  "request_semantics": {
    "CONTRACT": "Defines rules, constraints, permissions, source requirements, and output limits for the request.",
    "AGENT": "Defines the AI model or processing entity allowed to handle the request.",
    "PURPOSE": "Defines why the request exists.",
    "CONTEXT": "Defines the information background needed to interpret the request.",
    "SOURCE_SET": "Defines the sources allowed or required for processing.",
    "FILE_SET": "Defines files attached, referenced, or required for processing.",
    "REQUEST": "Defines the concrete task to be performed.",
    "EXPECTED_OUTPUT": "Defines the required response form, structure, and level of detail.",
    "PAYLOAD_HASH": "Defines the integrity hash of the payload.",
    "END_OF_MESSAGE": "Marks the explicit end of the request."
  },

  "response_semantics": {
    "ACK": "Confirms whether the request was received, read, and structurally recognized.",
    "STATUS": "Defines current processing state.",
    "SUMMARY": "Provides a concise summary of understood input.",
    "MISSING_CONTEXT": "Lists missing data required for valid execution.",
    "ANALYSIS": "Provides structured reasoning output allowed by the contract.",
    "RISKS": "Lists identified risks, conflicts, or uncertainties.",
    "PROPOSED_ACTIONS": "Lists possible next actions without committing changes.",
    "PATCH": "Defines explicit proposed modifications.",
    "DRY_RUN": "Simulates expected result without applying changes.",
    "NEXT_STEP": "Defines the next valid action."
  }
}

=== RULES ===
{
  "semantic_meaning_is_authoritative": true,
  "terms_must_not_be_redefined": true,
  "states_must_match_registry_allowed_status_values": true,
  "request_sections_must_match_syntax": true,
  "response_sections_must_match_syntax": true,
  "undefined_meaning_is_invalid": true
}

=== STATUS ===
{
  "state": "draft",
  "open_questions": [],
  "next_step": "Proceed to 04_contract/GTPX-CONTRACT-MODEL.gtpx."
}