Forget a replaced or detached board's robots.txt verdict and detail lists with its failure record

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-29 19:43:24 +02:00
1 parent 60136765b2
commit 7f04c10e9e
2 files changed
+23 -1

No files matched your search

+5 -1
View File
@@ -109,8 +109,12 @@ def detach_board(store: Store, key: str) -> int:
def _forget_failing(store: Store, target: str) -> None:
"""Drop what the pull recorded about a board nobody reads any more: a
record of `target` failing would otherwise outlive the board, and count
in `app companies check` for good."""
in `app companies check` for good. The `ats` plugin's robots.txt verdict
and its lists of roles read and failed in detail go with it, since they
are about that board alone and would only grow stale."""
store.state.pop(FAILING + target, None)
for key in ("ats:robots:", "ats:detailed:", "ats:detailfailed:"):
store.state.pop(key + target, None)
def add_board(store: Store, board: str, name: str) -> tuple[Subscription, int]: