You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debugging agent decision-making by inspecting actual prompts
Verifying context management (e.g., dynamic log filtering) is working correctly
Reducing log noise to focus on meaningful events
Research analysis of agent context and behavior
Proposed Solution
1. LLM Prompt Logging
Integration point: Override append_to_world_logs() in StateAwareEnvironmentWrapper (pas/environment.py).
The log_callback passed to agents is set to env.append_to_world_logs in scenario_runner.py. When the base agent's step() function creates an LLMInputLog, we can intercept it and write prompt content to a dedicated prompts log file.
Consider structured logging format for easier parsing
Add agent ID and turn number context to log messages
Separate prompt logs into dedicated file
Alternatives Considered
Keep current logging as-is - Not viable as current logs are hard to use for debugging
External logging service - Overkill for a research framework
Component
Core
Priority
Medium - Nice to have
Additional Context
This feature was identified while manually testing Issue #33 (duplicate dynamic logs fix). Without prompt logging, we cannot verify the fix is working in production runs. The noisy debug logs also made it difficult to find relevant information.
Feature Summary
Improve the PAS logging infrastructure to be more useful for debugging and development. This includes:
Motivation and Use Case
Current problems:
agent.log,pas.log) show activity but not prompt contentUse cases:
Proposed Solution
1. LLM Prompt Logging
Integration point: Override
append_to_world_logs()inStateAwareEnvironmentWrapper(pas/environment.py).The
log_callbackpassed to agents is set toenv.append_to_world_logsinscenario_runner.py. When the base agent'sstep()function creates anLLMInputLog, we can intercept it and write prompt content to a dedicated prompts log file.Key files:
pas/environment.py:StateAwareEnvironmentWrapper- add override methodpas/scenario_runner.py:202,214- wherelog_callbackis set2. Log Level Improvements
3. Log Format Improvements
Alternatives Considered
Component
Core
Priority
Medium - Nice to have
Additional Context
This feature was identified while manually testing Issue #33 (duplicate dynamic logs fix). Without prompt logging, we cannot verify the fix is working in production runs. The noisy debug logs also made it difficult to find relevant information.