Skip to content

docs(adr): ADR-022 — origin variables + Polonius-style loan solver (Refs #177) — surgical refile of #398#407

Merged
hyperpolymath merged 1 commit into
mainfrom
adr-022-surgical
May 27, 2026
Merged

docs(adr): ADR-022 — origin variables + Polonius-style loan solver (Refs #177) — surgical refile of #398#407
hyperpolymath merged 1 commit into
mainfrom
adr-022-surgical

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Summary

Surgical refile of #398. The original branch core-01/polonius-adr carried 386 commits' worth of phantom history (commits with main equivalents at different SHAs after squash-merges), and a naive cherry-pick onto current main would have clobbered the linear_bindings work landed today via #397.

This branch carries only the 3 intended changes from #398:

  • docs/decisions/0022-polonius-origin-variables.adoc (347 lines) — long-form ADR
  • .machine_readable/6a2/META.a2ml (143 lines) — structured [[adr]] block
  • lib/borrow.ml (5 lines net) — single in-comment edit in the closing residual-TODO block, pointing readers at ADR-022

Owner ratified the architectural bundle 2026-05-27: OCaml Polonius solver in lib/borrow_polonius/, surface-syntax fully elided for v1, M1–M4 stage gates with lexical checker as merge oracle through M3.

Closes

Closes #398 (the stale-base original).

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

…efs #177)

Surgically reconstructed from PR #398 (stale-base, 386 phantom commits)
onto current main, preserving the linear_bindings work from #397 which
landed during this session. Three changes:

- docs/decisions/0022-polonius-origin-variables.adoc — long-form ADR (347 lines)
- .machine_readable/6a2/META.a2ml — structured [[adr]] block ADR-022 (143 lines)
- lib/borrow.ml — single in-comment edit pointing readers at ADR-022,
  preserving the linear_bindings field + LinearCapturedByClosure error
  variant + helpers that #397 landed.

Owner ratified the architectural bundle 2026-05-27: OCaml Polonius
solver in lib/borrow_polonius/, surface-syntax fully elided for v1,
M1–M4 stage gates with lexical checker as merge oracle through M3.

Closes #398.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hyperpolymath hyperpolymath merged commit 03c926e into main May 27, 2026
@hyperpolymath hyperpolymath deleted the adr-022-surgical branch May 27, 2026 14:20
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