Enable verified monthly PQRST schedule and retain CI coverage
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 6s
Build and Publish Container Image / build-and-push (push) Successful in 51s

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a0e759-301a-78b1-bbc1-040ef094b12d
This commit is contained in:
tegwick 2026-09-28 12:18:51 +02:00
parent eda44d905a
commit ce9a8f8edf
4 changed files with 21 additions and 5 deletions

View file

@ -77,3 +77,21 @@ def test_unavailable_does_not_publish_partial_or_zero_means(monkeypatch):
monkeypatch.setattr(p,'collect',lambda: (_ for _ in ()).throw(ValueError('truncated')))
r=json.loads(p.PqrstResolver().resolve('monthly',None,{}))
assert r['status']=='unavailable' and r['months']==[] and r['model_calls']==0
def test_projected_definition_uses_report_only_native_schedule(tmp_path):
import yaml
from activity_core.definition_parser import parse_file
root = Path(__file__).resolve().parents[1]
docs = list(yaml.safe_load_all((root / 'k8s/railiance/20-runtime.yaml').read_text()))
cm = next(x for x in docs if x and x['kind'] == 'ConfigMap' and x['metadata']['name'] == 'actcore-external-activity-definitions')
path = tmp_path / 'monthly-pqrst-review.md'
path.write_text(cm['data']['monthly-pqrst-review.md'])
definition = parse_file(path)
assert definition.trigger_config['cron_expression'] == '30 9 1 * *'
assert definition.trigger_config['timezone'] == 'Europe/Berlin'
assert definition.rules == []
instruction = definition.instructions[0]
assert instruction['model'] == 'deterministic'
assert [sink['type'] for sink in instruction['report_sinks']] == ['working-memory', 'state-hub-progress']
assert instruction['report_sinks'][1]['event_type'] == 'pqrst_monthly_review'