Starholder API
API Reference

Directive

Direct the persona to act on the world — explore topics, fill gaps, and reason about connections.

A directive is a high-level instruction you issue to the world's persona — the world's cognitive actor that can reason about topology, identify connections, generate speculative bridges, and produce lore. Unlike a raw inference turn (via the execute endpoint), a directive carries structured intent and context that lets the persona plan a multi-step reasoning campaign.

POST /world/{worldId}/directive

Issue a directive to the world's persona.

Auth: Bearer | Capability: canDirectPersona | Scope: persona:direct | Risk Tier: T1

Does not require the x-origin-system header (unlike query/execute).

curl -X POST https://www.starholder.xyz/api/v1/world/starholder_main/directive \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "directiveId": "dir_001",
    "intent": "Explore the relationship between Fred and the Quant Vegas Triangle",
    "anchorRefs": ["entity:starholder_main:fred_the_slughauler"],
    "mode": "exploratory",
    "maxTurns": 3
  }'

Request Body

FieldTypeRequiredDescription
directiveIdstringYesUnique directive identifier
intentstringYesWhat you want the persona to do, in plain language
anchorRefsstring[]NoCanonical references (format: kind:namespace:id) to the entities or settings the persona should focus on. These anchor the reasoning — the persona will start its traversal from these nodes in the knowledge graph.
sourceGapIdstringNoIf this directive is meant to fill a specific gap in the knowledge graph, pass the gap's ID here. The system uses this to track gap coverage and ensure the persona's output is linked back to the gap it addresses.
targetBountyIdstringNoBounty this directive is fulfilling
modestringNoExecution mode (see below)
maxTurnsnumberNoMaximum inference turns the persona may use
creativeDirectionstringNoAdditional creative guidance (tone, style, constraints)

Execution Modes

ModeBehavior
exploratoryThe persona freely traverses the knowledge graph outward from the anchors, discovering connections and generating speculative bridges. Best for open-ended research.
focusedThe persona stays tightly scoped to the anchors and their immediate neighborhood, producing detailed analysis rather than broad exploration. Best for deep dives on a specific topic.
analyticalThe persona emphasizes structured reasoning — claims, evidence, and confidence scores — over narrative output. Best when you need data you can programmatically consume.

Response (200)

Returns the directive execution result, including the persona's output and any ThoughtPackets generated.

Error Cases

StatusCodeCause
422ERR_VALIDATION_FAILEDMissing required fields or schema violation
422ERR_DIRECTIVE_REJECTEDPreflight check failed (incoherent anchor/intent combination)
403ERR_PERMISSION_INTERSECTION_DENIEDKey lacks canDirectPersona or insufficient risk tier