# Post-deployment steps

This page guides you through the post-deployment steps of
Google Cloud Cortex Framework to execute your data pipelines and verify the
results.

After deployment, all transformation templates and configurations are compiled
and deployed to your target Dataform repository (`type: dataform`). If
you use a `type: git` target, the compiled files are pushed to your Git
repository first and then executed in Dataform through your
Git-connected repository. In either case, to materialize the tables and views in
BigQuery, you must execute the Dataform pipeline
actions.

## Execute transformations in Dataform

By executing the pipeline, you initiate the logic to transform raw data into the
relevant data foundation and data product layers, ready for immediate business
use.

You can execute actions manually in the Google Cloud console for verification, or
configure recurring schedules for production.

> [!NOTE]
> **Note:** If you want to add custom code (such as `.sqlx` or `.js` files) directly inside your remote Dataform workspace in the Google Cloud console, place it in a directory listed in `targetSettings.ignoredPaths` in `config.yaml` (which defaults to `definitions/custom/`; setting `ignoredPaths: []` preserves no unmanaged paths). Any files outside those ignored paths that aren't part of the build output are deleted or overwritten during the next Cortex Framework deployment run (`cortex-deploy`).

### Manual execution for verification

To execute a manual verification run of the entire pipeline within your
Dataform workspace, follow these steps:

1. In the Google Cloud console, go to the [**Dataform**](https://console.cloud.google.com/bigquery/dataform) page.
2. Confirm that you have selected the correct Google Cloud project from the project drop-down.
3. Click the name of the repository created during deployment (for example, `cortex-repository`).
4. Click the workspace name (for example, `dev`).
5. Click **Start execution**.
6. Click **Execute actions**.
7. Select **All actions**. You can also choose key subsets of transformations by selecting specific tags or actions.
8. Click **Start execution**.

### Verify execution success

To monitor progress and check whether the pipeline completed successfully,
follow these steps:

1. Click the **Workflow Execution Logs** tab to view the execution history.
2. Verify that the status is **Succeeded**.
3. Click the execution run link to inspect details of specific actions, compilation errors, or execution timings.

## Review data assets in BigQuery

After your Dataform pipeline executes successfully, verify the
generated datasets and inspect the materialized tables in
BigQuery.

1. Navigate to [**BigQuery**](https://console.cloud.google.com/bigquery) in the Google Cloud console.
2. Locate the target datasets configured in your `config.yaml` file (for example, the dataset identified by `datasetId` in the `data.datasets` entry referenced by the module's `dataTargetId`). In the template configurations, these include:
   - **Data foundation layer** : Look for the dataset matching your foundation target ID (configured by default as `cortex7_sap_data_foundation` for SAP ERP or `cortex7_sfdc_data_foundation` for Salesforce).
   - **Data products layer** : Look for the dataset matching your product target ID (configured as `cortex7_data_products` by default).
3. Preview the tables and run sample queries to verify that they are populated with the expected records.

## Optional: Reconcile row- and column-level security

If your workspace configures
[row- and column-level security](https://docs.cloud.google.com/cortex/docs/row-and-column-security.md.txt)
(`data.security`), run
[`uv run cortex-apply-security`](https://docs.cloud.google.com/cortex/docs/uv-run-cortex-apply-security.md.txt)
after your Dataform workflow completes. This applies to both
`type: dataform` and `type: git` deployment targets because
`uv run cortex-deploy` and `uv run cortex-build-and-deploy` stage compiled files
without modifying live BigQuery tables (and log a `WARNING`
reminding you that column `policyTags` on tables materialized for the first time
and on added columns remain unattached until `uv run cortex-apply-security`
runs). Withhold end-user read access on target datasets until after this step
attaches column `policyTags`.

Optionally preview planned changes in read-only mode before applying them:

```bash
uv run cortex-apply-security --config config/config.yaml --dry-run
```

Apply column policy tags and drop stale or disabled row access policies:

```bash
uv run cortex-apply-security --config config/config.yaml
```

This command validates Google Cloud APIs and Data Catalog policy
tags (including **Enforce access control** on each referenced taxonomy), patches
column-level `policyTags` onto materialized BigQuery tables, and
cleans up stale or disabled Cortex Framework-managed row access
policies. Re-run the command whenever governed tables or columns are added or
when security rules change. For details, see
[Row- and column-level security](https://docs.cloud.google.com/cortex/docs/row-and-column-security.md.txt).

## Optional: Publish catalog metadata and conversational AI agents

After your Dataform workflow materializes the target tables and
views in BigQuery (and after running `uv run cortex-apply-security`
when `data.security` is enabled), run the remaining optional provisioning tools
in the following order:

1. **Register data products in Knowledge Catalog** : Synchronize deployed data products, business descriptions, and governance labels with [`uv run cortex-create-kc-data-products`](https://docs.cloud.google.com/cortex/docs/uv-run-cortex-create-kc-data-products.md.txt). For prerequisites and configuration details, see [Knowledge Catalog
   integration](https://docs.cloud.google.com/cortex/docs/knowledge-catalog).
2. **Provision BigQuery conversational analytics data agents** : Create and synchronize prebuilt or custom natural-language data agents over your materialized data products with [`uv run cortex-create-ca-agents`](https://docs.cloud.google.com/cortex/docs/uv-run-cortex-create-ca-agents.md.txt). See [Conversational analytics integration](https://docs.cloud.google.com/cortex/docs/conversational-analytics.md.txt).
3. **Register published data agents in Gemini** : Register published conversational analytics data agents into a Gemini app (optionally passing `--create-app`) with [`uv run cortex-register-gemini-agents`](https://docs.cloud.google.com/cortex/docs/uv-run-cortex-register-gemini-agents.md.txt). See [Gemini integration](https://docs.cloud.google.com/cortex/docs/gemini.md.txt).

## Next steps

- **Extend your data model** : See the [Extensibility guide](https://docs.cloud.google.com/cortex/docs/extensibility-guide.md.txt) to customize schemas or instantiate new modules.
- **Build new or customize data products** : See [Agentic data product builder](https://docs.cloud.google.com/cortex/docs/agentic-skills-for-data-product-building.md.txt) to get started.