Skip to content

docs: design borrow-safe sum matching and guard review loops - #856

Merged
sanohiro merged 4 commits into
mainfrom
agent/borrowed-sum-design
Aug 18, 2026
Merged

docs: design borrow-safe sum matching and guard review loops#856
sanohiro merged 4 commits into
mainfrom
agent/borrowed-sum-design

Conversation

@sanohiro

Copy link
Copy Markdown
Owner

Summary

  • specify borrow-safe, non-consuming matching for admitted Option, Result, and user-sum payloads
  • bind checked HIR, ownership cleanup, MIR lowering, interface, and acceptance-test responsibilities
  • close review findings around exact borrow provenance, projection-only cleanup, nested matches, clone support, and Option/Result ownership wording
  • prevent repeated descendant full-diff reviews unless an authoritative closure matrix is explicitly reopened

Verification

  • scripts/test-pr-workflow.sh
  • scripts/pre-pr.sh --base origin/main --reviewer codex --review-log <log> --findings-fixed --owner-test pr-workflow -- scripts/test-pr-workflow.sh

Implementation of borrowed sum projection remains deferred; this PR establishes its reviewed contract and process guard.

@sanohiro
sanohiro marked this pull request as ready for review August 18, 2026 11:51
@sanohiro
sanohiro merged commit 2defeae into main Aug 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant