Repository navigation
Description
What
The repository's toolchain now uses C# 15, AnalysisLevel 11, the refreshed packages, and the tools on net11.0 (#870, #864, #875 and #877). The packages keep their target frameworks: netstandard2.0, net472, net10.0, net11.0. Nothing here changes the public surface on its own.
The toolchain steps landed in separate pull requests, ordered by risk, so that a new diagnostic or a changed byte could be traced to one cause (#838, #864, #870, #875 and #877).
- 1.
Microsoft.CodeAnalysis.NetAnalyzers11.0.100. Measured on the GA SDK withAnalysisLevel10.0: no new diagnostic across the solution, and theAD0001crash inDoNotPassDisposablesIntoUnawaitedTasksAnalyzer(CA2025) is gone, where 10.0.402 and 10.0.404 both crash. Merged in build: Microsoft.CodeAnalysis.NetAnalyzers 11.0.100 (#829, step 1) #838, with the version recorded inDirectory.Packages.props. It unblocks the expiry row in Tests that block a pool thread on a pool item's release #758. - 2.
AnalysisLevel11. Adopted in build: AnalysisLevel 11 (#829, step 2) #864;Directory.Build.propsnow setsAnalysisLevel11.0. No suppression without a decision. - 3.
LangVersion15. The switch alone, with no code change, merged in build: C# 15, LangVersion 15 (#829, step 3) #870 (Directory.Build.props). Preview features stay off. - 4. The general package refresh, under the refresh rule in
docs/engineering/workflow.md, merged in build(deps): the dependency refresh with Microsoft.OpenApi 3.11.0 (#829, step 4) #875. - 5. C# 15 features, one decision per feature. The read-only survey and decisions are complete (maintainer's outcome). No breaking candidate was adopted;
PtyFramestays as it is, following the open-wire reasoning indocs/adr/0036-generated-unions-stay-interfaces-csharp-unions-come-as-sibling-types.md. Constraints the survey applied:- the four target frameworks: a feature that needs runtime types must work on
net472andnetstandard2.0or stay in code that targetsnet11.0only; - ADR-0036: generated unions stay interfaces, and C# 15 unions come as sibling types in C# 15 unions as sibling types over the generated records #200, which is not part of this issue;
closedhierarchies do not fit unions that must accept arms a newer server adds; - generated code changes only with a measured or readability reason, because one emitter line regenerates hundreds of files.
- the four target frameworks: a feature that needs runtime types must work on
- 6. The tools, the service fixture and the benchmark host build on
net11.0. Merged in build: the tools, the service fixture and the benchmark host build on net11.0 (#829, step 6) #877. They useLatestTargetFramework;DefaultTargetFrameworkkeeps composing the packages' and the tests' frameworks. The measured benchmark runtimes staynet10.0,net11.0andnet472. Known cost: the generator-stage benchmark's baseline moved from .NET 10 to .NET 11.docs/architecture/platform-and-packaging.mdrecords the current host target.
The remaining follow-through stays in 1.x: use closed first on SchemaNode and TypeReferencePlan; weaker internal sites wait. Keep the collection-expression comparer and capacity sites already adopted, with no mass rewrite. Labeled break and continue wait until the code they simplify is next touched. Extension indexers, static interface members without default-interface-method support, and extended layout have no suitable current use. Union types stay in #200, and the memory-safety model stays off while it is in preview (maintainer's outcome; current hierarchy definitions: tools/OpenCode.Sdk.Tools/Generator/Ingestion/Models/SchemaNode.cs and tools/OpenCode.Sdk.Tools/Generator/Binding/Models/TypeReferencePlan.cs).
Done when
- Each step is merged or closed with its reason, and the full gate and CI on three operating systems pass after each.
- Package validation against the
1.0.1baseline reports no change to the public surface from steps 1 to 4 and 6. - The CHANGELOG says what a consumer can observe, if anything.
Related
- Tests that block a pool thread on a pool item's release #758 (the expiry row waits for step 1), C# 15 unions as sibling types over the generated records #200 (C# 15 unions, milestone 1.1), quality-gates: the absolute --project path's reason names the release-candidate SDK #825.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsQueue
Activity
build(deps): generator and tooling to latest stable (#829)
build(deps): analyzers to latest stable (#829)
build(deps): test stack to latest stable (#829)
build: the tools, the service fixture and the benchmark host build on…
build: the tools, the service fixture and the benchmark host build on…
Blind-Striker commentedon Nov 16, 2026
Steps 1–4 and 6 are merged: #838 (analyzers 11.0.100), #864 (
AnalysisLevel11), #870 (C# 15), #875 (the dependency refresh) and #877 (the tools onnet11.0).Step 5, the C# 15 feature survey with one decision per feature, is the only step left. The done-when exempts it from the public-surface check, so it may propose public changes. It starts with the read-only survey now, before 2.0.0:
1.x.Blind-Striker commentedon Nov 16, 2026
Step 5, the C# 15 feature survey, is done. No breaking candidate is adopted, so nothing moves to Next.
The one breaking candidate was making
PtyFrameaclosedclass. It is declined, andPtyFramestays as it is. Its frames mirror the server's PTY wire, which a newer server can grow with another frame kind, so closing the hierarchy would commit the SDK to two frame types for good and break every consumer's default arm. ADR-0036's reasoning applies.The non-breaking outcomes stay here, under 1.x:
[with(...), ...]): keep the comparer and capacity sites already adopted; no mass rewrite of generated or hand-written code.closedon internal generator hierarchies: use it first onSchemaNodeandTypeReferencePlan, where it makes their dispatch exhaustive. The weaker internal sites wait.breakandcontinue: not now as a standalone change; use them when the code they would simplify is next touched.Blind-Striker commentedon Nov 22, 2026
Closing as done. All toolchain steps landed: #838 (NetAnalyzers 11), #864 (AnalysisLevel 11), #870 (C# 15), #875 (package refresh) and #877 (tools on net11.0). The C# 15 feature survey is recorded above. The optional closed-hierarchy follow-through in the generator's abstract records is not a tracked commitment.