OpenParable
Skip to content
← Back to skills

Provider Adapter Development

Agent Building
provider-adapter-development

Provider Adapter Development is an Agent Skill for agent building published in the AbdelStark/worldforge repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use for WorldForge provider work: adding adapters, changing capability declarations, promoting scaffolds, debugging provider failures, updating provider catalog docs, or touching LeWorldModel, GR00T, LeRobot, Cosmos-Policy, JEPA, Genie, or JEPA-WMS. Ensures capabilities remain truthful and optional runtimes stay host-owned.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/AbdelStark/worldforge/blob/HEAD/.codex/skills/provider-adapter-development/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/provider-adapter-development, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Provider Adapter Development

Non-Negotiables

  • Valid capabilities are predict, embed, plan, score, and policy.
  • ProviderCapabilities() is fail-closed. Advertise only callable, tested operations.
  • plan is a WorldForge facade workflow. Do not benchmark or advertise it as a provider operation unless a real provider-owned planner exists.
  • Optional runtimes, checkpoints, datasets, CUDA, robot packages, credentials, and robot controllers stay out of base dependencies and repo artifacts.
  • Provider events are a log boundary. Never emit bearer tokens, API keys, signed URL query strings, or secret-like metadata.
  • Treat upstream marketing names as untrusted. Capability labels come from observed callable behavior and contract tests, not from model family branding.

Capability Map

ProviderTruthful surfaceRegistration
mockpredict, embedalways
cosmos-policypolicyCOSMOS_POLICY_BASE_URL
leworldmodelscoreLEWORLDMODEL_POLICY or LEWM_POLICY
gr00tpolicyGROOT_POLICY_HOST
lerobotpolicyLEROBOT_POLICY_PATH or LEROBOT_POLICY
jepascoreJEPA_MODEL_NAME
geniescaffold onlyenv-gated reservation
jepa-wmsdirect-construction score candidatenot exported or auto-registered

Workflow

  1. Read the closest existing adapter, then src/worldforge/providers/base.py, src/worldforge/providers/catalog.py, and docs/src/provider-authoring-guide.md.
  2. Classify the upstream runtime by what it actually does, not by model marketing language.
  3. For a new scaffold, start with uv run python scripts/scaffold_provider.py ...; keep capabilities unadvertised until real methods return validated WorldForge models.
  4. Validate public inputs before network calls, filesystem reads, or optional runtime calls.
  5. Return the correct public model: PredictionPayload, EmbeddingResult, ActionScoreResult, or ActionPolicyResult.
  6. Add success and malformed/error fixtures under tests/fixtures/providers/.
  7. Add worldforge.testing.assert_provider_contract() coverage for every advertised capability.
  8. Update .env.example, provider docs, generated catalog surfaces, README, changelog, AGENTS.md, or CLAUDE.md only when public behavior or env vars change.
  9. Validate with focused provider tests, ruff, generated provider-doc check, and the coverage/package gates when the public surface changes.

Definition Of Done

  • Every advertised capability has a provider-contract test and at least one malformed/provider-error test.
  • Provider metadata, docs, generated catalog output, and .env.example agree on capabilities and configuration.
  • Events and public errors redact credentials, signed URLs, host-local secrets, and unsafe metadata.
  • Optional-runtime paths degrade to typed skipped/preflight results without installing host-owned packages.

Sharp Edges

SymptomCauseFix
Provider appears in docs with wrong surfaceProviderCapabilities declaration driftedFix adapter capabilities, run provider docs generator, update tests
Optional provider missing from doctorRequired env var absentConfirm variable name from .env.example; do not read .env
Contract helper fails on JSONMetadata/raw payload not JSON-nativeValidate at construction and convert tuples/objects before return
Remote test leaks URL/queryEvent target/message metadata not sanitizedAdd regression in tests/test_observability.py or provider test