feat: Wire SLA monitor to schedule supervisor - #4579
Conversation
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…ganizing import blocks Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
|
VERDICT: request-changes Blocking Findings1. Missing deduplication for ongoing SLA breaches (acceptance criteria #2)File: Fix: Add deduplication logic in 2. Missing integration test driving
|
|
VERDICT: request-changes src/bernstein/core/orchestration/sla_monitor.py:158 — Missing deduplication for ongoing SLA breaches (Finding #1): SLAMonitor.evaluate() emits a new receipt on each tick for persistent breach; no state tracking to prevent re-emitting for same violation episode. tests/unit/test_schedule_supervisor.py — Missing integration test driving supervisor's tick() with SLA monitor over fixture ledger (Finding #2): No test exercises ScheduleSupervisor.tick() with real SLAMonitor (build_monitor_from_sdd) against fixture ledger data; tests only call monitor.evaluate() directly or use mock monitor. Made by bernstein v3.18.0 - unattended review run |
…4589) `task2.json` and `task3.json` are per-task decomposition specs an orchestrated run writes beside the checkout. They landed in sipyourdrink-ltd#4579, are referenced by nothing (`grep` over `*.py`, `*.toml`, `*.yml`, `*.md` finds no reader), and describe work that shipped long ago. The wheel packages `src/bernstein` only, so nothing installed changes; this is tree hygiene. Both shapes are now ignored at the root, so a `git add -A` in a run cannot re-add them. The pattern is root-anchored, so a file with one of these names inside the tree is unaffected.
Closes #4538
Problem
SLA contracts can be created, listed, and reported — and are never evaluated by anything.
Change
fix(spawn): build code context from ranked snippets under a token budget (#4524) (#4574) (
eed256d)tests/unit/agents/test_spawner_core_helpers.py(+121/-0)src/bernstein/core/agents/spawner_core.py(+24/-15)Also in this branch:
faefe57)53a1046)91e14fc)Housekeeping, not what this pull request is about:
51cca34)fbf9a81)9720b84)f593deb)Verification
Provenance
sha256:f5264752f2ba7ccc1f66f169546e06b3183f3aed4a40eaffc3b8666ac1b29933e5a2edb668b13830c525cb7789dcb9ea52c8430bab255dbe477941252f8ad6e7bernstein review-receipt verify --pr <this PR> --issue <issue.md> --diff <pr.diff>Generated from Bernstein session
1787694648.bernstein-session-id: 1787694648
Made by bernstein v3.18.0 - unattended run
run-20260825T210342p4043538Z, no operator in the loop.