Commit 5226551
committed
ai(rules[AGENTS]) Prefer pinned GitHub source links
why: links to trunk rot silently — the file moves, lines shift, and the
anchor lands on unrelated code while still resolving. The rubric warned
against bare SHAs, which reads as "don't pin links either".
what:
- Add Durable Source Links: tag first, then a trunk-reachable 7-char
commit ref, trunk only for living documents
- Rule out PR-head SHAs, which can be rebased or garbage-collected
- Restrict line anchors to pinned refs1 parent dfffbc2 commit 5226551
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
369 | 385 | | |
370 | 386 | | |
371 | 387 | | |
| |||
0 commit comments