Skip to content

fix: use x-cortex-custom-metadata key in environments and ai-spend solutions - #243

Merged
jeff-schnitter merged 1 commit into
mainfrom
aw/fix-custom-metadata-key
Sep 21, 2026
Merged

jeff-schnitter merged 1 commit into
mainfrom
aw/fix-custom-metadata-key

Conversation

@akwirick

@akwirick akwirick commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

tl;dr - The api expects x-cortex-custom-metadata not x-cortex-custom-data.

Changes:

  • Renamed x-cortex-custom-data to x-cortex-custom-metadata in 24 environments catalog entities
  • Renamed the same key in the environments GitHub Actions template that ships into customer repos
  • Reshaped the 4 ai-spend team budgets from a key/value list to a map, which the parser requires
  • Corrected the custom data guidance in the building-solutions skill, plus two new error-table rows

x-cortex-custom-data is not a recognized extension (Parser.kt#L204 defines x-cortex-custom-metadata as the only one). OpenAPI drops unknown x- keys, so these imported clean and the data was discarded. Impact was the marquee demo of each solution: the CVE exposure query in environments, and the Silver/Gold budget rules in ai-spend.

Not changed: the jq(..., ". | tonumber") casts in ai-spend-scorecard still work, since jq tonumber accepts a number.

Verified statically: parser constant, the !is Map guard that breaks the list shape, and a yq parse of all 30 files. Not verified against a live tenant.

Session: b0fa4a64 · Worktree: cli/custom-metadata-key

🤖 Generated with Claude Code

…lutions

x-cortex-custom-data is not a recognized Cortex extension. OpenAPI drops
unknown x- keys, so these entities imported cleanly while the block was
silently discarded and custom() returned null for every key.

Changes:
- Renamed x-cortex-custom-data to x-cortex-custom-metadata in 24 environments catalog entities
- Renamed the same key in the environments GitHub Actions template
- Reshaped the 4 ai-spend team budgets from a key/value list to a map, which the parser requires
- Corrected the custom data guidance in the building-solutions skill, plus two new error-table rows

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@akwirick
akwirick marked this pull request as ready for review September 21, 2026 18:14
@jeff-schnitter
jeff-schnitter merged commit 6e4cf4c into main Sep 21, 2026
6 checks passed
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.

2 participants