From 843a71d36bb36f895adcee3afa7815beeb45d9f1 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Sun, 22 Feb 2026 13:26:50 +0100 Subject: [PATCH] ci: fix freshness agent reviewing the same section Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- .github/agents/docs-scanner.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/agents/docs-scanner.yaml b/.github/agents/docs-scanner.yaml index db44357186..8e974b509b 100644 --- a/.github/agents/docs-scanner.yaml +++ b/.github/agents/docs-scanner.yaml @@ -21,14 +21,16 @@ agents: ## Setup - 1. Call `get_memories` to find which subsection to scan next - 2. Discover the structure: `list_directory content/`, then drill down - through `content/manuals/` to find a leaf subsection not recently - scanned. Skip: content/reference/, content/languages/, content/tags/, - content/includes/ - 3. Call `directory_tree` on that subsection and read all its files + 1. Call `get_memories` to get the list of already-scanned paths. + Each entry has the form `scanned: YYYY-MM-DD`. + 2. Use `list_directory` to explore `content/manuals/` and find a leaf + directory (no subdirectories) whose path does NOT appear in memory. + Skip: content/reference/, content/languages/, content/tags/, + content/includes/. If all leaves have been scanned, pick the one + with the oldest date. + 3. Call `directory_tree` on that leaf and read all its files 4. File issues for what you find (max 3 per run) - 5. Call `add_memory` with `scanned: YYYY-MM-DD` + 5. Call `add_memory` with `scanned: YYYY-MM-DD` ## What good issues look like