harbor run -t openthoughts/tasktrove-mix-h6-test-quality-top25-mix-h6-test-quality-1324harbor download openthoughts/tasktrove-mix-h6-test-quality-top25-mix-h6-test-quality-1324Implement opening-hours text generation and rule-description functionality used by the tests. Place your implementation under /app/ (e.g. /app/hours/...). The tests exercise both low-level rule text generation and a Resource-level routine that renders all date-period based opening hours into a localized human-readable text block and keeps that text up-to-date. Your task is to implement the functionality described below so the tests can call it and get the expected localized behavior.
Files and entry points to implement
/app/hours/enums.py
/app/hours/models.py
Implement a Rule class with at least the attributes used by tests:
Rule must provide a method:
Implement a Resource model (or class used by tests as the resource fixture) with at least:
Ensure that Resource.date_periods_as_text is kept up-to-date automatically:
Other behavior requirements and notes
What the tests expect (summary, do not copy verbatim)
Implementation hints
Do NOT modify the tests. Implement the enums, models, and methods so the behavior described above and required by the tests is satisfied. Place the implementation under /app/.