Skip to content

Commit 843a71d

Browse files
committed
ci: fix freshness agent reviewing the same section
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
1 parent 754f6be commit 843a71d

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/agents/docs-scanner.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ agents:
2121
2222
## Setup
2323
24-
1. Call `get_memories` to find which subsection to scan next
25-
2. Discover the structure: `list_directory content/`, then drill down
26-
through `content/manuals/` to find a leaf subsection not recently
27-
scanned. Skip: content/reference/, content/languages/, content/tags/,
28-
content/includes/
29-
3. Call `directory_tree` on that subsection and read all its files
24+
1. Call `get_memories` to get the list of already-scanned paths.
25+
Each entry has the form `scanned: <path> YYYY-MM-DD`.
26+
2. Use `list_directory` to explore `content/manuals/` and find a leaf
27+
directory (no subdirectories) whose path does NOT appear in memory.
28+
Skip: content/reference/, content/languages/, content/tags/,
29+
content/includes/. If all leaves have been scanned, pick the one
30+
with the oldest date.
31+
3. Call `directory_tree` on that leaf and read all its files
3032
4. File issues for what you find (max 3 per run)
31-
5. Call `add_memory` with `scanned: <subsection> YYYY-MM-DD`
33+
5. Call `add_memory` with `scanned: <path> YYYY-MM-DD`
3234
3335
## What good issues look like
3436

0 commit comments

Comments
 (0)