Skip to content

Enhance AgentDriver with caching and pipeline operations discovery#90

Merged
martintb merged 2 commits intomainfrom
bugfix-agentdriver
Mar 1, 2026
Merged

Enhance AgentDriver with caching and pipeline operations discovery#90
martintb merged 2 commits intomainfrom
bugfix-agentdriver

Conversation

@martintb
Copy link
Collaborator

@martintb martintb commented Mar 1, 2026

This pull request introduces a robust caching and error-reporting system for pipeline operation (PipelineOp) discovery in AFL.double_agent.AgentDriver, along with improvements to the frontend pipeline builder UI to display warnings and optimize loading. It also adds targeted tests for the new backend logic. The changes improve performance, reliability, and user feedback when loading available pipeline operations.

Backend: PipelineOp discovery, caching, and error handling

  • Refactored PipelineOp discovery to support in-memory and disk caching, using a signature based on module file metadata to detect changes. Added a strict mode to bypass caches and raise errors on discovery failures. [1] [2] [3]
  • Added detailed warning collection for errors during module import, inspection, or metadata extraction, and exposed these warnings in the API response. [1] [2]
  • Added a strict flag to the pipeline_ops driver method, allowing clients to request strict error handling.
  • Added a suite of tests for the new caching and strict mode logic, including memory cache, disk cache, and strict mode behaviors.

Frontend: Pipeline builder UI improvements

  • Updated the frontend JS to handle the new backend response format, displaying warnings to users if any occurred during PipelineOp discovery.
  • Optimized app initialization by loading operations in parallel with other resources and showing the UI as soon as the core pipeline state is ready, improving perceived performance.- Introduced caching mechanisms for pipeline operations using memory and disk.

- Introduced caching mechanisms for pipeline operations using memory and disk.
- Added functions for managing cache paths and loading/saving cache data.
- Improved error handling and logging during module import and inspection.
- Updated `get_pipeline_ops` to return warnings and cache metadata.
- Added unit tests for caching behavior and strict mode operations.
- Refactored JavaScript to handle warnings from the backend response.
@martintb martintb merged commit cd0d2af into main Mar 1, 2026
4 of 5 checks passed
@martintb martintb deleted the bugfix-agentdriver branch March 1, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant