Normalize Python trace agent types#120
Merged
Merged
Conversation
431facc to
cfd6449
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
operatorinstead of legacy numeric values like2narada-coretrace parsing backward-compatible with already-persisted numericagent_typevalues in Python sub-agent and Agent Studio agent tracespythonAgentRuntraces and keep Pyodide emission regression coverage in the existing Cloud Browser test filenarada-core0.0.23,narada-pyodide0.0.52, andnarada0.1.53a2Why
Deep nested Python APA traces in Cloud Browser can return nested
pythonAgentRuntraces whosesubAgentCall.agent_typeis the SDK enum value2. The trace parser expects the frontend trace contract (operator,generalist,coreAgent, or slash command strings), so parsing fails before the nested trace can complete.Validation
uv run pytest packages/narada-pyodide/tests packages/narada/tests -quv run ruff check $(git ls-files '*.py')\n-uv run ruff format --check $(git ls-files '*.py')\n-python -m compileall -q packages/narada-core/src packages/narada-pyodide/src packages/narada-pyodide/tests\n\nNote: whole-repouv run ruff check .currently walks the untracked.worktrees/directory in this checkout, so I validated tracked Python files directly.