Skip to content

docs(canon): batch-shim row stays inside the canon reader's subset (#861) - #883

Merged
Blind-Striker merged 1 commit into
masterfrom
docs/861-fix-escaped-pipe
Nov 15, 2026
Merged

Blind-Striker merged 1 commit into
masterfrom
docs/861-fix-escaped-pipe

Conversation

@Blind-Striker

Copy link
Copy Markdown
Collaborator

Refs #861

Fix-forward for master, which #878 turned red.

What broke

The "Batch-shim arguments" row #878 added to the Windows divergence table in docs/architecture/client-runtime.md (line 835) is outside the subset the canon reader behind CanonDescriptionSourceTests accepts, for two reasons:

  • an escaped pipe (`\|`) inside a table cell;
  • a < on a table line (the reader classifies any table line containing < as unsupported).

So Sources_Should_Quote_The_Owning_Canon_Section and the four Sources_Should_Prove_Each_Committed_Reconnect_Source rows failed in OpenCode.Sdk.Tools.Tests on every OS. #878's own CI and master's push skipped those tests because the change was Markdown only.

The fix

The cell names those characters in words: "&, ^, %, !, ", the pipe character, the less-than or greater-than sign, CR or LF". The refused set is the same ten characters (BatchCommandLine.cs:23-25). No other canon file has an escaped pipe in a table.

Local evidence (this Mac, on this branch)

  • dotnet build --configuration Release: 0 warnings, 0 errors.
  • CanonDescriptionSourceTests: 84 of 84 passed (5 failed before the fix).
  • The whole OpenCode.Sdk.Tools.Tests project, [Category!=NativeAot]: 2791 of 2791 passed.

CI will again skip these tests, because the change is Markdown only.

…him row (#861)

The canon reader behind CanonDescriptionSourceTests refuses a table line that
carries an escaped pipe or a '<', so master's Tools.Tests failed on the new
Windows divergence row. The row now names those characters in words; its
meaning is unchanged.
@Blind-Striker Blind-Striker added this to the Next milestone Nov 15, 2026
@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 15, 2026
Merged via the queue into master with commit 0d2af08 Nov 15, 2026
13 checks passed
@Blind-Striker
Blind-Striker deleted the docs/861-fix-escaped-pipe branch November 15, 2026 01:55
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