# Context and Scopes

Context and scopes determine where governed state applies and where it does not. Many failures are not factual errors - they are scope errors. The information is correct, but it is correct for a different client, thread, project, or operational context.

***

## The Scope Model

{% tabs %}
{% tab title="Thread Scope" %}
State bound to a single conversation. Appropriate for isolated workflows and per-session interactions.
{% endtab %}

{% tab title="Entity Scope" %}
State bound to a specific entity (customer, project, organization) that persists across threads. **Where most production integrity operates.**
{% endtab %}

{% tab title="Global Scope" %}
State that applies across broader organizational contexts. Organization-wide policies and universal constraints.
{% endtab %}
{% endtabs %}

Narrower scopes can access parent context where allowed, but unrelated sibling contexts remain isolated.

***

## Ambiguity Handling

{% hint style="warning" %}
**When scope is unclear, do not widen authority by accident.** Cogna8 defaults to a safer, narrower scope and flags the ambiguity for review.
{% endhint %}

Cogna8 provides context and scope controls within its governed state and gating system. It complements tenant isolation, IAM, and network security in the broader stack - it does not replace them.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cogna8-io.gitbook.io/docs/core-concepts/context-and-scopes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
