vela.corpus.witness
vela.corpus.witnessLiterary Witness Rail (ASN-1577): return passages and one-line claims from Vela's 762-work corpus that illuminate the given themes and/or emotions. Designed for frame-family profile pages — PersonFrame × ProblemFrame × ConditionFrame — to add an inside-out layer (what writers who lived this say) alongside the outside-in portrait the frame join produces. Results carry evidence_grade 'T1' (single-extractor) until PRN-282 lands. FREE for claims; costs one embedding for the passage path.
[capability: literary-witness · mirrors: GET /api/vela/witness]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axes | No | Axis weight filters for claims only — same format as vela.corpus.query (e.g. {work:["T","s"]}). | |
| themes | No | Controlled themes from Vela's vocabulary (e.g. 'fairness', 'recognition'). | |
| emotions | No | Emotions to match (e.g. 'shame', 'betrayal', 'grief'). At least one of themes or emotions is required. | |
| max_claims | No | Max one-line claims to return (default 3). | |
| max_passages | No | Max passages to return (default 5). | |
| problem_slug | No | ProblemFrame entity slug (echoed in response; reserved for frame_tags[] pre-cache after PA-1153 ID-freeze). | |
| condition_slug | No | ConditionFrame entity slug (same reservation as problem_slug). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| claims | Yes | ||
| passages | Yes | ||
| evidence_grade | Yes |