Add evaluation cases to a search revision
add_search_casesDeclares a new draft revision that carries the base revision's spec and its evaluation cases with cases added: the base is search_revision_id, or the version's selected draft when omitted, and must still be the selected draft (a stale one is refused SEARCH_REVISION_CONFLICT; re-read inspect_table_search status). Each case is {case_id, kind (paraphrase or hard_negative), query, top_k, required_locators, forbidden_locators}; a locator is [part, row], a zero-based part of the sealed version and a zero-based row within it, and must come from a source that reports it: the person, or a prior get_search_evaluation report's ranked_locators. Never derive one from a row's position in a sample_table or preview_table_search answer, and never invent one. A hard_negative names at least one forbidden row. A case_id the base already holds, or more than 16 cases in all, is refused. Returns the new table-search-revision.v1 with search_revision_id and base_revision_id, which becomes the selected draft. Starts no build. Next: build_table_search for that revision, then get_search_evaluation. Keep idempotency_key unchanged when reconciling an uncertain outcome.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cases | Yes | ||
| table_id | Yes | ||
| idempotency_key | No | ||
| table_version_id | No | ||
| search_revision_id | No |