whynot-cli 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -111,10 +111,10 @@ This creates `.decisions/` and adds `*.md text eol=lf` to `.gitattributes`.
111
111
 
112
112
  ```bash
113
113
  npx whynot-cli add \
114
- --title "session 不存 Redis" \
115
- --why "us-east 故障时读延迟 8s,SLO 要求 p99 < 500ms" \
114
+ --title "Sessions do not go in Redis" \
115
+ --why "Single-writer Redis took 8s to read during a us-east outage; the SLO requires p99 < 500ms" \
116
116
  --type rejected \
117
- --revisit "Redis 支持跨区域强一致时" \
117
+ --revisit "Redis supports cross-region strong consistency" \
118
118
  --evidence pr:412 \
119
119
  --tags infra,session
120
120
  ```
@@ -122,22 +122,24 @@ npx whynot-cli add \
122
122
  ```markdown
123
123
  ---
124
124
  id: 0001
125
- title: session 不存 Redis
125
+ title: Sessions do not go in Redis
126
126
  type: rejected
127
127
  status: live
128
128
  created: 2026-09-21
129
129
  expires_on: 2026-12-20
130
- revisit_when: "Redis 支持跨区域强一致时"
130
+ revisit_when: "Redis supports cross-region strong consistency"
131
131
  evidence:
132
132
  - "pr:412"
133
133
  tags: [infra, session]
134
134
  ---
135
135
 
136
- ## 结论
137
- 不能把 session 存 Redis。
136
+ ## Conclusion
137
+ Sessions must not be stored in Redis.
138
138
 
139
- ## 为什么
140
- 试过 Redis + 单写区域。us-east 故障时读延迟飙到 8s,SLO 要求 p99 < 500ms。
139
+ ## Why
140
+ We tried Redis with a single writer region. During a us-east outage, reads took
141
+ 8 seconds; the SLO requires p99 < 500ms. The Postgres table approach was
142
+ selected instead.
141
143
  ```
142
144
 
143
145
  ### 4. Give it to your agent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whynot-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Record what you ruled out, and why, so your coding agent stops re-suggesting it.",
5
5
  "type": "module",
6
6
  "author": "Stakenshake",