polaris_fitness_function_templates
List, publish, and adopt tribe-published fitness-function templates: browse a tribe's templates, share reusable definitions, or create a squad-owned draft for adaptation.
Instructions
Manage tribe-published fitness-function templates.
Actions and required parameters:
list: tribe_id — the tribe's templates (optional limit/cursor/all_pages)
publish: tribe_id + name (optional description, optional definition — a FitnessDefinition object with the same camelCase keys used by polaris_fitness_functions). Names are unique within a tribe (duplicate yields 409).
adopt: template_id + squad_id (optional target_ids scope override, optional reason) — creates a squad-owned DRAFT fitness function; the tribe retains no ownership, and the squad may adapt the draft before activating it.
Template JSON: {id, parentId: tribeId, kind: "fitness-function-template", status: ACTIVE, revision, data: {name, description?, definition?}, createdAt, updatedAt}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| limit | No | ||
| action | Yes | ||
| cursor | No | ||
| reason | No | ||
| squad_id | No | ||
| tribe_id | No | ||
| all_pages | No | ||
| definition | No | ||
| target_ids | No | ||
| description | No | ||
| template_id | No |