Feature key to harness mapping - HarnessRouter Docs | HarnessRouter

Feature key to harness mapping

Pattern

Server mapping

const harnessByFeature = {
  contract_review: "chrn_...",
  game_generation: "chrn_..."
};

const harnessId = harnessByFeature[featureKey];

Rules

Open standard

Server-side mapping from feature keys to chrn_ identifiers works because a configured harness is an addressable object returned only within the caller's scope, as UHP's Harnesses chapter defines it. See the Unified Harness Protocol's Harnesses chapter.

Ready to run this against a live workspace? Keys take under a minute.