Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/vale-3-29-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@taskless/cli": patch
---

Update the bundled Vale to 3.29.0.

Vale rules now check AsciiDoc (`.adoc`, `.asc`, `.asciidoc`), reStructuredText (`.rst`, `.rest`) and Typst (`.typ`) files. Vale reads them without an external program, so `check` no longer leaves them out of the run with a skipped-files notice, and a rule that reaches them can report findings it did not before.

LaTeX (`.tex`, `.ltx`, `.latex`) and Markdoc (`.mdoc`, `.markdoc`) are read as markup: prose is linted, and math, `\verb`, comments and code fences are not. A rule that reached `.tex` used to fire on commands and math, so some findings there disappear.
4 changes: 2 additions & 2 deletions .taskless/taskless.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
}
},
"rules": {
"reconciledTo": "0.13.7",
"reconciledTo": "0.13.8",
"engines": {
"sg": "0.51.3",
"vale": "3.27.0"
"vale": "3.29.0"
}
}
}
14 changes: 7 additions & 7 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"node": ">=22.22.0"
},
"dependencies": {
"@taskless/vale-grammars": "3.27.0-20261117230017",
"@taskless/vale-grammars": "3.29.0-20261202070856",
"tsx": "^4.21.0"
},
"devDependencies": {
Expand Down Expand Up @@ -93,11 +93,11 @@
"@ast-grep/cli-win32-arm64-msvc": "0.51.3",
"@ast-grep/cli-win32-ia32-msvc": "0.51.3",
"@ast-grep/cli-win32-x64-msvc": "0.51.3",
"@taskless/vale-darwin-arm64": "3.27.0-20261117230017",
"@taskless/vale-darwin-x64": "3.27.0-20261117230017",
"@taskless/vale-linux-arm64": "3.27.0-20261117230017",
"@taskless/vale-linux-x64": "3.27.0-20261117230017",
"@taskless/vale-win32-arm64": "3.27.0-20261117230017",
"@taskless/vale-win32-x64": "3.27.0-20261117230017"
"@taskless/vale-darwin-arm64": "3.29.0-20261202070856",
"@taskless/vale-darwin-x64": "3.29.0-20261202070856",
"@taskless/vale-linux-arm64": "3.29.0-20261202070856",
"@taskless/vale-linux-x64": "3.29.0-20261202070856",
"@taskless/vale-win32-arm64": "3.29.0-20261202070856",
"@taskless/vale-win32-x64": "3.29.0-20261202070856"
}
}
15 changes: 9 additions & 6 deletions packages/cli/src/agent/create-vale-rule.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Topic: create-vale-rule (CLI v%(CLI_VERSION)s / topic v23)
# Topic: create-vale-rule (CLI v%(CLI_VERSION)s / topic v24)

%(ONE_COMMAND_PER_CALL)s

Expand Down Expand Up @@ -911,9 +911,9 @@ track the shipped binary.
**A single unreadable file fails the whole Vale pass.** Vale exits 2
with an `E100` runtime error and abandons the run, `--no-exit` does
not suppress it, so every other Vale rule over every other file goes
unreported. `[*.{md,typ}]` is not a slightly wider `[*.md]`; it is a
unreported. `[*.{md,dita}]` is not a slightly wider `[*.md]`; it is a
matcher that takes `check` down the first time the repo grows a
`.typ` file. Never put one of those extensions in a glob.
`.dita` file. Never put one of those extensions in a glob.

**A large file is linted, not skipped.** Vale's cost is linear in a
file's size as of 3.21.0 (a 3MB single-block document measures
Expand All @@ -926,14 +926,17 @@ it.
That example changed with Vale v3.18.0, which is the point: the
dangerous extension is whichever one the list above says needs a
program, not the one you remember. `.mdx` was the example until that
release parsed it natively, and `.typ` took its place.
release parsed it natively, and `.typ` took its place until Vale
v3.29.0 embedded the Typst reader.

**`.mdx` is supported** as of Vale v3.18.0, which parses it natively
rather than shelling out. `[*.{md,mdx}]` is a legitimate matcher
again, the example this recipe used to warn about is no longer the
broken one. Check the lists above rather than reaching for that
memory: `.typ` moved the opposite way in the same release, so a
matcher covering Typst is now the one that takes the run down.
memory: `.typ` moved the opposite way in the same release, and back
again in v3.29.0, which also reads AsciiDoc, reStructuredText, LaTeX
and Markdoc natively. A rule over `.adoc`, `.rst`, `.typ` or `.tex`
is an ordinary markup rule now.

**In `.mdx`, a component's children are prose as of v3.19.0.** Vale
reads a JSX element's children as the Markdown they are, so text
Expand Down
12 changes: 10 additions & 2 deletions packages/cli/src/agent/route.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Topic: route (CLI v%(CLI_VERSION)s / topic v12)
# Topic: route (CLI v%(CLI_VERSION)s / topic v13)

%(ONE_COMMAND_PER_CALL)s

Expand Down Expand Up @@ -283,7 +283,7 @@ and hard-fails on a fourth.** The tier is decided by the file's extension:
**One such file fails the entire Vale pass, not just that file.**
Vale exits 2 with an `E100` runtime error, `--no-exit` does not
suppress it, and every other Vale rule over every other file goes
unreported. A matcher written as `[*.{md,typ}]` is not a wider
unreported. A matcher written as `[*.{md,dita}]` is not a wider
`[*.md]`. It is a broken one.

**`.mdx` is supported** as of Vale v3.18.0, which parses it
Expand All @@ -293,6 +293,14 @@ and hard-fails on a fourth.** The tier is decided by the file's extension:
file is excluded rather than read as prose the way it was
before. Both are measured, not assumed.

**Vale v3.29.0 brought AsciiDoc, reStructuredText and Typst
back.** It reads AsciiDoc and reStructuredText itself and embeds
`typst2vast`, so `.adoc`, `.asc`, `.asciidoc`, `.rst`, `.rest` and
`.typ` are markup now and safe to match. It also reads LaTeX
(`.tex`, `.ltx`, `.latex`) and Markdoc (`.mdoc`, `.markdoc`) as
markup, where `.tex` used to be linted straight through its
commands and math.

As of v3.19.0 an MDX component's children are read as Markdown
too, so prose wrapped in `<Steps>` or `<Aside>` is linted where
it previously was not. That widens what a Vale rule covers in
Expand Down
25 changes: 25 additions & 0 deletions packages/cli/src/agent/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,31 @@ pinned ones, so `validate` and `check` fail while it exists. It only
appears if someone ran `vale sync` against an assembled config. Delete
the directory. Nothing in this project needs it.

<!-- on-demand -->
## Migrating to 0.13.9

Vale moves from 3.27.0 to 3.29.0. Nothing here needs work by hand,
but rules that reach the formats below report differently, each
measured against both binaries.

**AsciiDoc, reStructuredText and Typst are linted.** Through 3.27.0,
`.adoc`, `.asc`, `.asciidoc`, `.rst`, `.rest` and `.typ` needed an
external converter, so `check` left them out of the Vale run and
said so in a notice. Vale 3.29.0 reads all three itself. A rule whose
section reaches those files now checks them: findings can appear
where there were none, and the skipped-files notice no longer names
them. Prose is linted, and listing or literal blocks and comments are
not.

**LaTeX and Markdoc are read as markup.** `.tex` used to be linted
as one block of prose, commands, math and `%%` comments included. It
Comment on lines +762 to +763

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.

[New] `%%` comments looks like a typo — LaTeX's comment character is a single %, and every other place this PR touches (the vendor-contract fixture's % simply, and capabilities.ts's "skips math, \verb and % comments") uses a single %. Doubling it here is inconsistent and likely unintentional.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Intentional, not a typo: the recipes under src/agent/ are rendered through sprintf (they carry %(VALE_VERSION)s-style placeholders), so a literal percent sign has to be written %%. With a bare % here, taskless agent update failed with [sprintf] unexpected placeholder. The rendered section reads a single %: pnpm cli agent update --section migrating-to-0-13-9 prints "commands, math and % comments included", and the new reconcile-marker test renders that section, so a regression to a bare % fails it.

now goes through a LaTeX reader that skips math, `\verb` and
comments, so findings in those disappear. `.ltx`, `.latex`, `.mdoc`
and `.markdoc` were read as plain prose and now get the same
treatment, which also removes findings inside Markdoc code fences.

`.dita` and `.xml` still need a converter and are still left out.

<!-- on-demand -->
## Errors

Expand Down
12 changes: 6 additions & 6 deletions packages/cli/src/generated/vale-vocabulary-report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Vale 3.27.0 vocabulary: divergence report
# Vale 3.29.0 vocabulary: divergence report

GENERATED FILE — DO NOT EDIT. Produced by `pnpm generate:vale-schema`
alongside `vale-vocabulary.ts`.

Every value in the vocabulary is the recorded answer of the vendored Vale
3.27.0 binary. This file is what the binary said that its own
3.29.0 binary. This file is what the binary said that its own
documentation does not, in both directions. A generator that dropped these
would be quietly deciding which of the two to believe.

Expand All @@ -28,25 +28,25 @@ the worse failure.

### `scope: meta`

Vale 3.27.0 documents this operand and it never fired, on any fixture probed (.md).
Vale 3.29.0 documents this operand and it never fired, on any fixture probed (.md).

**Consequence.** It is omitted from the vocabulary, so `validate` rejects it. A rule written from the documentation would otherwise load, run, and match nothing, with no error reported anywhere.

### `scope: meta.class.title`

Vale 3.27.0 documents this operand and it never fired, on any fixture probed (.md).
Vale 3.29.0 documents this operand and it never fired, on any fixture probed (.md).

**Consequence.** It is omitted from the vocabulary, so `validate` rejects it. A rule written from the documentation would otherwise load, run, and match nothing, with no error reported anywhere.

### `scope: frontmatter`

This operand fired and Vale 3.27.0 documents it nowhere.
This operand fired and Vale 3.29.0 documents it nowhere.

**Consequence.** It is included in the vocabulary. It is also the standing counterexample to trusting the candidate list: a real operand nobody proposes is simply absent, and the schema then rejects a rule the binary honors.

### `scope: frontmatter.title`

This operand fired and Vale 3.27.0 documents it nowhere.
This operand fired and Vale 3.29.0 documents it nowhere.

**Consequence.** It is included in the vocabulary. It is also the standing counterexample to trusting the candidate list: a real operand nobody proposes is simply absent, and the schema then rejects a rule the binary honors.

Expand Down
14 changes: 7 additions & 7 deletions packages/cli/src/generated/vale-vocabulary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* `scripts/generate-vale-schema.ts`, and its header explains what each value
* below was measured with and what it is worth.
*
* Derived against Vale 3.27.0. Every value here is the recorded answer
* Derived against Vale 3.29.0. Every value here is the recorded answer
* of that binary to a rule the generator wrote and ran; nothing is transcribed
* from documentation. Where the binary and the documentation disagree, the
* disagreement is in `vale-vocabulary-report.md` rather than dropped.
Expand All @@ -15,7 +15,7 @@
*/

/** The binary this vocabulary was derived from. */
export const VALE_VOCABULARY_VERSION = "3.27.0";
export const VALE_VOCABULARY_VERSION = "3.29.0";

/**
* Vale's check types, self-enumerated: an unknown `extends` makes the binary
Expand Down Expand Up @@ -199,7 +199,7 @@ export const VALE_SCOPE_PREFIXES = [
] as const;

/**
* Where Vale 3.27.0 and its documentation disagree.
* Where Vale 3.29.0 and its documentation disagree.
*
* Carried in the artifact rather than only in the report, so that a consumer
* can render them and a reviewer cannot miss them in a diff.
Expand All @@ -208,26 +208,26 @@ export const VALE_DIVERGENCES = [
{
subject: "scope: meta",
finding:
"Vale 3.27.0 documents this operand and it never fired, on any fixture probed (.md).",
"Vale 3.29.0 documents this operand and it never fired, on any fixture probed (.md).",
consequence:
"It is omitted from the vocabulary, so `validate` rejects it. A rule written from the documentation would otherwise load, run, and match nothing, with no error reported anywhere.",
},
{
subject: "scope: meta.class.title",
finding:
"Vale 3.27.0 documents this operand and it never fired, on any fixture probed (.md).",
"Vale 3.29.0 documents this operand and it never fired, on any fixture probed (.md).",
consequence:
"It is omitted from the vocabulary, so `validate` rejects it. A rule written from the documentation would otherwise load, run, and match nothing, with no error reported anywhere.",
},
{
subject: "scope: frontmatter",
finding: "This operand fired and Vale 3.27.0 documents it nowhere.",
finding: "This operand fired and Vale 3.29.0 documents it nowhere.",
consequence:
"It is included in the vocabulary. It is also the standing counterexample to trusting the candidate list: a real operand nobody proposes is simply absent, and the schema then rejects a rule the binary honors.",
},
{
subject: "scope: frontmatter.title",
finding: "This operand fired and Vale 3.27.0 documents it nowhere.",
finding: "This operand fired and Vale 3.29.0 documents it nowhere.",
consequence:
"It is included in the vocabulary. It is also the standing counterexample to trusting the candidate list: a real operand nobody proposes is simply absent, and the schema then rejects a rule the binary honors.",
},
Expand Down
Loading