Agent workflow operate

From nebius/nebius-physical-ai · View interactive version

Agent workflow operate is an AI agent skill from the GitHub repository nebius/nebius-physical-ai. Use when verifying that a bootstrapped NPA agent VM can create, validate, plan, provision for, or run npa.workflow YAMLs.

How to use this skill

Skill file

Agent Workflow Operation

Operating Model

reasoning system it uses; NPA does not select or require a model for draft,

validation, planning, provisioning, submission, or observation. See

docs/workbench/agent-workflow-operations.md for the bounded command journey.

and agent records. Run npa agent fresh-setup, bootstrap, status, and

verify-live there.

bootstrap, it must have staged ~/.npa/config.yaml, ~/.npa/credentials.yaml,

Nebius CLI/profile or token material, and the NPA checkout needed to validate,

plan, provision, and run workflow YAMLs.

autonomy. The relevant check is whether the agent VM can operate workflows

with its bootstrapped config.

Test Framework

Run the framework by SSHing from the dev VM into the active agent VM using the

agent record SSH key. Do not print credential files or secret values.

  1. On the dev VM, resolve the active agent:

```bash

npa/.venv/bin/npa agent status --project <project> --name <name> --json

```

  1. From the dev VM, SSH to the agent public IP with the recorded key and create

a temporary apiVersion: npa.workflow/v0.0.1 YAML. Use a known catalog

toolRef such as workbench.vlm_eval.run and include all config tokens

required by the tool template, including vlm_backend.

  1. On the agent VM or through the agent API, validate and plan:

```bash

npa/.venv/bin/npa workbench workflow validate-spec /tmp/spec.yaml --json

npa/.venv/bin/npa workbench workflow plan-spec /tmp/spec.yaml --run-id agent-smoke --json

npa/.venv/bin/npa workbench workflow run-spec /tmp/spec.yaml \

--run-id agent-smoke --plan-only --scheduler-plan --json

```

Equivalent API checks:

```text

GET /api/infra/k8s

POST /api/infra/provision

POST /api/workflows/validate

POST /api/workflows/plan

POST /api/workflows/submit

```

  1. Check K8s provisioning readiness from the agent VM:

```bash

npa/.venv/bin/npa provision-if-absent --project <project> --dry-run \

--output-format json

```

  1. If the operator explicitly requests live execution, let the agent use

POST /api/workflows/submit or POST /api/infra/provision so NPA provisions

Kubernetes as needed through normal NPA commands. Do not manually create,

delete, or mutate cloud resources outside NPA.

  1. Inspect or stop only through bounded NPA workflow operations. Prefer

status --json, logs --cached --max-output-chars 32768 --json, and

artifacts --json; cancel the run before any separately authorized cluster

teardown. Never expose backend commands or state paths to the calling agent.

Pass Criteria

~/.npa/credentials.yaml; do not print contents.

requiring real workload execution.

reports intended or existing K8s/storage actions without credential errors.

backends. If none are present, chat should say no infra is specified and offer

options: deploy minimal infra with the agent, configure an existing backend, or

submit with explicit project/cluster target.

when allowed and needed, and records a scheduler plan/run record.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.