Skip to content

Use one schema for the ExAPI Registry and ExAPI Catalog - #1302

Merged
ebhills merged 13 commits into
mainfrom
codex/api-operation-inventory
Nov 30, 2026
Merged

ebhills merged 13 commits into
mainfrom
codex/api-operation-inventory

Conversation

@ebhills

@ebhills ebhills commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Linked Issue

Advances #1206. The External API Registry (ExAPI Registry) is the YAML used by WranglesPY. The External API Catalog (ExAPI Catalog) is the public JSON generated for callers such as XL. Saved and inline extraction follows in #1296. Wrangles-Translate #20 deployed the service binding. ECS reported both production tasks on revision 16 at that deployment. Deployment run · Translate documentation #21

What Changes

  • The ExAPI Registry loader, runtime and ExAPI Catalog compiler use one schema, currently v4. wrangles.ai_config.load() and load_snapshot().config expose the actual YAML structure. The compiler takes schema_version, configuration.version and the artifact filename version from the same validated YAML version. The YAML byte revision still identifies the exact source.

  • The ExAPI Registry uses run, edit and summarize. The packaged Python ExAPI Catalog exposes run for ai.decisions (alias: ai.answers), search.ai_mode and translate. A deployment can add a caller selection for edit on lookup.semantic or summarize on Notes (notes). Lookup-DIY and API-Core own those service actions.

  • Python and recipes send the resolved DeepL provider/API to the existing authenticated Translate gateway. target_language is a required string kwarg and source_language is optional. The service owns supported languages, auto-detection, DeepL payloads and Free/Pro host selection. Existing positional calls continue to work. Both customer and shared credentials can fund this operation, so its choice has no fixed key_id.

  • Current-schema replacements and all 13 packaged operations must declare credential_sources for the key owners they support. Wrangles Secrets serve customer-managed keys. AWS Secrets Manager is the preferred store for service and test keys. GitHub Actions secrets are deprecated for provider keys. A deployment can export a verified public key_id for a fixed service binding, including a routed API. The ExAPI Catalog omits provisioning metadata. Provisioning policy

  • The inventory traces product and GitHub test operations, including all three Notes request kinds and lookup training and serving. It records the shipped DeepL customer/shared-key selection, CI delivery from AWS, the Notes Writer provisioning gap and the unverified lookup credential source. Provisioning review · ExAPI Registry example

  • Windows x64 on CPython 3.14 can install the official lxml wheel from the maintainers’ GitHub release. PyPI omitted that platform’s wheel for 6.2.1. The supplemental pip requirements verify the upstream SHA-256 and allow newer binary releases from PyPI. Both Windows 3.14 CI jobs use the same file, which is also linked from the README. Windows wheel requirements · Upstream 6.2.1 release

How It Was Verified

  • At be085a26, the credential-free WranglesPY suite passed 3,476 tests, with 6 skipped and 139 deselected. A focused run covering the loader, compiler and generation requests passed 173 tests. The pytest selection check and git diff --check passed.

  • Built and installed the wheel offline. Its wrangles-api-catalog executable exported the packaged file and a replacement that omitted Translate. The command rejected a v3 input before creating an output directory. The wheel contains the YAML and omits the retired compatibility module. The published choices contain no secret-store fields, endpoints or language lists.

  • Verified the documented lookup YAML exports its synthetic key_id and checked 33 documentation links and anchors. Earlier cross-repository tests exercised the Python caller and the Flask service with customer and shared keys, and the service suite passed 63 tests including 13 live DeepL batches. Translate CI

  • Prior Python head 2846d00a passed all six GitHub Linux/Windows combinations, package installation and image build. One original Ubuntu 3.11 attempt hit a Core row-lock timeout during model cleanup. Prior successful run · Original cleanup failure · Follow-up.

  • At 021e0d69, a fresh pip resolution targeting Windows x64 and CPython 3.14 downloaded lxml-6.2.1-cp314-cp314-win_amd64.whl. The platform tag, version and SHA-256 matched the official release. At the previous head, the install and pytest jobs both selected the source distribution and failed on missing libxml2 headers. simple-salesforce brings in zeep, which uses lxml for XML. Previous failure

  • GitHub CI passed at 021e0d69. All six Ubuntu/Windows and Python 3.11/3.13/3.14 combinations passed the package-install and pytest jobs. Windows Python 3.14 installed lxml 6.2.1 and finished with 4,179 passed, 6 skipped. The PR image built and passed its container smoke test, pip check and recipe checks. CI run · Windows pytest · PR image validation

Compatibility and Risk

An environment using WRANGLES_AI_CONFIG must supply a complete current-schema ExAPI Registry. The loader rejects v1–v3, unknown versions and versionless files. It never fills an omitted caller binding from the packaged file. Older action names and the OpenRouter systemone spelling are rejected. Use run, edit, summarize, openrouter/decisions for Microsoft and typesafe/systemone for Jev. Direct model operations read API endpoints from providers.<provider>.apis.<api>.endpoint. The public Python import, YAML path, wrangle alias, and saved wrangle definitions still work.

A search of organization repositories found no checked-in external service reading an older schema. Wrangles-Translate accepts the resolved provider and API on the request. Deployment-specific overrides were outside this source audit. Migrate any such file alongside the owning service. For rollback, restore the prior package, configuration and matching generated artifact together. The lookup trainer’s real billing ID is still pending upstream verification.

Ready-for-Review Checklist

  • One human delivery owner is assigned (ebhills)
  • The linked issue is correct. This PR has no release milestone.
  • The branch is current with main and has no local merge conflicts
  • Final credential-free suite passed
  • New behavior has direct test coverage
  • Documentation, schema and configuration are updated
  • The PR contains the ExAPI Registry and ExAPI Catalog workstream and its Windows installation fix
  • The description reflects the current scope and validation
  • One primary reviewer is requested when selected

@ebhills ebhills self-assigned this Nov 28, 2026
@ebhills
ebhills marked this pull request as ready for review November 28, 2026 17:23
@ebhills ebhills changed the title Version Registry actions and export fixed credential IDs in the API Catalog Version External API Registry actions and export fixed credential IDs in the API Catalog Nov 29, 2026
@ebhills ebhills changed the title Version External API Registry actions and export fixed credential IDs in the API Catalog Use one schema for the ExAPI Registry and ExAPI Catalog Nov 29, 2026
@ebhills
ebhills merged commit 8be667c into main Nov 30, 2026
18 checks passed
@ebhills
ebhills deleted the codex/api-operation-inventory branch November 30, 2026 01:51
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