Skip to content

docs: ratify Atomic<T> domain-qualified resident bounds - #8605

Merged
zcanann merged 1 commit into
mainfrom
docs/close-atomic-standing-bounds
Dec 4, 2026
Merged

zcanann merged 1 commit into
mainfrom
docs/close-atomic-standing-bounds

Conversation

@zcanann

@zcanann zcanann commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Record the owner ruling that standing bounds on an atomic cell's resident value belong on a domain-qualified value type Atomic<T> (such as Atomic<u32 in AtMost<100>>) rather than on a data requires scalar predicate over an atomic field. This closes Question #1 in OWNER_QUESTIONS.md, renumbers the remaining three questions to #1–#3, updates concurrency.md and data_and_literals.md, and adds ATOMIC-DOMAIN-RESIDENT in TASKS.md.

Atomic operations now specifies Atomic<T> over admitted hardware atomic scalar carriers (bool, i8–i64, u8–u64, optionally domain-qualified T in D), keeping AtomicBool, AtomicI8–AtomicI64, and AtomicU8–AtomicU64 as unqualified shorthands and rejecting non-hardware widths (u23, u69) and non-atomic types. Zero-initialization, store, swap, compare_exchange, and RMW fetch_* enforce T's domain (with fetch_* proving the post-state remains in T's domain for every prior old: T), load and prior-value returns preserve T's domain, and borrowing an atomic field yields @Atomic<T> so callees cannot bypass the bound through an unconstrained @AtomicU32. Data and literals records that scalar data requires predicates written directly against atomic cell fields reject as ill-typed. TASKS.md tracks the implementation and rewriting the 38 atomic_bounded_fetch / atomic_bounded_resident samples under ATOMIC-DOMAIN-RESIDENT.

Validation: mbx xtask check-rules --base origin/main --title "docs: ratify Atomic<T> domain-qualified resident bounds" --body-file ... (clean); docs-only change, no Rust source modified.

Agent: Antigravity | Model: Gemini 4 Neon | Effort: high | Tokens: 1.05M in (1.04M cached), 7.3k out | Steps: 3 | Time: 1m25s | Steers: 0

Record the owner ruling that standing bounds on an atomic cell's resident value belong on a domain-qualified value type `Atomic<T>` (such as `Atomic<u32 in AtMost<100>>`) rather than on a `data requires` scalar predicate over an atomic field. This closes Question #1 in `OWNER_QUESTIONS.md`, renumbers the remaining three questions to #1–#3, updates `concurrency.md` and `data_and_literals.md`, and adds `ATOMIC-DOMAIN-RESIDENT` in `TASKS.md`.

[Atomic operations](wiki/spec/language/concurrency.md#atomic-operations) now specifies `Atomic<T>` over admitted hardware atomic scalar carriers (`bool`, `i8`–`i64`, `u8`–`u64`, optionally domain-qualified `T in D`), keeping `AtomicBool`, `AtomicI8`–`AtomicI64`, and `AtomicU8`–`AtomicU64` as unqualified shorthands and rejecting non-hardware widths (`u23`, `u69`) and non-atomic types. Zero-initialization, `store`, `swap`, `compare_exchange`, and RMW `fetch_*` enforce `T`'s domain (with `fetch_*` proving the post-state remains in `T`'s domain for every prior `old: T`), `load` and prior-value returns preserve `T`'s domain, and borrowing an atomic field yields `@Atomic<T>` so callees cannot bypass the bound through an unconstrained `@AtomicU32`. [Data and literals](wiki/spec/language/data_and_literals.md) records that scalar `data requires` predicates written directly against atomic cell fields reject as ill-typed. `TASKS.md` tracks the implementation and rewriting the 38 `atomic_bounded_fetch` / `atomic_bounded_resident` samples under `ATOMIC-DOMAIN-RESIDENT`.

Validation: `mbx xtask check-rules --base origin/main --title "docs: ratify Atomic<T> domain-qualified resident bounds" --body-file ...` (clean); docs-only change, no Rust source modified.

Agent: Antigravity | Model: Gemini 4 Neon | Effort: high | Tokens: 1.05M in (1.04M cached), 7.3k out | Steps: 3 | Time: 1m25s | Steers: 0
@zcanann
zcanann merged commit dae8693 into main Dec 4, 2026
1 check passed
@zcanann
zcanann deleted the docs/close-atomic-standing-bounds branch December 4, 2026 05:46
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