Repository navigation
feat(report)!: schema 6 with branch, pull request and image states of their own - #208
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | bfb787d | Commit Preview URL Branch Preview URL |
Nov 09 2026, 12:19 AM |
sweepies
added a commit
that referenced
this pull request
Nov 8, 2026
…bject Review findings on #208: - The CLI read a remote run's report with plain serde, so a report of another schema version, or one that fails validation, was accepted. It now goes through Report::from_json, and a version mismatch says to use the same release on both ends. - The actions object kept schemaVersion 1 although its statuses changed; it is now ACTIONS_SCHEMA_VERSION 2.
sweepies
added a commit
that referenced
this pull request
Nov 8, 2026
…bject Review findings on #208: - The CLI read a remote run's report with plain serde, so a report of another schema version, or one that fails validation, was accepted. It now goes through Report::from_json, and a version mismatch says to use the same release on both ends. - The actions object kept schemaVersion 1 although its statuses changed; it is now ACTIONS_SCHEMA_VERSION 2.
sweepies
force-pushed
the
fix/report-v6
branch
from
November 8, 2026 22:09
0dfae61 to
eaf9609
Compare
sweepies
added a commit
that referenced
this pull request
Nov 8, 2026
…bject Review findings on #208: - The CLI read a remote run's report with plain serde, so a report of another schema version, or one that fails validation, was accepted. It now goes through Report::from_json, and a version mismatch says to use the same release on both ends. - The actions object kept schemaVersion 1 although its statuses changed; it is now ACTIONS_SCHEMA_VERSION 2.
sweepies
force-pushed
the
fix/report-v6
branch
from
November 8, 2026 22:45
eaf9609 to
2a33d7a
Compare
… their own - ActionStatus is split into BranchStatus and PullRequestStatus, so a branch can't be `closed` and a pull request can't be `rebased`, `deleted` or `stale`; the types now say what validate() could not. - A branch whose base went stale before anything was written reports the new `stale` status. The server requeues on that status instead of matching the text of its reason. - An image check's state is an ImageState enum, ordered worst to best, in place of eight string literals. BREAKING CHANGE: reports are schemaVersion 6; readers reject version 5.
…bject Review findings on #208: - The CLI read a remote run's report with plain serde, so a report of another schema version, or one that fails validation, was accepted. It now goes through Report::from_json, and a version mismatch says to use the same release on both ends. - The actions object kept schemaVersion 1 although its statuses changed; it is now ACTIONS_SCHEMA_VERSION 2.
sweepies
force-pushed
the
fix/report-v6
branch
from
November 9, 2026 00:18
2a33d7a to
bfb787d
Compare
Merged
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.
Last PR in the implicit-state-machine series. It is stacked on #207, so merge that first; GitHub will then retarget this one to
main.Changes
BranchStatusandPullRequestStatusreplace the shared 11-variantActionStatus. A branch can no longer beclosed, and a pull request can no longer berebased,deletedorstale, sovalidate()no longer has to reject those combinations. It now also counts amergedbranch as a write in dry-run checks. The CLI colours each kind of status separately.staleis a new branch status for a write refused because the default branch changed or moved since extraction, so nothing was written. Internallywrite.rsuses a typedRefusal(StaleorFailed).needs_requeueis nowstatus == Stale, where it used to match the reason text against two string constants, so rewording a reason can no longer silently stop the requeue. The reason text is unchanged.ImageStateis an enum declared worst to best, soOrdgives the "worst platform wins" rule. It replaces theSTATESarray, therankfunction and the string matches in lookup, the engine, the dashboard and PR bodies. The JSON spelling is unchanged.Breaking:
schemaVersionis now 6, and readers reject 5.docs/reference/report.mdlists the new statuses, and the server guide describesstale.Tests
A new test checks that statuses from the other type are rejected. The version tests now treat 5 as old and 7 as future, and the fixtures use the new statuses. The full workspace suite passes (75 suites, 0 failures), and Clippy is clean.