clm-kernel 0.0.13

Cubical Logic Model (CLM) sovereign execution engine, CPN-VM, and Cordis spatiotemporal substrate
Documentation
clm:
  abstract_spec:
    context: "Content type for Wavefront OBJ 3D model files."
    goal: "Detect and validate OBJ mesh payloads used in 3D modeling."
    success_criteria:
      - "Content is text-encoded with vertex/face definitions"
      - "Lines begin with 'v ', 'vt ', 'vn ', 'f ', or comment '#'"
  concrete_impl:
    runtime: system
    operation: ci_validate_model_obj
    universe_level: 0
    content_type:
      mime: "model/obj"
      extension: "obj"
      category: "blob"
      encoding: text
      detection_rules:
        text_patterns:
          - "^v "
          - "^# "
          - "^f "
          - "^mtllib "
    schema:
      constraints:
        type_check: "is_text"
        description: "Valid Wavefront OBJ 3D model file."
    inputs:
      payload: "blob — raw file bytes"
    outputs:
      is_valid: "boolean"
      mime_type: "string"
    process:
      type: python
      python_version: ">=3.10"
      script: |
        from clm.layer2.mime import validate
        if not extra_args:
            sys.exit("Usage: ci_validate_model_obj <file>")
        if not validate(clm_root, extra_args[0], "model/obj"):
            sys.exit(1)
    precondition:
      vcard_pre: gate:payload_nonempty
    postcondition:
      vcard_post: gate:result_sealed
  balanced_exp:
    expectation: "OBJ validator accepts valid 3D mesh files."
    pending_cases:
      - given: {payload: "# OBJ file\nv 0 0 0\nv 1 0 0\nf 1 2 3"}
        when: "validate"
        then: {is_valid: true, mime_type: "model/obj"}
  _meta:
    clm_root_hash: sha256:9366f501b2a98beb1d4a004c4a831b2949fff7afd0492792f6a0ed5fa12c0fd2
    a_hash: sha256:5b740bfe968ffa8bd947a934a1b8fc1fe4c356bdeda87a3f6c202fe61723e4e7
    c_hash: sha256:7c455957fd596ce024de728bba672ec75ee2d3d285edbbb61b7930c934058ac4
    b_hash: sha256:bf135eb8e0d4d891d287affe85899a1db1073fec679952369e2cf9b72338d798
    clm_name: ci_validate_model_obj
    computed_at: "2026-07-13T02:41:44Z"
    depends_on: []