> ## Documentation Index
> Fetch the complete documentation index at: https://docs.textql.com/llms.txt
> Use this file to discover all available pages before exploring further.

# The Context Stack

> A workshop of short, hands-on modules for platform owners, workspace admins, and enablement champions who configure how Ana behaves for different people. Three layers of context…

A workshop of short, hands-on modules for **platform owners, workspace admins, and enablement champions** who configure how Ana behaves for different people. Three layers of context — organization, role, personal — composed at question time; you'll build all three, prove they work with a same-question side-by-side, and learn to operate them like the governed configuration they are. Semi-technical: you'll edit markdown files and review changes, but never write SQL or `.tql`.

Total time: **about 2 hours.**

This is the deep-dive companion to the **Role-Based Access** chapter of [**Build Your Ontology, End to End**](/workshops/build-your-ontology/overview) — the persona model lives there; this workshop is how you author, prove, provision, and operate it.

## Who this is for

* Platform owners who decide what Ana knows org-wide- Workspace admins who provision different behavior for different teams- Enablement champions onboarding populations with different needs (executives vs analysts vs operations)- Anyone in a regulated environment who needs access behavior to be auditable, not anecdotal

## What you'll be able to do

<table><tr><th>After module</th><th>You can...</th></tr><tr><td>0</td><td>Place any "I want Ana to..." request in the right context layer</td></tr><tr><td>1</td><td>Stand up the routing setup: seed `ANA.md` and verify Ana loads the per-user and per-persona conventions</td></tr><tr><td>2</td><td>Build your own personal context and verify it persists across threads</td></tr><tr><td>3</td><td>Propose org-level definitions, glossary entries, and documents through review</td></tr><tr><td>4</td><td>Author complete role persona files from the four-section anatomy</td></tr><tr><td>5</td><td>Prove persona behavior with the same-question test, and change it through governance</td></tr><tr><td>6</td><td>Provision personas through identity (SSO/SCIM groups), fail-closed</td></tr><tr><td>7</td><td>Operate the stack: versioning, persona reviews, and the failure modes to watch</td></tr></table>

## Workshop modules

<table><tr><th>Module</th><th>Time</th></tr><tr><td>0 · The Context Stack</td><td>10 min</td></tr><tr><td>1 · Prepare the Environment</td><td>10 min</td></tr><tr><td>2 · Build Your Personal Context</td><td>20 min</td></tr><tr><td>3 · Curate the Org Context</td><td>15 min</td></tr><tr><td>4 · Author Role Profiles</td><td>25 min</td></tr><tr><td>5 · The Same-Question Test</td><td>20 min</td></tr><tr><td>6 · Provisioning & Identity</td><td>15 min</td></tr><tr><td>7 · Operate the Context Stack</td><td>15 min</td></tr><tr><td>Persona library</td><td>reference</td></tr></table>

## How to use this workshop

* Prerequisites: an org with an ontology/context library in place (the [**Build Your Ontology**](../build-your-ontology/) workshop if not) **plus the context routing file (`ANA.md`) seeded per Module 1**; admin access for Modules 4–6; and a test user account for Module 5's side-by-side.- Work **in order** — each layer builds on the previous, and Module 5's proof needs Module 4's personas.- Swap `[bracketed]` placeholders for your own teams, metrics, and domains. The restricted-persona examples use a care-management flavor; the pattern is industry-agnostic.- Context mechanics follow the current documentation at [docs.textql.com](https://docs.textql.com) (Context Library and Ontology sections) — verify click-paths there as the surface evolves.

<Accordion title="For facilitators — running this as a guided session">
  **T-minus-1-day pre-flight:** run the workshop's key prompts end-to-end in the session workspace — confirm logins, connectors, and the features this workshop touches are enabled for every attendee; run Module 1's two verification probes ("what conventions are loaded?" and the write-test) to confirm `ANA.md` is seeded and loading before anyone starts; have a fallback demo workspace ready in case a customer connector fails live. **Pacing:** when a long prompt is running (2–4 min), fire it first, then discuss the concept while Ana works — never watch a spinner in silence. If behind schedule, cut sections marked optional, never the checkpoints. **Group sessions:** attendees drive, you narrate; collect every miss or wrong answer in a shared doc — that list is the ontology backlog.
</Accordion>

<Note>
  **🤖 Prefer to have Ana run this workshop?** Open a thread with your data connected and paste the prompt below — Ana walks you through it on your own data, one step at a time. You run each prompt; she coaches. *(Air-gapped / VPC tenants where Ana can't reach the web: download [`ana-runner.md`](https://github.com/TextQLLabs/workshops/blob/main/context-stack/ana-runner.md) and paste its module list instead.)*
</Note>

```text Run with Ana theme={null}
Hey Ana — facilitate the "Context Stack" workshop with me in this thread, on the data connected here. Pull the steps from https://textqllabs.github.io/workshops/context-stack/ and run it interactively: look at my data first (2–3 lines), then go ONE module at a time. For each module, give ME the prompt to copy and run as my next message, tell me what to look for, then wait and coach me on my result. Start with what you see, then Module 0.
```

[**▶ Open in Ana — prompt loaded**](https://app.textql.com/chat/new?prefill=Hey%20Ana%20%E2%80%94%20facilitate%20the%20%22Context%20Stack%22%20workshop%20with%20me%20in%20this%20thread%2C%20on%20the%20data%20connected%20here.%20Pull%20the%20steps%20from%20https%3A//textqllabs.github.io/workshops/context-stack/%20and%20run%20it%20interactively%3A%20look%20at%20my%20data%20first%20%282%E2%80%933%20lines%29%2C%20then%20go%20ONE%20module%20at%20a%20time.%20For%20each%20module%2C%20give%20ME%20the%20prompt%20to%20copy%20and%20run%20as%20my%20next%20message%2C%20tell%20me%20what%20to%20look%20for%2C%20then%20wait%20and%20coach%20me%20on%20my%20result.%20Start%20with%20what%20you%20see%2C%20then%20Module%200.)

Ana fetches the steps from the link — no copy/paste of the workshop needed. (Air-gapped / VPC tenants where Ana can't reach the web: paste the module list from this workshop's [ana-runner.md](https://github.com/TextQLLabs/workshops/blob/main/context-stack/ana-runner.md) instead.)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.