Skip to content

feat(weave): add status/last_error fields to Monitor#7188

Draft
gtarpenning wants to merge 3 commits into
masterfrom
gtarpenning/monitor-health-fields
Draft

feat(weave): add status/last_error fields to Monitor#7188
gtarpenning wants to merge 3 commits into
masterfrom
gtarpenning/monitor-health-fields

Conversation

@gtarpenning

Copy link
Copy Markdown
Member

Summary

  • Add optional status/last_error/last_error_at to the Monitor object so scoring health can be recorded and surfaced.
  • Monitor is an immutable versioned object, so the worker (stacked wandb/core PR) will only write these on state transition (ok<->error), not every cycle. Open question for review: write health on the object vs out-of-band (feedback on the monitor ref / separate store) to avoid any version churn.

Testing

flow shard: defaults-None, set-value model_validate round-trip, publish/get round-trip, invalid-status rejection.

Add optional status/last_error/last_error_at health fields to the Monitor
object so the scoring worker can record scoring health and the frontend
can surface it. Schema + round-trip tests only; the worker lands in a
stacked wandb/core PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

gtarpenning and others added 2 commits June 11, 2026 11:44
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adding status/last_error/last_error_at to Monitor changed the serialized
JSON, breaking the Monitor and ClassifierMonitor serialization-correctness
golden cases. Per the file's methodology, add legacy copies (Monitor v3,
ClassifierMonitor v1) preserving the pre-health-field format, then update
the non-legacy goldens with the three new None-default fields.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant