SEPL Runtime Schema

English UI contract for the SEPL semantic compiler. The planning backend maps Spanish prose into relation IR and package-affordance plans; controlled Castillan execution is exposed separately through the backed Python adapter.

Runtime Contract

EndpointMethodPurpose
/api/manifestGETReturns SEPL intent, extension points, policies, targets, and the canonical seed source.
/api/schemaGETReturns the machine-readable IR contract used by the workbench.
/api/compilePOSTTransforms source prose into deterministic relation nodes and package affordances.
/api/validatePOSTChecks IR structure, extension bindings, concepts, and truth notes.
/api/runPOSTCompiles, validates, applies policy, computes source grounding, and returns telemetry.
/api/executePOSTCompiles controlled Castillan, executes it through the Python adapter, and returns node results plus learning evidence.
/api/simulatePOSTRuns the planning pipeline against an existing IR object.
/api/packages/installPOSTInstalls and indexes a Python or Node package, returning its capability count.
/api/llm/statusGETReports the configured local neural host, backend, model, and explicit errors.
/api/gaia/statusGETAlias for the GAIA local-host status contract.
/api/training/statusGETReports whether PEFT can train from the configured Hugging Face checkpoint.
/api/learning/triggerPOSTAttempts a manual training cycle and reports insufficient data or missing prerequisites as failure.
/api/telemetryGETReports runtime status plus real Python and Node availability inventory.

Intermediate Representation

{
  "language": "SEPL",
  "version": "0.3.1",
  "source_language": "Castilian Spanish",
  "canonical_intent": "non-logical programming language workbench",
  "source_hash": "sha256",
  "node_count": 9,
  "nodes": [
    {
      "id": "node-stablehash",
      "order": 1,
      "kind": "package_affordance",
      "text": "Source sentence",
      "extension_point": "package-affordance-index",
      "capabilities": ["package-affordance-index"],
      "concepts": ["python_ecosystem", "node_ecosystem"],
      "grounding": 0.75
    }
  ],
  "package_affordances": {
    "ecosystems": ["node-javascript-typescript", "python"],
    "affordance": "package import mapping",
    "execution_claim": "not executed by this prototype backend"
  },
  "truth_notes": [
    "The backend performs deterministic semantic analysis and planning.",
    "The planning backend does not execute package calls; /api/execute reports backed controlled Python execution separately."
  ]
}

Extension Points

IDRole
public-language-parserParses Castilian Spanish and English prose into stable relation nodes.
neural-substrate-mapMarks claims about the neural layer between public language and machine execution.
package-affordance-indexMaps Node.js, JavaScript, TypeScript, and Python ecosystems as computational material.
nonlogical-relation-linkerPreserves relations that intentionally exceed deductive or algebraic form.
execution-plan-ledgerProduces reviewable plans while labeling unimplemented execution adapters truthfully.
telemetry-and-validationReports grounding, runtime inventory, and mismatches without dummy success claims.