DESIGN.md@crates/sakaiB

DESIGN.md@crates/sakai 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/sakai/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/sakai/DESIGN.md
Versions recorded
15
Latest version
git:20261107.d281d9c, committed Nov 7, 2026
First version recorded
Oct 23, 2026
Size
391,780 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

# sakai 設計文書

境界づけられたコンテキストと、そのあいだの関係を書く小さな言語。ファイルは `.ctx`、コマンドは `sakai`。どの成果物がどのコンテキストに属するか、境界を越える参照が宣言した関係と公表された言語を通っているか、腐敗防止層が上流の列挙のどの値も読み替えているか、同じ語が違う意味のまま境界を越えていないかを、一式の成果物(rulec・dandori・koyomi・chobo・geas・sekisho・kaname)、proto、コードの import に照らして確かめる。コードの import は、各言語の既存のツール(Python は import-linter、JavaScript と TypeScript は dependency-cruiser、Java は ArchUnit、Go は go-arch-lint)の設定にして、そのツールで確かめる。Rust のクレートの依存は、Cargo が言うものを sakai が確かめる(7.7)。Context Mapper の CML にも書き出す。

名前は境(さかい)から取った。

この文書は設計の段階(A)で書き、言語の芯と地図の検査を作った段階(B)と、例とコードの import の検査の設定と CML を作った段階(C の一部)で、作ったものに合わせて直した。C の段階のうち、一式の成果物を読むところ(PLAN の C.1〜C.5)は、一式の言語を一つの処理系(ritsu)にまとめると決まってから、子プロセスと JSON ではなく ritsu の口で作った(ritsu の D.8。4.1、4.7、12.2)。作ったもの(`.ctx` の構文、`check`、`api`、`explain`、`build`、`export cml`、診断)について貼った sakai の出力と、7 章のツールの出力は、どれも実際に出したもので、`tests/design.rs` が実物と同じかを確かめる。D の段階(ritsu の F.2)で、doc、例の README、`docs/`、README、スキルを作った(10 章、11 章、12.5)。doc のページと README に貼った出力も実際に出したもので、`tests/doc.rs` と `tests/docs.rs` が確かめる。一方、一式のツール(rulec 0.22.1、koyomi 0.1.0、chobo 0.1.0、geas 0.0.1、dandori 0.1.0)と外のツール(import-linter 2.15、dependency-cruiser 16.10.4、ArchUnit 1.5.1、go-arch-lint v1.19.0、depguard v2.2.1、Spring Modulith…
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add i2y/ritsu/crates/sakai/DESIGN.md@sha256:ecb67ed48eaa446a

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_2on3tw73htkdnzyv.svg)](https://markdownregistry.com/a/art_2on3tw73htkdnzyv)

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 391,780 BB view · diff
git:20261105.96824a32026-11-05 96824a3 391,780 BB view · diff
git:20261105.fbcb5b72026-11-05 fbcb5b7 391,780 BB view · diff
git:20261104.569f2ab2026-11-04 569f2ab 391,780 BB view · diff
git:20261103.51901462026-11-03 5190146 391,780 BB view · diff
git:20261031.fbfaec02026-10-31 fbfaec0 379,214 BB view · diff
git:20261031.76f9a812026-10-31 76f9a81 379,214 BB view · diff
git:20261031.d968c432026-10-31 d968c43 377,476 BB view · diff
git:20261031.6ae18f12026-10-31 6ae18f1 377,467 BB view · diff
git:20261030.ebf5a2c2026-10-30 ebf5a2c 364,070 BB view · diff
git:20261029.1216bf82026-10-29 1216bf8 363,579 BB view · diff
git:20261029.60512e32026-10-29 60512e3 363,579 BB view · diff
git:20261028.8b069302026-10-28 8b06930 363,370 BB view · diff
git:20261027.ca99fdf2026-10-27 ca99fdf 355,138 BB view · diff
git:20261023.0e181f92026-10-23 0e181f9 348,290 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 (391780 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_2on3tw73htkdnzyv
GET https://markdownregistry.com/api/v1/resolve?ref=i2y/ritsu/crates/sakai/DESIGN.md
GET https://markdownregistry.com/api/v1/blob/ecb67ed48eaa446aa1af2a32d76307543dce7eeba1526aa501d5f43aa63cc1eb

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/kaname DESIGN.md file
i2y/ritsu · crates/kaname/DESIGN.md
git:20261107.d281d9c · 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/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.