{
  "schema": "crystal-nexus.agillm-policy.v1",
  "name": "AGILLM Nexus Mini",
  "config": {
    "ctx_dim": 18,
    "d_model": 32,
    "heads": 4,
    "layers": 2,
    "feat_dim": 8,
    "n_blocks_max": 36,
    "history": 4,
    "event_dim": 10
  },
  "parameters": 30369,
  "source_file": "v27_16_9_direct56_route_equiv_20260908_CANONICAL_a42538e6.py",
  "source_sha256": "a42538e648f6f2fdd7e87da3ff902ea8ef1e0e895bc2c0c2efd842cd6d1bd9b5",
  "source_class": "_DblockLearnedRouter",
  "source_lines": [
    417,
    494
  ],
  "weight_provenance": "Fresh game-specific training; not pretrained AGILLM language-model weights.",
  "training_data": "Seeded synthetic game-state utility labels. Not human gameplay or reinforcement learning.",
  "steps": 1800,
  "training_examples": 172800,
  "validation_examples": 3072,
  "validation_seed": 847195301,
  "training_seconds": 67.28,
  "validation_top1": 0.9072265625,
  "validation_top1_by_domain": {
    "enemy": 0.9058577405857741,
    "companion": 0.9419475655430711,
    "encounter": 0.8805394990366089,
    "reward": 0.9157303370786517,
    "dialogue": 0.8956692913385826,
    "atmosphere": 0.9018036072144289
  },
  "validation_mae": 0.41911979764699936,
  "validation_utility_regret": 0.009571247889349857,
  "weights_sha256": "b1763efa3143de9e072abdc5d1e871b1eda08f61cf1f0fc6d9086cf628caec3d",
  "weights_bytes": 121476,
  "tensors": {
    "cls": {
      "shape": [
        1,
        1,
        32
      ],
      "offset": 0,
      "length": 32
    },
    "block_emb.weight": {
      "shape": [
        36,
        32
      ],
      "offset": 32,
      "length": 1152
    },
    "feat_proj.weight": {
      "shape": [
        32,
        8
      ],
      "offset": 1184,
      "length": 256
    },
    "feat_proj.bias": {
      "shape": [
        32
      ],
      "offset": 1440,
      "length": 32
    },
    "ctx_proj.weight": {
      "shape": [
        32,
        18
      ],
      "offset": 1472,
      "length": 576
    },
    "ctx_proj.bias": {
      "shape": [
        32
      ],
      "offset": 2048,
      "length": 32
    },
    "event_proj.weight": {
      "shape": [
        32,
        10
      ],
      "offset": 2080,
      "length": 320
    },
    "event_proj.bias": {
      "shape": [
        32
      ],
      "offset": 2400,
      "length": 32
    },
    "kind_emb.weight": {
      "shape": [
        3,
        32
      ],
      "offset": 2432,
      "length": 96
    },
    "event_pos.weight": {
      "shape": [
        4,
        32
      ],
      "offset": 2528,
      "length": 128
    },
    "encoder.layers.0.self_attn.in_proj_weight": {
      "shape": [
        96,
        32
      ],
      "offset": 2656,
      "length": 3072
    },
    "encoder.layers.0.self_attn.in_proj_bias": {
      "shape": [
        96
      ],
      "offset": 5728,
      "length": 96
    },
    "encoder.layers.0.self_attn.out_proj.weight": {
      "shape": [
        32,
        32
      ],
      "offset": 5824,
      "length": 1024
    },
    "encoder.layers.0.self_attn.out_proj.bias": {
      "shape": [
        32
      ],
      "offset": 6848,
      "length": 32
    },
    "encoder.layers.0.linear1.weight": {
      "shape": [
        128,
        32
      ],
      "offset": 6880,
      "length": 4096
    },
    "encoder.layers.0.linear1.bias": {
      "shape": [
        128
      ],
      "offset": 10976,
      "length": 128
    },
    "encoder.layers.0.linear2.weight": {
      "shape": [
        32,
        128
      ],
      "offset": 11104,
      "length": 4096
    },
    "encoder.layers.0.linear2.bias": {
      "shape": [
        32
      ],
      "offset": 15200,
      "length": 32
    },
    "encoder.layers.0.norm1.weight": {
      "shape": [
        32
      ],
      "offset": 15232,
      "length": 32
    },
    "encoder.layers.0.norm1.bias": {
      "shape": [
        32
      ],
      "offset": 15264,
      "length": 32
    },
    "encoder.layers.0.norm2.weight": {
      "shape": [
        32
      ],
      "offset": 15296,
      "length": 32
    },
    "encoder.layers.0.norm2.bias": {
      "shape": [
        32
      ],
      "offset": 15328,
      "length": 32
    },
    "encoder.layers.1.self_attn.in_proj_weight": {
      "shape": [
        96,
        32
      ],
      "offset": 15360,
      "length": 3072
    },
    "encoder.layers.1.self_attn.in_proj_bias": {
      "shape": [
        96
      ],
      "offset": 18432,
      "length": 96
    },
    "encoder.layers.1.self_attn.out_proj.weight": {
      "shape": [
        32,
        32
      ],
      "offset": 18528,
      "length": 1024
    },
    "encoder.layers.1.self_attn.out_proj.bias": {
      "shape": [
        32
      ],
      "offset": 19552,
      "length": 32
    },
    "encoder.layers.1.linear1.weight": {
      "shape": [
        128,
        32
      ],
      "offset": 19584,
      "length": 4096
    },
    "encoder.layers.1.linear1.bias": {
      "shape": [
        128
      ],
      "offset": 23680,
      "length": 128
    },
    "encoder.layers.1.linear2.weight": {
      "shape": [
        32,
        128
      ],
      "offset": 23808,
      "length": 4096
    },
    "encoder.layers.1.linear2.bias": {
      "shape": [
        32
      ],
      "offset": 27904,
      "length": 32
    },
    "encoder.layers.1.norm1.weight": {
      "shape": [
        32
      ],
      "offset": 27936,
      "length": 32
    },
    "encoder.layers.1.norm1.bias": {
      "shape": [
        32
      ],
      "offset": 27968,
      "length": 32
    },
    "encoder.layers.1.norm2.weight": {
      "shape": [
        32
      ],
      "offset": 28000,
      "length": 32
    },
    "encoder.layers.1.norm2.bias": {
      "shape": [
        32
      ],
      "offset": 28032,
      "length": 32
    },
    "ln.weight": {
      "shape": [
        32
      ],
      "offset": 28064,
      "length": 32
    },
    "ln.bias": {
      "shape": [
        32
      ],
      "offset": 28096,
      "length": 32
    },
    "value.0.weight": {
      "shape": [
        64
      ],
      "offset": 28128,
      "length": 64
    },
    "value.0.bias": {
      "shape": [
        64
      ],
      "offset": 28192,
      "length": 64
    },
    "value.1.weight": {
      "shape": [
        32,
        64
      ],
      "offset": 28256,
      "length": 2048
    },
    "value.1.bias": {
      "shape": [
        32
      ],
      "offset": 30304,
      "length": 32
    },
    "value.3.weight": {
      "shape": [
        1,
        32
      ],
      "offset": 30336,
      "length": 32
    },
    "value.3.bias": {
      "shape": [
        1
      ],
      "offset": 30368,
      "length": 1
    }
  },
  "domains": [
    "enemy",
    "companion",
    "encounter",
    "reward",
    "dialogue",
    "atmosphere"
  ],
  "actions": [
    [
      "pursue",
      "strike",
      "bolt",
      "flank",
      "evade",
      "guard"
    ],
    [
      "follow",
      "strike",
      "bolt",
      "heal",
      "intercept",
      "guard"
    ],
    [
      "melee",
      "ranged",
      "mixed",
      "elite",
      "rest",
      "treasure"
    ],
    [
      "health",
      "energy",
      "experience",
      "limit",
      "crystal",
      "gold"
    ],
    [
      "welcome",
      "wounded",
      "combat",
      "shards",
      "boss",
      "victory"
    ],
    [
      "aurora",
      "embers",
      "mist",
      "storm",
      "stars",
      "dawn"
    ]
  ],
  "features": [
    [
      [
        1.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0,
        1.0
      ],
      [
        0.12999999523162842,
        0.6499999761581421,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.6499999761581421,
        0.5,
        0.30000001192092896,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.4000000059604645,
        0.3499999940395355,
        0.10000000149011612,
        0.0,
        0.0,
        0.20000000298023224,
        1.0,
        1.0
      ],
      [
        0.5,
        0.0,
        0.20000000298023224,
        0.0,
        0.0,
        0.800000011920929,
        1.0,
        1.0
      ],
      [
        0.10000000149011612,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0,
        0.0,
        1.0
      ]
    ],
    [
      [
        1.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.20000000298023224,
        1.0,
        1.0
      ],
      [
        0.14000000059604645,
        0.699999988079071,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.699999988079071,
        0.6000000238418579,
        0.30000001192092896,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.699999988079071,
        0.0,
        0.4000000059604645,
        1.0,
        1.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.4000000059604645,
        0.44999998807907104,
        0.10000000149011612,
        0.0,
        0.0,
        0.5,
        1.0,
        1.0
      ],
      [
        0.10000000149011612,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0,
        0.0,
        1.0
      ]
    ],
    [
      [
        0.20000000298023224,
        0.4000000059604645,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.6000000238418579,
        0.4000000059604645,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.4000000059604645,
        0.6000000238418579,
        0.0,
        1.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.30000001192092896,
        1.0,
        0.0,
        0.5,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        1.0,
        1.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.30000001192092896,
        0.0,
        0.0,
        1.0
      ]
    ],
    [
      [
        0.0,
        0.0,
        0.0,
        0.0,
        1.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.6000000238418579,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.30000001192092896,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.800000011920929,
        0.0,
        1.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.10000000149011612,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ]
    ],
    [
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ]
    ],
    [
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ],
      [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.0
      ]
    ]
  ]
}