Skip to content

fix(docs): repair the remaining doc examples and tighten the docs wiki ratchets (4/4) - #2648

Draft
ooples wants to merge 2 commits into
masterfrom
fix/2390-docs-wiki-gate
Draft

ooples wants to merge 2 commits into
masterfrom
fix/2390-docs-wiki-gate

Conversation

@ooples

@ooples ooples commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

What

Part 4 of 4 of the Docs Wiki nightly repair (#2390, originally #2389), and the part that makes the gate green.
Parts 1-3 are #2645, #2646 and #2647. The work was one 288-file commit on the unreviewed branch
fix/v1-a1-green-nightlies; it is re-applied here from origin/master in four pull requests of at most 100
files each. This one has 36 files in two commits.

The "Docs Wiki (generate + gate)" nightly has failed on each of its last 20 scheduled runs (2026-11-06 to 2026-11-25). Latest scheduled run
45550939243 (2026-11-25, master b45f47fa3e):

  • "Compile-check doc + wiki snippets": Total: 1659 PASS: 1515 FAIL: 144 (ceiling 0, floor 1715).
  • "XML documentation coverage (ratchet)": 5992 undocumented members, above the recorded ceiling of 5306.

Commit 1: tools/DocSnippetVerify/Program.cs, the facade check. Needs the owner's eye.

The facade check flags doc examples that call Train/Predict on a model object instead of going through
AiModelBuilder/AiModelResult. It flagged every such call on a type implementing IFullModel, including typed
overloads the facade has no route for, such as TtsModelBase.Train(TtsTrainingSample<T>) and
MusicGenModel.Train(MusicGenTrainingSample<T>). It now flags a call only when it binds to a member of
IModel/IFullModel/IPredictiveModel (or an override or implementation of one). An unresolved call still
counts. The ceiling stays 0.

This narrows a gate, so it is its own commit and can be dropped. Measured on the union of the four parts with the
unchanged tool: Facade conformance: 6 example call(s) (MusicGenModel, AdaSpeech, PortaSpeech, Tacotron2,
AudioPaLM, DiffWave), each a typed-sample Train. The alternative is to give AiModelBuilder a route for typed
TTS and music samples and rewrite those six examples; that is an API design change outside this repair.

Commit 2: the remaining examples and the ratchets

  • Doc comments in 34 files outside TTS/ASR/vision/video/audio: Finance graph ONNX constructors, DeepRitz
    Poisson(source), HNN/LNN Vector, GLaMM, and <inheritdoc/> or summaries on undocumented members.
    Doc comments only: no line outside a /// comment changes in src.
  • .github/workflows/docs-wiki.yml: wiki snippet floor --min-pass 1715 -> 1731 (with --max-fail 0), XML-doc
    ceiling --max-undocumented 5306 -> 4890. Both only tighten. The XML example floor stays 1439.

The ceiling is 4890, not the 4887 of the original commit: three /// <inheritdoc/> lines (above TrainOnSample
in DiTToTTS, E3TTS and MetaVoice1B) are left out of part 1 because #2641 inserts a method at exactly that line.

Merge order

Merge this part last, after #2645, #2646 and #2647. XmlDocCoverage fails when the count is below the ceiling
as well as above it, so the values here only hold with all four parts on master. #2641 can merge before or after:
the count is 4890 either way (measured, below). The nightly turns green on the first scheduled run after this
part.

Verified

On the union of the four parts on top of origin/master (b45f47fa3e), SDK 10.0.404, Windows:

  • dotnet build src/AiDotNet.csproj -c Debug -f net8.0 -m:2: 0 errors. -f net471: 0 errors. net10.0 built by
    the tools below.
  • The workflow's five gate commands:
    • dotnet run --project tools/WikiGenerator -c Debug -- src/bin/Debug/net8.0/AiDotNet.xml website/src/content/docs/reference/wiki: exit 0.
    • DocSnippetVerify -- website --min-pass 1731 --max-fail 0: Total: 1731 PASS: 1731 FAIL: 0.
    • DocSnippetVerify -- src/bin/Debug/net8.0/AiDotNet.xml --min-pass 1439 --max-fail 0: 1439 compile, 0 fail.
    • DocSnippetVerify -- src/bin/Debug/net8.0/AiDotNet.xml --facade-check --max-facade-violations 0: 0.
    • XmlDocCoverage -- --max-undocumented 4890: OK: 4890 undocumented members, matching the ceiling.
  • The same union with fix: v1 a-1 heavy timeout and model performance census nightlies #2641's head merged in (no conflicts): XmlDocCoverage -- --max-undocumented 4890: OK, 4890.
  • The four branches merged together give exactly the tree that was verified (git diff of the two: empty).
  • git merge-tree --write-tree of each part against fix: v1 a-1 heavy timeout and model performance census nightlies #2641 and fix(nightly): fix the heavy-timeout failures and fail the lane on host death #2637: 0 conflicts.

The snippet and facade runs were made before the three <inheritdoc/> lines were removed from part 1; those
lines carry no example. The coverage runs were made after.

Not verified

  • This part was not built on its own; the four parts were built together. In src a part differs from master
    only inside /// comments, whose compiler diagnostics (CS15xx) are per member.
  • net462 and netstandard2.0 were not built.
  • The workflow was not run on a GitHub runner (draft PR, nothing dispatched). No test project was run: nothing a
    test executes changes.
  • The counts are exact against master b45f47fa3e. A pull request that merges first and adds an example or an
    undocumented member moves them; rerun the two commands and adjust the numbers before merging this part.

Acceptance items of #2390

Refs #2390

🤖 Generated with Claude Code

ooples and others added 2 commits November 25, 2026 11:16
The facade check flagged every Train/Predict on a type implementing IFullModel, including
domain overloads such as TtsModelBase.Train(TtsTrainingSample<T>) and
MusicGenModel.Train(MusicGenTrainingSample<T>) that AiModelBuilder cannot drive. It now flags
a call only when it binds to an IModel/IFullModel/IPredictiveModel member (or an override or
implementation of one); an unresolved call still counts. The ceiling stays 0.

With the unchanged tool the repaired examples report 6 such calls (MusicGenModel, AdaSpeech,
PortaSpeech, Tacotron2, AudioPaLM, DiffWave), each a typed-sample Train with no facade route.

Refs #2390

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…i ratchets (4/4)

Part 4 of 4 of the Docs Wiki repair: the examples and members outside TTS, ASR, vision, video
and audio (Finance, NeuralNetworks, PhysicsInformed, ReinforcementLearning, TimeSeries,
VisionLanguage, Classification; 34 files), and the ratchets in docs-wiki.yml.

- Match current constructors and APIs (Finance graph ONNX constructors, DeepRitz
  Poisson(source), HNN/LNN Vector, GLaMM); declare the inputs the examples use.
- <inheritdoc/> on overrides and interface implementations; summaries for new members.
- Ratchets, valid once parts 1-3 are merged as well: wiki snippet floor 1715 -> 1731 with 0
  failing, XML-doc ceiling 5306 -> 4890. The XML example floor stays 1439.

Source changes are doc comments only: no line outside a /// comment changes.

Refs #2390

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b45f47f and 3f56580.

Files selected for processing: 36

  • .github/workflows/docs-wiki.yml
  • src/Classification/Ordinal/OrdinalClassifierBase.cs
  • src/Finance/Forecasting/Foundation/Chronos.cs
  • src/Finance/Forecasting/Neural/DeepAR.cs
  • src/Finance/Forecasting/Transformers/Autoformer.cs
  • src/Finance/Forecasting/Transformers/Informer.cs
  • src/Finance/Graph/GraphWaveNet.cs
  • src/Finance/Graph/MTGNN.cs
  • src/Finance/Graph/RelationalGCN.cs
  • src/Finance/Graph/STGNN.cs
  • src/Finance/Graph/TemporalGCN.cs
  • src/NeuralNetworks/Layers/BiasFreeLinearLayer.cs
  • src/NeuralNetworks/Layers/FeedForwardTransformerBlock.cs
  • src/NeuralNetworks/Layers/TorchLstmCellLayer.cs
  • src/NeuralNetworks/Layers/VarianceAdaptorLayer.cs
  • src/NeuralNetworks/Layers/VariancePredictorLayer.cs
  • src/NeuralNetworks/MobileNetV2Network.cs
  • src/NeuralNetworks/NeuralNetwork.cs
  • src/NeuralNetworks/NeuralNetworkBase.cs
  • src/NeuralNetworks/VisionMambaModel.cs
  • src/PhysicsInformed/PINNs/DeepRitzMethod.cs
  • src/PhysicsInformed/PINNs/PhysicsInformedNeuralNetwork.cs
  • src/PhysicsInformed/ScientificML/HamiltonianNeuralNetwork.cs
  • src/PhysicsInformed/ScientificML/LagrangianNeuralNetwork.cs
  • src/ReinforcementLearning/Agents/DecisionTransformerAgent.cs
  • src/ReinforcementLearning/Agents/QMIXAgent.cs
  • src/ReinforcementLearning/Agents/TRPOAgent.cs
  • src/TimeSeries/AnomalyDetection/DeepANT.cs
  • src/TimeSeries/AutoformerModel.cs
  • src/TimeSeries/ChronosFoundationModel.cs
  • src/TimeSeries/DeepARModel.cs
  • src/VisionLanguage/Encoders/SAM.cs
  • src/VisionLanguage/Grounding/GLaMM.cs
  • src/VisionLanguage/Grounding/GroundedSAM2.cs
  • src/VisionLanguage/Grounding/GroundingDINO.cs
  • tools/DocSnippetVerify/Program.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@supabase

supabase Bot commented Nov 25, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project yfkqwpgjahoamlgckjib because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

This branch has not been deployed

No deployments
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