JARVIS Composite Executor implementation for the ARP Standard (spec/v1).
Project description
JARVIS Composite Executor
First-party OSS reference implementation of the ARP Composite Executor service.
This reference implementation uses the ARP SDK packages plus shared helpers:
arp-standard-server, arp-standard-model, arp-standard-client, arp-llm, and arp-auth.
Composite execution internals (decomposition/mapping/evaluation) are intentionally implementation-defined. JARVIS keeps the protocol surface small so you can plug in your preferred framework while preserving spec-aligned request/response envelopes.
Implements: ARP Standard spec/v1 Composite Executor API (contract: ARP_Standard/spec/v1/openapi/composite-executor.openapi.yaml).
This repo’s default design is LLM-driven:
- Planner: decompose a composite NodeRun into bounded subtasks (LLM).
- Selector: call Selection Service to get bounded candidate sets per subtask.
- Binder: pick one candidate deterministically (v0: first candidate).
- Arg-gen: generate concrete
inputsfor the chosen node type (LLM) using Node Registry canonical schemas.
Requirements
- Python >= 3.11
Install
python3 -m pip install -e .
Local configuration (optional)
For local dev convenience, copy the example env file:
cp .env.example .env.local
src/scripts/dev_server.sh auto-loads .env.local (or .env).
Run
- Composite Executor listens on
http://127.0.0.1:8083by default.
python3 -m pip install -e .
python3 -m jarvis_composite_executor
[!TIP] Use
bash src/scripts/dev_server.sh --host ... --port ... --reloadfor dev convenience.
Using this repo
To build your own composite executor, fork this repository and replace the composite engine while preserving request/response semantics.
If all you need is to change composite behavior, edit:
src/jarvis_composite_executor/engine/driver.py
Outgoing client wrapper (composite -> coordinator):
src/jarvis_composite_executor/clients/run_coordinator.py
Default behavior
begin_composite_node_runreturnsaccepted=trueand starts a background driver.- Planner (LLM) decomposes the composite goal into bounded subtasks.
- For each subtask:
- Selection Service returns a bounded candidate set (top-K).
- CE binds deterministically to the first candidate (v0).
- CE fetches canonical
input_schemafrom Node Registry and runs arg-gen (LLM) to produceinputs. - CE creates the child NodeRun via Run Coordinator and waits for completion.
- CE reports evaluation and completes the composite (v0: fail-fast if any child fails).
Extensions
This service participates in several cross-component extensions conventions:
When creating child NodeRuns via Run Coordinator (create_node_runs), CE sets:
NodeRunCreateSpec.candidate_set_idandNodeRunCreateSpec.binding_decision(Selection linkage + chosen candidate)NodeRunCreateSpec.idempotency_key(optional; enables idempotent child creation)NodeRunCreateSpec.constraints(propagates constraints downstream)
Run Coordinator persists these values into NodeRun.extensions so they are queryable later.
When calling Selection Service (generate_candidate_set), CE may attach optional context in SubtaskSpec.extensions:
jarvis.subtask.notesjarvis.root_goal
Full cross-stack list: https://github.com/AgentRuntimeProtocol/BusinessDocs/blob/main/Business_Docs/JARVIS/Extensions.md.
Notes on API surface
- In
spec/v1, the Composite Executor API is intentionally minimal (begin + health/version). - More lifecycle surfaces (patch proposals, sub-NodeRun requests, completion reporting) can be layered on as the standard evolves.
Quick health check
curl http://127.0.0.1:8083/v1/health
Configuration
CLI flags:
--host(default127.0.0.1)--port(default8083)--reload(dev only)
Env vars (selected):
JARVIS_SELECTION_URL(required)JARVIS_NODE_REGISTRY_URL(required; canonical NodeType schemas for arg-gen)ARP_LLM_PROFILE+ provider-specific vars (required; planner + arg-gen)JARVIS_COMPOSITE_MAX_STEPS+JARVIS_COMPOSITE_MAX_DEPTH(required defaults for planning bounds)
Validate conformance (arp-conformance)
python3 -m pip install arp-conformance
arp-conformance check composite-executor --url http://127.0.0.1:8083 --tier smoke
arp-conformance check composite-executor --url http://127.0.0.1:8083 --tier surface
Helper scripts
-
src/scripts/dev_server.sh: run the server (flags:--host,--port,--reload). -
src/scripts/send_request.py: send a begin request from a JSON file.python3 src/scripts/send_request.py --request src/scripts/request.json
Authentication
Auth is enabled by default (JWT). To disable for local dev, set ARP_AUTH_PROFILE=dev-insecure.
To enable local Keycloak defaults, set:
ARP_AUTH_PROFILE=dev-secure-keycloakARP_AUTH_AUDIENCE=arp-composite-executorARP_AUTH_ISSUER=http://localhost:8080/realms/arp-dev
Outbound service-to-service calls (Selection / Node Registry) should use STS token exchange (no static bearer tokens). Configure the STS client credentials with:
ARP_AUTH_CLIENT_IDARP_AUTH_CLIENT_SECRETARP_AUTH_TOKEN_ENDPOINT
Upgrading
When upgrading to a new ARP Standard SDK release, bump pinned versions in pyproject.toml (arp-standard-*==...) and re-run conformance.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arp_jarvis_composite_executor-0.3.3.tar.gz.
File metadata
- Download URL: arp_jarvis_composite_executor-0.3.3.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9bc6e9ae1b2bb95a613b8cf286d46a80e8c28341015ffbdfca2110d490dc812
|
|
| MD5 |
54f8edf1d1154b7c6d539db050de01fe
|
|
| BLAKE2b-256 |
5801a1186f7f307fde8530de42a7b8590db55debad3c2d3637aa43bceaf194d0
|
Provenance
The following attestation bundles were made for arp_jarvis_composite_executor-0.3.3.tar.gz:
Publisher:
release.yml on AgentRuntimeProtocol/JARVIS_CompositeExecutor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arp_jarvis_composite_executor-0.3.3.tar.gz -
Subject digest:
c9bc6e9ae1b2bb95a613b8cf286d46a80e8c28341015ffbdfca2110d490dc812 - Sigstore transparency entry: 786357414
- Sigstore integration time:
-
Permalink:
AgentRuntimeProtocol/JARVIS_CompositeExecutor@5651b9795f0ac988ad17057903f6086b09de21b4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AgentRuntimeProtocol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5651b9795f0ac988ad17057903f6086b09de21b4 -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file arp_jarvis_composite_executor-0.3.3-py3-none-any.whl.
File metadata
- Download URL: arp_jarvis_composite_executor-0.3.3-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f40018d11ba7c23320971267d9f51c604286d772ede8c01e5b5a78c4c8aebc5
|
|
| MD5 |
0d6b35989f8d4b653b4f1d2a72379d4f
|
|
| BLAKE2b-256 |
4fad2a9269f1b8da088a4f350f74a89df4b97dbbda69c88b0262cccb3bb6f2a9
|
Provenance
The following attestation bundles were made for arp_jarvis_composite_executor-0.3.3-py3-none-any.whl:
Publisher:
release.yml on AgentRuntimeProtocol/JARVIS_CompositeExecutor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arp_jarvis_composite_executor-0.3.3-py3-none-any.whl -
Subject digest:
8f40018d11ba7c23320971267d9f51c604286d772ede8c01e5b5a78c4c8aebc5 - Sigstore transparency entry: 786357435
- Sigstore integration time:
-
Permalink:
AgentRuntimeProtocol/JARVIS_CompositeExecutor@5651b9795f0ac988ad17057903f6086b09de21b4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AgentRuntimeProtocol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5651b9795f0ac988ad17057903f6086b09de21b4 -
Trigger Event:
workflow_run
-
Statement type: