Repository navigation
Description
Scope
Bounded research, backlog. Determine whether existing OwnIR lifetime/loan facts miss a real C# resource-protocol violation because support is checked only at endpoints or caller-visible ownership is missing. Reuse #400 (view invalidation), #426 (completeness), #430 (lowering fidelity), #433 (state oracle), #438 (field aliases); this is not a new general solver.
Primary source
JITAtlas, submitted 18 Nov 2026; full text, sections 3, 6.2, 7.4. Preprint; a journal label alone does not establish acceptance.
The contribution separates point validity, continuous support of an active borrow, and caller-visible ownership at exits. Reported results: 29/29 defects and 29/29 safe controls on a 58-input development benchmark; 92/194 true production reports (47.42% precision). Of 607 production non-reports only 43 complete, 564 incomplete. All three native-labeled frozen-transfer defects were missed. Implementation/replay artifacts are linked in the paper, but raw native logs are incomplete. These limitations rule out treating non-reports as verified safety.
Hypothesis for C#
A borrow/view may become invalid during callback, Dispose, pool Return, or storage mutation even if an owner appears at both endpoints. Track resource identity, support/invalidation event and subsequent use. Managed GC liveness is distinct from resource validity: List/Span invalidation is not necessarily memory UAF. Restoring an owner cannot repair a past invalid use, but a demonstrably fresh borrow may be valid.
Kill-first experiment
- Pin Own.NET revision; inventory actual loan/escape/Dispose and exit-transfer semantics before proposing new facts.
- Independently confirm one real OSS discrepancy; stop with STOP-NO-ELIGIBLE-GAP if existing rules already suffice.
- Reuse 8–12 reviewed bad/ok fixtures: pool Return then use, callback disposing a captured owner, transfer to caller, reacquisition of a fresh view, unrelated resource mutation, conditional invalidation, exceptional exit, opaque callback and forced budget exhaustion.
- Preserve order and object identity in source→OwnIR; classify lowering/model gaps separately.
- Compare current analyzer against the smallest additional point/interval/exit check. Record changed FP/FN per case, first divergence, explored states and runtime; no aggregate precision claims from a tiny curated corpus.
- Unsupported callback/model/budget outcomes remain UNKNOWN/INCOMPLETE. A protocol violation is a diagnostic, not an unreachable state.
Acceptance
- Existing representation and overlap audit.
- One independently adjudicated source-level gap or documented STOP.
- Paired controls and exact reproduction commands.
- No regression of confirmed positives and no safe verdict on missing semantics.
- GO only for a narrowly scoped follow-up demonstrating marginal value; otherwise close with evidence.
No CPython adapter, refcount runtime, universal callback analysis, or automatic production diagnostic rollout.
Activity
PhysShell commentedon Nov 27, 2026
Borrowability: separate access permission from release obligation
A Calculus for Borrowability, 24 Nov 2026, preprint; full text, §§2–5, future work, Appendix E. Shared research note.
The calculus records active borrows and remaining access permissions in reference types while keeping the release obligation with the owner. Ending a lifetime restores access in place; lenders remain first-class values. Rocq/Iris mechanizes type soundness and memory safety. Authors map 24 in-scope rustc issues from 119 surveyed issues to rejecting rules. This is model evidence, not an industrial analyzer benchmark. Automatic lifetime inference and runtime leak-freedom proof are explicitly future work. A journal label does not establish acceptance; no independent proof replay was performed here.
Add to the existing representation audit
Before adding facts, map current Own.NET types to three concepts: release obligation, access permission now, and outstanding borrows with resource identity/lifetime. Determine whether an actual discrepancy arises from conflating them. Preserve C# API-specific contracts: a Dispose obligation alone does not imply Rust-style exclusive access, and arbitrary mutable C# aliases cannot simply be outlawed.
Reuse #464's corpus and #433's tiny-state oracle. Include a borrowed IMemoryOwner/pooled view, owner transfer with an outstanding borrow, nested reborrow, closure capture, fresh reacquisition, conditional join, and exceptional exit where faithfully lowered. Check that borrowing does not discharge Dispose, returning a borrow does not fabricate ownership, and access restoration does not reset an already disposed/returned resource. Unsupported lifetime inference remains incomplete.
Gate: one independently confirmed product-relevant mistake → smallest contract/state correction. No automatic NLL project, new language, full Rust borrow checker, or leak-freedom claim based on memory-safety proofs. If the separation already exists and behaves correctly, cross-link the evidence and stop.