Skip to content

feat(api): add full record to ai catalog mappings - #1609

Merged
ramizpolic merged 13 commits into
mainfrom
feat/catalog-sync
Jun 11, 2026
Merged

ramizpolic merged 13 commits into
mainfrom
feat/catalog-sync

Conversation

@ramizpolic

@ramizpolic ramizpolic commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

Overview

This PR introduces a refactoring to support native AI Catalog projections from OASF records while standardizing how different record formats are handled across the codebase.

Key Changes

  • AI Catalog Mapping (api/catalog/v1) - New catalog integration layer that projects OASF records into AI Catalog entries
  • Record Abstraction (api/core/adapters) - Moved internal server-only abstractions to API package so that both SDKs, clients, and other tools can reuse it, regardless of the underlying data format (OCI, raw JSON, etc)
  • Signature Verification (client/utils/verify) - Extended signature result tracking to include both the signature and signature content type
  • Migrations - added migrations including handler logic to handle new DB fields

Catalog Item

Below is an example of a real record mapped to a catalog item available through the UI.

{
  "identifier": "urn:ai:org.agntcy:cid:baeareiabbog2umgduqhlcb64fzt6adn34kblzvru3fdzkl75hjhwt6h3da",
  "displayName": "burger_seller_agent",
  "mediaType": "application/ai-catalog+json",
  "data": {
    "entries": [
      {
        "data": {
          "card_data": {
            "capabilities": {
              "streaming": true
            },
            "defaultInputModes": [
              "text",
              "text/plain"
            ],
            "defaultOutputModes": [
              "text",
              "text/plain"
            ],
            "description": "Helps with creating burger orders",
            "name": "burger_seller_agent",
            "protocolVersions": [
              "0.2.6"
            ],
            "provider": {
              "organization": "Example Organization",
              "url": "https://example.com"
            },
            "skills": [
              {
                "description": "Helps with creating burger orders",
                "examples": [
                  "I want to order 2 classic cheeseburgers"
                ],
                "id": "create_burger_order",
                "name": "Burger Order Creation Tool",
                "tags": [
                  "burger order creation"
                ]
              }
            ],
            "supportedInterfaces": [
              {
                "protocolBinding": "HTTP+JSON",
                "url": "https://burger-agent-109790610330.us-central1.run.app"
              }
            ],
            "version": "1.0.0"
          },
          "card_schema_version": "v1.0.0"
        },
        "displayName": "burger_seller_agent - A2A",
        "mediaType": "application/a2a-agent-card+json"
      },
      {
        "data": {
          "connections": [
            {
              "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "GITHUB_PERSONAL_ACCESS_TOKEN",
                "ghcr.io/github/github-mcp-server"
              ],
              "command": "docker",
              "env_vars": [
                {
                  "default_value": "",
                  "description": "Secret value for GITHUB_PERSONAL_ACCESS_TOKEN",
                  "name": "GITHUB_PERSONAL_ACCESS_TOKEN"
                }
              ],
              "type": "stdio"
            }
          ],
          "name": "github-mcp-server"
        },
        "displayName": "burger_seller_agent - MCP",
        "mediaType": "application/mcp-server-card+json"
      }
    ],
    "specVersion": "1.0"
  },
  "version": "1.0.0",
  "description": "Helps with creating burger orders",
  "tags": [
    "oasf:1.0.0:skills:natural_language_processing/natural_language_understanding/contextual_comprehension"
  ],
  "trustManifest": {
    "identity": "urn:ai:org.agntcy:cid:baeareiabbog2umgduqhlcb64fzt6adn34kblzvru3fdzkl75hjhwt6h3da",
    "identityType": "did",
    "attestations": [
      {
        "type": "publisher-identity",
        "uri": "base64:<signature>",
        "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
        "digest": "sha256:b7f3b119ec115b2139947fc5285147c76c43c354fe20b9b6b1b5f72c1efada41",
        "size": "13580",
        "description": "Verified signature by urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/chore/add-dir-demo-bot"
      },
      {
        "type": "publisher-identity",
        "uri": "base64:<signature>",
        "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
        "digest": "sha256:cf92dd292abd12ac1bb3f79688f61313d133e3fad33dabf304ba747e7204c665",
        "size": "13212",
        "description": "Verified signature by urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/ci/revamp-demo-dir"
      },
      {
        "type": "publisher-identity",
        "uri": "base64:<signature>",
        "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
        "digest": "sha256:563cf7251c5e9afc010f9f662dfec760be1b4ceacc4575b84c33beffddf61ce9",
        "size": "13588",
        "description": "Verified signature by urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/feat/unify-dirctl-path"
      },
      {
        "type": "publisher-identity",
        "uri": "base64:<signature>",
        "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
        "digest": "sha256:308d7ebcfc0770198d843583201fc3e0a0d647aff2347023cc0c01284875ce3c",
        "size": "13656",
        "description": "Verified signature by urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/fix/demo-workflow"
      },
      {
        "type": "publisher-identity",
        "uri": "base64:<signature>",
        "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
        "digest": "sha256:bc6c7e344e2f5dc1a1f5abc2b2e37ffab742b5a1db146cba4bd565823a70d9e0",
        "size": "13320",
        "description": "Verified signature by urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/main"
      },
      {
        "type": "publisher-identity",
        "uri": "base64:<signature>",
        "mediaType": "application/vnd.dev.sigstore.bundle.v0.3+json",
        "digest": "sha256:245a76784a9b5257955eb984d93845e110728ce9b3cbc94f1a8870c8f9d9a601",
        "size": "14104",
        "description": "Verified signature by urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/refactor/pin-demo-import-workflows-to-version"
      }
    ],
    "provenance": [
      {
        "relation": "derivedFrom",
        "sourceId": "urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/chore/add-dir-demo-bot",
        "signatureRef": "sha256:b7f3b119ec115b2139947fc5285147c76c43c354fe20b9b6b1b5f72c1efada41"
      },
      {
        "relation": "derivedFrom",
        "sourceId": "urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/ci/revamp-demo-dir",
        "signatureRef": "sha256:cf92dd292abd12ac1bb3f79688f61313d133e3fad33dabf304ba747e7204c665"
      },
      {
        "relation": "derivedFrom",
        "sourceId": "urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/feat/unify-dirctl-path",
        "signatureRef": "sha256:563cf7251c5e9afc010f9f662dfec760be1b4ceacc4575b84c33beffddf61ce9"
      },
      {
        "relation": "derivedFrom",
        "sourceId": "urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/fix/demo-workflow",
        "signatureRef": "sha256:308d7ebcfc0770198d843583201fc3e0a0d647aff2347023cc0c01284875ce3c"
      },
      {
        "relation": "derivedFrom",
        "sourceId": "urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/main",
        "signatureRef": "sha256:bc6c7e344e2f5dc1a1f5abc2b2e37ffab742b5a1db146cba4bd565823a70d9e0"
      },
      {
        "relation": "derivedFrom",
        "sourceId": "urn:ai:org.agntcy:signer:oidc:CN=sigstore-intermediate,O=sigstore.dev:token.actions.githubusercontent.com:github.com/agntcy/dir/.github/workflows/demo-dir.yaml@refs/heads/refactor/pin-demo-import-workflows-to-version",
        "signatureRef": "sha256:245a76784a9b5257955eb984d93845e110728ce9b3cbc94f1a8870c8f9d9a601"
      }
    ],
    "signature": "<signature1>.<signature2>...",
    "metadata": {}
  },
  "updatedAt": "2025-01-01T00:00:00Z",
  "metadata": {}
}

Well-known host

{
  "specVersion": "1.0",
  "host": {
    "displayName": "AGNTCY Directory",
    "identifier": "urn:ai:org.agntcy:host:12D3KooWDJtVk5SkdQj5LjJ7NMvzGoyqA6R3qNjUdgRaVTjRZHiM"
  },
  "entries": [],
  "collections": [
    {
      "displayName": "A2A Agents",
      "url": "http://localhost:8889/v1/agents?filter=type%3Dapplication%2Fa2a-agent-card%2Bjson",
      "description": "Agents that publish an A2A agent card.",
      "mediaType": "application/a2a-agent-card+json",
      "tags": [],
      "metadata": {}
    },
    {
      "displayName": "MCP Servers",
      "url": "http://localhost:8889/v1/agents?filter=type%3Dapplication%2Fmcp-server-card%2Bjson",
      "description": "Agents that expose an MCP server connection.",
      "mediaType": "application/mcp-server-card+json",
      "tags": [],
      "metadata": {}
    },
    {
      "displayName": "Agent Skills",
      "url": "http://localhost:8889/v1/agents?filter=type%3Dapplication%2Fagentskill%2Bmd",
      "description": "Agents that publish a reusable Agent Skill definition.",
      "mediaType": "application/agentskill+md",
      "tags": [],
      "metadata": {}
    }
  ],
  "metadata": {}
}

Design Benefits

  • Version Agnostic: Consumers of records no longer need version-specific handling; adapters transparently support all versions and storage formats
  • Catalog Ready: Enables rich AI Catalog projections from existing records with protocol-specific formatting

@ramizpolic ramizpolic linked an issue Jun 8, 2026 that may be closed by this pull request
2 tasks done
@github-actions github-actions Bot added the size/XL Denotes a PR that changes 2000+ lines label Jun 8, 2026
@github-actions

github-actions Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / verify-proto (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped⏩ skipped✅ passedJun 11, 2026, 10:30 AM

@ramizpolic ramizpolic linked an issue Jun 8, 2026 that may be closed by this pull request
@ramizpolic
ramizpolic force-pushed the feat/catalog-sync branch from effbf1f to dbf32fa Compare June 9, 2026 09:38
@ramizpolic ramizpolic changed the title feat(catalog): add base record to catalog mappings feat(api): add full record to ai catalog mappings Jun 10, 2026
@ramizpolic
ramizpolic marked this pull request as ready for review June 10, 2026 17:45
@ramizpolic
ramizpolic requested a review from a team as a code owner June 10, 2026 17:45
@ramizpolic
ramizpolic requested a review from akijakya June 10, 2026 17:46
@ramizpolic ramizpolic self-assigned this Jun 10, 2026
@ramizpolic ramizpolic added this to the [WIP] DIR v1.5 milestone Jun 10, 2026
ramizpolic and others added 5 commits June 11, 2026 09:52
@akijakya
akijakya force-pushed the feat/catalog-sync branch from d7cb012 to e4c5e75 Compare June 11, 2026 09:40

@akijakya akijakya left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

ramizpolic and others added 2 commits June 11, 2026 12:08
Signed-off-by: Ramiz Polic <[email protected]>
"powered by Agent Directory Service"

Signed-off-by: András Jáky <[email protected]>
@ramizpolic
ramizpolic merged commit 9fb2d1b into main Jun 11, 2026
34 checks passed
@ramizpolic
ramizpolic deleted the feat/catalog-sync branch June 11, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Denotes a PR that changes 2000+ lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Implement signature to TrustManifest mapping [EPIC]: Enable AI Catalog/AgentFinder specification through DIR

2 participants