Assign experiment cells
assign_cellsDeterministically assigns unit IDs to experiment arms using a salted SHA-256 hash, ensuring consistent bucketing for the same salt and unit without writing an experiment record.
Instructions
Assign units to arms with a salted SHA-256 bucket.
Arms are ordered by name. The same salt and unit id always map to the same arm. This does not write an experiment record.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"unit_ids": "<unit_ids>",
"salt": "<salt>",
"splits": "<splits>"
},
"name": "assign_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salt | Yes | Experiment salt. Changing it reassigns units. | |
| splits | Yes | Arm name to traffic weight. Weights must sum to 1. | |
| unit_ids | Yes | Stable unit ids, usually customer ids. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salt | Yes | ||
| counts | Yes | ||
| arm_order | Yes | ||
| assignments | Yes |