Skip to content

Sync main d3a58f53 into the cutover - #558

Merged
SaladDay merged 4 commits into
aos/cutoverfrom
aos/sync-8
Oct 8, 2026
Merged

SaladDay merged 4 commits into
aos/cutoverfrom
aos/sync-8

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Merges main d3a58f5 (#549, #554, #556: the public and Core client types generated from the schemas) into the cutover.

Conflicts:

  • contracts/agents-api/zh/index.md: the source hash was recomputed from the merged ledger.
  • packages/agents-client/src/admin-types.ts and admin-projection.ts: took main's generated types and field lists. make openapi regenerated core-api.ts from the cutover schema, so ExecutorConnection no longer has last_seen_at.

Checks:

  • go build ./... and go vet ./services/core/....
  • go test for api, deployment/... and sandbox.
  • make check-openapi check-names check-docs check-ci.
  • tsc --noEmit in agents-client and apps/web.
  • agents-client vitest: 712 passed.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

make openapi now projects the public schema onto
packages/agents-client/src/generated/public-api.ts: each schema's
TypeScript type, each enum's values and each object's field names, with
required lists and per-union field maps. make check-openapi rejects a
stale copy. The emitter takes a parsed schema dict and accepts the
Swagger 2.0 forms of the Core document (x-nullable, allOf, any ref
prefix), so the /core/v1 projection can reuse it.

The client aliases the generated types and validates responses with the
generated field sets and enums instead of hand-written copies. Where the
schema and the validators disagreed, the schema wins: snapshot events
carry no session_id, Item events require output_index, terminal Turn
events require usage, list envelopes are complete, input_image is
accepted in user messages, and older-Core allowances are gone. The
client no longer re-checks limits Core enforces.

Core now sends turn_id null on Environment events, null cwd, output,
exit_code and duration_ms on command_execution Items, and param null on
the stream interruption error, as the pinned schema requires.
@SaladDay
SaladDay merged commit 0d8ab3c into aos/cutover Oct 8, 2026
@SaladDay
SaladDay deleted the aos/sync-8 branch October 8, 2026 11:18
# Conflicts:
#	contracts/agents-api/zh/index.md
#	packages/agents-client/src/admin-projection.ts
#	packages/agents-client/src/admin-types.ts
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