Skip to content

fix: align Forward and Managed API contracts with current documentation - #40

Merged
moonyue-w merged 2 commits into
mainfrom
codex/contract-alignment-20261103
Nov 3, 2026
Merged

moonyue-w merged 2 commits into
mainfrom
codex/contract-alignment-20261103

Conversation

@moonyue-w

Copy link
Copy Markdown
Collaborator

Summary

Align the existing Forward/Managed SDK contracts with the official QCA documentation reviewed on 2026-11-03. This adds typed Forward Session budgets and model overrides, approval evaluation details and Environment startup scripts; it fixes the language-specific gaps documented below. The README also documents startup timing, 64 KB / 5-minute constraints and failure events. No HTTP endpoints or version numbers change.

Forward event types now expose cumulative Credits and Outcome/status details, and shared model configuration exposes speed. Managed Memory version/redacted and Vault credentials are typed; Memory updated operations, list metadata, nested model types and legacy Thread usage are aligned where applicable.

Why

Current types omit fields in the documented API, and the approval result shape can be read incorrectly. This makes the existing endpoints usable through supported typed parameters and response fields.

Verification

Python 3.12: uv run make lint, uv run make typecheck, uv run make test (4,340 passed, 73 live tests deselected), uv run make docs-check, changelog and release-tool tests passed. The follow-up commit changes only README documentation; the docs check was repeated successfully. Example CLI help commands were not rerun because no example CLI changed.

  • Relevant SDK, public type and package checks pass.
  • Documentation and Unreleased changelog updated.
  • Contract regression tests cover the changed wire fields and omission/null semantics.
  • Cross-SDK parity and compatibility reviewed.
  • No credentials or live configuration included.
  • Account-backed integration and QA package acceptance: pending after merge; no live tests were run for this change.

Impact and migration

Use budget= directly on sync/async Forward Sessions. Omitted, None and object updates remain distinct. Legacy approval object parsing remains supported; Thread usage is now explicitly deprecated.

Budget/model omission and null semantics, cumulative usage consumption, and migration details are in CHANGELOG.md. A pre-1.0 minor release is required for the incompatible type changes.

Contract sources

@moonyue-w
moonyue-w merged commit cc9d824 into main Nov 3, 2026
5 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.

1 participant