Skip to content

feat: maintain Decisions compatibility in the canonical model catalogue - #11332

Merged
lpcox merged 6 commits into
mainfrom
copilot/maintain-decisions-api-compatibility
Nov 9, 2026
Merged

lpcox merged 6 commits into
mainfrom
copilot/maintain-decisions-api-compatibility

Conversation

Copilot AI commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Decisions forwarding lacked canonical model/API compatibility records. This adds evidence-backed Decisions facts to the existing generation and maintenance pipeline while keeping model support, credential eligibility, and translation compatibility distinct.

  • Provider-qualified evidence

    • OpenAI gpt-6-luna: official SDK evidence.
    • Copilot gpt-6-luna-decisions: narrowly scoped live observation; unsuffixed Copilot support remains unknown.
    • Records /decisions resource and /v1 base-path conventions separately from PAT restrictions.
  • Canonical projections and runtime consumption

    • Generates exact-model protocol facts into runtime/docs mappings and published snapshots.
    • Preserves provider endpoint advertisements and reflection metadata without enabling cross-API translation or automatic Decisions routing.
    • Joins governed imported pricing without replacing its provenance; rejects overlapping maintained records.
  • Maintenance and publication

    • Adds approved Decisions sources and daily checks for model, protocol, feature, lifecycle, and authentication changes.
    • Requires provenance and reviewed proposals; missing or failed evidence remains incomplete.
    • Extends synchronization and publication regression gates; regenerates the maintenance lock.
lookupModelProtocol('gpt-6-luna', 'openai', 'decisions').support.state;
// 'supported'
lookupModelProtocol('gpt-6-luna', 'copilot', 'decisions').support.state;
// 'unknown'

Copilot AI changed the title [WIP] Extend Decisions API endpoint compatibility in canonical model catalogue feat: maintain Decisions compatibility in the canonical model catalogue Nov 8, 2026
Copilot AI requested a review from lpcox November 8, 2026 22:53
@lpcox

lpcox commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

@copilot make sure that copilot decisions is fully supported including the integration id

Copilot AI commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot make sure that copilot decisions is fully supported including the integration id

Added a regression test for /v1/decisions confirming Copilot-Integration-Id: agentic-workflows is forwarded, and recorded that ID in the maintained catalogue evidence. Published as c7915c8.

@lpcox
lpcox requested an adaptive review from Copilot November 8, 2026 23:24
@lpcox
lpcox marked this pull request as ready for review November 8, 2026 23:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The unversioned schema change breaks v1 snapshot compatibility, while mutable PR/issue sources let third-party comments qualify as evidence for unattended model-support or authentication proposals.

3 open issues
What changed in this PR

Brings Decisions API compatibility into AWF’s canonical model-information pipeline while keeping model support, credential eligibility, and translation compatibility separate.

Changes:

  • Adds provider-qualified OpenAI and Copilot evidence with generated protocol projections.
  • Preserves Decisions metadata in runtime catalogues and reflection without enabling automatic routing or translation.
  • Extends daily maintenance, publication, documentation, and regression checks.
File Description
src/​model-information.naming.generated.json Adds exact model identities.
shared/​model-information/​target.generated.json Includes Decisions in the staged catalogue.
shared/​model-information/​sources/​mapping.json Defines endpoint conventions and authentication context.
shared/​model-information/​sources/​decisions.json Adds provider-qualified support evidence.
shared/​model-information/​publication.v1.schema.json Allows protocol facts in snapshots.
shared/​model-information/​publication.cjs Publishes maintained protocol facts.
shared/​model-information/​naming.generated.json Updates canonical naming projections.
shared/​model-information/​manifest.generated.json Updates compiler and source metadata.
shared/​model-information/​catalog.generated.json Includes canonical Decisions records.
shared/​model-information/​baseline-to-target.generated.json Refreshes catalogue and mapping comparisons.
scripts/​model-information/​publication.test.ts Tests protocol publication and validation gates.
scripts/​model-information/​maintenance-sources.json Adds Decisions evidence sources.
scripts/​model-information/​maintenance-command.test.ts Verifies expanded fixed test commands.
scripts/​model-information/​maintenance-command.cjs Adds Decisions-related runtime checks.
scripts/​model-information/​maintain.test.ts Tests incomplete evidence handling.
scripts/​model-information/​compile.test.ts Tests projection parity and overlap rejection.
scripts/​model-information/​compile.cjs Projects protocols and joins imported pricing.
scripts/​ci/​model-api-mapping-updater-workflow.test.ts Checks the Decisions maintenance contract.
docs/​model-catalogue-publication.md Documents published protocol scope.
docs/​model-api-mapping.json Exposes generated Decisions mappings.
docs/​auth-matrix.md Separates model evidence from credential eligibility.
containers/​api-proxy/​wire-api-compat.test.js Tests that Decisions remains untranslated.
containers/​api-proxy/​runtime-model-catalog.test.js Tests endpoint preservation and reflection.
containers/​api-proxy/​runtime-model-catalog.js Recognizes Decisions and reflects endpoint metadata.
containers/​api-proxy/​routing-catalogue.test.js Tests provider-specific support without routing choices.
containers/​api-proxy/​routing-catalogue.js Preserves Decisions as a distinct protocol.
containers/​api-proxy/​request-headers.test.js Adds Decisions integration-header coverage.
containers/​api-proxy/​model-information.naming.generated.json Updates bundled model identities.
containers/​api-proxy/​model-information.fallback-pricing.generated.json Refreshes the catalogue revision only.
containers/​api-proxy/​model-api-mapping.test.js Tests exact support and unknown states.
containers/​api-proxy/​model-api-mapping.json Updates the bundled mapping projection.
containers/​api-proxy/​model-api-mapping.js Adds exact provider/model protocol lookup.
containers/​api-proxy/​management.js Exposes maintained protocol evidence.
containers/​api-proxy/​catalogue-loader.test.js Tests protocol-only snapshot loading.
containers/​api-proxy/​catalogue-contract/​publication.v1.schema.json Mirrors the expanded publication schema.
containers/​api-proxy/​catalogue-contract/​publication.cjs Mirrors protocol publication support.
.github/​workflows/​publish-model-catalogue.yml Expands publication regression checks.
.github/​workflows/​model-api-mapping-updater.md Adds Decisions maintenance requirements and checks.
.github/​workflows/​model-api-mapping-updater.lock.yml Regenerates workflow metadata and test commands.

Review effort: Max (auto)

{
"id": "copilot-decisions",
"scope": "Trusted Copilot Decisions live observation and original tested revision; exact model identity, endpoint and credential context only, not inferred OpenAI parity",
"urls": ["https://github.com/github/gh-aw/pull/75859"],
Comment on lines +52 to +56
"protocols": {
"allOf": [
{ "$ref": "https://github.com/github/gh-aw-firewall/blob/main/shared/model-information/schema.v1.json#/$defs/model/properties/protocols" }
],
"minItems": 1,
@lpcox

lpcox commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address review feedback

Addressed in 6517e49 and 95b5e86: restored the original v1 contract, added v2 protocols with atomic dual-channel publication and compatibility tests, pinned Copilot evidence to immutable files, and asserted the adapter-provided integration ID directly. Targeted regressions passed; secret scanning was clean. CodeQL Actions found no alerts; JavaScript analysis was skipped due to database size.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11332 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 1404c16

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 93.80% 93.81% 📈 +0.01%
Statements 92.35% 92.35% ➡️ +0.00%
Functions 93.02% 93.02% ➡️ +0.00%
Branches 86.69% 86.69% ➡️ +0.00%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/enclave/host-executor-server.ts 91.2% → 91.2% (+0.00%) 90.1% → 89.8% (-0.29%)
src/commands/main-action.ts 91.7% → 92.0% (+0.25%) 91.4% → 91.7% (+0.24%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox
lpcox merged commit 994d9fc into main Nov 9, 2026
39 checks passed
@lpcox
lpcox deleted the copilot/maintain-decisions-api-compatibility branch November 9, 2026 00:33
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.

Maintain Decisions API endpoint compatibility in the canonical model catalogue

3 participants