Integration pattern

Map product features to allowed configured agents.

The browser should name the product action. The server should choose the configured agent.

Pattern

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

const harnessId = harnessByFeature[featureKey];

Rules

  • Do not let the browser submit arbitrary harness_id values.
  • Keep the mapping in trusted server configuration or a protected database table.
  • Use separate configured agents when purpose, data access, tools, permissions, model policy, or artifact contract differs.