{
  "handle": "PathwayMemory",
  "mechanism": "A {{cache}} of routing outcomes, recording (problem_class, route_chosen, outcome_quality) tuples. Enables a dispatching Solver to learn which routes produce better results for which problem types. The RootSolver's PathwayMemory is the architecture's most consequential site of compounding — it sees how every problem enters the system, and its accumulated routing decisions determine which reasoning highways densify over time. Every dispatching node has its own PathwayMemory; they are not shared, but can be aggregated for cross-node learning.",
  "gloss": "Learned routing memory: problem_class → route → outcome_quality",
  "data_schema": {
    "type": "object",
    "required": [
      "entries"
    ],
    "properties": {
      "entries": {
        "type": "array",
        "description": "List of routing records",
        "items": {
          "type": "object",
          "required": [
            "problem_class",
            "route_chosen",
            "outcome_quality"
          ],
          "properties": {
            "problem_class": {
              "type": "string"
            },
            "route_chosen": {
              "type": "string"
            },
            "outcome_quality": {
              "type": "number"
            }
          }
        }
      }
    }
  },
  "invariants": [
    "Append-only within a session: historical records are not edited, only new entries added.",
    "Scoped: each PathwayMemory belongs to exactly one dispatching node."
  ],
  "failure_modes": [
    "Poisoned entries (false outcome_quality from compromised writers) silently bias all downstream routing without triggering any failure mode.",
    "Stale entries reflecting outdated problem distributions mislead current routing; no automatic aging.",
    "Cross-node aggregation without provenance contaminates local routing with off-domain signal."
  ],
  "_meta": {
    "tier": 1,
    "ring": 1,
    "caution": "Silent contamination vector — poisoned entries bias all downstream routing decisions without triggering failure modes. Integrity of writers must be enforced.",
    "path": [
      "Mind",
      "Memory"
    ],
    "supersedes": [
      "sema:PathwayMemory#mh:SHA-256:b6a0e82ce9362d546f5ac2da3610ced5e67a516f67fa0756aa90051a74180b82",
      "sema:PathwayMemory#mh:SHA-256:b15f1dd794db8b776de7646d2431466934bb901c3d443e0c92e85b58ad3c3ca5"
    ],
    "related": [
      "ArchiveServingFrontier"
    ]
  },
  "sema_id": "sema:PathwayMemory#mh:SHA-256:ce2e6ce822404fae0e60a43fc2c6fbe2e4d51ab9aefee1e7a9e21da75893e722",
  "sema_ref": "PathwayMemory#ce2e",
  "sema_stub": "ce2e",
  "dependencies": {
    "references": {
      "cache": "sema:Cache#mh:SHA-256:465f391fb70426b0ec99c724ecf5db549d4f2e8124c821530271124aa10e17f3"
    }
  },
  "sema_layer": "Mind",
  "sema_category": "Memory",
  "used_by": {
    "references": {
      "ArchiveServingFrontier": "sema:ArchiveServingFrontier#mh:SHA-256:27653c08dbb23917a945b15020bbdabae18ccc9256dda0d2249354896d4a4313",
      "MarginalValueRule": "sema:MarginalValueRule#mh:SHA-256:661109205c507b2c26d683d091de7f8b782bf2d6c2e9192373b242a9b078ac71",
      "MetaProtocols": "sema:MetaProtocols#mh:SHA-256:8107714dd982f737d80cbd8bb574489ed5a4e784349c5f2375131c7ddbebdf0a",
      "PerformanceSignal": "sema:PerformanceSignal#mh:SHA-256:9dfb41dd2ac3f271ca5d4a3ab67219a5a18aa8dbd970cdb410e7c9c1ec85488c",
      "ReceptivityGate": "sema:ReceptivityGate#mh:SHA-256:0db58374b9595734af888df1f152aa802e6da20fb24e2786e44f1837f2a4f4fa"
    },
    "composes_with": {
      "OptimisticSolver": "sema:OptimisticSolver#mh:SHA-256:63aaa2e083c615a967019ce3aa709f431ff624aafce8b90ed6229144c102fda8",
      "PolymorphicSolver": "sema:PolymorphicSolver#mh:SHA-256:f7fe4635a7520f918c823f0047d6fed8e38fd820c1970ef4623cc8fd78d2b0bd",
      "RootSolver": "sema:RootSolver#mh:SHA-256:f7f5a39c4d93545b506ddc3eeb03660295425657486a5ab1f71811cb8e5816ca"
    }
  }
}
