Skip to content

The agent that grows with you

test(agent): pin measured-work regression for display-flag config cache

spfcrazeb9f7525a1bd5
diff --git a/tests/run_agent/test_file_mutation_verifier.py b/tests/run_agent/test_file_mutation_verifier.py
index 526177f8584..2c12b452036 100644
--- a/tests/run_agent/test_file_mutation_verifier.py
+++ b/tests/run_agent/test_file_mutation_verifier.py
@@ -317,10 +317,11 @@ class TestVerifierEnabled:
"""Measured-work pin: the config lookup happens once per agent.
The footer gate runs at the end of every turn, so a fresh
- ``load_config()`` per call is wasted work (~1 ms deepcopy per turn,
- see #74211 for the sibling per-turn-config kill). The config read
- must be cached after the first call; the env-var override must still
- win on every call, cached or not.
+ ``load_config()`` per call is wasted work (measured ~0.9 ms/call on
+ a warm mtime-cache on this host; the sibling per-turn-config kill in
+ #74211 removed exactly this class of read). The config read must be
+ cached after the first call; the env-var override must still win on
+ every call, cached or not.
"""
monkeypatch.delenv("HERMES_FILE_MUTATION_VERIFIER", raising=False)
agent = _bare_agent()
diff --git a/tests/run_agent/test_turn_completion_explainer.py b/tests/run_agent/test_turn_completion_explainer.py
index 185ea460f20..1a245ae7860 100644
--- a/tests/run_agent/test_turn_completion_explainer.py
+++ b/tests/run_agent/test_turn_completion_explainer.py
@@ -297,8 +297,9 @@ def test_explainer_config_read_once_then_cached():
"""Measured-work pin: the config lookup happens once per agent.
The explainer gate runs at the end of every turn, so a fresh
- ``load_config()`` per call is wasted work (per-turn config reads were
- killed repo-wide in #74211; this seam was missed). The config read must
+ ``load_config()`` per call is wasted work (measured ~0.9 ms/call on a
+ warm mtime-cache on this host; per-turn config reads were killed
+ repo-wide in #74211, and this seam was missed). The config read must
be cached after the first call; the env-var override must still win on
every call, cached or not.
"""