Skip to content

Scope a one-time 0.3.x alignment on schema-first translation - #539

Merged
robgruen merged 1 commit into
mainfrom
typechat-schema-first-03-policy
Nov 24, 2026
Merged

robgruen merged 1 commit into
mainfrom
typechat-schema-first-03-policy

Conversation

@robgruen

Copy link
Copy Markdown
Contributor

Propose a narrow project-direction change for the 0.3.x line: the three implementations can agree on what goes into the model request without sharing implementation code, APIs, release dates or patch numbers.

  • Fresh default translation: application-owned instructions and schema in system, then the verbatim request once in user. Preserve history roles, typed validation and each runtime’s repair policy; offer an explicit legacy layout for migration.
  • Verify the observable behavior with deterministic tests. Python stays on Guido’s original #241; TypeScript and TypeChat.NET remain separate implementation reviews.
  • Ownership, review, publishing, and preview/stable decisions stay with the respective projects. No ongoing synchronized releases or new language implementation in this repository.

Policy only; no code or package changes. git diff --check passes. This is a proposal for explicit human owner review, not approval to merge the language candidates or publish packages. See the paired live results for background.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 01:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The proposed schema-first default goes beyond the owner's Python opt-in recommendation, and the GOALS.md policy change requires explicit @robgruen approval.

No open issues 🎉

What changed in this PR

Proposes a policy-only, one-time 0.3.x prompt alignment across TypeScript, Python, and the independently maintained TypeChat.NET project. It does not change code or packages, or authorize implementation merges or publishing.

Changes:

  • Defines a fresh translation layout with application instructions and schema in system, followed by the user request once in user.
  • Preserves history roles, validation, and runtime-specific repair behavior, with an explicit legacy layout for migration.
  • Calls for deterministic message-level tests while keeping APIs, implementation code, ownership, and release decisions independent.
File Description
GOALS.md Adds the proposed 0.3.x prompt agreement and clarifies the limits on cross-project release coordination.

Review effort: Balanced

@robgruen

Copy link
Copy Markdown
Contributor Author

The three 0.3.x implementation candidates are now available for separate review:

Language Candidate Local verification
Python (0.3.0) #241, on Guido’s original branch 764 tests passed; 22 snapshots; Pyright clean
TypeScript (0.3.0) #540 433 tests passed; all 12 examples resolved the candidate
.NET (0.3.0-pre) microsoft/typechat.net#341 235 offline unit tests passed; Release solution and examples built

I compared messages captured from the installed wheel, npm tarball and NuGet package using the same synthetic request and recording model. All three produced 2 messages on a fresh request (system, user), 4 on a follow-up with supplied history (system, user, assistant, user), and 6 on a forced repair (append the raw rejected assistant response and a user diagnostic). In each case the fixed count schema’s system text stayed unchanged and the final validated result was {"count":7}. This checks application-controlled message roles; it is not a jailbreak test or a requirement for identical implementation code.

The language PRs are drafts. No package was published. This policy proposal remains a separate owner-review decision.

@robgruen
robgruen merged commit 19957c8 into main Nov 24, 2026
15 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.

2 participants