Commit 3386493
docs(agents): guard history dating against a shallow clone (#14808)
`git log -S`, `git log --follow` and `git blame` answer from the horizon
commit in a shallow clone — exit 0, plausible sha, plausible date, no
warning — so a dev asked to date a line of history can report a wrong
answer with no signal. One standing clause now requires
`git rev-parse --is-shallow-repository` before a date or an ordering is
trusted, deepening when it is true, and declaring it in the report.
Scoped to history reads only. A content read at a ref (`git show
ref:path`, `git grep … ref --`) is depth-safe and is deliberately not
caught by the wording.
Paid same-file at ratchet headroom 0: the Definition-of-done line
"用户可见的改动加 changeset。" is dropped as a strict restatement of basic
rule 4, which states the same obligation more precisely
("用户可见的改动需要 `.changeset/*.md`") at a more binding site.
Claude-Session: https://claude.ai/code/session_01LraLgQVGq8egUwfYZpbYt1
Co-authored-by: Claude <noreply@anthropic.com>1 parent 22d573e commit 3386493
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
302 | | - | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
0 commit comments