RFC 006: Capability registry vs spec Capability - #7
Open
brettin wants to merge 1 commit into
Open
Conversation
Proposes companion platform-capability schema for registration API. Co-authored-by: Cursor <cursoragent@cursor.com>
brettin
commented
Jun 4, 2026
brettin
left a comment
Collaborator
Author
There was a problem hiding this comment.
Review: RFC 006 — Capability registry vs spec Capability
Overall the RFC names a real and important noun collision between the spec Capability (a scientific artifact descriptor) and the platform's registry record (an operational routing/owner descriptor), and proposes the right shape of fix: a companion schema rather than overloading the spine. The 9-line scaffold gets the diagnosis directionally right, but the evidence and the proposal both need to be fleshed out before this can guide implementation. A few observations and suggestions below.
✅ What works well
- The diagnosis matches reality on both sides. The spec
Capabilityatcontracts/schemas/common/capability.schema.jsondoes require exactlyprofile,executionContext,artifact, and a smoke-teststatusenum (declared/smoke_test_passed/smoke_test_failed/deprecated) — i.e. it is a scientific-reproducibility descriptor. The platformCapabilityinaria-server/aria_server/db/models.py(lines 157–186) and itsCapabilityResponse/RegisterCapabilityRequestinaria-server/aria_server/api/routes/capabilities.pyinstead requirecapabilityType,owner,routing(MAG config),targets,costPerUnit, plus input/output JSON schemas — i.e. an operational catalog row. Same noun, two different objects. - Companion-schema approach is precedented.
contracts/companion/schemas/already housesdata-movement-intent.schema.json,campaign-plan.schema.json, andeval-publication.schema.json.GAP_DISPOSITION_REGISTER.mdentries GAP-008 and GAP-009 explicitly direct registry/skill-card concerns tocapability_profilerather than spine — so aplatform-capability.schema.jsoncompanion is consistent with the existing v3 governance posture. - Gap IDs are the right hooks. The three referenced operations (
op-listCapabilities,op-registerCapability,op-getCapability) line up exactly with theCapabilityRegistryoperations atcontracts/openapi/gmp-core-v3.yaml:46-105, so the RFC's scope is unambiguous.
🔍 Suggestions
- Make the noun collision explicit with a mapping table. A two-column table — spec
Capabilityfields vs. platform record fields — would do most of the rhetorical work. In particular: spec hasprofile,executionContext,artifact,reproducibilityTier,accessPrerequisites; platform addscapabilityType(enum: foundation-model / simulation-tool / data-tool / orchestration-tool / agent),owner,provider,routing,targets,costPerUnit,inputSchema,outputSchema,tags. OnlycapabilityId,name,version, andstatusoverlap — and evenstatushas divergent enums (draft|active|deprecated|archivedin the DB vs.declared|smoke_test_passed|smoke_test_failed|deprecatedin the spec). - Pick a wire contract for
POST /v3/capabilities. Todaygmp-core-v3.yaml:71-82saysregisterCapabilityaccepts a speccapability.schema.json, but the server'sRegisterCapabilityRequestdoesn't requireprofile/executionContext/artifactand acceptsrouting/targets/costPerUnitthat aren't in the spec schema. The RFC should state explicitly: does the registry endpoint accept (a) spec Capability only, (b)platform-capabilityonly, (c) a union/envelope, or (d) spec Capability with ax-platformextension block? Each has different validator and client-codegen consequences. - Define the join key and lifecycle. If both objects coexist, do they share
capabilityId? Is aplatform-capabilityrow required to point at a specCapability(artifact binding) before it can berunnableOnly=true? What happens to a platform row when the spec capability isdeprecated? - Address the
statusenum mismatch head-on.CapabilityStatusindb/models.py:42-48and the spec's smoke-test enum are not reconcilable as-is. Either map them, or state thatplatform-capability.statusis a separate field with separate semantics. - Cover access prerequisites and capability tokens. Spec
Capability.accessPrerequisites(license/citizenship/training/embargo/agreement) already exists and the platform model mirrors it — butmintCapabilityToken(gmp-core-v3.yaml:311) keys offcapabilityId. The RFC should say which object the token issuer reads from.
❓ Open questions
- Does
platform-capabilitylive incontracts/companion/schemas/(v3-governed) or in the platform repo (out-of-spine)? GAP_DISPOSITION_REGISTER places registry concerns incapability_profile, which would argue for the latter. - Should the OpenAPI
registerCapabilityrequest body change to aoneOf/ discriminated union, or should the platform expose a separate/v3/platform/capabilitiespath to avoid colliding with the spine operation? - How does this interact with
aria_server/services/companion_schemas.py— is there already a registration pattern for companion schemas thatplatform-capabilityshould follow? - Versioning: the platform
versionfield is free-form ("1.0.0"); is a SemVer + compatibility-range contract needed for registry consumers, or iscapabilityIdexpected to encode the version? - Discovery:
list_capabilitiesfilters byprofile,type,tag,runnableOnly. Are those filters part of the spine contract or the platform extension? The current OpenAPI listsprofilebut the implementation also acceptstypeandtagthat the spec query schema doesn't document.
4 tasks
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.
Summary
Adds RFC 006 proposing a companion
platform-capabilityschema for registry registration while retaining specCapabilityfor artifact binding.Gap IDs
op-listCapabilitiesop-registerCapabilityop-getCapabilityTracking
Part of #1. Base: RFC 004 branch (final RFC in the series).
Test plan
capability.schema.jsonand registry OpenAPI pathsMade with Cursor