From d8eb2530f8f129d804cb1c4319db436e9fec32ea Mon Sep 17 00:00:00 2001 From: Gino Tesei Date: Tue, 19 May 2026 05:07:11 -0700 Subject: [PATCH] docs(repo): add Principles statement and the artifacts that back it --- README.md | 2 +- README.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9179088..c947214 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This repo is built around four commitments. They explain what stays in and what gets cut. 1. **Lean, not exhaustive.** This is *not* a catalog of hundreds of patterns that no human will ever read, understand, or remember. It is a **lean catalog meant to be understood and memorized**. Long patterns lists are not features; they are noise. -2. **Hard cap: at most 24 patterns.** If a pattern is not necessary, we remove it. If something new is added, something else gets dropped. The ceiling is a forcing function, not an aspiration. +2. **Hard cap: at most 24 patterns.** If a pattern is not necessary, we remove it. If something new is added, something else gets dropped. The ceiling is a forcing function, not an aspiration. *Status (2026-05): 29 patterns today; **pruning is actively in progress** toward the 24-cap, with each cut justified in [`diff.md`](./diff.md).* 3. **Demos must actually work.** Every demo runs in an **automated weekly smoke test, for both Python *and* TypeScript** — and it must pass. (See [`.github/workflows/weekly-smoke.yml`](./.github/workflows/weekly-smoke.yml).) Educational code that doesn't run is educational code that lies. 4. **Concrete relevance, not just papers.** For each pattern we measure how it shows up in **real coding agents** — currently [Pi](https://github.com/earendil-works/pi) — and write it down in a `pi.md` inside each pattern folder, plus a [repo-wide roll-up with a coverage heat map](./pi.md). We also maintain [`diff.md`](./diff.md) to disambiguate commonly-confused pattern pairs: **if two patterns can't be cleanly told apart, one of them probably doesn't belong here**. A pattern that only exists in a paper somewhere is a signal it may not belong either. diff --git a/README.zh-CN.md b/README.zh-CN.md index d60695f..771d98b 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -19,7 +19,7 @@ 本仓库围绕四条承诺构建。它们决定了什么留下、什么被删除。 1. **精炼,不求大而全。** 这**不是**一个包含成百上千个、没人会真正读懂或记得住的模式的目录。它是一份**面向人类理解与记忆的精炼目录**。冗长的模式清单不是优点,而是噪音。 -2. **硬上限:最多 24 个模式。** 如果某个模式并非必需,就把它移除。新增一个,就要删掉另一个。这个上限是一种强制约束,而不是远期目标。 +2. **硬上限:最多 24 个模式。** 如果某个模式并非必需,就把它移除。新增一个,就要删掉另一个。这个上限是一种强制约束,而不是远期目标。*现状(2026-05):目前为 29 个模式;**正在主动精简**,向 24 上限收敛,每一次删减的理由都会记录在 [`diff.md`](./diff.md) 中。* 3. **示例必须真的能跑起来。** 每个示例都会在**自动化的每周冒烟测试**中运行,同时覆盖 **Python 与 TypeScript**,并且必须通过。(见 [`.github/workflows/weekly-smoke.yml`](./.github/workflows/weekly-smoke.yml)。)跑不起来的教学代码就是在说谎的教学代码。 4. **要看具体相关性,而不只是论文。** 对每一个模式,我们都会衡量它在**真实编码 Agent**中的呈现方式 —— 目前对标的是 [Pi](https://github.com/earendil-works/pi) —— 并把分析结果写入每个模式目录下的 `pi.md`,同时提供一份[包含覆盖度热力图的仓库级汇总](./pi.md)。我们还维护一份 [`diff.md`](./diff.md) 来澄清那些常被混淆的模式对:**如果两个模式无法被清晰地区分开来,那么其中一个大概率不该留在这里**。一个只存在于某篇论文里的模式,同样是它可能不属于这里的信号。