Skip to content

feat(modules): v1alpha1 agent module contract and offline checker - #34

Merged
pingedbrain merged 1 commit into
mainfrom
feat/module-contract
Nov 29, 2026
Merged

pingedbrain merged 1 commit into
mainfrom
feat/module-contract

Conversation

@pingedbrain

Copy link
Copy Markdown
Owner

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-core meta.yml, unknown keys allowed), io.schema.json (module input/output schemas must be Draft 2020-12, root object, $id with v1alpha1, local $ref only) and agent-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-agent on PATH serves on 127.0.0.1:${A2A_PORT}, reads OPENAI_BASE_URL, spawns baqueano-mcp over stdio; baqueano-a2a send is the client. main.nf reads task.ext.agent_url (mapped from params.agent_url in modules.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.yml test job: installs python3-jsonschema/python3-yaml from apt, runs the tests and the checker on the example and on modules/baqueano/*. Job names unchanged.
  • OpenSpec: change verified and archived; new module-contract spec, ci-pipeline test 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.

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.
@pingedbrain
pingedbrain merged commit 70012a8 into main Nov 29, 2026
7 checks passed
@pingedbrain
pingedbrain deleted the feat/module-contract branch November 29, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant