From 8987cceb0da1402a31cd278feebf0e00ed022b5a Mon Sep 17 00:00:00 2001 From: Stephen Blatt <5125883+sblattj@users.noreply.github.com> Date: Thu, 24 Sep 2026 20:04:20 -0700 Subject: [PATCH 01/25] feat: add PRXREF_LLM_PARSE_RETRIES config key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the `llm_parse_retries` key (int, default 1, >= 0, no ceiling) across all four config surfaces: config._DEFAULTS/_INT_KEYS/_RANGES, the config.py module docstring, .env.example, and docs/env-vars.md (with its derived key/name/group counts). Nothing reads the key yet; a later task wires it into the reply-retry loop in reviewer.py. 🤖 Authored with Claude Code — Claude Sonnet 5 via Claude Code Claude-Session-Id: f915b0ff-b27c-46f3-bc7c-430dca61d459 --- .env.example | 6 ++ docs/env-vars.md | 7 +- src/prxref/config.py | 11 ++- tests/test_parse_retries_config.py | 117 +++++++++++++++++++++++++++++ 4 files changed, 137 insertions(+), 4 deletions(-) create mode 100644 tests/test_parse_retries_config.py diff --git a/.env.example b/.env.example index 420139b..d4ab7fc 100644 --- a/.env.example +++ b/.env.example @@ -74,6 +74,12 @@ PRXREF_LLM_REASONING_EFFORT= # account. Must be > 0. # PRXREF_LLM_CLI_CONCURRENCY=2 +# Times a reply that is empty, that fails to parse, or that lacks a +# "findings" list is re-sent (default 1). Must be >= 0; 0 keeps only the +# single empty-reply retry. Each discarded attempt is written as +#