Skip to content

docs(architecture): add missing building blocks (kernel dispatch, ternary, AOT) - #1216

Merged
michalharakal merged 1 commit into
developfrom
docs/arc42-missing-building-blocks
Aug 30, 2026
Merged

michalharakal merged 1 commit into
developfrom
docs/arc42-missing-building-blocks

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

Summary

The arc42 building block view (docs/modules/ROOT/pages/reference/architecture.adoc, §5) hadn't kept up with several subsystems that shipped since it was last touched:

Also:

No code changes — documentation only.

Test plan

  • Rendered with asciidoctor locally (clean, no warnings, all 18 section anchors generated correctly, no broken xrefs/tables) — the repo's Antora mermaid extension isn't available outside CI, so a full Antora build wasn't possible locally.

…nary, AOT)

The arc42 building block view (§5) hadn't kept up with several subsystems
that shipped since it was last touched:

- View-based kernel dispatch (KernelDispatch/ViewKernel/KernelKey/
  OperandKey/LayoutClass, #1189-#1193) was already used by §6's runtime-view
  flowchart but never introduced as a building block. New §5.3 covers it,
  including MappedCapableKernel and the mapped-encoding derivation/guard-test
  cross-check (#1193).
- The memory planning layer (AllocationResolver/StorageCapabilities/
  PlannerProfile/WeightForm) that decides Storage before dispatch reaches it
  was mentioned only in passing. §5.4 gets a subsection naming it explicitly.
- Ternary/BitNet weights (off-heap Storage #1202, zero-copy mmap for
  SEQUENTIAL #1203, the closed #1205 native-grouped-kernel decision, the
  I2sAotConverter) had no building-block coverage at all. New §5.5.
- The external SKaiNET-IREE-tools repo (#1207) and skainet-io-gguf's export/
  AOT capability weren't reflected in §3's "read-only" I/O claim or §5.1's
  module table.

Also: §9 gains decision rows for the above (dated, with rationale, matching
the table's existing convention); §11 drops the now-resolved "packed weights
still reach the heap" risk and adds the two that replaced it (ternary
repack cost, mapped-format coverage is a maintained set); §12 glossary gains
KernelKey/ViewKernel, MappedCapableKernel, WeightForm/WeightResidency, and
AOT conversion.

Validated with `asciidoctor` (renders cleanly, no warnings, no broken
xrefs/tables) since the repo's Antora mermaid extension isn't available
outside CI.
@github-actions

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-1216 artifact to view the complete documentation locally.

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

@michalharakal
michalharakal merged commit 2428ee0 into develop Aug 30, 2026
18 checks passed
@michalharakal
michalharakal deleted the docs/arc42-missing-building-blocks branch August 30, 2026 12: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.

[Deferred] Native decode kernel for BitNet.cpp's GROUP_128 layout (no-repack mmap)

1 participant