Skip to content

feat(cli): say what resolves a blocked review target (#244) - #339

Draft
shunsuke-shimomura wants to merge 1 commit into
feat/210-calc-reviewfrom
feat/244-blocked-bind-presentation
Draft

shunsuke-shimomura wants to merge 1 commit into
feat/210-calc-reviewfrom
feat/244-blocked-bind-presentation

Conversation

@shunsuke-shimomura

Copy link
Copy Markdown
Member

Description

Closes #244 (parent: #40). Stacked on #243 (calc evidence at review).

#244 asked what inka review should show for a blocked calc bind. The decision:

  • A blocked bind stays one line, in --list and 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.
  • Each blocked line ends with what resolves it, as a decline in the prelude ends with edit or retract to resolve.
  • Test binds follow the same rule as calc binds, and the remedies apply to every mode.
blocked:
  bind:margin_ok — approvals no longer count: the current phase is past until:M2 (edit `until:` to resolve)
  bind:detumble_ok — no imported calc evidence provides `AOCS::?verify_detumble` (deliver the evidence to resolve)

Why an until:-expired bind is not presented although its evidence is loaded:

  • The presentation serves a decision, and none can be recorded: expiry is hard, so no approval counts, including a new one.
  • The way out is an edit of 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.
  • Whether the evidence passes meanwhile is what inka eval reports, as a cause independent of the expiry.
  • --list is 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 of blocked:.
  • 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 --workspace and cargo clippy --workspace --all-targets pass locally.
  • New tests in crate/inka-cli/src/review.rs, each checking --list and the interactive prelude:
    • an expired calc bind with loaded evidence and an existing snapshot is one line with its remedy, and shows no sources: / leaves: / assumes:;
    • a calc bind no delivery answers is one line with its remedy;
    • blocked test binds (expired, and without evidence) read the same way, with no case list.
  • The pre-commit hooks (markdownlint and the others) were not run locally.

Impact

  • The lines under blocked: in inka review and inka review --list gain a parenthesised remedy. inka eval output is unchanged.

Supplementary information

  • The stack is based on a main from before v0.0.7, which reworked the inka review output (grouped headings, an aligned column for blocked reasons). This change will conflict in review.rs when 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

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
@shunsuke-shimomura shunsuke-shimomura added the sys::SE システムズエンジニアリング label Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions github-actions Bot added the documentation 📓 Improvements or additions to documentation label Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 📓 Improvements or additions to documentation sys::SE システムズエンジニアリング

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant