Skip to content

Evaluate flatc/FlatBuffers-driven codegen vs hand-rolled schema/type conformance oracles #613

Closed as not planned

Description

@MGudgin

Description of the task

Evaluate whether a schema-driven codegen pipeline — for example an internal FlatBuffers schema compiled with flatc — could replace the hand-rolled conformance oracles that keep the JSON schema, the generated Rust wire model, and the generated TypeScript wire types in agreement.
Today these artifacts are kept in sync by bespoke generators (mxc_schema_gen, wxc_common::ts_emit) plus hand-written conformance helpers and tests (sdk/tests/unit/conformance-helpers.ts, wire-conformance*.test.ts). Branden Bonaby (@bbonaby) raised in review of #580 that a single FlatBuffer schema could instead drive flatc-generated JSON schema, Rust types, and TypeScript types, with the FlatBuffer SDK verifying JSON — potentially reducing the amount of bespoke code we author and maintain.
The current no-third-party-generator approach is deliberate. The outcome of this task is a recommendation weighing that trade-off (maintenance cost and comprehensibility of the hand-rolled oracles vs. adopting an external generator/toolchain), not a commitment to switch.

Additional context

Activity

  1. added
    Needs-Triage
    Issue-Task
    on Jul 7, 2026
  2. added
    Area-Rust-SDK
    Area-Node-SDK
    on Jul 7, 2026
  3. github-actions commented on Jul 7, 2026

    @github-actions

    Triage summary

    Labels applied: Area-Build-Rust, Area-Build-TypeScript, Area-SDK-Configuration

    This issue is a design-evaluation task covering the schema/codegen pipeline — specifically whether mxc_schema_gen / wxc_common::ts_emit (Rust build tooling), the generated TypeScript wire types, and the SDK configuration schema could be replaced by a FlatBuffers/flatc-driven pipeline. All three area labels are applicable.

    Owner assignment: No owner was assigned — the existing assignment map does not include an owner whose primary area is schema/codegen tooling. The individuals already engaged (Gudge (@MGudgin) as author, @bbonaby as the reviewer who raised the original concern in #580) are likely the natural drivers of this evaluation.

    Needs-Triage has been removed.

    Generated by 🏷️ Issue Triage for #613 · 24.6 AIC · ⌖ 5.87 AIC · ⊞ 6K · ◷

  4. added
    Area-Schema
    and removed
    Needs-Triage
    on Jul 7, 2026
  5. github-actions commented on Jul 7, 2026

    @github-actions

    Triage summary

    Labels applied: Area-Executor-Schema (the core ask is evaluating the schema codegen pipeline — mxc_schema_gen / JSON schema generation from the Rust wire model), Area-Test-SDK (the issue explicitly references the SDK conformance tests: sdk/tests/unit/conformance-helpers.ts, wire-conformance*.test.ts). Existing labels Area-SDK-Configuration, Area-Build-Rust, and Area-Build-TypeScript remain in place.

    Owner assigned: None — no entry in the owner assignment map covers SDK/schema codegen tooling specifically.

    Needs-Triage: Removed (labels were applied).

    Generated by 🏷️ Issue Triage for #613 · 26.1 AIC · ⌖ 6.37 AIC · ⊞ 6K · ◷

  6. github-actions commented on Jul 13, 2026

    @github-actions

    Triage summary

    This issue already carries all relevant area labels (Area-SDK-Configuration, Area-Executor-Schema, Area-Build-Rust, Area-Build-TypeScript, Area-Test-SDK), so no new labels were applied.

    Assigned: @bbonaby (raised the original concern, owns Rust build / networking) and @huzaifa-d (SDK API, executor schema, TypeScript build).

    Needs-Triage was not present on this issue.

    Generated by 🏷️ Issue Triage for #613 · 19.4 AIC · ⌖ 5.55 AIC · ⊞ 6.3K · ◷

  7. huzaifa-d commented on Jul 21, 2026

    @huzaifa-d
    Contributor

    Will continue with this once we have the E2E testing in place.

  8. MGudgin commented on Jul 21, 2026

    @MGudgin
    MemberAuthor

    Please leave this item assigned to me. I will address it as part of the versioning work I am doing or as a follow on.

  9. added
    Issue-Feature
    on Aug 17, 2026
  10. removed
    Issue-Feature
    on Sep 21, 2026
  11. MGudgin commented on Sep 23, 2026

    @MGudgin
    MemberAuthor

    Closing because the versioning work selected exact Rust contracts as the authoritative source for schemas and generated TypeScript artifacts in #1188, with the infrastructure hardened in #1189. A separate FlatBuffers evaluation is no longer actionable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-Node-SDKArea-Rust-SDKArea-SchemaIssue-Task

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions