{
  "name": "generate_semantic_map",
  "type": "Module",
  "tier": "STANDARD",
  "start_line": 1,
  "end_line": 53,
  "tags": {
    "PURPOSE": "Scans the codebase to generate a Semantic Map, Module Map, and Compliance Report based on the System Standard.",
    "PRE": "Valid directory containing code to scan.",
    "POST": "Files map.json, .ai/PROJECT_MAP.md, .ai/MODULE_MAP.md, and compliance reports generated.",
    "TIER": "STANDARD",
    "SEMANTICS": "semantic_analysis, parser, map_generator, compliance_checker, tier_validation, svelte_props, data_flow, module_map",
    "LAYER": "DevOps/Tooling",
    "INVARIANT": "All DEF anchors must have matching closing anchors; TIER determines validation strictness."
  },
  "relations": [
    {
      "type": "READS",
      "target": "FileSystem"
    },
    {
      "type": "PRODUCES",
      "target": "semantics/semantic_map.json"
    },
    {
      "type": "PRODUCES",
      "target": ".ai/PROJECT_MAP.md"
    },
    {
      "type": "PRODUCES",
      "target": ".ai/MODULE_MAP.md"
    },
    {
      "type": "PRODUCES",
      "target": "semantics/reports/semantic_report_*.md"
    }
  ],
  "children": [
    {
      "name": "__init__",
      "type": "Function",
      "tier": "TRIVIAL",
      "start_line": 27,
      "end_line": 34,
      "tags": {
        "TIER": "TRIVIAL",
        "PURPOSE": "Mock init for self-containment.",
        "PRE": "name is a string.",
        "POST": "Instance initialized."
      },
      "relations": [],
      "children": [],
      "compliance": {
        "valid": true,
        "issues": [],
        "score": 1.0
      }
    },
    {
      "name": "__enter__",
      "type": "Function",
      "tier": "TRIVIAL",
      "start_line": 36,
      "end_line": 43,
      "tags": {
        "TIER": "TRIVIAL",
        "PURPOSE": "Mock enter.",
        "PRE": "Instance initialized.",
        "POST": "Returns self."
      },
      "relations": [],
      "children": [],
      "compliance": {
        "valid": true,
        "issues": [],
        "score": 1.0
      }
    },
    {
      "name": "__exit__",
      "type": "Function",
      "tier": "TRIVIAL",
      "start_line": 45,
      "end_line": 52,
      "tags": {
        "TIER": "TRIVIAL",
        "PURPOSE": "Mock exit.",
        "PRE": "Context entered.",
        "POST": "Context exited."
      },
      "relations": [],
      "children": [],
      "compliance": {
        "valid": true,
        "issues": [],
        "score": 1.0
      }
    },
    {
      "name": "to_dict",
      "type": "Function",
      "tier": "TRIVIAL",
      "start_line": 138,
      "end_line": 138,
      "tags": {
        "PURPOSE": "Auto-detected function (orphan)",
        "TIER": "TRIVIAL"
      },
      "relations": [],
      "children": [],
      "compliance": {
        "valid": true,
        "issues": [],
        "score": 1.0
      }
    }
  ],
  "compliance": {
    "valid": true,
    "issues": [],
    "score": 1.0
  }
}
