Repository navigation
1.8: generator PoC tools/aimux-codegen: ToolCall -> TS + Go, --check (on #42) - #43
Open
cunninghamcard-bit wants to merge 1 commit into
Open
cunninghamcard-bit wants to merge 1 commit into
cunninghamcard-bit wants to merge 1 commit into
Conversation
This was referenced Oct 12, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 unit 1.8: a generator proof of concept (arcships#200:1509; RFC-0042 T5). Stacked on #42 (1.7,
exp/u1.7-descriptor-schema@ b8d8261); the PR base is that branch.Added:
tools/aimux-codegen(new workspace member)spec/ToolCall.json, a data-only type spec giving the name, docs, and for each field its wire name, type and whether it's optional. Unknown keys are rejected.render_ts,render_go,generate,write,check.aimux-codegenwritesgenerated/.aimux-codegen --checkregenerates in memory and exits non-zero if any committed file is missing or differs.generated/ts/ToolCall.tsgenerated/go/tool_call.go(packageaimuxgen,encoding/jsontags, gofmt-clean)build.rsand no second copy of the spec (docs: full-chain AI SDK alignment design and impact map arcships/aimux#200 §6.5). Nothing is wired into the bindings yet; ts-rs is unchanged.Acceptance (
tools/aimux-codegen/tests/codegen_test.rs, 8 tests)typescript_matches_the_current_binding_type. The generated TS equalsbindings/node/src/types/ToolCall.tsline for line below the one-line header: same fields, optionality, types, imports and docs.go_struct_round_trips_core_tool_call_json.aimux_core::tool::ToolCall(static, dynamic + providerExecuted, providerMetadata, invalid + error).go testin a temp module, stdlib only).goon PATH it prints SKIPPED.--checkcatches tampering:check_rejects_tampered_typescript: changingdynamic?:todynamic:fails.check_rejects_tampered_go: changing thetoolNametag fails.check_rejects_a_missing_filecovers a deleted output.check_passes_on_an_untouched_copyexits 0, andcommitted_outputs_are_up_to_datechecks the committed files.spec_rejects_unknown_fields.Fixture and cassette diff: zero.
Results (local linux x64)
Python was not run (no venv). This is a PoC for one type. Unions or discriminators, and the other six languages, are not covered.