refactor(conversation_loop): extract image-rejection phrases slice CL-R3-1 into agent/conversation_loop_image_recovery.py - #84330
Conversation
Signed-off-by: Axl Ibiza <andrexibiza@gmail.com>
Contributor email mapping required by check-attribution CI for the god-file kill campaign PRs (Axl Ibiza, MBA <andrexibiza@gmail.com>). Signed-off-by: Axl Ibiza, MBA <andrexibiza@gmail.com>
refactor(conversation_loop): extract image-rejection phrases slice CL-R3-1 into agent/conversation_loop_image_recovery.py
|
Summary
Byte-verbatim extraction of slice CL-R3-1 from
agent/conversation_loop.py(7,757 lines at pinee4bb75b532e932a1055d9a710802a7435163b6a) into a new module, per the repo-wide god-file sharding policy._IMAGE_REJECTION_PHRASEStuple assignment (lines 4048–4092, 2,787 bytes, 18 elements, image-rejection phrase data) →agent/conversation_loop_image_recovery.pyas a module-level private constantc5f51fe68fcacfdfe0936c10660d87259ccaf0f70e12213eb57916dfb6f2f527— byte-verbatim under the sanctioned dedent normalization (module-level move strips the 16-space common indent; re-indented module == pin window, byte-identical, comments/phrase order/quoting/issue references preserved)agent/conversation_loop.py— the caller's lookup resolves the module tuple through the original namespace; single authority (one tuple definition, no duplicate local copy); no public API surface introduced; monkeypatch authority intact; runtime value identity (same values/order/case).tests/agent/test_conversation_loop_image_recovery_seam.py— tuple value/order, original-module resolution, no duplicate local definition, no import-time side effectsagent/conversation_loop.py1 insertion / 45 deletions (deleted set exactly 4048–4092); new module 45 lines; seam test 91 lines.Method
5×2×3 double-blind decomposition (per the All Gods Must Die mandate): 5 blind region analysts → 5 blind adversarial witnesses → 5 consensus adjudicators → blind implementer → 2 blind re-reviewers, both APPROVED:
C:/tmp/tg-Feature Package/conversation-loop/review/CLR31-review-1.md(11,075 B) — all gates PASSC:/tmp/tg-Feature Package/conversation-loop/review/CLR31-review-2.md(12,735 B) — APPROVED, all gates (golden bytes, exact diff scope, runtime seam, namespace/monkeypatch compatibility, orphan/import/startup gates, source-scanning compatibility, differential suite, mutation positive control)Suite evidence: pristine-pin vs post-extraction failure sets identical; source-scanning tests (test_nous_oauth_401_guidance.py, test_prompt_caching.py, test_surrogate_chokepoints.py) verified — no source assertions invalidated by the relocation. No new failures.
Coordination table
ee4bb75b532e932a1055d9a710802a7435163b6a(origin/main)agent/conversation_loop_image_recovery.pyc5f51fe68fcacfdfe0936c10660d87259ccaf0f70e12213eb57916dfb6f2f527Dedup statement
No prior extraction of this window exists. No duplicate work.
Credit
351915781b3)This slice is governed by the conversation_loop (posted on #78641). Former whole: 7,757 lines. Fixer roster: #83437.
Part of #78641
Part of #78647