Repository navigation
Open
Labels
ceremonya spelling the compiler already knows; mission: ceremony is a design defecthigh-priorityMaintainer-flagged: work this before other open itemsreproduced
Milestone
Description
Filed per D29 (docs/decisions.md) — blocked on #751 (canonical module-qualified identity). The ruling text is recorded verbatim in D29; spec §18.2 states the destination model. This issue is the activation of that model.
Scope (from the ruling)
- Enable the fallback tier: every public std declaration available by its unqualified name as the lowest-priority resolution tier. Fallback declarations retain canonical module identity — lookup fallback, never injection into the module's declaration table.
- Precedence (highest to lowest): lexical bindings and generic parameters → current-module declarations → explicit imports/aliases → prelude → unique std fallback. A user-controlled declaration is never shadowed, merged, or impl-captured by the tier.
- Exact matching only. Two or more std candidates for one name is a hard ambiguity error with each candidate offered as an insertable-import fix-it; context-aware ranking may order suggestions but never resolves.
- impl/extend-header restriction: a non-prelude std name may not resolve through fallback alone in an
impl/extendheader — explicit import or qualified path required. - Compatibility invariant: a std addition may turn a unique fallback resolution into an ambiguity, but may never rebind an existing resolution.
with updaterecords prior fallback resolutions and inserts pinning imports as a reviewable migration. Hard requirement: ships with or before the tier — our shim-batch releases mint ambiguities.- Observability:
with explain-name/ resolved-path-on-hover. - Migrator/formatter removes
uselines that become redundant, including the ones the A user Option/Result displaces std's generic templates in the compiler's own lookups #750 scaffolding fix-it inserted. - Un-quarantine the D acceptance corpus (the import-free behavior-test originals forked during A user Option/Result displaces std's generic templates in the compiler's own lookups #750 work item 1) as the activation test.
- The migrator targets std shims where coverage exists; otherwise it emits an explicit engine dependency + qualified calls, and logs those emitted engine paths as the shim-priority worklist.
Rejected (do not build, do not re-propose)
Option C or any migrate-only/lean-prelude build mode; prelude-list expansion; fuzzy or ranked resolution; any "surprising symbol" lint or second curation surface in tooling; flat injection in any form.
Escalate to Eric, don't decide
Any change to the D29 ruling text; any new normative spec wording; anything that would make fallback resolution order-dependent or ranking-dependent; the shim naming policy for common nouns (Connection/Config/Error) when it first bites.
Metadata
Metadata
Assignees
Labels
ceremonya spelling the compiler already knows; mission: ceremony is a design defecthigh-priorityMaintainer-flagged: work this before other open itemsreproduced
Activity
docs: D29 — implicit std availability ruled; spec states the destinat…
sema/codegen: scaffolding — enforce the §18.2 prelude; tier-aware sha…
test: scaffolding — migrate corpora to explicit std imports; fork the…
lib/test: hand-written files drop the migrator's old *i8 alloc/mem sh…
Sema: engine corpora are never ambient, a facade import does not expo…
ehartford commentedon Sep 23, 2026
Bridge until this lands: #1377 (
Sema.std_fallback_bridge_path) resolves an unimported name to its unique public non-engine std declaration only when an engine corpus twin used to make it reachable over the prelude edge (is_alnum & co.). Engine corpora (std.re/zl/tommyds/c_algorithms) are never ambient per §18.2. Remove the bridge when tier 5 activates.Sema: engine corpora are never ambient, a facade import does not expo…
Sema: engine corpora are never ambient, a facade import does not expo…
Sema: engine corpora are never ambient, a facade import does not expo…
Sema/Frontend: engine corpora never ambient (§18.2); bundle interface…
Sema: visibility walks through std modules (§18.2 tier 5 until #752) …
Sema: visibility walks through std modules (§18.2 tier 5 until #752) …
Sema: imports are not transitive; locals shadow interface globals; sh…
std.generators: map, filter, take and collect over Gen[T] (§13.3, §13.4)
std.generators: map, filter, take and collect over Gen[T] (§13.3, §13.4)
1 remaining item
std.generators: map, filter, take and collect over Gen[T] (§13.3, §13.4)
std.generators: map, filter, take and collect over Gen[T] (§13.3, §13.4)
std.generators: map, filter, take and collect over Gen[T] (§13.3, §13.4)
D69: generators lower as calls — push generators, std.generators pipe…
test: the D acceptance corpus runs as the std fallback tier will reso…
test: the D acceptance corpus runs as the std fallback tier will reso…
test: the D acceptance corpus runs as the std fallback tier will reso…
Build store, runner, corpora, deps discovery, generic-instance identi…
ehartford commentedon Oct 25, 2026
Triage 2026-10-25,
with v0.15.3.0(main a261b65): still reproduces. §18 states the tier ("Every public declaration of the standard library is available by its unqualified name as the lowest-priority resolution tier"), and the compiler refuses an unimported std function:post-release: blocked on #751 (canonical identity); the diagnostic names the exact
use, so the cost to a user is one line.ehartford commentedon Nov 2, 2026
Ceremony audit 2026-11-02 (Eric: "what other plainly wrong decisions have we implemented"): this is the first item, and it is non-compliance, not a decision to brief.
Verified today with the pinned seed:
Spec §18.1 tier 5 ("Unique standard-library fallback") has ruled since D29 (2026-08-01) that a unique std name resolves with no import.
Sema.w sema_prelude_gate_allows_namesays the gate holds "until the fallback tier activates", and this issue has been open three months. The compiler prints the exactuseline it refuses to take: the definition of "the program has already determined it". Same forprint_i32/print_i64and every non-prelude std name. Activate the tier (the spec's ambiguity rule: two std candidates for one name is a hard error with eachuseas a fix-it; one candidate resolves).Two conformance diagnostics: the facade-wide error clause's place, an…