Skip to content
Back to skills

Ontoplato Workflow Admin

ASecurity

Domain-administrator workflow orchestration and conceptual component maintenance in OntoPlato: object types/attributes/relationships, metrics/functions/Actions, fixed Workflows and Case-based temporary Workflows, actorPolicy routing and caseScoped boundaries, Praxis multiSource ledger setup, task triggers, and verification.

  • 13 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
businesspythongobashnodetestingapidatabasefrontendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ontomato-ai/OntoPlato --skill ontoplato-workflow-admin --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ontoplato Workflow Admin?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ontoplato Workflow Admin
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ontomato-ai-ontoplato-workflow-admin/badge)](https://www.skillsdirectory.com/skills/ontomato-ai-ontoplato-workflow-admin)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ontoplato-workflow-admin
description: "Domain-administrator workflow orchestration and conceptual component maintenance in OntoPlato: object types/attributes/relationships, metrics/functions/Actions, fixed Workflows and Case-based temporary Workflows, actorPolicy routing and caseScoped boundaries, Praxis multiSource ledger setup, task triggers, and verification."
compatibility: Node.js 24+
---

# Workflow Admin

This skill covers **conceptual component maintenance and workflow orchestration** inside an OntoPlato domain: maintaining fact-layer and capability-layer assets, wiring workflow authorization boundaries, defining publishable fixed workflows or Case-based temporary workflows, configuring the Praxis `multiSource` ledger and task triggers, and verifying everything statically and dynamically.

- **Day-to-day execution, inbox handling, and approvals**: use `ontoplato-workflow-operator` (this skill does not execute routine business Actions).
- **Full permission administration** (org tree, members, positions, roles, three policy types, row/field permissions, API Keys, external identity sync): see `ontoplato-permission`; this skill covers only how workflow steps hook into roles and grants.
- **Action and MetricView function package authoring and the Action 3-step release lifecycle** (`# ontomato-python:2`, `save -> trial -> publish`): see the single authoritative specification in `ontoplato-capability-builder`.

OntoPlato defines, publishes, and authorizes capabilities; Ontopraxis (Praxis) compiles an active Workflow into a frozen `RunTemplate`, maintains Run/Step state, and drives execution. Both sides must hold:

| Element | Role | Not |
| --- | --- | --- |
| `Workflow` + steps | **Publication and authorization unit**: Praxis compiles a `RunTemplate` from the active version while OntoPlato writes `role × action` grants | Not a business fact class and not an Action |
| Step `Action` | Executable write function; business eligibility lives on the Action itself | Not a workflow node |
| Step `roleCode` | Authorization subject, resolved at activation against domain `roleName` | Not a person's name |
| `runContract` | Field projection on the business run class (ID / current node / status / assignee) | Not a table DDL |

Core runtime rules:

- **Fixed logic steps**: Praxis invokes the OntoPlato Action automatically from the frozen template using the Run `requester` as acting principal.
- **Human steps**: Praxis creates the Run/Step and waits. `actorPolicy.mode=none` leaves it in the role pool; `rule` or `agent` resolves one concrete assignee before entering `waiting`.
- **Reassignment lock**: once a step is assigned, peer members of the same role cannot snatch it; only the current assignee, Run `requester`, or an administrative role can reassign via Praxis step assignment.
- **Business preconditions stay on the Action**: Praxis manages ledger state and assignment; the Action's `submissionCriteria` still validates whether the business object is eligible.
- **Automatic domain provisioning**: when a domain is created, OntoPlato calls Praxis's internal provisioning endpoint to register the domain, create `ledger_<domainId>`, and hot-reload—never add per-domain environment variables or restart Praxis.

The workflow management UI currently offers **read-only view for existing workflows**; update workflow definitions through this skill's `wf-save` command rather than expecting UI editing.

---

## Connection and prerequisites

- Node.js 24+ (the bundled script uses Node built-ins only), a deployed OntoPlato instance, and a **domain administrator** account.
- **Object `CREATE` grant prerequisite**: saving new Actions and Workflows requires `ACTION` and `WORKFLOW` `CREATE` object grants on the caller's role (if `403 CREATE_FORBIDDEN` occurs, grant them via `ontoplato-permission` `postType=3` object policy API `POST /authorization/policies/entries:grant` or `/governance/policies`).
- **`multiSource` reload boundary**: after saving `praxis-multisource-save` / `datasource-multi`, restart the running `data-engine` so new adapter connections take effect; the read-only ledger role password for `ontopraxis_reader_<domainId>` comes from deployment administration and is not created by this CLI.
- Below, `<this-skill>` is the directory containing this `SKILL.md`. JSON arguments accept inline JSON (`{...}`), a file path (`file.json`), or `@file.json`. Every write command supports `--dry-run` (prints the request locally without logging in, hitting the network, or mutating state).
- Endpoint configuration (based on frontend base URL `ONTOMATO_URL` / `<envUrl>`, e.g., `http://host:3000`, falling back to `application.yml` in the current working directory or this skill directory):
  - `ONTOMATO_ONTOLOGY_URL` (or `OA_BASE`): data-engine endpoint, defaulting to `<envUrl>/api/data-query`;
  - `ONTOMATO_PRAXIS_URL` (or `PRAXIS_BASE`): Praxis endpoint, defaulting to `<envUrl>/api/praxis`;
  - `ONTOMATO_WORKBENCH_URL` (optional override): workbench root `<envUrl>` (the script appends `/api` automatically);
  - `OA_AUTH` (only for username/password mode when overriding the SSO endpoint, e.g., `<envUrl>/api/data-query/sso`).
- Authentication (no default account; precedence: platform callback `ONTOMATO_EXECUTION_CALLBACK` > CLI flags `--token` / `--api-key` / `--user`+`--password` > env `ONTOMATO_API_KEY` > `ONTOMATO_TK` > `OA_CODE`+`OA_PASS`+`OA_DOMAIN` > `application.yml`):
  1. **OntoPlato API Key**: `ONTOMATO_API_KEY` (compatible with `OA_API_KEY`) or `--api-key <key>`;
  2. **Platform token**: `ONTOMATO_TK` (compatible with `OA_TOKEN`) or `--token <tk>`;
  3. **Username + password**: `OA_CODE` + `OA_PASS` + `OA_DOMAIN` or `--user` / `--password` / `--domain`.
- Inside platform Agent runs, the host injects callback endpoints and credentials automatically; outside the platform, configure environment variables or `application.yml` and run the exact same commands.

```bash
node <this-skill>/scripts/client.mjs ping
node <this-skill>/scripts/client.mjs me
node <this-skill>/scripts/client.mjs subjects
```

If `ping` fails, diagnose the environment before modifying any workflow definition.

---

## 1. Conceptual component scope

This skill maintains **conceptual ontology assets outside the application layer** (fact layer, capability layer, and governance hooks). Applications, panels, projections, and product-layer agent definitions belong to `ontoplato-app-builder` and `ontoplato-agent-builder`.

| Layer | UI entrypoints |
| --- | --- |
| Fact | `/ontology/objects`, `/ontology/attributes`, `/ontology/relations`, `/ontology/knowledge`, `/ontology/visual-modeling` |
| Capability | `/ontology/assets/metrics`, `/ontology/assets/functions`, `/ontology/assets/actions`, `/ontology/assets/workflows`, `/ontology/assets/triggers`, `/ontology/skills` |
| Cross-layer read-only | `/ontology/assets/capability-map` |
| Governance | `/permissions/members`, `/permissions/roles`, `/permissions/policies`, `/permissions/organization` |

See [Conceptual Component Maintenance](references/concept-components.md) for object-type, attribute, relationship, metric, function, and skill commands plus read-back checks. Write business knowledge through `ontoplato-knowledge-governance`.

---

## 2. Business DB + Praxis Ledger `multiSource`

OntoPlato's `multi` adapter routes business objects to the business database and Run / Case / Assignment / Step / Decision records to the Praxis ledger schema `ledger_<domainId>`. Verify automatic domain provisioning before saving:

```bash
node <this-skill>/scripts/client.mjs domain-praxis-check <domainId>
node <this-skill>/scripts/client.mjs praxis-multisource-save @praxis-multisource.json
node <this-skill>/scripts/client.mjs praxis-multisource-check
```

See [Business DB and Praxis Ledger `multiSource`](references/praxis-multisource.md) for full payloads, constraints, and cross-source verification. Key points:

- `business` is writable (`readOnly=false`); `ledger` must be `readOnly=true` and use the read-only database `reader` role.
- The current Praxis ledger exposes **7 read-only views**: `workflow_run`, `workflow_case`, `assignment_request`, `step_run`, `approval_decision`, `model_decision`, and `context_assembly` (do not use the legacy 5-view list).
- Each ontology class routes to exactly one source; no duplicate class names or nested `multi` sources. Cross-source JOINs are unsupported—query `workflow_run` by `acts_on_class` / `acts_on_id` first, then query the business object in a second step.
- Restart `data-engine` after saving `multiSource` so live adapter connections reload.

---

## 3. Hooking into permissions (details in `ontoplato-permission`)

Workflow steps connect to the platform permission model via roles and organizational scopes (for full org-tree, member, position, role, policy, row/field permission, API Key, and identity-sync configuration, see `ontoplato-permission`):

- **Three policy types (`PolicyTypes`)**:
  - `postType=1`: **Management operation policy** — grants view/change on platform management operations;
  - `postType=2`: **Business data policy** — configures row/field data permissions on domain classes (`fullData=1` grants full business data access);
  - `postType=3`: **Entry & object policy** — grants access to entrypoints and their associated panels, projections, components, agents, Actions, and metrics.
- **Role-to-step binding**: each step's `roleCode` must match an existing domain role (`roleName`) that has at least one effective member (assigned directly via `role-members` or via org grants `grant-save` targeting `organization`, `subtree`, or `position`). Use `roleType=0` for normal business roles; do not casually create admin roles (`roleType=1`).
- **Step `scope` and org alignment**: `self_organization`, `self_subtree`, and `self_descendants` require `runContract.orgField` and valid org-tree membership.
- If only an admin account exists during verification, temporarily add it to step roles (`role-members`) and revert immediately afterward.

---

## 4. Workflow Action constraints

An N-step workflow typically needs **N+1 Actions**: 1 initiation Action plus 1 handling Action per step.

Follow `ontoplato-capability-builder` for the `# ontomato-python:2` package contract, parameter schemas, and the **authoritative Action 3-step release lifecycle (`save -> trial -> publish`)**. Workflow-specific constraints:

- Each Action embeds a `function` (`operation: OPERATION_WRITE`, submitted via `function.files` with `# ontomato-python:2` on line 1 of `main.py`). Once `PUBLISHED`, the file bundle is frozen—create a new Action to change code.
- Approval Actions must accept `run_id` (business object ID), `decision` (`approved` / `rejected`), and `comment`, updating business status, current node, and approver; encode "is it this step's turn?" in `submissionCriteria`.
- `approvalMode` accepts `auto | human | twoKeys`; `twoKeys` currently compiles to a standard `human` step (no dual-sign implementation).
- **Creation Action output contract**: must `print(json.dumps({...}, ensure_ascii=False))` returning `targetClass` and `run_id` (or `id`) so Praxis binds the new business object automatically; returning only `{"completed": true}` breaks downstream `$business.*` routing and approvals.
- **All declared parameters are required**: every entry in `function.parameters` is mandatory; `or default` in Python does not make a parameter optional. Human `decide` cannot supply ad-hoc parameters, so bind them via step inputs or omit them and generate values in code.
- **Separate application records from historical fact tables**: promotions or role-change approvals must never pre-insert pending target rows into historical fact tables (e.g., `tech_gwdj` holds only real current/past records). Store pending requests in a dedicated application class (e.g., `tech_gwdj_apply`) referenced by `runClassName`, bind rule routing to application fields (such as `$business.target_hj_dj`), and write the real historical record only in the final approval Action.
- **Calling Praxis inside an Action**: use the runtime-injected `praxis_*` helpers in `query_runtime`; never hardcode ports/URLs or declare `ONTOMATO_CALLER_TK` as a parameter or log it. Pass `candidate.principal` (typically `loginCode`) from `praxis_step_candidates()` for assignee parameters. Because sandbox trials carry the caller's live token, Praxis calls can produce real side effects—query existing runs by business ID before retrying. Full helper contracts live in [Praxis Helpers in Actions](references/praxis-helpers.md).

CLI shortcuts for the Action 3-step loop (gates and rejection codes defined in `ontoplato-capability-builder`):

```bash
node <this-skill>/scripts/client.mjs actions
node <this-skill>/scripts/client.mjs action-save ./action.json                     # 1. Save draft (omit id on create)
node <this-skill>/scripts/client.mjs action-trial <actionId> @trial-payload.json   # 2. Sandbox trial (POST /action/trial)
node <this-skill>/scripts/client.mjs action-get <actionId>                         #    Verify explanation & trialStatus=passed
node <this-skill>/scripts/client.mjs action-reexplain '{"ids":["<actionId>"],"missingOnly":true}'
node <this-skill>/scripts/client.mjs action-publish <actionId>                     # 3. Publish (POST /action/setStatus)
node <this-skill>/scripts/client.mjs action-retire <actionId>                      # Retire to UNUSED (never delete)
```

---

## 5. Authoring fixed Workflows

### 5.1 Seven decisions to settle first

1. **Run object**: what business record represents one run (e.g., `leave_request`) → fact class + PK + fields.
2. **`runContract`**: field mapping for ID / current node / status / assignee on that class.
3. **Step sequence**: order of steps and whether each is `approve` or `execute`.
4. **Step roles**: existing domain `roleName` values used as `roleCode`.
5. **Authorization scope (`scope`)**: `all`, `self_organization`, `self_subtree`, `self_descendants`, `initiated_by_self`, or `assigned_to_self`.
6. **Assignment policy (`actorPolicy`) and `caseScoped`**: role pool (`none`), rule-based (`rule`), or agent-based (`agent`), and whether execution is locked to the current Case assignee.
7. **Submission requirements**: required initiation inputs versus server/script-computed fields.

### 5.2 `runContract`

```json
{
  "className": "leave_request",
  "idField": "id",
  "stepField": "current_node",
  "statusField": "status",
  "statusOpen": ["Pending"],
  "statusDone": ["Completed"],
  "statusRejected": ["Rejected"],
  "assigneeField": "assignee_id",
  "orgField": "dept",
  "initiatorField": "applicant_id",
  "candidateField": "candidate_ids",
  "workflowRefField": "workflow_id"
}
```

- `idField` defaults to `id`; omitting other fields disables those projections.
- `stepField` and `statusField` must be distinct attributes; `statusOpen` must be non-empty; open / done / rejected status sets must be disjoint; all declared fields are validated against the run class at activation.
- Declaring `runContract` auto-generates two published MetricViews ("My Pending" and "Record Detail") upon activation.
- When multiple workflows share a run class, declare `workflowRefField` and have the initiation Action populate the workflow ID.
- `self_organization` / `self_subtree` / `self_descendants` require `orgField`; `initiated_by_self` requires `initiatorField`; `assigned_to_self` requires `assigneeField`.

### 5.3 Steps, `actorPolicy`, and `caseScoped` (authoritative semantics)

```json
{
  "name": "Leave Request",
  "description": "Company standard leave workflow",
  "runClassName": "leave_request",
  "runContract": { "...": "..." },
  "steps": [
    {
      "stepNo": 1,
      "name": "Submit Request",
      "roleCode": "DEPARTMENT_EMPLOYEE",
      "actionId": "act_leave_start",
      "actionType": "execute",
      "scope": "all",
      "description": "Applicant submits request"
    },
    {
      "stepNo": 2,
      "name": "Department Leader Approval",
      "roleCode": "DEPT_LEADER",
      "actionId": "act_leave_approve",
      "actionType": "approve",
      "scope": "self_subtree",
      "actorPolicy": { "mode": "none" },
      "invocationMode": "manual",
      "description": "Approve requests within department subtree"
    }
  ]
}
```

Actual `WorkflowStep` definition fields: `stepNo`, `name`, `roleCode`, `actionId`, `actionType`, `scope`, `description`, `actorPolicy`, `invocationMode`, `inputBindings`, `locked`, `caseScoped`. The platform **never** returns step-level `input`, `executor`, `assignee`, or `decider` (those are runtime inputs, not definition fields).

- **Unique `name`**: step names must be non-empty and distinct within the workflow.
- **`roleCode` resolution**: blank `roleCode` fails on save; domain role existence resolves at **activation** (`The workflow names a role that does not exist in this domain: X`).
- **`actionType=approve`**: forces the step to be `human` even if the Action declares `auto`.
- **`scope`**: defines authorized data scope, not who currently owns the task.
- **`actorPolicy` applies to `human` steps only** (`fixed` steps execute directly without rule/agent routing):
  - `mode: "none"`: role-pool self-claim.
  - `mode: "rule"`: requires `metricViewId` and `metricRevision`; `principalField` defaults to `principal`, and outputs may map via `valueMap` before validating against step candidates. Supports `parameterBindings` mapping frozen runtime context to MetricView parameters (`$run.id`, `$run.templateRef`, `$run.requester`, `$step.id`, `$step.ref`, `$step.roleCode`, `$business.className`, `$business.id`, `$business.<field>`, overriding static `parameters`; `$business.*` requires the Run to be bound to a business object first).
  - `mode: "agent"`: requires `agentId` and optional `instruction`; Praxis AssignmentWorker invokes the Agent asynchronously with `runId`, `stepId`, and `candidates`. The Agent must pick from `candidates` and return only `{"assignedTo":"...","reason":"...","evidence":[...]}`; AssignmentWorker transitions the step from `routing` to `waiting` (the Agent never calls `assign` directly). The Agent's own `executionUserId` still governs its tool permissions.
  - `actorPolicy.executionPrincipalId` (optional): principal (user ID or `loginCode`) used by Praxis when calling the MetricView or Agent; defaults to deployment setting `ONTOPRAXIS_SYSTEM_PRINCIPAL` (not the final step assignee).
- **`caseScoped=true` execution boundary (security contract)**:
  - Any step using `actorPolicy.mode=rule|agent` or requiring `assignedTo` as an execution boundary **must set `caseScoped: true`**.
  - Activation writes **no** role-level `role × action` grant; the Action can only run with the Case execution credential issued by Praxis for that Run and current assignee, preventing peers in the same role from bypassing `assignedTo`.
  - If an Action appears only in `caseScoped` steps of ACTIVE workflows, ordinary `/action/execute` never falls back to platform-level Action permissions and returns unauthorized—**never "fix" this by adding a role-level grant**.
  - **Candidate-resolution caveat**: Praxis maps `roleCode → roleId` from in-force `/workflow/grants`. Because a `caseScoped` step writes no role grant row, a `caseScoped=true` step with `actorPolicy.mode=rule|agent` requires that role to have at least one in-force ordinary grant so candidates can resolve (`verify` explicitly checks this).
- **`inputBindings` and `locked`**: `inputBindings` populates Action parameters from Case `payload`; `locked` fields always read from the Case and cannot be overridden by callers. Runs auto-create a Case only for temporary workflows or workflows with at least one `caseScoped` step.
- **`invocationMode`**: only `manual` is executable today; `automatic` can save/compile but fails at runtime on human steps and is ignored on fixed steps.

### 5.4 Save draft, activate, deactivate, and delete

```bash
node <this-skill>/scripts/client.mjs wf-save @workflow.json
node <this-skill>/scripts/client.mjs wf-query <workflowId>
node <this-skill>/scripts/client.mjs wf-activate <workflowId>
node <this-skill>/scripts/client.mjs wf-deactivate <workflowId>   # Revokes version grants, keeps history
node <this-skill>/scripts/client.mjs wf-delete <workflowId>       # Draft or deactivated workflows only
```

- `wf-save` creates a `DRAFT` with **no grants**. Only `wf-activate` allocates a new version, freezes steps, writes grants, appends an `Activated` event, and generates the pending/detail MetricViews.
- **Never ignore `activationNotes`**: empty means both queries generated cleanly; non-empty flags a generation failure or warning that must be resolved.
- Re-activating unchanged steps bumps `version+1` and re-emits grants—never use it as a retry. To change an active workflow, edit the draft and activate again; deactivate before deleting.

### 5.5 Case-based temporary workflows

For ad-hoc workflows without a business fact class, Praxis `workflow_case` holds form state across steps:

```json
{
  "name": "TMP-VM-Request",
  "temporary": true,
  "runClassName": "workflow_case",
  "caseFormSchema": {
    "type": "object",
    "required": ["cpu", "memory_mb", "disk_mb", "os"],
    "properties": {
      "cpu": {"type": "integer", "minimum": 1},
      "memory_mb": {"type": "integer", "minimum": 1024},
      "disk_mb": {"type": "integer", "minimum": 10240},
      "os": {"type": "string", "enum": ["centos", "ubuntu", "redhat"]},
      "host": {"type": "string", "minLength": 1},
      "ip": {"type": "string", "minLength": 1}
    }
  },
  "steps": [
    {"stepNo": 1, "name": "Submit", "roleCode": "ENGINEER", "actionId": "act_expense_submit", "actionType": "execute", "caseScoped": true},
    {"stepNo": 2, "name": "Fulfill", "roleCode": "ENGINEER", "actionId": "act_vm_create", "actionType": "execute", "caseScoped": true,
     "inputBindings": {"cpu": "payload.cpu", "memory_mb": "payload.memory_mb", "disk_mb": "payload.disk_mb", "os": "payload.os"},
     "locked": ["cpu", "memory_mb", "disk_mb", "os"]}
  ]
}
```

- `temporary: true` + `runClassName: "workflow_case"` bypasses business fact class and `runContract` checks.
- `caseScoped: true` writes no global role grants; absence from `wf-grants` is expected.
- `caseFormSchema` supports only `type`, `required`, `enum`, `const`, `minimum`, `maximum`, `minLength`, and `maxLength`.
- `verify <workflowId>` accepts `temporary=true` in place of `runContract`; validate payload schema and locked bindings via `ontoplato-workflow-operator` (`case-submit` / `case-fill`). Clean up with `case-close`, then `wf-deactivate` + `wf-delete` (frozen Runs and Cases remain in the Praxis ledger).

---

## 6. Configuring task triggers

Task triggers run published Actions, start Workflows, or invoke application-provided agents, ops inspections, and knowledge governance on interval, daily, weekly, monthly, or Cron schedules. Discover valid domain targets with `trigger-targets` first:

```bash
node <this-skill>/scripts/client.mjs trigger-targets
node <this-skill>/scripts/client.mjs trigger-create '{
  "title":"Daily 9am Inspection",
  "targetKind":"workflow",
  "targetId":"<workflowId>",
  "content":{"inputs":{}},
  "frequency":{"kind":"daily","time":"09:00"},
  "timeZone":"Asia/Shanghai",
  "notifyEmail":null
}'
node <this-skill>/scripts/client.mjs trigger-get <triggerId>
node <this-skill>/scripts/client.mjs trigger-status <triggerId> PUBLISHED <revision>
node <this-skill>/scripts/client.mjs trigger-run <triggerId>
node <this-skill>/scripts/client.mjs trigger-history <triggerId> [runId]
```

- `trigger-create` saves as pending review by default; add `--publish` to publish immediately. Authors acting as themselves on authorized targets may publish directly; specifying another `executorId` requires management change permission.
- Only published, enabled, non-suspended triggers fire on schedule, executing as `executorId` (defaults to creator). Manual `trigger-run` runs under the caller's own identity.
- Update via `trigger-update <triggerId> <json>` (with latest `revision`); delete via `trigger-delete <triggerId> <revision>`. Follow started workflow runs in Praxis using the run ID recorded in trigger history.

---

## 7. Verification (mandatory)

### 7.1 Static verification

```bash
node <this-skill>/scripts/client.mjs verify <workflowId>
```

Checks: `status=ACTIVE`, `version>=1`, empty `activationNotes`, `runContract` or `temporary=true`, every step's `roleCode` exists with members, non-empty `actionId`, `invocationMode=manual`, complete `actorPolicy` (`metricViewId/metricRevision` for `rule`, `agentId` for `agent`), and an in-force ordinary role grant whenever `caseScoped=true` is paired with `rule|agent`. Fix every failure before dynamic testing.

### 7.2 Dynamic verification and domain provisioning check

Confirm Praxis auto-provisioning on new domains (`ok=true`; on 404 wait, retry, and check logs rather than editing env vars or restarting Praxis):

```bash
node <this-skill>/scripts/client.mjs domain-praxis-check <domainId>
```

Switch to `ontoplato-workflow-operator` using real step-role accounts to verify:

1. Initiation Action returns `targetClass` and `run_id` / `id`;
2. Step-by-step progression (pull `run` or Praxis `inbox` → `decide`) advances `current_node` and `status`;
3. **Mandatory negative cases**: out-of-turn re-execution (precondition failure), unauthorized user (`notGranted`), non-assignee peer calling a `caseScoped` Action directly (unauthorized), and rejection (status transitions to rejected and halts);
4. Task triggers verified with `trigger-run` and `trigger-history`.

---

## 8. Command quick reference

| Command | Purpose |
| --- | --- |
| `login / me / me-full / ping` | Auth check and reachability |
| `domains / domain-create / domain-praxis-check [domainId]` | Domain management (`domain-create` requires explicit `adminPassword`) and Praxis check |
| `schema-overview / capability-map` | Ontology overview and conceptual capability map |
| `object-type-* / attribute-* / relationship-*` | Fact-layer object types, attributes, and relationships |
| `knowledge-search` | Search business knowledge (writes via `ontoplato-knowledge-governance`) |
| `metric-* / function-*` | MetricViews and Functions |
| `skills / skill-files / skill-import / skill-export / skill-delete` | Domain skill packages |
| `business-config / datasource-multi / praxis-multisource-save / praxis-multisource-check` | Business config and dual-source ledger routing |
| `subjects / users / org-* / member-* / position-* / grant-* / roles / role-* / posts / post-* / management-catalog / data-permission-*` | Governance shortcuts (full guide in `ontoplato-permission`) |
| `actions / action-get / action-save / action-trial / action-reexplain / action-publish / action-retire` | Action lifecycle shortcuts (authoritative rules in `ontoplato-capability-builder`) |
| `wf-save / wf-query / wf-activate / wf-deactivate / wf-delete / wf-grants / wf-access` | Workflow authoring, activation, and grants |
| `trigger-list / trigger-get / trigger-targets / trigger-create / trigger-update / trigger-status / trigger-run / trigger-history / trigger-delete` | Task triggers and run history |
| `verify <workflowId>` | Static workflow verification |

All write commands support `--dry-run`. This client intentionally omits `run`; execute business Actions via `ontoplato-workflow-operator`.

---

## 9. Hard constraints and safety rules

- **Never put real passwords, tokens, or API Keys into skill files, logs, or transcripts**; use environment variables. `datasource-multi` and `praxis-multisource-save` mask common secret fields in `--dry-run`, but treat live responses and logs as sensitive.
- Organizations, roles, grants, and workflows are **live domain data**: confirm before deleting, deactivating, or temporarily assigning roles, and clean up immediately after verification.
- Published `Action` code is frozen; `Workflow` drafts carry no grants until activated; active workflows must be deactivated before deletion.
- `domain-create` requires an explicit `adminPassword` (encrypted via the instance's login public key); the platform no longer ships a default password.
- Never bypass `caseScoped` or Case-only Action protection by adding direct role-level grants; execute them only through Praxis `decide` on the active `waiting` step as the assigned principal.
- Cross-source JOINs are unsupported; restart `data-engine` after saving `multiSource` and verify all 7 ledger views.

Files in this skill

  • SKILL.md27.9 KB
  • references/concept-components.md6.9 KB
  • references/praxis-helpers.md4 KB
  • references/praxis-multisource.md3.9 KB
  • scripts/client.mjs78.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.