Skip to content

mac tests: \encl{text} joined the completion inventory with letter.cls - #487

Merged
GoKubar merged 1 commit into
mainfrom
agent/kabir-claude/completion-encl-staleness
Sep 15, 2026
Merged

GoKubar merged 1 commit into
mainfrom
agent/kabir-claude/completion-encl-staleness

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

What

CompletionTests.testUnclosedEnvironmentSuggestsEndFirst pins the completion vocabulary's e entries in inventory-table order. When the letter class landed, \encl entered crates/compiler/supported/supported-latex.json immediately before \enspace:

{"name": "encl", "mode": "text", "origin": "text_dispatch", "arguments": "{text}",
 "description": "letter.cls enclosure line, labelled 'encl:'", "renders": true},

So \encl{text} takes the seventh slot, shifts the \enspace/\enskip dual-mode pair one place right, and the math-only run starts at index 9 rather than 8.

Why this is a stale expectation, not a regression

All three reported failures are the same test, and main itself carries them. Verified on mac-m1max-a against origin/main a2ae138:

Executed 1234 tests, with 137 tests skipped and 3 failures (0 unexpected)
CompletionTests.swift:113  \encl{text} where \enspace was expected
CompletionTests.swift:117  dropFirst(8) lands on \enskip, which is text, not math
CompletionTests.swift:126  \encl{text} missing from the \en prefix list

The vocabulary is the compiler's whole inventory rather than the loaded classes, so \encl ranking in a non-letter document is existing, intended behaviour — the same way \eqref is offered without amsmath.

This blocks the Mac gate: every held PR inherits these three failures, so a real regression could not be told from the baseline.

Implementation-Agent: orchestrator-astra
Commit-Executor: orchestrator-astra (direct; Cursor usage limit)

`testUnclosedEnvironmentSuggestsEndFirst` pins the vocabulary's `e` entries in
table order. letter.cls's `\encl` landed in crates/compiler/supported/
supported-latex.json directly before `\enspace`, so it takes the seventh slot
and shifts the dual-mode pair one place right; the math-only run therefore
starts at index 9, not 8.

Stale expectation, not a regression: the three failures are one test, and main
has carried them since the letter class merged.

Implementation-Agent: orchestrator-astra
Commit-Executor: orchestrator-astra (direct; Cursor usage limit)
@GoKubar
GoKubar merged commit b6ea9d5 into main Sep 15, 2026
21 checks passed
@GoKubar
GoKubar deleted the agent/kabir-claude/completion-encl-staleness branch September 16, 2026 04:17
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