Skip to content

Commit 21edaf3

Browse files
feat(links): check internal /blog/ links resolve to a post (#199)
* feat(links): pre-commit check that /blog/<slug>/ links resolve to a post in _posts/ Git-Session-Id: 1e32 * fix(links): drop or repair 28 internal blog links to missing posts Git-Session-Id: 1e32 * fix(precommit): skip deleted files in internal blog link check Pre-commit passes staged paths including deletions; read_text() on a deleted post crashed the hook with FileNotFoundError. Skip nonexistent paths and cover it with a regression test. Git-Session-Id: dcc56cb0-de33-5447-b1f6-ae482c644aeb
1 parent 82b80cd commit 21edaf3

50 files changed

Lines changed: 107 additions & 29 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.pre-commit-config.yaml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ repos:
6464
files: '(_posts/.*\.md|scripts/generate_og_images\.py|_config\.yml)'
6565
stages: [pre-commit]
6666

67+
# Internal blog links must resolve to a post in _posts/ (unpublished posts 404)
68+
- repo: local
69+
hooks:
70+
- id: check-internal-blog-links
71+
name: Check Internal Blog Links
72+
entry: python3 scripts/precommit/check_internal_blog_links.py
73+
language: system
74+
files: '^_posts/.*\.md$'
75+
stages: [pre-commit]
76+
6777
# Markdown link checks
6878
- repo: local
6979
hooks:

‎_posts/2026-02-06-autonomous-agent-work-queue-patterns.md‎

Lines changed: 1 addition & 1 deletion

‎_posts/2026-03-23-the-spectrum-of-agent-state.md‎

Lines changed: 1 addition & 1 deletion

‎_posts/2026-04-09-no-rate-limits-model-agnostic-agents.md‎

Lines changed: 1 addition & 1 deletion

‎_posts/2026-04-30-the-fourth-guardrail-adversarial-eval.md‎

Lines changed: 1 addition & 1 deletion

‎_posts/2026-05-22-lesson-pass-rate-gate-sonnet-46.md‎

Lines changed: 2 additions & 2 deletions

‎_posts/2026-05-23-how-an-agent-runs-itself-series.md‎

Lines changed: 1 addition & 1 deletion

‎_posts/2026-05-24-ai-agent-landscape-edition-5-parallelism-models.md‎

Lines changed: 5 additions & 5 deletions

‎_posts/2026-06-17-v20-v22-rpg-systems-and-a-16-minute-fix.md‎

Lines changed: 1 addition & 1 deletion

‎_posts/2026-07-02-causal-loo-sign-flips-observational-metrics.md‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)