Skip to content

Commit 940cb8e

Browse files
author
clamp-bot
committed
sync from monorepo @ 4c52958
1 parent 2bd4c1e commit 940cb8e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/tools.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ Examples:
13941394
Limitations:
13951395
- **Event-based definitions only in 0.x.** Behavior cohorts ("did X then Y in order"), exclusion cohorts ("fired X but not Y"), and time-relative cohorts ("did X within N days of signup") aren't supported. The triggering event + period + property-filter shape covers ~95% of practical use cases.
13961396
- Membership is computed at query time, so very large cohorts cost on every retention call.
1397-
- Names must be lowercase alphanumeric with hyphens / underscores.
1397+
- Names must be lowercase alphanumeric with hyphens / underscores, and unique within a project — a duplicate-name create returns 409; use \`cohorts.delete\` first or pick a new name. Cohort definitions are immutable after creation; to change the event/period/filter, delete and re-create.
13981398
13991399
Pairs with: \`events.property_values\` to discover valid filter values before creating; \`cohorts.retention\` to read the curve once the cohort is created; \`cohorts.compare\` to stack 2–10 cohorts side-by-side; \`cohorts.list\` to discover existing cohort handles.`,
14001400
inputSchema: {
@@ -1427,7 +1427,9 @@ Pairs with: \`events.property_values\` to discover valid filter values before cr
14271427
.describe("Event-based cohort definition."),
14281428
},
14291429
outputSchema: cohortsCreateOutput,
1430-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true },
1430+
// Not idempotent: with the project_id/name UNIQUE constraint, a
1431+
// retry with the same name now returns 409 rather than overwriting.
1432+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },
14311433
},
14321434
async ({ project_id, name, definition }) => {
14331435
const p = resolveProject(project_id);

0 commit comments

Comments
 (0)