aevatar-codex-exec-workflow-sample
Skill43 starsChanged 55 days agoApache-2.0View on GitHub
Mount and run harmless Aevatar workflows that prove codex_exec works through either the operator-managed chrono-sandbox/gVisor target or a private NyxID node-backed SSH target. Use after managed eligibility and required NyxID UserServices are ready, or after configuring a personal SSH node; also use when diagnosing typed managed or private-route failures before real tasks.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- aevatar-agent-profile-managementSkill
- aevatar-automationSkill
- aevatar-channels-deliverySkill
- aevatar-codex-exec-node-setupSkill
- aevatar-feasibility-advisorSkill
- aevatar-platform-mapSkill
- aevatar-schedulerSkill
- aevatar-service-publisherSkill
- aevatar-team-builderSkill
- aevatar-triageSkill
- aevatar-workflow-authoringSkill
- fallback-to-calling-agentSkill
- firecrawl-via-nyxidSkill
- github-via-nyxidSkill
- nyxid-service-skill-authoringSkill
- nyxidSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Keep the fixed probe prompt.
- Very specific: line 37
Never place tokens, keys, auth.json, CODEX_HOME, local paths, model flags, images, providers, or sandbox flags in workflow input.
- Very specific: line 38
Do not mix target fields. Managed requires target.kind=managed_sandbox plus workspace.kind=empty_git.
- Very specific: line 40
Run through Aevatar as the native NyxID account being verified.
- Very specific: line 50
Call use_skill with workflow mounting enabled:
- Very specific: line 59
Wait for the mount command to be accepted.
- Distinctive: line 71
Start the canonical workflow without caller-controlled routing:
- Distinctive: line 104
Keep the complete deadline chain ordered so each outer layer can observe the inner timeout:
- Distinctive: line 117
Start the private workflow with exactly the environment-owned service and Unix principal:
- Very specific: line 169
Use aevatar-codex-exec-node-setup for detailed setup or repair after locating the boundary.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Verify Aevatar codex_exec
Choose exactly one proof
Mount this skill from Ornn and run one bundled workflow for the configured target:
codex-exec-check: canonical managed chrono-sandbox/gVisor proof with no caller routing.codex-exec-private-ssh-check: private NyxID node-backed SSH proof with only service and principal routing.
Configuration, health, UserService, node-online, and direct SDK/SSH checks are prerequisites, not completion evidence. Report codex_exec as usable only after the selected Aevatar workflow returns exact CODEX_EXEC_READY under that target's result contract.
Guardrails
- Fetch the public skill from Ornn. Do not validate only a local workflow copy.
- Keep the fixed probe prompt. Do not replace it with a real task.
- Never place tokens, keys,
auth.json,CODEX_HOME, local paths, model flags, images, providers, or sandbox flags in workflow input. - Do not mix target fields. Managed requires
target.kind=managed_sandboxplusworkspace.kind=empty_git; private requires nestedtarget.private_sshand no workspace. - Managed callers cannot choose a repository, workspace path, image, model, provider, credential, shell, Codex profile, approval policy, or sandbox flags.
- Run through Aevatar as the native NyxID account being verified. Never pass a raw token. Before
the managed proof, use the explicit authenticated credential lifecycle:
POST /api/managed-codex/credential, thenGET /api/managed-codex/credential. Continue only whenexecution_ready=trueandexecution_readiness_reason=ready;status=activealone is insufficient. - Normal
codex_execexecution is credential-read-only. It never provisions, reconciles, rotates, repairs, or retries credentials.
Mount
Call use_skill with workflow mounting enabled:
{
"skill": "aevatar-codex-exec-workflow-sample",
"mount_workflows": true
}Wait for the mount command to be accepted. Read-model visibility can propagate asynchronously. If mounting is unavailable, fetch this exact public Ornn version and submit the corresponding YAML under assets/ as explicit inline draft-run input; state clearly that it was an inline run.
Managed proof
Prepare and prove in this order:
- Authenticated
POST /api/managed-codex/credentialidempotently provisions or reconciles the committed credential descriptor. GET /api/managed-codex/credentialreads projected status. Stop unlessexecution_ready=trueandexecution_readiness_reason=ready, even whenstatus=active.- Mount and run the canary below. Do not loop ordinary
codex_execcalls as a repair mechanism.
Start the canonical workflow without caller-controlled routing:
{
"workflow_id": "codex-exec-check",
"inputs": {
"prompt": ""
},
"wait": "stream"
}The workflow owns this exact codex_exec payload:
{
"target": { "kind": "managed_sandbox" },
"workspace": { "kind": "empty_git" },
"prompt": "Reply with exactly CODEX_EXEC_READY",
"timeout_secs": 180
}Success requires all of:
statusequal tosucceeded;targetequal tomanaged_sandbox;outputequal toCODEX_EXEC_READYafter trimming;exit_codeequal to0;- a non-empty sanitized
diagnostic_id.
elapsed_ms may be present but is not required for success. Treat a missing required field, extra model text, or any typed failure as a failed verification.
Keep the complete deadline chain ordered so each outer layer can observe the inner timeout:
- chrono-sandbox/Codex execution:
timeout_secs=180; - Aevatar managed request:
300seconds; - NyxID/ingress: at least
315seconds; - NyxID client:
330seconds; - workflow canary step: at least
360seconds (timeout_ms=360000in the bundled workflow).
In short: 180s < 300s < >=315s < 330s < >=360s. Do not shrink the workflow canary to the old
200-second budget.
Private SSH proof
Start the private workflow with exactly the environment-owned service and Unix principal:
{
"workflow_id": "codex-exec-private-ssh-check",
"inputs": {
"prompt": "{\"service\":\"your-service-slug\",\"principal\":\"your-unix-user\"}"
},
"wait": "stream"
}The workflow owns this target shape and deliberately has no workspace:
{
"target": {
"kind": "private_ssh",
"private_ssh": {
"service": "your-service-slug",
"principal": "your-unix-user"
}
},
"prompt": "Reply with exactly CODEX_EXEC_READY",
"timeout_secs": 300
}Pass the SSH UserService slug or UUID, never a node ID. Success requires the NyxID SSH response to have exit_code=0, timed_out=false, and stdout equal to CODEX_EXEC_READY after trimming. Private SSH output is returned as the original NyxID SSH response; it is not converted into the managed status/target/diagnostic_id JSON shape.
Diagnose by boundary
Preserve the exact typed error and sanitized diagnostic_id, if present. Do not request raw tokens, raw upstream bodies, auth.json, agent-key values, or an unredacted runner environment.
target_not_configuredormanaged_target_disabled: the Aevatar host does not expose the selected managed target; repair host configuration.managed_feature_not_enabled: the native NyxID subject is outside the current managed rollout; repair eligibility, not a sandbox.managed_user_services_unavailable: the user does not have the required directly owned activechrono-sandboxand usablechrono-llm-publicUserServices; repair NyxID service readiness.managed_credential_unavailable: Aevatar could not resolve its per-user managed invocation credential. Re-run the explicit authenticated credentialPOST, readGET, and continue only when execution readiness is true; ordinary execution does not repair it. Inspect descriptor and secret-vault readiness without exposing the secret.managed_proxy_authorization_denied: NyxID denied the exact proxy request; inspect user/service ownership and the current internal delegation scope.managed_proxy_target_unavailable: the exactchrono-sandboxUserService or/codex/executeroute is unavailable.managed_proxy_timeout: the NyxID proxy/chrono-sandbox request timed out. Preserve the diagnostic evidence and inspect that transport boundary first.managed_proxy_unavailable: the proxy/chrono service is temporarily unavailable or capacity-limited.managed_response_invalidormanaged_response_too_large: chrono-sandbox violated the bounded terminal-response contract.managed_execution_nonzero_exit: the one-shot Codex runner reached a terminal non-zero exit; inspect sanitized runner diagnostics.- Private
node_offline, service, target, principal, key, or host-key errors belong to the user's NyxID SSH route. - Private Codex PATH, login, Git-root, wrapper, or timeout errors belong to the selected host and fixed runner wrapper.
The managed workload runs under gVisor, which is the current isolation boundary. Codex runs inside it with the fixed runtime profile. Landlock, Bubblewrap, sandbox-side Credential Vault substitution, and a TLS credential proxy are not deployed in this runtime and are not repair paths for these failures.
Use aevatar-codex-exec-node-setup for detailed setup or repair after locating the boundary. Never declare readiness from configuration inspection alone.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

