Skip to content

docs: render kernel matrix via build-logic → Antora (same pipeline as ops)#724

Merged
michalharakal merged 1 commit into
developfrom
feature/kernel-matrix-antora-pipeline
Jun 8, 2026
Merged

docs: render kernel matrix via build-logic → Antora (same pipeline as ops)#724
michalharakal merged 1 commit into
developfrom
feature/kernel-matrix-antora-pipeline

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

Makes the kernel × platform matrix render from source the same way the ops matrix doesoperators.jsonGenerateDocumentationTaskops-status-matrix.adoc — instead of the standalone test-written .md.

Pipeline (mirrors ops)

KernelSupportMatrixTestkernel-support.jsonGenerateKernelMatrixTask (build-logic) → reference/kernel-support-matrix.adoc (Antora), registered as generateKernelMatrix next to generateDocs.

  • Data source: the test introspects the registered KernelProviders — the scalar floor's coverage is auto-derived from supports("matmul", …) (drift-gated), the SIMD/native tiers are declared with the source-set→targets map. (KSP can't derive the per-target axis from symbols, so providers are registry-introspected rather than annotation-scanned — same data, KSP-equivalent rendering.)
  • Schema: https://skainet.ai/schemas/kernel-support/v1, structured like operators.json.
  • Render: new GenerateKernelMatrixTask + KernelSupportModule model in build-logic/convention, wired through DocumentationExtension (kernelInputFile/kernelOutputFile) + DocumentationPlugin. Timestamp omitted so the committed .adoc changes only when coverage changes.
  • Wiring: root documentation { … } block + generateKernelMatrix dependsOn :…native-cpu:jvmTest; nav.adoc gains the Reference entry; the standalone docs/kernel-support-matrix.md is retired (mindmap link repointed to the Antora page).

Output (current)

Q6_K = panama-vector (post-#720), Q5 = panama-vector on JVM/Android, scalar floor elsewhere — identical data to the retired .md, now an Antora page.

Verified

  • ./gradlew generateKernelMatrix renders the .adoc and is idempotent (no churn on re-run).
  • The scalar-floor drift gate stays in KernelSupportMatrixTest (runs under java-tests).
  • :skainet-backends:skainet-backend-native-cpu:allTests green.

Follow-up option: wire generateKernelMatrix + a git diff --exit-code into the docs CI workflow for a hard staleness gate (the in-test scalar-floor gate already covers the load-bearing axis).

🤖 Generated with Claude Code

… ops)

Aligns the kernel × platform matrix with the operators.json → ops-status-matrix.adoc
pipeline, replacing the standalone test-written .md.

- KernelSupportMatrixTest now emits kernel-support.json (schema
  https://skainet.ai/schemas/kernel-support/v1) by introspecting the registered
  KernelProvider implementations (scalar floor auto-derived from supports(); SIMD/native
  tiers declared with the source-set→targets map). Keeps the scalar-floor drift gate.
- New build-logic GenerateKernelMatrixTask + KernelSupportModule model render that JSON to
  docs/modules/ROOT/pages/reference/kernel-support-matrix.adoc, registered as
  `generateKernelMatrix` in DocumentationPlugin (mirrors generateDocs). Timestamp omitted so
  the committed .adoc only changes when coverage changes.
- Root build wires kernelInputFile/kernelOutputFile + generateKernelMatrix dependsOn the
  generator test; native-cpu test task stamps a stable skainet.version. nav.adoc gains the
  Reference entry next to the operator matrix.
- Retire docs/kernel-support-matrix.md; the mindmap's companion link points at the Antora page.

Verified: ./gradlew generateKernelMatrix renders Q6_K = panama-vector (post-#720) and is
idempotent (no churn on re-run); native-cpu allTests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

📖 Documentation Preview

The documentation has been built successfully for this PR.

Generated Files:

  • Operator documentation: docs/modules/operators/_generated_/
  • JSON schema output: operators.json

Artifacts:

  • Download the documentation-preview-724 artifact to view the complete documentation locally.

This comment will be updated automatically when the PR is updated.

@michalharakal michalharakal merged commit be78706 into develop Jun 8, 2026
10 checks passed
@michalharakal michalharakal deleted the feature/kernel-matrix-antora-pipeline branch June 8, 2026 13:49
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