Skip to content

Check async gate lifetimes and selected archive bindings - #20

Merged
Kristof Roomp (mcroomp) merged 2 commits into
mainfrom
fix/selected-correspondence-archives
Nov 1, 2026
Merged

Kristof Roomp (mcroomp) merged 2 commits into
mainfrom
fix/selected-correspondence-archives

Conversation

@mcroomp

@mcroomp Kristof Roomp (mcroomp) commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add balanced-async-gate to the existing typed source-obligation pipeline. The conservative initial rule checks one direct successful acquisition immediately enclosing a top-level try/finally with one matching release attempt, including a supported Monitor-lock prefix.
  • Record acquisition, release, protected-region and explicit-await evidence. Treat unsupported aliases, control flow, delegate effects and task transfers as incomplete; do not infer successful release, eventual completion, helper/callee effects or drain-before-destroy.
  • Add a shared file-based source/contract fixture directory with 36 named cases, used by core and native suites. Sample C# is content, excluded from test-runner compilation; tests copy explicit selected samples rather than editing maintained files or constructing source strings.
  • Keep archived formal-owned correspondence reconstruction scoped to the binding IDs explicitly selected by the native manifest, matching live pairing.
  • Apply the shared selection rule to integrated Dafny and P evidence readers. Imported native declarations remain pinned dependencies without forcing unselected C# attachments into the compilation.
  • Preserve failures for missing selected attachments, archive integrity checks and current-source drift detection.
  • Improve the three CLI workflow skills: distinguish pinned-tool capability gaps from attachment failures, require authorized setup instead of silent substitution, clarify exact ordinal symbol-name matching, and require separate review of method-summary premises.
  • Document the archive selection boundary.

Regression coverage

The independently synthetic native fixture selects one binding while importing another annotation whose C# endpoint is outside the selected source scope. Live inspection succeeds, and archived reading must use that same selection.

  • New native regression reproduced the failure before the fix (33/34 integrated tests).
  • After the fix: 34/34 integrated tests passed.
  • Core selection regression checks selected, unselected, empty-selection and missing-selected-endpoint cases.
  • Archive-only reading remains valid after current-source drift; current-applicability reading reports drift separately.
  • Async lifetime cases cover nested handlers, cleanup, normal/faulted/canceled awaits, duplicate/missing/wrong-gate release, acquisition gaps, early release, aliases, untracked work and unreachable sites.
  • Native integration records the new premise, independently rereads archived evidence, rejects missing lifetime metadata and blocks verification when a release is missing.

Validation

  • Solution build against updated main: passed, zero warnings/errors.
  • Core suite: 408/408 passed.
  • Integrated/Dafny suite: 35/35 passed.
  • Native P suite: 26/26 passed for the archive-selection change.
  • Skill metadata and git diff --check: passed.

The new source premise adds typed async_gate evidence; it does not change native checker guarantees, existing acceptance requirements or review decisions.

Kristof Roomp and others added 2 commits October 29, 2026 08:33
Align Dafny and P archive reconstruction with live binding selection, add synthetic regression controls, and clarify tool-capability checks and summary review guidance in the CLI skills.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add balanced-async-gate source premises and typed lifetime evidence. Validate structured acquisition/finally release, explicit awaited work and conservative escape boundaries with file-based source and native contract controls.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mcroomp Kristof Roomp (mcroomp) changed the title Scope archived correspondence to selected bindings and strengthen CLI skills Check async gate lifetimes and selected archive bindings Oct 29, 2026
@mcroomp
Kristof Roomp (mcroomp) merged commit 4e66b5e into main Nov 1, 2026
2 checks passed
@mcroomp
Kristof Roomp (mcroomp) deleted the fix/selected-correspondence-archives branch November 1, 2026 11:10
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