Skip to content

Commit 7978ea7

Browse files
richlanderclaude
andcommitted
Simplify traversal example to December 2024
Shorter example (5 fetches vs 8) still demonstrates key concepts: - Pre-computed prev-security links - Automatic year boundary crossing (2025/01 → 2024/11) - Stop condition 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent f76fac0 commit 7978ea7

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

llms.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,17 @@ Reference:
5353

5454
The `prev-security` links are pre-computed at publish time and cross year boundaries automatically (e.g., `2025/01` → `2024/11`). Following them is O(security-months), not O(all-months). Once you have the first month, no additional year index fetches are needed.
5555

56-
Example traversal for "CVEs since September 2024":
56+
Example traversal for "CVEs since December 2024":
5757

5858
```text
5959
Timeline Index (1)
6060
→ latest-year → 2025/index.json (2)
6161
→ latest-security-month → 2025/10/index.json (3) ✓
6262
→ prev-security → 2025/06 (4) ✓
63-
→ prev-security → 2025/04 (5) ✓
64-
→ prev-security → 2025/01 (6) ✓
65-
→ prev-security → 2024/11 (7) ✓ (crosses year boundary automatically)
66-
→ prev-security → 2024/10 (8) ✓
67-
→ prev-security → 2024/08 (before Sept, STOP)
63+
→ prev-security → 2025/01 (5) ✓ (crosses year boundary automatically)
64+
→ prev-security → 2024/11 (before Dec, STOP)
6865

69-
Total: 8 fetches (2 indexes + 6 security months)
66+
Total: 5 fetches (2 indexes + 3 security months)
7067
```
7168

7269
**Anti-pattern:** Do not fetch multiple year indexes to inspect `_embedded.months[]` and plan which months to fetch. The `prev-security` chain crosses year boundaries automatically — just follow it.

llms/reference.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -533,20 +533,17 @@ The `prev-security` links are pre-computed at publish time and cross year bounda
533533

534534
**Anti-pattern:** Do not fetch multiple year indexes to inspect `_embedded.months[]` and plan which months to fetch. The `prev-security` chain crosses year boundaries automatically — just follow it.
535535

536-
Example traversal for "CVEs since September 2024":
536+
Example traversal for "CVEs since December 2024":
537537

538538
```text
539539
Timeline Index (1)
540540
→ latest-year → 2025/index.json (2)
541541
→ latest-security-month → 2025/10/index.json (3) ✓
542542
→ prev-security → 2025/06 (4) ✓
543-
→ prev-security → 2025/04 (5) ✓
544-
→ prev-security → 2025/01 (6) ✓
545-
→ prev-security → 2024/11 (7) ✓ (crosses year boundary automatically)
546-
→ prev-security → 2024/10 (8) ✓
547-
→ prev-security → 2024/08 (before Sept, STOP)
543+
→ prev-security → 2025/01 (5) ✓ (crosses year boundary automatically)
544+
→ prev-security → 2024/11 (before Dec, STOP)
548545
549-
Total: 8 fetches (2 indexes + 6 security months)
546+
Total: 5 fetches (2 indexes + 3 security months)
550547
```
551548

552549
**Expected fetch counts** (for self-assessment):

0 commit comments

Comments
 (0)