> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/control-center/govern/governed-graph.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Governed Graph

Load an institution's knowledge graph from a graph package, see where every fact came from, and let agents query it.

**Governed Graph** holds one knowledge graph per institution: its products, pricing, features, channels, policies, disclosures, document requirements, rules and thresholds, and the regulatory packs behind them. Agents use the graph to answer questions from the institution's own governed facts. You load it from a **graph package**, a JSON file that lists the graph's nodes and relationships.

Each fact in the graph keeps its source, owner, confidence and effective date, so you can trace where a value came from. An uploaded graph becomes **knowledge** in the account, so you attach it to agents the same way as any other knowledge.

Governed graphs are **account-scoped**: a graph you upload is created for the whole account, and every project in it can read it.

Open it in **Control Center → Govern → Governed Graph**. To load or change a graph, see [Manage governed graphs](https://docs.uptiq.ai/platform/control-center/govern/governed-graph/manage-governed-graphs.md).

{% hint style="warning" %}
**Sign-off is a preview.** The **Sign-off Queue (Preview)** tab is a preview of attestation. Attestations made there aren't saved. Every node stays **default-unconfirmed**, and agents read every node whether or not it has been signed off. See [Agent skills](#agent-skills).
{% endhint %}

## Permissions

| Action                                    | Roles                                                           |
| ----------------------------------------- | --------------------------------------------------------------- |
| View governed graphs                      | Approver, Governance Manager, Auditor, Account Admin, Org Admin |
| Upload, rename and manage governed graphs | Governance Manager, Account Admin, Org Admin                    |
| Attach a governed graph to an agent       | Developer, Account Admin, Org Admin                             |

**Retry**, **Upload new version** and **Edit** need the **Ingest source & extract knowledge graph candidates** capability. See [Roles](https://docs.uptiq.ai/platform/control-center/admin/roles.md) for the full capability matrix.

## Lifecycle of a governed graph <a href="#lifecycle" id="lifecycle"></a>

A governed graph moves through seven stages. The first six are available. The seventh, sign-off, is a preview.

| Stage                  | What happens                                                                                                                                                                                                           |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Upload**             | You upload a graph package, a `.json` file. The package is validated before anything is written.                                                                                                                       |
| **Build**              | The platform writes the nodes, then the relationships. The row shows **Processing** with the current stage. It ends as **Completed** or **Failed**.                                                                    |
| **Version**            | Each completed build is a numbered version of the graph. Agents read the active version.                                                                                                                               |
| **Review**             | You browse the graph on **Overview**, **Ingest & Map** and **Graph Explorer**, and trace any fact on **Provenance**.                                                                                                   |
| **Refine**             | You change a value with **Edit node**, upload a newer package with **Upload new version**, or go back with **Restore**. **Upload new version** and **Restore** each make a new version, and earlier versions are kept. |
| **Use**                | You attach the graph to agents as knowledge. They query it with Knowledge Graph Search.                                                                                                                                |
| **Sign-off (preview)** | You attest a node, and it becomes ratified. Nothing you attest in the preview is saved.                                                                                                                                |

**Build:** A failed build retries on its own, then waits for you to select **Retry**.

**Version:** When you upload a newer package, they keep reading the current version until the new one finishes building, and then switch. A failed build changes nothing for agents.

Two kinds of state apply, and they're easy to mix up.

**The graph's build state** is what you see in the list. A graph is **Processing**, **Completed** or **Failed**. In **Version history**, the version agents read carries an **Active** badge, and a version whose build failed carries a **Failed** badge.

**A node's sign-off state** is what you see on **Provenance** and the **Sign-off Queue (Preview)**. A node is unconfirmed until a person attests it. Nothing attested in the preview is saved, so every node is unconfirmed, and agents read every node.

A governed graph can't be deleted. Uploading a new version and restoring a version never remove an earlier version.

## In this section

The contents of a graph and the screens for working inside one each have their own page.

* [What a graph holds](https://docs.uptiq.ai/platform/control-center/govern/governed-graph/what-a-graph-holds.md): The nodes, relationships and regulatory packs in a governed graph, and how a node moves from unconfirmed to attested and ratified
* [Inside a graph](https://docs.uptiq.ai/platform/control-center/govern/governed-graph/inside-a-graph.md): Open a governed graph to read its summary, ask it questions, follow the trace, read the source register and edit nodes

## Graph list

The list shows each graph in the account.

| Column         | Shows                                                                                                   |
| -------------- | ------------------------------------------------------------------------------------------------------- |
| **Graph**      | The graph's name.                                                                                       |
| **Version**    | The newest version number. When the newest version isn't the one in use, the active version follows it. |
| **File**       | The package file.                                                                                       |
| **Created At** | When the graph was created.                                                                             |
| **Status**     | **Completed** or **Failed**.                                                                            |

The refresh button next to **Upload Governed Graph** reloads the list. Select a completed graph to open it. The `⋮` menu on a row has these actions:

| Action                 | What it does                                                                           |
| ---------------------- | -------------------------------------------------------------------------------------- |
| **View**               | Opens the uploaded package.                                                            |
| **Download**           | Downloads the package file.                                                            |
| **Retry**              | Tries a failed build again. It shows only when a retry is possible.                    |
| **Upload new version** | Uploads a new package for this graph.                                                  |
| **Version history**    | Opens the graph's versions, where you can open or restore one.                         |
| **Edit**               | Renames the graph. Renaming changes only the name, not the package, nodes or versions. |

### Builds in progress

While a graph builds, the row shows **Building the graph**. You can open a graph that hasn't finished building from this list. Its page names the current stage, such as Queued, Validating the package, Writing nodes or Writing relationships, or says the build is waiting for an automatic retry. If the build failed, the page gives the reason, the stage it failed at, the retry notice and a **Retry** button. **Retry** is hidden when the failure can't be retried. When a version becomes active, the page changes to the graph's tabs.

From the Knowledge list, an unfinished graph's page says the graph is still building. It shows no progress and no failure reason, so a failed graph can read the same way. Check the graph list instead.

### Versions

Each row in **Version history** gives:

| Item                  | Shows                                                                                                         |
| --------------------- | ------------------------------------------------------------------------------------------------------------- |
| Version number        | The version of the graph.                                                                                     |
| Package file and time | The package the version was built from, and when it was made, as a relative time.                             |
| **View graph**        | Opens that version's graph on the same tabs, so you can look at an earlier version while agents read another. |
| **Restore**           | Makes that version the one agents read.                                                                       |

The version agents read carries an **Active** badge and has no **Restore**. A version whose build failed carries a **Failed** badge and has neither button. A restore adds a new version noted `Restored file version N` and keeps the later versions, so you can restore forward again.

## Graph package <a href="#graph-package" id="graph-package"></a>

A package is one `.json` file, up to 80 MB. A file that isn't `.json` or is larger than 80 MB can't be selected. The Uptiq Platform reads the package as it is. This table lists what is accepted, skipped and stored.

| In the package                                                     | What happens                                                                                                                      |
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |
| A node with no `id`                                                | The upload fails.                                                                                                                 |
| An edge whose `from` or `to` isn't a node in the package           | The edge is skipped. This includes every edge from a regulatory obligation ID, because obligations appear only as edge endpoints. |
| A field the Platform ignores                                       | Not stored. `seeded_by`, which repeats the `seeds` edges, is ignored.                                                             |
| An empty value, which is `null` or an empty list                   | Not stored.                                                                                                                       |
| Field names                                                        | Stored in camelCase: `effective_from` becomes `effectiveFrom`.                                                                    |
| Relationship types                                                 | Stored in upper snake case: `governed_by` becomes `GOVERNED_BY`.                                                                  |
| Package details, such as `package`, `version`, `fi` and `coverage` | Kept as the graph's envelope and shown on **Overview**.                                                                           |

A package built with regulatory seeding can have far more edges than the graph keeps, because the `seeds` edges from obligation IDs point at nodes outside the package.

{% hint style="warning" %}
**The graph keeps where a fact was read from, but not which regulatory obligation requires it.** These are two different links:

* **Source**. Kept. Each node's source document. It's the **Source** link on the **Provenance** tab, and it opens the original page or PDF.
* **Obligation**. Not kept. The regulatory obligations that seeded the node. A package records these only as `seeds` edges and in `seeded_by`, and neither is stored.

For example, the Truth in Savings disclosure node `DISC:tis_account` keeps its **Source** link to the institution's account disclosure PDF. It loses its links to the Reg DD obligations, such as `DEP-OBL-707-01`, that require it. No screen shows the loss; only the package itself does. What survives is the envelope's summary, which holds the packs seeded and the node counts, shown on **Overview** under **Regulatory coverage**.
{% endhint %}

### Own Neo4j settings

By default, the Platform builds a graph in the platform's own Neo4j graph database. In a development environment you can build it in your own Neo4j server instead. In the upload dialog, **Use your own Neo4j (Dev Only)** opens a window titled **Use your own Neo4j**. The window explains that the graph is built in this Neo4j instead of the platform's.

| Field              | Required | What to enter                                                                                                                            |
| ------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection URL** | Yes      | The address of your server, in the form `neo4j+s://<host name>`. Only `neo4j+s://` addresses to a publicly reachable server are allowed. |
| **Username**       | Yes      | A Neo4j user for the server.                                                                                                             |
| **Password**       | Yes      | The user's password. The eye icon at the right of the field reveals or hides what you type. The password is stored encrypted.            |
| **Database**       | No       | The database to build in. Leave it empty to use the server's default database.                                                           |

| Button              | What it does                                                                                    |
| ------------------- | ----------------------------------------------------------------------------------------------- |
| **Test connection** | Tries the connection with the details you entered, so you can catch a mistake before the build. |
| **Save**            | Keeps the details for this upload. It doesn't connect.                                          |
| **Cancel**          | Closes the window without saving.                                                               |

**Test connection** and **Save** aren't available until the required fields are filled. A graph built on your own server can't be exported or imported. In production, the Platform refuses the option.

## Knowledge list

A governed graph also appears in **Knowledge** in the Console, in **MY KNOWLEDGE**, with a **Governed Graph** badge and an eye icon in place of the play icon. A graph has no **Try Knowledge** control. Its row menu has these actions:

| Action               | Behavior                                                                                                                                                  |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Share Knowledge**  | Isn't available, because everyone in the account already has access.                                                                                      |
| **Export Knowledge** | Isn't available for a graph built on your own Neo4j server. The tooltip shows `A governed graph on your own Neo4j server cannot be exported or imported`. |
| **Delete**           | Is in the menu, but a governed graph can't be deleted.                                                                                                    |

Exporting a knowledge base that holds governed graphs is supported. The Platform first checks that each graph can be exported, and refuses the export if not. The ZIP holds the knowledge package, with its governed graphs, and the document files. See [Governed graphs in My Knowledge](https://docs.uptiq.ai/platform/console/knowledge.md#governed-graphs-in-my-knowledge).

## Agent skills <a href="#agent-skills" id="agent-skills"></a>

A graph that has finished uploading becomes **knowledge** in the account. When a governed graph is attached to an agent, the agent queries it with these skills.

| Skill                            | Behavior                                                                                                                                   |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **Knowledge Graph Search**       | Answers structured and relational questions, such as which documents a product requires or which policy governs a disclosure.              |
| **Knowledge Graph Cypher Query** | A pre-attached skill that isn't on by default. Turn it on in **Agent Config → Skills & Capabilities**, on the **Pre-attached Skills** tab. |

**Knowledge Graph Search:** It turns the question into a read-only graph query and returns up to 25 rows, and tells the agent when more matches exist.

**Knowledge Graph Cypher Query:** The agent writes a read-only Cypher query and runs it with the same safety checks as Knowledge Graph Search. The agent is told to use it only when it already has the exact query, from the user, its instructions or an earlier search.

See [Knowledge graph skills](https://docs.uptiq.ai/platform/console/agent-builder/build/skills-and-capabilities.md#knowledge-graph-skills).

The Console assistant reaches a graph through the Knowledge Builder agent it calls. The agent can list graphs and their versions, read a graph and its guides, and ask it questions. It can also retry a build, create or restore a version, edit nodes, and regenerate or edit the guides. It asks for permission before it edits nodes or restores a version.

You can't create or attach a graph by attaching the package JSON in the Agent Builder chat. Upload it in Governed Graph first.

{% hint style="warning" %}
**Agents read unconfirmed nodes.** Nothing in the graph is attested, and Knowledge Graph Search doesn't filter by sign-off state. Review what an agent quotes from the graph before you rely on it with customers.
{% endhint %}

## Messages

| Message                                                                     | Meaning                                                                                                            |
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| "Failed to build this graph."                                               | The build failed. The recorded reason follows.                                                                     |
| "The build failed without recording a reason."                              | The build failed and no reason was recorded.                                                                       |
| "This will be retried automatically within the next few minutes."           | Retries remain.                                                                                                    |
| "Automatic retries have been exhausted. Use Retry to try again."            | No automatic retries remain. Select **Retry**.                                                                     |
| "Version restored"                                                          | A restore finished.                                                                                                |
| "Restore version N?"                                                        | Confirms a restore. Agents start reading that version right away, nothing is rebuilt, and later versions are kept. |
| "The graph is created for the whole account, so every project can read it." | Shown in the upload dialog.                                                                                        |
| "Custom Neo4j connections are not enabled in this environment."             | The Platform refuses **Use your own Neo4j (Dev Only)** in production.                                              |
| "No graph summary yet"                                                      | The summary or guideline isn't generated yet. **Generate** starts it.                                              |
| "Generating graph summary…"                                                 | The summary is being generated in the background.                                                                  |

For package errors shown on the **Failed** badge, see [Troubleshoot governed graphs](https://docs.uptiq.ai/platform/control-center/govern/governed-graph/troubleshoot-governed-graphs.md).

## What's next

{% content-ref url="/pages/tGaE27vFnN9mYQAyxfRy" %}
[Manage governed graphs](https://docs.uptiq.ai/platform/control-center/govern/governed-graph/manage-governed-graphs.md)
{% endcontent-ref %}

{% content-ref url="/pages/2nspfx4GmIIRokvQjf6Z" %}
[Troubleshoot governed graphs](https://docs.uptiq.ai/platform/control-center/govern/governed-graph/troubleshoot-governed-graphs.md)
{% endcontent-ref %}

{% content-ref url="/pages/sqzeGntZTaKzQobnBMkJ" %}
[Attach knowledge](https://docs.uptiq.ai/platform/console/agent-builder/build/attach-knowledge.md)
{% endcontent-ref %}

{% content-ref url="/pages/DKOWs4uDy7x9aMWxiPE0" %}
[Knowledge](https://docs.uptiq.ai/platform/console/knowledge.md)
{% endcontent-ref %}

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/control-center/govern/governed-graph.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
