diff --git a/src/bib/dockets.py b/src/bib/dockets.py index 629f9f5..5e21a3d 100644 --- a/src/bib/dockets.py +++ b/src/bib/dockets.py @@ -17,7 +17,7 @@ from datetime import date, timedelta from pathlib import Path from typing import Iterable -DEFAULT_QUIET_DAYS = 30 +DEFAULT_QUIET_DAYS = 90 @dataclass(frozen=True) @@ -82,7 +82,7 @@ def _cfg(): def quiet_days() -> int: - """``[comments] seal_quiet_days`` from stack.toml, default 30.""" + """``[comments] seal_quiet_days`` from stack.toml, default 90.""" c = _cfg() if "comments" in c and "seal_quiet_days" in c.comments: return int(c.comments.seal_quiet_days) diff --git a/src/bib/regulations_gov.py b/src/bib/regulations_gov.py index ed14725..d6c9347 100644 --- a/src/bib/regulations_gov.py +++ b/src/bib/regulations_gov.py @@ -36,7 +36,7 @@ from typing import TYPE_CHECKING, Callable, Iterator import httpx -from bib.dockets import Docket +from bib.dockets import DEFAULT_QUIET_DAYS, Docket from bib.item import Source from bib.tag import Tag @@ -954,7 +954,7 @@ def walk_docket( attachments: bool = False, limit: int = 0, force: bool = False, - quiet_days: int = 30, + quiet_days: int = DEFAULT_QUIET_DAYS, today: date | None = None, scratch_root: Path = Path(".state/comments"), echo: Callable[[str], None] | None = None, diff --git a/stack.toml b/stack.toml index 93ba1ce..0747941 100644 --- a/stack.toml +++ b/stack.toml @@ -80,7 +80,10 @@ bib = "data/bib.sqlite" zotero = "data/zotero/data/zotero.sqlite" [comments] -seal_quiet_days = 30 # days after a docket's comment close date before an empty pull seals it +# Days after a docket's comment close date before an empty pull seals it. +# 90, not 30: reg.gov kept posting CY2027 PFS comments 6+ weeks after close +# (8 late postings found 2026-10-27, 42 days in). +seal_quiet_days = 90 [storage] bib = "data/bib/storage" diff --git a/tests/bib/test_dockets.py b/tests/bib/test_dockets.py index 6b5b7d1..8665f26 100644 --- a/tests/bib/test_dockets.py +++ b/tests/bib/test_dockets.py @@ -115,7 +115,7 @@ class TestQuietDays: from conf import _Cfg monkeypatch.setattr(mod, "_cfg", lambda: _Cfg({})) - assert quiet_days() == 30 + assert quiet_days() == 90 def test_reads_section(self, monkeypatch): import bib.dockets as mod