Repository navigation
feat(fleet-gh): ledger all pr review submit shapes (#2227 slice) - #16379
Merged
developing-today-fleet[bot] merged 1 commit intoNov 28, 2026
Merged
Conversation
fleet gh classified only --comment reviews, leaving --approve / --request-changes (and short flags -a/-r/-c) invisible to the shared content-creation ledger. gh requires one of the three submit flags outside interactive mode (cli/cli pkg/cmd/pr/review/review.go), so every non-interactive pr review files a review object and must reserve a row. A bare pr review with no flag stays unledgered (interactive-only, files nothing). Tests: classify asserts all six flag spellings ledger as kind review; bare review still passes through.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Contributor
Author
|
Lane 1907-J (charlie ADVANCE landings discovery) — verify-then-merge evidence:
Merging under standing merge authority. |
developing-today-fleet
Bot
deleted the
oc-code-01/2227-ledger-pr-review-submit
branch
November 28, 2026 01:39
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.
Summary
Part of #2227. Prior slices routed
fleet ghissue/PR/comment creates,pr review --comment,release create,gist create, and POST-classapicalls through the shared content ledger. This slice removes thelast deferred
pr reviewgap:--approve/--request-changes(and the-a/-r/-cshort flags) now reserve before the call and finalizeafter it, under the existing kind string
review.Why all three: gh requires exactly one of
--comment/--approve/--request-changesfor any non-interactive review (cli/clipkg/cmd/pr/review/review.go,BoolVarPlong+short pairs), so everynon-interactive
pr reviewfiles a review object. A barepr review <n>with no submit flag is interactive-only, files nothing,and stays unledgered.
Lane: oc-code-01.
Evidence
Before:
classify(&["pr", "review", "12", "--approve"])returnedNone(the old test asserted
is_none()), so approval/request-changes reviewsfiled with no ledger row — invisible to the shared creation counts #2227
exists to keep.
After:
cargo test --bin fleet -- gh_content_ledger— 6 passed / 0failed;
cargo test --bin fleet -- create_reserves_before_gh— 1 passed/ 0 failed (rustfmt clean, no new warnings; the one warning is
pre-existing in
gh_guard.rs). Covers all six flag spellingsclassifying as kind
review, bare-review passthrough, and thereserve/finalise roundtrip.
Merge Danger
Low. One-file change, additive: one new private helper
(
is_review_submit), one widened match guard, test-only changesotherwise. Reads and non-submit shapes take the exact same path as
before. Still unledgered after this slice: non-POST
api, barepr review. Pacing budgets / circuit breaker / verify-by-search staywith hatch#13.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-28T00:59:41Z", "session_id": "ses_e5de0dcf232ffeYmWUqupkVxpT", "lane": null, "host": "amd", "worktree": "/home/user/git/code/.worktrees/oc-code-01-2227-slice", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/code/.worktrees/oc-code-01-2227-slice", "repo": "developing-today/code", "branch": "oc-code-01/2227-ledger-pr-review-submit", "sha": "101cb78ddbc3ef52b07f5fe047055270bae7d1db" }, "auth_subject": "oc-code-07", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.