Skip to content

Prepare the 4.0 migration guides and release materials - #821

Merged
Eli Pinkerton (wallstop) merged 25 commits into
masterfrom
work/4.0-release-review
Nov 24, 2026
Merged

Eli Pinkerton (wallstop) merged 25 commits into
masterfrom
work/4.0-release-review

Conversation

@wallstop

Copy link
Copy Markdown
Collaborator

Why

Users upgrading to 4.0 need instructions for both Unity package formats. The staged UPM checklist placed a post-publication check before submission. The performance guide also needs to show which comparison results share a measured environment.

What changed

  • Explain how to replace a classic import and update imported samples. Keep links useful inside both package formats.
  • Document the Unity compiler and Roslyn API target separately. Describe render pipeline support and the limits of the sample checks.
  • Show per-scenario MessagePipe ratios from matching rows. State where independent-build uncertainty is unmeasured.
  • Credit Unity Helpers in the store description. Move live checks after publication and require a clean install.

How we know

All 1,652 script, 2,251 generator and analyzer, and 1,937 documentation tests passed. Repository validation and the strict site build passed. Both 4.0.0 rehearsal archives reproduced byte for byte. All 15 store manifest entries verified.

Release gates

This review is part of #575. Maintainer review, final Unity qualification, unresolved issue investigations, and the publisher workflow are still required. See the checklist protocol.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request changes Inspector diagnostics, Unity MCP configuration, process monitoring, benchmark reporting, package workflows, and documentation. It removes reflection-based Console harvesting, adds an opt-in compiler-warning feed, introduces editor-free Unity MCP configuration, and updates installation and compatibility guidance.

Changes: Inspector compiler diagnostics

Layer / File(s) Summary
Parse and merge compiler diagnostics
Editor/Analyzers/BaseCallLogMessageParser.cs, Editor/Analyzers/DxMessagingConsoleHarvester.cs
The parser narrows candidate detection and retains report aggregation. The harvester removes reflection-based Console access, parses compilation messages with source locations, and optionally merges compiler reports with the IL scanner snapshot.
Settings and Inspector integration
Editor/Settings/*, Editor/CustomEditors/MessageAwareComponentInspectorOverlay.cs, docs/guides/*, docs/reference/analyzers.md, CHANGELOG.md, Tests/Editor/DxMessagingSettingsProviderTests.cs
The setting label changes to “Include Compiler Warnings.” The documentation describes the optional feed, retained setting name, and compiler-provided Open Script line.
Analyzer compatibility and CI selection
.github/analyzers/README.md, SourceGenerators/*/*.csproj, docs/reference/analyzers.md, .github/workflows/ci.yml, scripts/__tests__/ci-aggregate-workflow.test.js
The analyzer notes describe Roslyn targets and Unity 2021 host checks. CI file matching and tests cover analyzer-related files.

Sequence Diagram(s)

sequenceDiagram
  participant CompilationPipeline
  participant DxMessagingConsoleHarvester
  participant BaseCallLogMessageParser
  participant ILSnapshot
  CompilationPipeline->>DxMessagingConsoleHarvester: OnAssemblyCompilationFinished messages
  DxMessagingConsoleHarvester->>BaseCallLogMessageParser: Parse candidate messages
  BaseCallLogMessageParser->>DxMessagingConsoleHarvester: ParsedEntry values
  DxMessagingConsoleHarvester->>ILSnapshot: Merge compiler reports when enabled
Loading

Editor-free Unity MCP configuration

Layer / File(s) Summary
Resolve options and configure clients
scripts/mcp/unity-mcp.mjs
The CLI parses UNITY_MCP_ENABLED, skips discovery when Unity is disabled, omits Unity client entries, and rejects disabled probes.
Configuration tests and usage instructions
scripts/__tests__/unity-mcp.test.js, scripts/mcp/README.md, docs/runbooks/iteration-speed.md
Tests cover disabling and re-enabling Unity configuration, preserving other entries, and rejecting malformed configuration without writes. The guides describe editor-free setup.
sequenceDiagram
  participant CLI
  participant runConfigure
  participant ClientConfigurations
  CLI->>runConfigure: Configure with UNITY_MCP_ENABLED=false
  runConfigure->>ClientConfigurations: Remove unity-mcp entries
  runConfigure-->>CLI: Report Unity MCP disabled
Loading

Unity process monitoring

Layer / File(s) Summary
Stream reads and deadline handling
scripts/unity/run-ci-tests.ps1, scripts/unity/ensure-editor.ps1
The watchdog schedules the next stream read before forwarding output. At the deadline, completed EOF reads count as closed streams when the parent has exited. The wrapper can record heartbeat timing data.
Watchdog tests and heartbeat diagnostics
scripts/unity/__tests__/editor-process-watchdog.test.ps1, scripts/__tests__/test-editor-provisioning-heartbeat.ps1, .github/workflows/ci.yml
Tests cover delayed output forwarding and heartbeat timing. CI runs an isolated timing diagnostic when its eligibility conditions are met.

Benchmark reporting

Layer / File(s) Summary
Calculate and render comparison ratios
scripts/unity/render-perf-doc.js, scripts/__tests__/perf-test-vectors.json, scripts/__tests__/unity-perf.test.js, docs/architecture/performance.md, README.md
Benchmark summaries add a MessagePipe-rate share column. The report formats ratios only for matching commits and platforms with valid positive rates; otherwise it reports N/A.
Benchmark and iteration measurements
docs/runbooks/iteration-speed.md, docs/guides/patterns.md
The runbook adds compiler-server timing results, and the benchmark methodology link is updated.

Package installation and publication

Layer / File(s) Summary
Installation, migration, and sample access
docs/getting-started/*, docs/guides/migration-guide.md, README.md, Samples~/*/README.md, Samples~/Mini Combat/Walkthrough.md
The guides distinguish UPM and classic asset-package installation and sample access. The migration guide adds classic 3.3.0 upgrade steps and updates the attributes assembly description.
Package payload and publication checks
.github/workflows/attributes-package.yml, scripts/unity/create_unitypackage.py, scripts/__tests__/test_unity_validation_tiers.py, scripts/__tests__/test_create_unitypackage.py, scripts/release/asset-store-submission.js, scripts/__tests__/asset-store-submission.test.js, .github/asset-store-listing.json
The package workflow verifies the restored package source and payload. Unity package staging rewrites local Samples~/ README links. Publication checklists add live-listing and clean-project installation checks.

Documentation links and compatibility

Layer / File(s) Summary
Hosted documentation references
README.md, CHANGELOG.md
Documentation links in the README and changelog now point to hosted pages. The README also links to repository AI-agent resources.
Compatibility and integration guidance
README.md, docs/getting-started/quick-start.md, docs/reference/compatibility.md, docs/integrations/vcontainer.md
The documentation names Built-In, URP, and HDRP support and updates VContainer assembly-reference guidance.

Flow Graph transform

Layer / File(s) Summary
Set graph translation depth
Editor/Windows/DxMessagingFlowGraphWindow.cs, CHANGELOG.md
The graph-content translation now supplies an explicit zero Z component. The changelog adds a Flow Graph compilation entry for early Unity 2021.3 patches.

Estimated code review effort: 4 (Complex) | ~50 minutes

Possibly related issues

  • Issue 575 tracks the 4.0.0 release criteria and publication. This pull request updates migration and release materials but does not close the release gates.
  • Issue 414 covers MessagePipe performance research. This pull request adds per-scenario comparisons against MessagePipe rates.
  • Issue 739 covers the UnityEngine-free attributes and generator assembly and its NuGet package. This pull request updates Roslyn compatibility notes and NuGet package verification.

Possibly related PRs

Merge Risk: Minimal · up to 24da9

This PR mainly updates migration and release documentation, Inspector compiler-warning handling, and release and CI tooling. No concrete merge-blocking defect was established. Compiling the Flow Graph change on every 2021.3 patch still needs the maintainers' final Unity qualification.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the 4.0 migration guides and release materials. The changeset covers those docs, but it also includes large code changes: the console harvester rewrite, compiler-warning feed, NuGet ve…
Description check Passed The description follows the template sections: Why, What changed, How we know, and Release gates. It is short and plain. It omits the template's Related Issue section, the Type of Change checklist, an…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the 4.0 migration guides and release materials. The changeset covers those docs, but it also includes large code changes: the console harvester rewrite, compiler-warning feed, NuGet verification workflow, watchdog and CI changes. The title covers the main documentation intent but not those code changes, so it is partially related.

Full details: Description check

Explanation

The description follows the template sections: Why, What changed, How we know, and Release gates. It is short and plain. It omits the template's Related Issue section, the Type of Change checklist, and the Checklist items, and it does not link the CHANGELOG. The description also says the review is part of #575 but does not use the template's Closes # line. Most required content is present, so the check passes, but the template fields are missing.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review details

Context from checks skipped due to timeout: 1

  • GitHub Check: CodeRabbit
Additional context used

Code guidelines: 1

.llm/context.md — auto-discovered
Path-based instructions: 1

Applicability reference: AGENTS.md: # Repository Guidelines See the [AI Agent Guidelines](./.llm/context.md) for all AI agent guidelines.

CodeRabbit inference engine (.llm/context.md)

Files:

  • .github/analyzers/README.md
  • CHANGELOG.md
  • README.md
  • Samples~/DI/README.md
  • Samples~/Diagnostics Tooling Exerciser/README.md
  • Samples~/Mini Combat/README.md
  • Samples~/Mini Combat/Walkthrough.md
  • Samples~/UI Buttons + Inspector/README.md
  • docs/architecture/performance.md
  • docs/getting-started/index.md
  • docs/getting-started/install.md
  • docs/getting-started/quick-start.md
  • docs/guides/diagnostics.md
  • docs/guides/inspector-overlay.md
  • docs/guides/migration-guide.md
  • docs/guides/patterns.md
  • docs/integrations/vcontainer.md
  • docs/reference/analyzers.md
  • docs/reference/compatibility.md
  • docs/runbooks/iteration-speed.md
  • scripts/mcp/README.md
Learnings: 4

Common learnings

Learnt from: wallstop
Repo: Ambiguous-Interactive/DxMessaging PR: 798
File: CHANGELOG.md:0-0
Timestamp: 2026-11-22T03:55:15.054Z
Learning: Within repository "Ambiguous-Interactive/DxMessaging", only for files matching one of ["CHANGELOG.md"]: The npm package includes CHANGELOG.md but excludes docs/guides/migration-guide.md. In CHANGELOG.md, use the published documentation-site URL for migration-guide links that must work from the packaged changelog. A relative link to that guide only works in a repository checkout unless the package contents change.
Learning: 2026-11-15T22:22:23.051Z

Learnt from: CR
Repo: Ambiguous-Interactive/DxMessaging PR: 0
File: .llm/context.md:0-0
Timestamp: 2026-11-15T22:22:23.051Z
Learning: Applies to **/*.md : Applicability reference:
AGENTS.md: # Repository Guidelines
See the [AI Agent Guidelines](./.llm/context.md) for all AI agent guidelines.

Source excerpt:
# Repository guidelines

## Tooling

- Use Prettier, markdownlint-cli2, cspell, actionlint and yamllint directly. Run relevant checks before
  committing; hooks are a backstop. New or changed Markdown must pass Prettier and markdownlint.

Applied to files:

  • docs/getting-started/quick-start.md
Learning: 2026-11-15T22:22:23.051Z

Learnt from: CR
Repo: Ambiguous-Interactive/DxMessaging PR: 0
File: .llm/context.md:0-0
Timestamp: 2026-11-15T22:22:23.051Z
Learning: Applicability reference:
AGENTS.md: # Repository Guidelines
See the [AI Agent Guidelines](./.llm/context.md) for all AI agent guidelines.

Source excerpt:
# Repository guidelines

## Tooling

- Script tests use native `node --test` file isolation. `npm run test:unit` is the fast subset;
  `npm run test:integration` is its complement; `npm test` runs all Node and Python tests.
  Run the complete suite before delivery when scripts or composite-action code changes.

Applied to files:

  • scripts/__tests__/ci-aggregate-workflow.test.js
  • scripts/__tests__/unity-perf.test.js
  • scripts/mcp/unity-mcp.mjs
  • scripts/unity/create_unitypackage.py
Learning: 2026-11-15T22:22:23.051Z

Learnt from: CR
Repo: Ambiguous-Interactive/DxMessaging PR: 0
File: .llm/context.md:0-0
Timestamp: 2026-11-15T22:22:23.051Z
Learning: Applicability reference:
AGENTS.md: # Repository Guidelines
See the [AI Agent Guidelines](./.llm/context.md) for all AI agent guidelines.

Source excerpt:
# Repository guidelines

## Unity and CI

- Domain and scene reload stay disabled; tests reset statics. Use one batched cleanup frame,
  `[UnityTest]` only when yielding, and no real-time waits.

Applied to files:

  • scripts/unity/__tests__/editor-process-watchdog.test.ps1
ast-grep (0.51.3)

scripts/__tests__/test_unity_validation_tiers.py

[info] 331-331: use jsonify instead of json.dumps for JSON output
Context: json.dumps({"source": source})
Note: [CWE-116] Improper Encoding or Escaping of Output.

(use-jsonify)

[error] 337-338: Command coming from incoming request
Context: subprocess.run(["bash", "-c", dotnet + script], cwd=root, env=env,
capture_output=True, text=True)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').

(subprocess-from-request)

scripts/__tests__/unity-mcp.test.js

[warning] 808-808: Filesystem path is not a string literal; a request-/variable-derived path can enable path traversal. Validate and normalize the path before use.
Context: fs.writeFileSync(first, "original\n")
Note: [CWE-22] Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

(detect-non-literal-fs-filename)

[warning] 815-815: Filesystem path is not a string literal; a request-/variable-derived path can enable path traversal. Validate and normalize the path before use.
Context: fs.readFileSync(first, "utf8")
Note: [CWE-22] Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

(detect-non-literal-fs-filename)

[warning] 816-816: Filesystem path is not a string literal; a request-/variable-derived path can enable path traversal. Validate and normalize the path before use.
Context: fs.readFileSync(second, "utf8")
Note: [CWE-22] Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

(detect-non-literal-fs-filename)

[warning] 1605-1605: Filesystem path is not a string literal; a request-/variable-derived path can enable path traversal. Validate and normalize the path before use.
Context: fs.writeFileSync(envFile, disabledEnv)
Note: [CWE-22] Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

(detect-non-literal-fs-filename)

[warning] 1617-1617: Filesystem path is not a string literal; a request-/variable-derived path can enable path traversal. Validate and normalize the path before use.
Context: fs.readFileSync(file, "utf8")
Note: [CWE-22] Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

(detect-non-literal-fs-filename)

[warning] 1619-1619: Filesystem path is not a string literal; a request-/variable-derived path can enable path traversal. Validate and normalize the path before use.
Context: fs.readFileSync(file, "utf8")
Note: [CWE-22] Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

(detect-non-literal-fs-filename)

[warning] 1620-1620: Filesystem path is not a string literal; a request-/variable-derived path can enable path traversal. Validate and normalize the path before use.
Context: fs.writeFileSync(paths[0], JSON.stringify({ mcpServers: { personal: { command: "my-tool" } } }))
Note: [CWE-22] Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

(detect-non-literal-fs-filename)

[warning] 1633-1633: Filesystem path is not a string literal; a request-/variable-derived path can enable path traversal. Validate and normalize the path before use.
Context: fs.readFileSync(envFile, "utf8")
Note: [CWE-22] Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

(detect-non-literal-fs-filename)

[warning] 1638-1638: Filesystem path is not a string literal; a request-/variable-derived path can enable path traversal. Validate and normalize the path before use.
Context: fs.writeFileSync(paths.at(-1), "{invalid")
Note: [CWE-22] Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

(detect-non-literal-fs-filename)

LanguageTool

README.md

[grammar] ~211-~211: Use a hyphen to join words.
Context: .../install/) for all options including NPM scoped registries and local tarballs. #...

(QB_NEW_EN_HYPHEN)

PSScriptAnalyzer (1.25.0)

scripts/__tests__/test-editor-provisioning-heartbeat.ps1

[warning] 18-18: The parameter 'VerboseOutput' has been declared but not used.

(PSReviewUnusedParameter)

scripts/unity/__tests__/editor-process-watchdog.test.ps1

[warning] 70-89: 'Write-Host' is a cmdlet that is included with PowerShell (version core-6.1.0-windows) whose definition should not be overridden

(PSAvoidOverwritingBuiltInCmdlets)

Ruff (0.17.4)

scripts/__tests__/test_unity_validation_tiers.py

[error] 337-337: subprocess call: check for execution of untrusted input

(S603)

[warning] 337-337: subprocess.run without explicit check argument

Add explicit check=False

(PLW1510)

[error] 337-337: Starting a process with a partial executable path

(S607)

Additional comments: 2

Editor/Analyzers/DxMessagingConsoleHarvester.cs: 2

454-457: Functional Correctness

The scanner-derived entry never has a nonempty filePath. The location-copy guard at Editor/Analyzers/DxMessagingConsoleHarvester.cs:454-457 therefore always accepts the compiler FilePath and Line for those entries. A compiler line is not discarded in this path.

353-353: Functional Correctness

The concern depends on Unity's native callback ordering, and the inspected evidence does not settle it. The harvester keeps _pendingByAssembly only in memory and has no persistence path across a domain reload. If the reload precedes DrainScheduledRescan, compiler-only reports are dropped. The isCompiling guard does not cover a reload that starts after compilation completes. The public documentation does not state the ordering, so whether the drain runs before the reload cannot be decided from the available evidence.

LLM-generated change replayed from local commit c0f98278e7307fea7f775a42ecb2482f860c0eb2.

Co-authored-by: Codex <codex@users.noreply.github.com>
LLM-generated change replayed from local commit 926bc3a31f1fc01a86398c3e4ccdca79b92c35db.

Co-authored-by: Codex <codex@users.noreply.github.com>
LLM-generated change replayed from local commit b06ed1b78e015987df065eae06a582cbaf616f0f.

Co-authored-by: Codex <codex@users.noreply.github.com>
LLM-generated change replayed from local commit ea44292d315e642a59f34982d317cf348b5b696a.

Co-authored-by: Codex <codex@users.noreply.github.com>
LLM-generated change replayed from local commit ca075ce4f1350513dede81f5877801649d67dddf.

Co-authored-by: Codex <codex@users.noreply.github.com>
Relates to #801.

LLM-generated change replayed from local commit eb13ff508c3f5e3ee4dafa1d991606a049d53905.

Co-authored-by: Codex <codex@users.noreply.github.com>
Relates to #575 and #801.

LLM-generated change replayed from local commit 75ac2c6acb57cff665933db226a1c6e2a9efc26c.

Co-authored-by: Codex <codex@users.noreply.github.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
@wallstop
Eli Pinkerton (wallstop) marked this pull request as ready for review November 23, 2026 23:39

@github-actions github-actions Bot 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.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 1 finding.

Reviewed 2 bounded diff parts. Cross-part interactions may need human review.

48990 in, 6714 out tokens. Comments only; this review never blocks a merge.

}

// A source path can start with an apostrophe, so check the diagnostic ID first.
if (

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.

minor: Unknown DxMessaging IDs pass the candidate filter

For Assets/Build.cs(12,9): warning DXMSG099: Unrelated diagnostic., the DXMSG0 check and the generic warning-prefix regex both match, so IsDiagnosticCandidate returns true instead of false.

Fix: Check the captured diagnostic ID against the supported IDs before accepting a prefixed row.

@wallstop
Eli Pinkerton (wallstop) merged commit 252a1c5 into master Nov 24, 2026
35 checks passed
@wallstop
Eli Pinkerton (wallstop) deleted the work/4.0-release-review branch November 24, 2026 00:14
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