harbor run -t openthoughts/tasktrove-exp-flat25-subtle-debug-v3-5k-subtle-3761harbor download openthoughts/tasktrove-exp-flat25-subtle-debug-v3-5k-subtle-3761Note: The workspace contains a partially broken implementation at /app/starter_code.py. The agent must fix the bugs and complete the implementation.
Task: Implement a full Rule Engine and CLI wiring to support window-management rules for Herbstluftwm tests
Overview Create a self-contained Rule Engine component that supports defining, listing, removing, and applying window rules via CLI commands (rule, unrule, list_rules, apply_rules, apply_tmp_rule) and provides completion hints. The engine must integrate with the rest of the system so tests can define rules, query them, and have effects applied to windows/clients as described by the tests.
What functionality must be implemented (core goals)
Data model
Parsing and validation
Rule creation behavior
List rules
Rule removal
Applying rules
Completion support
Validation and error messaging alignment
Interaction with existing system (integration points)
Deliverables (concrete, actionable items)
Implement a module (or set of modules) providing:
Documentation and usage notes
Testing and validation guidance
Notes and assumptions
If you need, I can draft a concrete code skeleton (classes, methods, and example parsing logic) to kick off the implementation.