Skip to content

docs: sync schemas and specs with source changes#6014

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/schema-sync-2026-07-08-fcd2c992a25a9e81
Draft

docs: sync schemas and specs with source changes#6014
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/schema-sync-2026-07-08-fcd2c992a25a9e81

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds reasoning_tokens to schemas/token-usage.schema.json.

Triggered by

Commit 58f77fdfix: add Gemini usageMetadata support to token parsers (#6008)

What changed

token-parsers.js introduced buildGeminiUsage(), which maps Gemini's usageMetadata.thoughtsTokenCountreasoning_tokens in the normalized usage object. The normalizeUsage() function already always emitted reasoning_tokens (from OpenAI o-series / Anthropic thinking blocks). However, the reasoning_tokens field was absent from schemas/token-usage.schema.json, so the schema did not document a field that is actively written to every token-usage.jsonl record.

Change made

Added reasoning_tokens property to schemas/token-usage.schema.json:

"reasoning_tokens": {
  "type": "integer",
  "minimum": 0,
  "description": "Number of reasoning/thinking tokens (OpenAI o-series, Anthropic thinking, Gemini thoughtsTokenCount). Zero when the model does not emit reasoning tokens."
}

No changes needed

  • docs/awf-config.schema.jsonsrc/cli.ts and src/config-file.ts changes are file refactors with no new CLI flags or config fields.
  • schemas/audit.schema.jsonsrc/squid-config.ts and src/logs/log-parser.ts changes are facade re-exports, no new log fields.
  • schemas/README.md — schema structure unchanged.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by Schema & Spec Sync · 134.3 AIC · ⌖ 8.64 AIC · ⊞ 5.7K ·

Add reasoning_tokens property to schemas/token-usage.schema.json.

Triggered by commit 58f77fd (fix: add Gemini usageMetadata support to
token parsers). The buildGeminiUsage() function maps Gemini's
thoughtsTokenCount → reasoning_tokens in the normalized usage object,
and normalizeUsage() always emits reasoning_tokens. The field was
actively written to token-usage.jsonl but missing from the JSON Schema.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants