--- title: "Manage Role Assistant packages" slug: "build-ai-ready-systems-operate-manage-role-assistant-packages" description: "Download, validate, and upload Role Assistant packages with environment settings, candidate Evidence, Knowledge, and test cases for governed review." tags: ["Role Assistants", "Integration", "Developer", "Integrator"] updated: 2026-11-30T18:58:23Z published: 2026-11-17T13:30:35Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-operate-manage-role-assistant-packages" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.aifabrix.ai/llms.txt > Use this file to discover all available pages before exploring further. # Manage Role Assistant packages Download, validate, and upload a **Role Assistant package** — environment settings, candidate Evidence, optional Knowledge, and test cases — without treating the Role Assistant like a vendor Connected System. ## Prerequisites - Logged in: `aifabrix auth status` (or CI app credentials) - The Role Assistant already exists on the dataplane (platform-generated — not hand-built) - You know which environment to promote: `dev`, `tst`, or `pro` Concept background: [How Role Assistants are created](/docs/role-assistants-how-role-assistants-are-created). Connected System publish remains separate: [Deployment and upload](/docs/build-ai-ready-systems-publish-certify-deployment-upload). ## Where it lives | Kind | Local folder | | --- | --- | | **Role Assistant package** | `role-assistant/<roleKey>/` | | **Connected System** | `integration/<systemKey>/` | Typical package layout: ``` role-assistant// application.yaml -system.yaml role-assistant.yaml # required for settings upload evidence/ # Evidence rows; processed on upload knowledge/ # optional ``` Optional lifecycle test cases live under the package when you use `aifabrix role-assistant test --case`. `role-assistant.yaml` holds **only** `dev` / `tst` / `pro` sections (runtime + debug). No secrets in this file. There is **no package version** — promotion is environment-based with `--env`. ## How to set 1. **Download** the Role Assistant into the local package (when you need an online baseline): ``` aifabrix download ``` 1. **Edit** the environment section you will promote in `role-assistant.yaml` (for example `dev.runtime` / `dev.debug`). `--env X` uses **section X only** — no merge from other environments. 2. **Validate** the package (including settings schema): ``` aifabrix validate ``` 1. **Upload** settings and package artifacts to one environment. For Role Assistants, **upload and deploy are the same** dataplane path (not a separate Miso Connected System deploy): ``` aifabrix upload --env dev # same outcome: aifabrix deploy --env dev ``` On upload/deploy the CLI applies that environment's settings and imports local Evidence as candidate rows. Import resolves stable identities and reports pending lifecycle actions; it does not certify or activate Evidence. Required import failures exit non-zero, and a remote failure may occur after some rows were imported, so inspect the returned per-row results before retrying. An authorized human completes Evidence review and promotion separately in **Assistants → Evidence**. File approval metadata and `--force` do not grant promotion authority. 1. **Environment upload ladder** when ready. Complete governed Evidence review in each target before tests or promotion decisions rely on those rows: ``` validate → upload --env dev → upload --env tst → upload --env pro ``` 1. **Optional lifecycle check** (portal deep link for operators): ``` aifabrix role-assistant test --env dev aifabrix role-assistant test --case smoke ``` Full test-case authoring: [Test Role Assistants](/docs/build-ai-ready-systems-operate-test-role-assistants). Evidence and Knowledge authoring: [Author Role Assistant Evidence](/docs/build-ai-ready-systems-operate-author-role-assistant-evidence) and [Author Role Assistant Knowledge](/docs/build-ai-ready-systems-operate-author-role-assistant-knowledge). ## Defaults and examples | Topic | Default / rule | | --- | --- | | Environments | `dev`, `tst`, `pro` only | | Missing `--env` section | Settings upload fails | | Secrets | Not in `role-assistant.yaml` — use secret store / `env.template` | | Evidence | Package `evidence/` imports candidates; governed review and promotion are separate | | Standalone Evidence CRUD | Separate Evidence CLI when you need list/get outside upload | Minimal `role-assistant.yaml` shape (fields vary by deployment — validate against the settings schema): ``` apiVersion: aifabrix.ai/v1 version: 1.0.0 kind: RoleAssistantSettings roleKey: sales-representative dev: runtime: provider: openai model: gpt-5-nano temperature: 0.2 maxLoops: 20 debug: enabled: true tst: runtime: provider: openai model: gpt-5-nano temperature: 0.2 maxLoops: 20 debug: enabled: false pro: runtime: provider: openai model: gpt-5-nano temperature: 0.1 maxLoops: 20 debug: enabled: false ``` Example promote sequence: ``` aifabrix validate sales-representative aifabrix upload sales-representative --env dev aifabrix role-assistant test sales-representative --env dev aifabrix upload sales-representative --env tst aifabrix upload sales-representative --env pro ``` Integrators upload the same local package folder to each environment. Each upload applies **only** the matching YAML section and re-runs Evidence import for local rows. Do not invent a package version number or a separate Miso Role Assistant deploy pipeline. ## Validate | Check | Command / signal | | --- | --- | | Package + settings schema | `aifabrix validate <roleKey>` | | Upload succeeded | Exit 0; structured summary for settings, Evidence identities, lifecycle actions, and test-pack counts | | Evidence is usable | Authorized review/promotion is complete in the target environment; upload alone is insufficient | | Lifecycle smoke | `aifabrix role-assistant test <roleKey> --env <env>` | | Connected System online tools | Use Connected System `show --online` — not this package path | ## Common mistakes | Mistake | Fix | | --- | --- | | Using `integration/<key>/` for a Role Assistant | Use `role-assistant/<roleKey>/` after download | | Expecting Miso deploy / package version for Role Assistants | Use `upload`/`deploy` with `--env` only | | Putting secrets in `role-assistant.yaml` | Move credentials to the secret store | | Treating upload as Evidence certification | Review imported identities and complete governed human promotion separately | | Retrying after partial import without review | Inspect per-row results first; preserve stable identities and current server state | | Teaching Connected System `upload --probe` as the Role Assistant path | See [Deployment and upload](/docs/build-ai-ready-systems-publish-certify-deployment-upload) for Connected Systems only | ## Limits - Role Assistants must already exist on the dataplane (platform-generated). This page does not create assistants from scratch. - Exact CLI flags follow your Builder version — confirm with `aifabrix upload --help` and Builder Role Assistant package docs. Use the package upload model (`--env`) even when Connected System help text differs. - Connected System certify/upload remains required for Layer A capabilities. ## Related - [How Role Assistants are created](/docs/role-assistants-how-role-assistants-are-created) - [Evidence Fabrix](/docs/evidence-fabrix) - [Test Role Assistants](/docs/build-ai-ready-systems-operate-test-role-assistants) - [Author Role Assistant Evidence](/docs/build-ai-ready-systems-operate-author-role-assistant-evidence) - [Author Role Assistant Knowledge](/docs/build-ai-ready-systems-operate-author-role-assistant-knowledge) - [Deployment and upload](/docs/build-ai-ready-systems-publish-certify-deployment-upload) — Connected Systems - [Operate your first Role Assistant](/docs/get-started-operate-first-role-assistant) - [Runtime Orchestration MCP](/docs/architecture-runtime-orchestration-mcp) - [CLI reference](/docs/reference-cli-reference) ## Related - [Deployment and upload](/build-ai-ready-systems-publish-certify-deployment-upload.md) - [Runtime Orchestration MCP](/architecture-runtime-orchestration-mcp.md) - [CLI reference](/reference-cli-reference.md) - [How Role Assistants are created](/role-assistants-how-role-assistants-are-created.md) - [Operate your first Role Assistant](/get-started-operate-first-role-assistant.md) - [Test Role Assistants](/build-ai-ready-systems-operate-test-role-assistants.md) - [Author Role Assistant Evidence](/build-ai-ready-systems-operate-author-role-assistant-evidence.md) - [Author Role Assistant Knowledge](/build-ai-ready-systems-operate-author-role-assistant-knowledge.md)