harbor run -t openthoughts/tasktrove-mix-h1-struggle-zone-v2-mix-h1-struggle-zone-2984harbor download openthoughts/tasktrove-mix-h1-struggle-zone-v2-mix-h1-struggle-zone-2984Task: Implement the Pacmon module
Goal Create a self-contained Python module at /app/pacmon.py (as a single file or as a package under /app/pacmon/) that provides a Pacmon class with behavior expected by the provided pytest tests. The implementation should track per-package file manifests, detect additions, removals, and changes between a stored baseline and a current snapshot, and persist updated state for future runs.
What you must implement
A Python module at /app/pacmon.py (or a package /app/pacmon/) that exposes a Pacmon class with the following interface and behavior.
Class and signatures
init(self, input_path: Optional[str] = None)
check_package(self, package_type: str, package_name: str) -> dict
Data model and behavior details
File placement and path requirements
Example behavior aligned with tests
Reliability and edge cases
Deliverable
Notes for integration
In short Implement a Pacmon class that diffs per-package file manifests between a current snapshot (supplied via a JSON file path in init) and a stored baseline (persisted to a default or provided output_path). Provide deterministic diffs (added_files, removed_files, changed_files), update the baseline after each check, and expose output_path for test verification. Ensure the module is located at /app/pacmon.py (or /app/pacmon/init.py as a package).