fusiontest 0.2.41__tar.gz → 0.2.43__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fusiontest-0.2.41 → fusiontest-0.2.43}/PKG-INFO +1 -1
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/action_model.py +9 -1
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/goal_verifier.py +7 -2
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/PKG-INFO +1 -1
- {fusiontest-0.2.41 → fusiontest-0.2.43}/pyproject.toml +1 -1
- {fusiontest-0.2.41 → fusiontest-0.2.43}/README.md +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/__init__.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/__init__.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/sites/shop/bugs.js +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/sites/shop/help.html +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/sites/shop/index.html +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/suites/shop-bugs.yaml +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/suites/shop.yaml +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/suites/todomvc.yaml +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/cli.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/__init__.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/app_errors.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/bugs.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/netguard.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/promise_checker.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/replay.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/reproduce.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/runner.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/screen_parser.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/secrets.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/shared_traces.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/tokens.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/__init__.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/fusiontest_dashboard.yaml +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/github.yaml +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/hacker_news.yaml +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/httpbin.yaml +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/todomvc.yaml +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/wikipedia.yaml +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/desktop/__init__.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/desktop/macos_adapter.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/desktop/playwright_adapter.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/desktop/windows_adapter.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/discovery/__init__.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/discovery/goal_generator.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/guardrails/__init__.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/guardrails/engine.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/mobile/__init__.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/mobile/android_adapter.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/mobile/ios_adapter.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/reporting/__init__.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/reporting/reporter.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/training/__init__.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/training/data_collector.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/training/dataset_builder.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/training/trainer.py +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/SOURCES.txt +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/dependency_links.txt +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/entry_points.txt +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/not-zip-safe +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/requires.txt +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/top_level.txt +0 -0
- {fusiontest-0.2.41 → fusiontest-0.2.43}/setup.cfg +0 -0
|
@@ -288,6 +288,14 @@ _ACTION_ELEMENT_CHARS = 120
|
|
|
288
288
|
# still match the element (seen on fusionleap.io: the model hunted for a
|
|
289
289
|
# separate "See the engagement" link after tapping the card).
|
|
290
290
|
_ACTION_ELEMENT_TAIL_CHARS = 40
|
|
291
|
+
|
|
292
|
+
# How many of the goal's actions (each with what it changed) the action and
|
|
293
|
+
# verifier prompts show. A goal like "check every FAQ answer" spends one action
|
|
294
|
+
# per item, and on an accordion where opening one closes the last, the earlier
|
|
295
|
+
# items' evidence exists only in the history: with only the last 5 shown, the
|
|
296
|
+
# model re-checked items it had already verified until it ran out of steps.
|
|
297
|
+
# History is per goal and capped by max_steps_per_goal (12 in prod).
|
|
298
|
+
PROMPT_HISTORY_ACTIONS = 15
|
|
291
299
|
_CONTENT_LINE_RE = re.compile(r'^\s*(\w+): "(.*)"$')
|
|
292
300
|
_ELEMENT_LINE_RE = re.compile(r'^\s*\[\d+\] ')
|
|
293
301
|
|
|
@@ -1028,7 +1036,7 @@ class ActionModel(LLMCaller):
|
|
|
1028
1036
|
]
|
|
1029
1037
|
|
|
1030
1038
|
if history:
|
|
1031
|
-
sections += ["", "ACTIONS TAKEN SO FAR:", *[f" - {h}" for h in history[-
|
|
1039
|
+
sections += ["", "ACTIONS TAKEN SO FAR:", *[f" - {h}" for h in history[-PROMPT_HISTORY_ACTIONS:]]]
|
|
1032
1040
|
|
|
1033
1041
|
if invalid_actions:
|
|
1034
1042
|
# Keep only the most recent unique failures; a long blacklist
|
|
@@ -26,7 +26,12 @@ import logging
|
|
|
26
26
|
import re
|
|
27
27
|
from dataclasses import dataclass, field, replace
|
|
28
28
|
|
|
29
|
-
from fusiontest.core.action_model import
|
|
29
|
+
from fusiontest.core.action_model import (
|
|
30
|
+
GROQ_FAST_MODEL,
|
|
31
|
+
PROMPT_HISTORY_ACTIONS,
|
|
32
|
+
LLMCaller,
|
|
33
|
+
LLMRequest,
|
|
34
|
+
)
|
|
30
35
|
from fusiontest.core.tokens import TokenUsage
|
|
31
36
|
|
|
32
37
|
logger = logging.getLogger("fusiontest.goal_verifier")
|
|
@@ -214,7 +219,7 @@ class GoalVerifier:
|
|
|
214
219
|
screen_text[:20000],
|
|
215
220
|
]
|
|
216
221
|
if history:
|
|
217
|
-
parts += ["", "ACTIONS TAKEN:", *[f" - {a}" for a in history[-
|
|
222
|
+
parts += ["", "ACTIONS TAKEN:", *[f" - {a}" for a in history[-PROMPT_HISTORY_ACTIONS:]]]
|
|
218
223
|
parts += [
|
|
219
224
|
"",
|
|
220
225
|
"Has the goal been achieved, judging by what is visible on screen now and by "
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|