DESIGN.md@crates/kanameB

DESIGN.md@crates/kaname from i2y/ritsu is a DESIGN.md file: the design rules coding agents follow in that repo.

Install it, pinned
mdr add i2y/ritsu/crates/kaname/DESIGN.md@git:20261107.d281d9c

Pins git:20261107.d281d9c in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 13 of 14 checks passed
Kind
DESIGN.md file
Repository
i2y/ritsu
Path
crates/kaname/DESIGN.md
Versions recorded
15
Latest version
git:20261107.d281d9c, committed Nov 7, 2026
First version recorded
Oct 23, 2026
Size
827,942 bytes
Repository stars
3
License
Apache-2.0

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# kaname 設計文書

Functional Core を書くための小さな汎用の言語。ファイルは `.kn`、コマンドは `ritsu kaname`、クレートは `crates/kaname`。プログラムのうち、入出力を持たずに計算して決める部分(状態とイベントから次の状態を決めること、入力の検証と正規化、集計と差分、木の変換、規則・日付・帳簿を呼ぶ手前と後ろの計算)を、関数、レコード、直和型、リスト・辞書・集合、文字列、ジェネリクス、関数の値で書く。型は ritsu のもの(単位、通貨と税区分、率の刻み、範囲、列挙、日付)で、範囲、丸め、int64 を、規則・日付・帳簿と同じ決まりで確かめ、関数ごとにどこまで確かめたかをエフェクトとして型に持たせる。rulec の規則、koyomi の日付の関数、chobo の帳簿の振替は、ritsu の型のまま呼べる。確かめた関数を、ritsu の一つの生成パッケージの TypeScript・Python・Go にし、Rust にもする(36 章)。

名前は要(かなめ)から取った。扇の骨を一つに留める部品である。

この文書は、ritsu 0.35.0 の上の kaname の設計である(2026-10-22)。言語(字句と構文、名前と読むファイル、型、エフェクト、範囲の解析と例を探すこと、逃げ道の警告、言語をまたぐ判定とそのための口)、コマンド(`check`、`run`、`vectors`、`doc`、`api`、`explain`)、`ritsu gen` が書く TypeScript・Python・Go・Rust、意味の中心の Lean のモデルと定理は、ここに書いたとおりに実装してある。例の 16 の `.kn`(八つの例の英語と日本語の版)は `ritsu kaname check` を警告も無く通り、その `examples` も成り立つ。そのうち四つの例は、生成したコードを TypeScript・Python・Go のホストから呼ぶプログラムも持つ(17.5)。生成したコードは、例とテストのモジュールの全部のベクタで、TypeScript・Python・Go・Rust の四つの出力先とも参照インタプリタと同じ答えを返す(16.4)。Rust の生成物は kaname の生成の関数が書き、`ritsu gen --target rust` がクレートにする(36 章)。範囲の解析と参照インタプリタは、Lean のモデルと、例とテストのモジュールの全部で同じ答えを出す(15.3)。実装したものの出力は、実物を貼ってある(4 章、5 章、7 章、8 章、9 章、10 章、11.1、12 章、13 章、14 章、15.3、16.4、17…
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add i2y/ritsu/crates/kaname/DESIGN.md@sha256:76cdf279fddf195b

The line at the top of this page pins the label git:20261107.d281d9c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_7bpdjxaarwfoipzv.svg)](https://markdownregistry.com/a/art_7bpdjxaarwfoipzv)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 15 versions of this file, between Oct 23, 2026 and Nov 7, 2026, about one every day.

versioncommittedcommitsizeaudit
git:20261107.d281d9c latest2026-11-07 d281d9c 827,942 BB view · diff
git:20261105.96824a32026-11-05 96824a3 827,942 BB view · diff
git:20261105.fbcb5b72026-11-05 fbcb5b7 827,942 BB view · diff
git:20261104.6cb5b292026-11-04 6cb5b29 827,942 BB view · diff
git:20261104.569f2ab2026-11-04 569f2ab 827,764 BB view · diff
git:20261031.fbfaec02026-10-31 fbfaec0 706,535 BB view · diff
git:20261031.06771db2026-10-31 06771db 706,535 BB view · diff
git:20261031.76f9a812026-10-31 76f9a81 704,337 BB view · diff
git:20261031.d968c432026-10-31 d968c43 702,046 BB view · diff
git:20261030.ebf5a2c2026-10-30 ebf5a2c 702,040 BB view · diff
git:20261029.1216bf82026-10-29 1216bf8 702,040 BB view · diff
git:20261029.0545d772026-10-29 0545d77 701,836 BB view · diff
git:20261029.0c6714d2026-10-29 0c6714d 702,040 BB view · diff
git:20261028.3bce4d42026-10-28 3bce4d4 689,683 BB view · diff
git:20261023.0e181f92026-10-23 0e181f9 674,617 BB view

Audit of the latest version

B  13 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: Size between 200 bytes and 200 KB (827942 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Starting a new one? Use a template for DESIGN.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

i2y/ritsu · 3 stars · license Apache-2.0 · pushed 2026-11-07 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_7bpdjxaarwfoipzv
GET https://markdownregistry.com/api/v1/resolve?ref=i2y/ritsu/crates/kaname/DESIGN.md
GET https://markdownregistry.com/api/v1/blob/76cdf279fddf195ba59ab0dfde6e312e61423cf52a6bd442764defc16bf85ed8

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: what DESIGN.md is and how agents use it · which agent file does what.

More from i2y/ritsu

DESIGN.md DESIGN.md file
i2y/ritsu · DESIGN.md
git:20261107.d281d9c · audit F · 3 stars
DESIGN.md@crates/chobo DESIGN.md file
i2y/ritsu · crates/chobo/DESIGN.md
git:20261106.2acffb3 · audit B · 3 stars
DESIGN.md@crates/dandori DESIGN.md file
i2y/ritsu · crates/dandori/DESIGN.md
git:20261104.62ba97a · audit C · 3 stars
DESIGN.md@crates/geas DESIGN.md file
i2y/ritsu · crates/geas/DESIGN.md
git:20261031.76f9a81 · audit B · 3 stars
DESIGN.md@crates/koyomi DESIGN.md file
i2y/ritsu · crates/koyomi/DESIGN.md
git:20261107.d281d9c · audit B · 3 stars
AGENTS.md@crates/rulec AGENTS.md file
i2y/ritsu · crates/rulec/AGENTS.md
git:20261103.7af3d08 · audit A · 3 stars
DESIGN.md@crates/rulec DESIGN.md file
i2y/ritsu · crates/rulec/DESIGN.md
git:20261106.947564f · audit C · 3 stars
DESIGN.md@crates/sakai DESIGN.md file
i2y/ritsu · crates/sakai/DESIGN.md
git:20261107.d281d9c · audit B · 3 stars
DESIGN.md@crates/sekisho DESIGN.md file
i2y/ritsu · crates/sekisho/DESIGN.md
git:20261103.558b890 · audit C · 3 stars
DESIGN.md@crates/yuen DESIGN.md file
i2y/ritsu · crates/yuen/DESIGN.md
git:20261105.54d3620 · audit B · 3 stars
chobo SKILL.md skill
i2y/ritsu · skills/chobo/SKILL.md · Write, check and build chobo books (`.book` files), a small language for the things counted and moved between accounts…
git:20261104.5b400fc · audit A · 3 stars
dandori SKILL.md skill
i2y/ritsu · skills/dandori/SKILL.md · Write, check and build dandori workflows (`.flow` files), typed workflows that call APIs, rules, agents, decision…
git:20261104.5b400fc · audit A · 3 stars

Every file in i2y/ritsu

Browse by kind, by grade B, or by owner.