Repository navigation
feat(cli): say what resolves a blocked review target (#244) - #339
Draft
shunsuke-shimomura wants to merge 1 commit into
Draft
shunsuke-shimomura wants to merge 1 commit into
shunsuke-shimomura wants to merge 1 commit into
Conversation
A blocked bind stays one line in `inka review --list` and in the prelude of the interactive loop, whichever evidence it cites and even when that evidence is loaded. The design document now says so, and why: nothing can be decided on a blocked target, the way out of an expired `until:` is an edit that changes the hash and brings the bind back into the queue with the full presentation and its diff, and whether the evidence passes meanwhile is what `inka eval` reports. Each blocked line now ends with its remedy, as a decline in the prelude ends with `edit or retract to resolve`: `edit `until:` to resolve` for an expired target, `deliver the evidence to resolve` for a bind no delivery answers. Test binds and calc binds read the same. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014DUhbQ16uSDG5M4Lt9o3NM
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This branch has not been deployed
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.
Description
Closes #244 (parent: #40). Stacked on #243 (calc evidence at review).
#244 asked what
inka reviewshould show for a blocked calc bind. The decision:--listand in the prelude of the interactive loop alike, whichever evidence it cites and even when that evidence is loaded. No sources, leaves or assumption set are shown.edit or retract to resolve.Why an
until:-expired bind is not presented although its evidence is loaded:until:. That changes the hash, so the bind returns to the queue, where it is presented in full and diffed against the snapshot of its last approval.inka evalreports, as a cause independent of the expiry.--listis one line per target by design, and the prelude is read before every session.Changes:
crate/inka-cli/src/review.rs:blocked_remedy, appended to each line ofblocked:.docs/{en,ja}/design/calc-evidence.md: a "Blocked binds" subsection stating the rule and the reasons.CHANGELOG.md/CHANGELOG.ja.md: one line each.Test results
cargo test --workspaceandcargo clippy --workspace --all-targetspass locally.crate/inka-cli/src/review.rs, each checking--listand the interactive prelude:sources:/leaves:/assumes:;Impact
blocked:ininka reviewandinka review --listgain a parenthesised remedy.inka evaloutput is unchanged.Supplementary information
mainfrom before v0.0.7, which reworked theinka reviewoutput (grouped headings, an aligned column for blocked reasons). This change will conflict inreview.rswhen the stack is rebased; it is one function and its tests, so moving it over should be small.🤖 Generated with Claude Code
https://claude.ai/code/session_014DUhbQ16uSDG5M4Lt9o3NM