Repository navigation
feat: add maintenance history endpoint - #1318
Merged
Merged
Conversation
People with view.evidence on a check's model can read the sample rows stored with one of its results. Columns are the rows' keys in sorted order, the order the warehouse stores them in, and a row without a key holds null there. Every read is audited, and a read whose audit cannot be written discloses nothing. The SQL and evidence reads now share one authorize, read and audit path.
People with view on a target can read its recorded model moves, every step of their old-name views, and janitor cleanups, newest moves first. Filtering by model returns only moves into that model and their views, using new indexes on the destination model and the move's event. Check and maintenance reads now live in their own warehouse-history domain, apart from metadata ingestion.
…aintenance-history
The worker contract held one 30 second scheduler lease without renewing it, so on a slow runner its second claim came after expiry and was fenced. Renew it in the background, as a running scheduler does.
kvlonge
enabled auto-merge (squash)
November 6, 2026 06:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The UI's maintenance panel shows a target's recorded moves, the old-name views kept for them, and janitor cleanups. All three are already mirrored into the control store, but nothing read them back.
Changes
GET /api/control/locations/{location}/targets/{target}/maintenance?node=&limit=returns{migrations, old_name_views, janitor_events}. It needs view on the whole target, like the check listing.origin_modelis nullable.nodeis set, because cleanups are not tied to models.limitdefaults to 100 and is capped at 1000 for moves and janitor events each.warehouse_historymodule with these reads.Fenced).Verification
cargo test -p sqlbuild-orchestration --all-features: one endpoint test, on SQLite and PostgreSQL, covers:limit=1cut;make check-ci, public-repository scan.view_sqlin old-name views is the generated projection over relation and column names, not model SQL, so it stays readable with view.maintenance_history.jsonedge case.