Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/fi/alk/harness/scan_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def _events(self, received: Any, turn: Turn) -> list[Any]:
self._on_turn_end()
except Exception:
# A failed cost note must not turn a paid answer into a retried one. The
# trace is logged (secret values masked), so a fault in the cost writer can be found.
# trace is logged, with only the platform's secret values masked, so a fault
# in the cost writer can be found.
logger.warning("find_agents: the cost note after the turn failed", exc_info=True)


Expand Down Expand Up @@ -412,7 +413,8 @@ async def _answered(work: Callable[..., str], *args: Any) -> dict[str, Any]:
except asyncio.TimeoutError:
return _error(_TOO_SLOW)
except Exception:
# The model is told only that the call failed; the trace is logged, secret values masked.
# The model is told only that the call failed. The trace is logged, with only the
# platform's secret values masked.
logger.warning("find_agents: a tool call failed", exc_info=True)
return _error(_FAILED)

Expand Down
3 changes: 1 addition & 2 deletions src/fi/alk/harness/scan_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from pathlib import Path
from typing import TYPE_CHECKING, Any

from .scan_walk import fits_path_rule
from .scan_walk import ENV_NAMES_KEPT, fits_path_rule

if TYPE_CHECKING:
from .job import HarnessJob
Expand All @@ -33,7 +33,6 @@
SCHEMA_VERSION = "futureagi.agent-scan.v1"
MAX_AGENTS = 50
MAX_BYTES = 1_048_576
ENV_NAMES_KEPT = 50
NAME_MAX = 255
EVIDENCE_MAX = 200
EVIDENCE_KEPT = 5
Expand Down
3 changes: 2 additions & 1 deletion src/fi/alk/harness/scan_folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def _answer(source: Path, subfolder: str) -> dict[str, Any]:
return {"name": "unknown", "version": None}
except Exception:
# A fault in the check itself. The child stays up for the next folder, and sends the
# trace so the parent logs it masked and marks the row unfinished.
# trace so the parent logs it, with only the platform's secret values masked, and marks
# the row unfinished.
return {_FAILED: traceback.format_exc()}


Expand Down
Loading
Loading