Skip to content

psi: let a stored value deliver the content domains its destination displays - #6310

Merged
Smotto merged 1 commit into
mainfrom
work/psi-stored-content-domains
Nov 27, 2026
Merged

Smotto merged 1 commit into
mainfrom
work/psi-stored-content-domains

Conversation

@Smotto

@Smotto Smotto commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Requested by Jarod · project thread

omega --check source/library/allocation/main.omg stopped at bump/bump.omg:60, strategy.tail = parts.rest;, with "a named default has no complete storage predicate theory". The field is a VacantStorage, an Extent in Granted & Vacant, and both domains have a content projection. The store moves a whole owned value whose type carries those same two domains into the field, so it delivers them. Nothing about the strategy's content is left to prove.

The default-requirement inventory already knew this. append_lost keeps only the domains the displayed destination does not show, because the transfer judgment makes a stored value deliver exactly the destination's domains. But it computed every domain's clauses first and filtered after. For a content domain, computing the clauses refuses on restoration, before the filter could drop it. append_lost now passes the displayed domains to at_except, which skips them before that check. Every other caller passes none, so the result is unchanged everywhere except a refusal for a domain that would have been filtered out.

  • Test: a_whole_stored_value_delivers_the_content_domain_its_destination_displays in structural_qualifications/default_requirement_tests.rs. A lender whose whole value is in a content domain owes nothing when the displayed destination shows that domain. Its twin displays only an element, which does not show the domain, and is still refused with the same message. inventory_keeps_a_content_domains_predicate_without_proving_a_changed_value still refuses a store beneath the value.
  • Not fixed: the allocation check now gets past bump.omg:60 and stops at five other refusals, each its own gap. Two are in reset: "cannot prove requires contract for call merge_vacant_extents" and "cannot prove requires clause 1 of a data type ... return value". One is in core's split_vacant_extent ensures ("requested != 0 || result.rest.base == whole.base"), read through allocation. Two are unsupported constructs in vec: "a call whose static arguments no pass specializes yet" in store_cell::change, and "type record application whose reference regions are not retained" for access::view_extent_mut.

Gate: RC-SOURCE-SEMANTICS | a whole stored value delivers the content domains its destination displays without a storage predicate proof
Spec: wiki/spec/language/domains.md
Proof: mbx test -p terminal-semantics --lib (333 passed); mbx test -p omega --test content_projection_domains (11 passed); omega --check source/library/core/main.omg passes; omega --check source/library/allocation/main.omg passes bump.omg:60 and stops at the five refusals above; mbx clippy -p terminal-semantics --all-targets --no-deps -- -D warnings clean | mbx xtask sample-gate --filter samples/cli/facts/content fails all 38 in stage 03, before this judgment ("this call has no visible declaration in its source scope" and "this value's type carries no domain and the field it initializes declares Region::Owned"); not compared against main

Agent: Claude Code | Model: claude-opus-5-5 | Effort: medium | Tokens: 46.36M in (46.08M cached), 93.5k out | Steps: 212 | Time: 59m13s | Steers: 0


Generated by Claude Code

@Smotto
Smotto merged commit 16e071d into main Nov 27, 2026
1 check passed
@Smotto
Smotto deleted the work/psi-stored-content-domains branch November 27, 2026 02:26
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.

2 participants