Repository navigation
feat(modules): v1alpha1 agent module contract and offline checker - #34
Merged
Merged
Conversation
Versioned contract for baqueano agent modules: meta.yml and I/O JSON
Schemas (Draft 2020-12), a one-skill JSON-in/JSON-out agent card rule,
the A2A image contract (baqueano-agent and baqueano-a2a on PATH,
127.0.0.1:${A2A_PORT}, OPENAI_BASE_URL, baqueano-mcp over stdio) and
task.ext.agent_url for remote agents. scripts/modules/check.py validates
module directories offline; the CI test job runs it with apt jsonschema.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First v0.2 deliverable: the agent module contract, enforced offline in CI before any runtime exists.
contracts/module/v1alpha1/:meta.schema.json(same required keys as nf-coremeta.yml, unknown keys allowed),io.schema.json(module input/output schemas must be Draft 2020-12, rootobject,$idwithv1alpha1, local$refonly) andagent-card.schema.json(exactly one skill, JSON data in, JSON artifact out; neutral between A2A v1.0 and v0.3).contracts/module/v1alpha1/example/: a static skeleton in the nf-core/modules layout (main.nf,meta.yml, schemas, example input/output/card). Not runnable until the runtime and client land.docs/module-contract.md: the image contract.baqueano-agentonPATHserves on127.0.0.1:${A2A_PORT}, readsOPENAI_BASE_URL, spawnsbaqueano-mcpover stdio;baqueano-a2a sendis the client.main.nfreadstask.ext.agent_url(mapped fromparams.agent_urlinmodules.config) to call a remote agent instead.scripts/modules/check.py MODULE_DIR...plus 24 unittest cases; exit 0/1/2, errors as<file>: <msg> at <pointer>, no network.ci.ymltestjob: installspython3-jsonschema/python3-yamlfrom apt, runs the tests and the checker on the example and onmodules/baqueano/*. Job names unchanged.module-contractspec,ci-pipelinetest job updated. ROADMAP item checked.Out of scope (next changes):
baqueano-runtime, the A2A client,RUN_METHODS/QC_REVIEW, evals, otel.AI use: implemented with an AI coding assistant under maintainer direction; reviewed before merge.