docs: adopt intermediate standard library foundation
Record the owner-requested STD-0..7 merge boundary and adoption of implemented RFCs 0016-0035, whose normative rules and vertical implementations land together. Update repository and std status; keep remaining Std 0.1 and service milestones in the backlog. Track Q-034/P6-11 as the next source-language task and retain the existing P7/P8 gate. Implementation checks are recorded in RFC 0035 and the std plan; this change updates adoption metadata and planning only.
This commit is contained in:
1 parent
8edec5b831
commit
ad75ffe021
25 files changed
+98
-68
No files matched your search
@@ -207,14 +207,14 @@ Points 1–3 and 5 are editorial. Point 4 fixes FIFO, which spec 04 §38 already
|
||||
Found by the independent author of `program_atomic_stats.air` (P5-9b). AIR has `array.splat` but no way to build an array from distinct element values. A six-element constant array costs a mutable borrow, six `borrow.index`/`store`/`borrow.end` triples and six index constants. `.aji` has the same gap: it has `[e; N]` but no array literal. The options are an `array.make T (%a, %b, …)` instruction (a value constructor like `struct.make`) with an `.aji` literal `[a, b, c]`, or no change. This is a convenience question, not a correctness one. It is not urgent, and any RFC for it must report its agent-complexity cost.
|
||||
|
||||
|
||||
**Resolved on STD-5 (RFC 0023 Proposed):** array.make and ordered source literals transfer complete linear elements. Copy-only frame stores/splat cannot express this ownership-preserving construction. The same constructor supports distinct Copy elements; its contract, feature gate, argument limits and measured complexity are specified with the vertical linear_aggregates feature.
|
||||
**Resolved on STD-5 (RFC 0023 Implemented):** array.make and ordered source literals transfer complete linear elements. Copy-only frame stores/splat cannot express this ownership-preserving construction. The same constructor supports distinct Copy elements; its contract, feature gate, argument limits and measured complexity are specified with the vertical linear_aggregates feature.
|
||||
|
||||
|
||||
## Q-026 — Standard library distribution and initial source imports
|
||||
|
||||
The source frontend had no import resolution and the package manifest no dependencies. A source-only std therefore needed either manual concatenation or a specified import path.
|
||||
|
||||
**Resolved in the std bootstrap branch:** spec 15 §13 defines a closed compiler-pinned registry, fully qualified calls, deterministic name mangling and library source locations. Spec 16 defines the initial pure API. General user modules and imported types remain STD-3/P6-3; no filesystem search is invented. RFC 0016 records the proposal; its status stays Proposed until the owner accepts it.
|
||||
**Resolved in the std bootstrap branch:** spec 15 §13 defines a closed compiler-pinned registry, fully qualified calls, deterministic name mangling and library source locations. Spec 16 defines the initial pure API. General user modules and imported types remain STD-3/P6-3; no filesystem search is invented. RFC 0016 records the proposal; the owner adopted it with the intermediate std merge (2026-10-07).
|
||||
|
||||
## Q-027 — Empty byte strings in source
|
||||
|
||||
@@ -230,7 +230,7 @@ A plain integer cannot distinguish a decoded zero from a short input. A trap on
|
||||
|
||||
Short destination capacity needs explicit failure without partial mutation. A substring search's empty needle can match the end of empty data, so the existing single-byte length sentinel cannot unambiguously encode all outcomes. A returned split pair would hold borrows inside an aggregate before that source/lifetime surface is available. Arithmetic operators currently either trap or wrap; buffer sizing needs a recoverable overflow result.
|
||||
|
||||
**Resolved in the STD-1b branch:** spec 16 §2.4 reuses `WriteResult` for copy, adds `FindResult` for substring search, and composes splitting from explicit caller-owned slices. Spec 16 §2.1.1 adds checked add/sub/mul for u64 and target-width usize with ordinary result enums. Wrapping stays with existing operators. No new borrowed aggregate, generic type, AIR instruction or arithmetic mode is introduced. RFC 0018 records this API policy; its status remains Proposed until owner acceptance.
|
||||
**Resolved in the STD-1b branch:** spec 16 §2.4 reuses `WriteResult` for copy, adds `FindResult` for substring search, and composes splitting from explicit caller-owned slices. Spec 16 §2.1.1 adds checked add/sub/mul for u64 and target-width usize with ordinary result enums. Wrapping stays with existing operators. No new borrowed aggregate, generic type, AIR instruction or arithmetic mode is introduced. RFC 0018 records this API policy; the owner adopted it with the intermediate std merge (2026-10-07).
|
||||
|
||||
## Q-030 — Strict text/encoding failures and destination state
|
||||
|
||||
@@ -248,13 +248,13 @@ Formatting needs a defined byte representation, insufficient-capacity state and
|
||||
|
||||
General source modules need explicit build inputs, stable ordering/provenance, local name binding and a choice of import visibility before reusable types can be published. Ambient directory/manifest discovery would make verification depend on environment state; transitive names would make one module's public surface depend on unrelated imports.
|
||||
|
||||
**Resolved on the STD-3 branch (RFC 0021 Proposed):** spec 12 §1.3 supplies an explicit `[modules]` name-to-source map, with bounded no-follow loading inside the chosen package root. Spec 15 §14 specifies an acyclic graph, direct qualified imports, module-local names, qualified struct literals, module-aware spawning, stable mangling and whole-graph verification through existing AIR. All declarations are available through import; aliases, re-exports, visibility modifiers, dependencies and generics remain separate work. File-only commands never discover manifests.
|
||||
**Resolved on the STD-3 branch (RFC 0021 Implemented):** spec 12 §1.3 supplies an explicit `[modules]` name-to-source map, with bounded no-follow loading inside the chosen package root. Spec 15 §14 specifies an acyclic graph, direct qualified imports, module-local names, qualified struct literals, module-aware spawning, stable mangling and whole-graph verification through existing AIR. All declarations are available through import; aliases, re-exports, visibility modifiers, dependencies and generics remain separate work. File-only commands never discover manifests.
|
||||
|
||||
## Q-033 — Generic specialization and property constraints
|
||||
|
||||
The source plan names monomorphized generics but does not define application syntax, checking of unused templates, specialization bounds or precise Freeze/Local constraints.
|
||||
|
||||
**Resolved on the STD-4 branch (RFC 0022 Proposed):** spec 15 §15 defines explicit `::<...>` expression arguments, applied type names, ordered canonical specializations and concrete-body checking. Copy/Send/Share reuse existing rules; Freeze is format-0 IslandSafe content and Local is context-bound state, with explicit propagation rather than complementing Send. No trait inference or generic runtime representation is added; ordinary aggregate restrictions remain until linear_aggregates.
|
||||
**Resolved on the STD-4 branch (RFC 0022 Implemented):** spec 15 §15 defines explicit `::<...>` expression arguments, applied type names, ordered canonical specializations and concrete-body checking. Copy/Send/Share reuse existing rules; Freeze is format-0 IslandSafe content and Local is context-bound state, with explicit propagation rather than complementing Send. No trait inference or generic runtime representation is added; ordinary aggregate restrictions remain until linear_aggregates.
|
||||
|
||||
## Q-034 — Source calls returning borrows
|
||||
|
||||
@@ -262,29 +262,29 @@ During STD-4 validation, existing `from` declarations still return the frontend'
|
||||
|
||||
## Q-035 — Whole-value linear aggregates
|
||||
|
||||
**Resolved on the STD-5 branch (RFC 0023 Proposed):** spec 03 §25 and source spec 15 §16 specify complete construction/exhaustive consumption, fixed arrays, explicit exchange and ownership-preserving allocation failure. No partial-move/field initialization state or destructor is introduced. Among heap/frame/region storage forms, only individual own<T> may hold linear content; frame locals, repeated heap arrays and bulk regions retain Copy-only content. Dynamic linear buffers need a separately specified extension in the collection phase.
|
||||
**Resolved on the STD-5 branch (RFC 0023 Implemented):** spec 03 §25 and source spec 15 §16 specify complete construction/exhaustive consumption, fixed arrays, explicit exchange and ownership-preserving allocation failure. No partial-move/field initialization state or destructor is introduced. Among heap/frame/region storage forms, only individual own<T> may hold linear content; frame locals, repeated heap arrays and bulk regions retain Copy-only content. Dynamic linear buffers need a separately specified extension in the collection phase.
|
||||
|
||||
|
||||
## Q-036 — Dynamic initialized linear buffer storage and drain
|
||||
|
||||
STD-5 intentionally enables only complete fixed-size values and individually owned allocation. A growable Vec of resources needs bounded dynamic storage with explicit initialized length, moving extraction, failure-preserving growth and complete drain before freeing. Repeated own.array and bulk region/frame freeing remain Copy-only. STD-6 must specify this storage contract through all layers before publishing Vec<File>, Vec<sender<Job>> or a HashMap owning values. Partial holes, implicit destructors or host-only container magic are not an answer.
|
||||
|
||||
**Resolved on STD-6a (RFC 0024 Proposed):** spec 03 §26 uses an initialized contiguous prefix, explicit peak-charged reserve, failure returning pushed values and empty-only free returning the buffer on failure. Views reuse slice provenance and bounds. Safe Vec wrappers are spec 16 §2.10; other collections remain separate work.
|
||||
**Resolved on STD-6a (RFC 0024 Implemented):** spec 03 §26 uses an initialized contiguous prefix, explicit peak-charged reserve, failure returning pushed values and empty-only free returning the buffer on failure. Views reuse slice provenance and bounds. Safe Vec wrappers are spec 16 §2.10; other collections remain separate work.
|
||||
|
||||
## Q-037 — General hash-map key hashing and equality
|
||||
|
||||
HashMap<K,V> needs a stable hash/equality pair: equal keys must hash equally, while hash collisions must still compare actual keys. Current Copy/Send/Share/Freeze/Local constraints supply no user operations; type parameters cannot carry callbacks or values (spec 15 §15). Struct/byte-key equality, key ownership and effect-visible callable policies have no general source contract. A hash digest alone cannot represent original-key identity.
|
||||
|
||||
**Resolved on the STD-6d branch (RFCs 0029/0030/0031 Proposed):** spec 15 §18 supplies exact explicit static hash/equality operations; spec 16 §2.14–§2.15 specifies general owning HashMap<K,V,H,E>/HashSet<K,H,E> with dense complete entries and Copy probe indices. HashMap<Key, Own<Value>> and owning keys pass ordinary ownership/effect/borrow/task rules, independent model traces, source/AIR/profile/package checks and collection-before-every-step/scheduler stress. Numeric U64Map retains its API. No digest identity, inferred policy or map-only compiler primitive is introduced.
|
||||
**Resolved on the STD-6d branch (RFCs 0029/0030/0031 Implemented):** spec 15 §18 supplies exact explicit static hash/equality operations; spec 16 §2.14–§2.15 specifies general owning HashMap<K,V,H,E>/HashSet<K,H,E> with dense complete entries and Copy probe indices. HashMap<Key, Own<Value>> and owning keys pass ordinary ownership/effect/borrow/task rules, independent model traces, source/AIR/profile/package checks and collection-before-every-step/scheduler stress. Numeric U64Map retains its API. No digest identity, inferred policy or map-only compiler primitive is introduced.
|
||||
|
||||
## Q-038 — Pure construction of built-in errors
|
||||
|
||||
STD-6d.2 needs to return allocation-size validation failure without allocating. Existing built-in errors were obtainable only from fallible runtime operations.
|
||||
|
||||
**Resolved (RFC 0027 branch implementation):** spec 05 §14 adds feature `error_values` and pure `error.const B.variant`; source reuses `B::variant`. Every registered payload-free error variant is ordinary Copy data, never authority. Existing `enum.make` and runtime outcome rules are unchanged.
|
||||
**Resolved (RFC 0027 Implemented):** spec 05 §14 adds feature `error_values` and pure `error.const B.variant`; source reuses `B::variant`. Every registered payload-free error variant is ordinary Copy data, never authority. Existing `enum.make` and runtime outcome rules are unchanged.
|
||||
|
||||
## Q-039 — Explicit static function parameters
|
||||
|
||||
General collections and algorithms need explicit typed hash/equality/order operations, while current generics carry only types.
|
||||
|
||||
**Resolved contract (RFC 0029 Proposed):** spec 15 §18 permits explicitly selected source functions as static parameters with exact typed/effect contracts. Selection is part of nominal specialization identity and lowers to existing named AIR calls/workers. No function pointers, capture environment, inferred effects or runtime dispatch are introduced. Q-037 is resolved by the implemented and verified generic map/set contracts (RFCs 0030/0031).
|
||||
**Resolved contract (RFC 0029 Implemented):** spec 15 §18 permits explicitly selected source functions as static parameters with exact typed/effect contracts. Selection is part of nominal specialization identity and lowers to existing named AIR calls/workers. No function pointers, capture environment, inferred effects or runtime dispatch are introduced. Q-037 is resolved by the implemented and verified generic map/set contracts (RFCs 0030/0031).
|
||||
+1
-1
@@ -141,7 +141,7 @@ Targets for Phase 6A, measured on dev tasks:
|
||||
|
||||
## Standard library track
|
||||
|
||||
At the owner’s request (2026-10-06), reusable std APIs take priority in a separate work branch. [Standard library plan](standard-library.md) defines the bootstrap, prerequisites (`linear_aggregates`, general modules and generics), Std 0.1/0.2/0.3 and the public integration gate. P7/P8 remain on hold pending B1 analysis; this track does not change frozen evaluation inputs.
|
||||
At the owner’s request (2026-10-06), reusable std APIs were implemented in a separate work branch. On 2026-10-07 the owner requested adoption/merge of the completed STD-0..7 intermediate foundation and resumption of source-language work; Q-034/P6-11 is next. Remaining std milestones stay in the backlog. [Standard library plan](standard-library.md) defines the bootstrap, prerequisites (`linear_aggregates`, general modules and generics), Std 0.1/0.2/0.3 and the public integration gate. P7/P8 remain on hold pending B1 analysis; this track does not change frozen evaluation inputs.
|
||||
|
||||
## Task conventions
|
||||
|
||||
|
||||
@@ -132,13 +132,14 @@ Lowering layers (P6A-3/4), each with accepted (golden AIR), rejected (`E7xxx`) a
|
||||
|---|---|---|---|---|---|
|
||||
| P6-1 | todo | Complete the source grammar: expressions, `match`, `borrow` blocks, `task.scope`, `select`, `defer`, `?`, generics, lifetimes, contracts, attributes | — (may start after P2) | `reference/grammar.ebnf`, spec 01 | every construct in `examples/` is covered; grammar is LL(k) or otherwise documented as unambiguous |
|
||||
| P6-2 | todo | Lexer and parser with spans | P6-1 | `src/frontend/{lex,parse}.zig` | all `examples/` parse; syntax errors are registered diagnostics |
|
||||
| P6-3 | done (branch implementation; RFC 0021 Proposed) | Explicit package modules, direct imports and qualified nominal types | P6-2 | `src/frontend/modules.zig`, spec 15 §14 | deterministic graph/name resolution; source/AIR and CLI tests |
|
||||
| P6-4 | done (branch implementation; RFC 0022 Proposed) | Type checking and monomorphized generics with structural constraints (`Copy`, `Send`, `Share`, `Freeze`, `Local`) | P6-3 | `src/frontend/generics.zig`, spec 15 §15 | generic code instantiates deterministically; constraint violations diagnosed |
|
||||
| P6-3 | done (RFC 0021 Implemented) | Explicit package modules, direct imports and qualified nominal types | P6-2 | `src/frontend/modules.zig`, spec 15 §14 | deterministic graph/name resolution; source/AIR and CLI tests |
|
||||
| P6-4 | done (RFC 0022 Implemented) | Type checking and monomorphized generics with structural constraints (`Copy`, `Send`, `Share`, `Freeze`, `Local`) | P6-3 | `src/frontend/generics.zig`, spec 15 §15 | generic code instantiates deterministically; constraint violations diagnosed |
|
||||
| P6-5 | todo | Lowering to AIR: control flow, `?`, `defer` cleanup edges, borrow blocks, task scopes | P6-4 | `src/frontend/lower.zig` | lowered AIR verifies; lowering is a pure function (same input ⇒ same AIR bytes) |
|
||||
| P6-6 | todo | Contracts: `requires`/`ensures`/invariants → contract table; status classification | P6-5 | frontend + verifier | each contract reported as PROVEN_STATICALLY / CHECKED_AT_RUNTIME / ASSUMED_UNSAFE / UNPROVEN |
|
||||
| P6-7 | todo | Source spans in diagnostics for verifier errors on lowered AIR | P6-5 | `src/diag.zig`, lowering | every conformance reject test has a source-level twin with the same code |
|
||||
| P6-8 | todo | Formatter | P6-2 | `aji fmt` | idempotent; output parses to the same AST |
|
||||
| P6-9 | todo | Port reference programs and examples to `.aji` | P6-5 | `tests/programs/`, `examples/` | exit criterion passes |
|
||||
| P6-11 | todo | Source functions/calls returning borrows with explicit `from` origin; Q-034 | P6-3/4 | spec 15, binding/call/return lowering, Quick Reference and source/AIR conformance | origin/lifetime and temporary-end rules specified; valid/rejected returned views use existing verifier/interpreter semantics |
|
||||
| P6-10 | todo | Phase exit review | all | plan status | exit criterion passes |
|
||||
|
||||
The [standard-library track](standard-library.md) implements nineteen compiler-pinned modules and qualified standard enum names. STD-3/RFC 0021 completes P6-3 on the branch with explicit manifest source mapping, acyclic linking, direct qualified names, imported struct literals and task workers. Dependency fetching/resolution is separate package work; STD-4/RFC 0022 completes explicit generics and structural constraints on the branch. STD-5/RFC 0023 adds whole-value linear structs/enums/fixed arrays, complete unpack/match, explicit exchange and ownership-preserving allocation failure through all layers (spec 15 §16). STD-6a/b/RFC 0024 resolves Q-036 with initialized buffer<T> and safe std.vec, explicit growth, returned failure ownership and draining (spec 15 §17). STD-6c/RFC 0025 adds safe owning Deque with existing source primitives. STD-6d.1/RFC 0026 adds pure std.hash; STD-6d.2/RFC 0028 adds safe owning U64Map<V> after the explicit error_values prerequisite (RFC 0027). STD-6d.3/RFC 0029 adds explicit static function parameters for general hash/equality/order operations with existing AIR calls/workers. STD-6d.4/RFC 0030 implements the general owning-key std.hashmap contract; its full GC/stress validation passes and Q-037 is resolved. STD-6d.5/RFC 0031 implements general owning std.hashset with duplicate input return; its conformance, GC/schedule, CLI and documentation checks pass. STD-6d.6/RFC 0032 implements safe owning std.heap with explicit order; conformance, GC/schedule, CLI and documentation checks pass. STD-7a/RFC 0033 implements bounded std.io composition with explicit progress, resource loans and exact effects; conformance, GC/schedule, CLI and documentation checks pass. STD-7b/RFC 0034 implements safe owning buffered file adapters with explicit finish/discard and first-error/no-retry behavior; conformance, GC/schedule, CLI and documentation checks pass. STD-7c/RFC 0035 adds pure caller-buffer lexical paths and Copy component ranges; conformance, GC/schedule, CLI and documentation checks pass. Existing `from`-returns remain unimplemented (Q-034). These increments do not complete Phase 6.
|
||||
The [standard-library track](standard-library.md) implements nineteen compiler-pinned modules and qualified standard enum names. STD-3/RFC 0021 completes P6-3 with explicit manifest source mapping, acyclic linking, direct qualified names, imported struct literals and task workers. Dependency fetching/resolution is separate package work; STD-4/RFC 0022 completes explicit generics and structural constraints. STD-5/RFC 0023 adds whole-value linear structs/enums/fixed arrays, complete unpack/match, explicit exchange and ownership-preserving allocation failure through all layers (spec 15 §16). STD-6a/b/RFC 0024 resolves Q-036 with initialized buffer<T> and safe std.vec, explicit growth, returned failure ownership and draining (spec 15 §17). STD-6c/RFC 0025 adds safe owning Deque with existing source primitives. STD-6d.1/RFC 0026 adds pure std.hash; STD-6d.2/RFC 0028 adds safe owning U64Map<V> after the explicit error_values prerequisite (RFC 0027). STD-6d.3/RFC 0029 adds explicit static function parameters for general hash/equality/order operations with existing AIR calls/workers. STD-6d.4/RFC 0030 implements the general owning-key std.hashmap contract; its full GC/stress validation passes and Q-037 is resolved. STD-6d.5/RFC 0031 implements general owning std.hashset with duplicate input return; its conformance, GC/schedule, CLI and documentation checks pass. STD-6d.6/RFC 0032 implements safe owning std.heap with explicit order; conformance, GC/schedule, CLI and documentation checks pass. STD-7a/RFC 0033 implements bounded std.io composition with explicit progress, resource loans and exact effects; conformance, GC/schedule, CLI and documentation checks pass. STD-7b/RFC 0034 implements safe owning buffered file adapters with explicit finish/discard and first-error/no-retry behavior; conformance, GC/schedule, CLI and documentation checks pass. STD-7c/RFC 0035 adds pure caller-buffer lexical paths and Copy component ranges; conformance, GC/schedule, CLI and documentation checks pass. The owner adopts STD-0..7 as an intermediate foundation and resumes language work (2026-10-07); remaining std system/service milestones stay in the backlog. Existing `from`-returns remain unimplemented (Q-034). These increments do not complete Phase 6.
|
||||
@@ -1,6 +1,6 @@
|
||||
# Standard library implementation plan
|
||||
|
||||
Non-normative. Started on `feat/std-bootstrap`, 2026-10-06, at the owner's request. Normative contracts live in spec 16 and the relevant source/runtime specifications. This track gives reusable libraries priority; P7/P8 remain on hold for B1 analysis. B1 frozen inputs and private held-out tasks do not guide API design and MUST NOT be inspected or changed by this work.
|
||||
Non-normative. Started on `feat/std-bootstrap`, 2026-10-06, at the owner's request. Normative contracts live in spec 16 and the relevant source/runtime specifications. The owner requested an intermediate STD-0..7 merge on 2026-10-07 and a return to source-language work; remaining std work stays in the backlog. P7/P8 remain on hold for B1 analysis. B1 frozen inputs and private held-out tasks do not guide API design and MUST NOT be inspected or changed by this work.
|
||||
|
||||
## Target and design constraints
|
||||
|
||||
@@ -20,10 +20,10 @@ Without external source dependencies, Aji should support ordinary CLI tools, sto
|
||||
|---|---|---|
|
||||
| Scalars, structs/enums, slices/arrays, explicit borrows | implemented | pure fixed-storage algorithms can start now |
|
||||
| Heap/regions, I/O, files, TCP, clock/random, structured tasks/channels/mutex | implemented primitives | wrappers can reuse them, but their presence does not imply the complete APIs below |
|
||||
| Built-in standard imports and enum types | STD-0/1a/2a/2b branch implementation | compiler-pinned, closed registry; nineteen modules; qualified enum types/constructors/patterns; no package lookup |
|
||||
| General modules/imported struct literals | STD-3 branch implementation (P6-3; RFC Proposed) | explicit manifest mapping, direct qualified names, ordinary verifier |
|
||||
| User generics/structural constraints | STD-4 branch implementation (P6-4; RFC Proposed) | needed for reusable `Vec<T>`, `HashMap<K,V>`, option/result |
|
||||
| `linear_aggregates` | STD-5 branch implementation (RFC Proposed) | whole-value owning structs/enums/fixed arrays; initialized buffer<T>/std.vec implemented by STD-6a/b |
|
||||
| Built-in standard imports and enum types | STD-0/1a/2a/2b implementation | compiler-pinned, closed registry; nineteen modules; qualified enum types/constructors/patterns; no package lookup |
|
||||
| General modules/imported struct literals | STD-3 implementation (P6-3; RFC Implemented) | explicit manifest mapping, direct qualified names, ordinary verifier |
|
||||
| User generics/structural constraints | STD-4 implementation (P6-4; RFC Implemented) | needed for reusable `Vec<T>`, `HashMap<K,V>`, option/result |
|
||||
| `linear_aggregates` | STD-5 implementation (RFC Implemented) | whole-value owning structs/enums/fixed arrays; initialized buffer<T>/std.vec implemented by STD-6a/b |
|
||||
| Extended filesystem, IPv6/DNS, args/env, TLS/crypto | not promised by current runtime | audit each primitive, authority, error and profile model before implementation |
|
||||
|
||||
A `Vec<u64>` prototype is not completion of `Vec<T>`. The collection gate requires valid and rejected examples for `Vec<File>`, `HashMap<Key, Own<Value>>` and `Vec<sender<Job>>`, plus cleanup and failure paths. No linked list is planned.
|
||||
@@ -33,6 +33,7 @@ A `Vec<u64>` prototype is not completion of `Vec<T>`. The collection gate requir
|
||||
| Milestone | Deliverable | Exit criterion |
|
||||
|---|---|---|
|
||||
| Bootstrap | `std.math`, `std.bytes`, compiler-pinned import, normative API, source tests and bundle entry | all functions lower to existing AIR, verify and run; bad calls/aliases reject; import order does not affect canonical AIR; no hidden allocations or authority |
|
||||
| Intermediate foundation — STD-0..7 | nineteen pinned modules, explicit owning collections, bytes/text/formatting/encodings, bounded and buffered I/O, lexical paths | module contracts, failure/ownership, GC/schedule and source/AIR/profile/package gates pass; adopted for continuing language development |
|
||||
| Std 0.1 — system utilities | core bytes/math/mem/slice/hash, option/result, buffer and owning collections, UTF-8/fmt, hex/base64, small I/O/fs/path/time/random/log APIs | a CLI and bounded storage utility written in `.aji` use only std, explicit grants, documented failure/cleanup and deterministic fixture tests |
|
||||
| Integration gate | public, independently chosen 5–10k LOC application | ownership, cancellation, bounded memory and error cleanup work together; API/documentation costs recorded; defects become general repairs |
|
||||
| Std 0.2 — network services | TCP, IPv4/IPv6, DNS, task/channel helpers, JSON DOM, URI, bounded HTTP/1.1 | a local concurrent JSON/HTTP service passes deterministic fixtures and hosted smoke tests without external source packages |
|
||||
@@ -46,29 +47,29 @@ SQL/database clients, Redis/Kafka, ORMs, application authentication, gRPC/protob
|
||||
|
||||
| ID | Status | Work | Depends | Done when |
|
||||
|---|---|---|---|---|
|
||||
| STD-0 | done (branch implementation; RFC Proposed) | bootstrap spec, source std, closed imports, conformance, documentation and complexity measurement | existing source frontend | bootstrap exit criterion above and required repository checks pass |
|
||||
| STD-1a | done (branch implementation; RFC Proposed) | endian u16/u32/u64 and qualified standard enum results | STD-0 | recoverable short-input/output failure, no partial mutation; all short lengths, empty/maximal values, fixtures and rejected alias examples pass |
|
||||
| STD-1b | done (branch implementation; RFC Proposed) | bounded copy/search, split composition and recoverable arithmetic for u64/usize | STD-1a | contracts define capacity/overflow failure, no partial mutation, empty inputs and aliasing; independent fixtures pass |
|
||||
| STD-2a | done (branch implementation; RFC Proposed) | UTF-8 next/validate and supplied-buffer hex/base64 | STD-1a/1b | malformed text and insufficient capacity are explicit, output unchanged on returned errors; independent vectors and boundary cases pass |
|
||||
| STD-2b | done (branch implementation; RFC Proposed) | decimal u64/i64/usize/isize formatting into supplied buffers | STD-2a | minimal explicit format contract, no implicit heap, capacity/empty/maximal scalar tests and caller example |
|
||||
| STD-3 | done (branch implementation; RFC Proposed) | general modules and imported type names (P6-3) | STD-0 | deterministic resolution, collisions/cycles and diagnostics specified and covered |
|
||||
| STD-4 | done (branch implementation; RFC Proposed) | source generics (P6-4), constraints and option/result | STD-3 | deterministic specialization and rejected constraint examples; source/AIR budgets measured |
|
||||
| STD-5 | done (branch implementation; RFC Proposed) | independent whole-value `linear_aggregates` RFC and vertical implementation phase | STD-3/4 for its source surface | spec → AIR → verifier → interpreter → source/lowering → Quick Reference → AIR/source tests; linear elements consumed on every path |
|
||||
| STD-6a | done (branch implementation; RFC 0024 Proposed) | dynamic initialized buffer<T> storage/drain contract (Q-036) | STD-4/5 | vertical allocate/grow/push/pop/view/free; allocation failures preserve state, returned owners consumed; no hidden destruction |
|
||||
| STD-6b | done (branch implementation; RFC 0024 Proposed) | safe std.vec for Copy/owners/files/channel endpoints | STD-6a | explicit reserve, bounded push, moving pop/replace, empty-only free; deterministic and failure/cleanup tests |
|
||||
| STD-6c | done (branch implementation; RFC 0025 Proposed) | safe std.deque for Copy/owners/files/endpoints | STD-6a/b | bounded ring, both ends, failure-preserving explicit growth, complete resource transfer and empty-only free |
|
||||
| STD-6d | done (branch implementations; RFCs Proposed) | HashMap, HashSet, BinaryHeap | STD-6a/b/c | safe collection contracts, including HashMap<Key, Own<Value>>, recoverable failures and explicit draining |
|
||||
| STD-6d.1 | done (branch implementation; RFC 0026 Proposed) | pure std.hash: FNV-1a 64 / CRC32C, fresh/extend | STD-1b | four safe functions, exact byte/chunk conventions, independent public vectors and CLI/profile checks |
|
||||
| STD-6d.2a | done (branch implementation; RFC 0027 Proposed) | pure built-in error construction prerequisite | STD-6d.1 | vertical error_values feature, no authority/effect/resource changes; preflight allocation validation |
|
||||
| STD-6d.2 | done (numeric-key branch implementation; RFC 0028 Proposed) | U64Map<V> first; general HashMap<K,V> key policy Q-037 | STD-6d.1 | safe map with ownership/failure/collision tests and error_values prerequisite (RFC 0027); general-key gate resolved by STD-6d.4/5 |
|
||||
| STD-6d.3 | done (branch implementation; RFC 0029 Proposed) | explicit static hash/equality/order functions | STD-4 | exact callable contracts, ordinary AIR calls/workers and nominal operation identity; general collections remain required |
|
||||
| STD-6d.4 | done (branch implementation; RFC 0030 Proposed) | general owning HashMap<K,V,H,E> | STD-6d.3 | dense complete entries, Copy probe indices, exact equality and returned key/value ownership |
|
||||
| STD-6d.5 | done (branch implementation; RFC 0031 Proposed) | general owning HashSet<K,H,E> | STD-6d.4 | exact membership, duplicate/full input ownership, moving extraction and empty-only free |
|
||||
| STD-6d.6 | done (branch implementation; RFC 0032 Proposed) | owning BinaryHeap<T,B> | STD-6a/6d.3 | explicit pure order, complete resource extraction, bounded push, failure-preserving growth |
|
||||
| STD-7 | done (branch implementation; RFCs Proposed) | concrete I/O adapters, buffered I/O and lexical paths | STD-1b/2a/2b; STD-3 for public types | short reads, EOF, capacity and write failures covered; paths never grant filesystem authority |
|
||||
| STD-7a | done (branch implementation; RFC 0033 Proposed) | exact/bounded reads and limited file copies | STD-1b/3 | explicit progress/EOF/error, borrowed resources, caller slices and exact effects |
|
||||
| STD-7b | done (branch implementation; RFC 0034 Proposed) | owning buffered concrete file reader/writer | STD-6a/7a | failure ownership, refill/flush, explicit finish/discard and no hidden cleanup |
|
||||
| STD-7c | done (branch implementation; RFC 0035 Proposed) | caller-buffer lexical paths | STD-1b/2a | pure normalization/join/components with no filesystem authority |
|
||||
| STD-0 | done (RFC Implemented) | bootstrap spec, source std, closed imports, conformance, documentation and complexity measurement | existing source frontend | bootstrap exit criterion above and required repository checks pass |
|
||||
| STD-1a | done (RFC Implemented) | endian u16/u32/u64 and qualified standard enum results | STD-0 | recoverable short-input/output failure, no partial mutation; all short lengths, empty/maximal values, fixtures and rejected alias examples pass |
|
||||
| STD-1b | done (RFC Implemented) | bounded copy/search, split composition and recoverable arithmetic for u64/usize | STD-1a | contracts define capacity/overflow failure, no partial mutation, empty inputs and aliasing; independent fixtures pass |
|
||||
| STD-2a | done (RFC Implemented) | UTF-8 next/validate and supplied-buffer hex/base64 | STD-1a/1b | malformed text and insufficient capacity are explicit, output unchanged on returned errors; independent vectors and boundary cases pass |
|
||||
| STD-2b | done (RFC Implemented) | decimal u64/i64/usize/isize formatting into supplied buffers | STD-2a | minimal explicit format contract, no implicit heap, capacity/empty/maximal scalar tests and caller example |
|
||||
| STD-3 | done (RFC Implemented) | general modules and imported type names (P6-3) | STD-0 | deterministic resolution, collisions/cycles and diagnostics specified and covered |
|
||||
| STD-4 | done (RFC Implemented) | source generics (P6-4), constraints and option/result | STD-3 | deterministic specialization and rejected constraint examples; source/AIR budgets measured |
|
||||
| STD-5 | done (RFC Implemented) | independent whole-value `linear_aggregates` RFC and vertical implementation phase | STD-3/4 for its source surface | spec → AIR → verifier → interpreter → source/lowering → Quick Reference → AIR/source tests; linear elements consumed on every path |
|
||||
| STD-6a | done (RFC 0024 Implemented) | dynamic initialized buffer<T> storage/drain contract (Q-036) | STD-4/5 | vertical allocate/grow/push/pop/view/free; allocation failures preserve state, returned owners consumed; no hidden destruction |
|
||||
| STD-6b | done (RFC 0024 Implemented) | safe std.vec for Copy/owners/files/channel endpoints | STD-6a | explicit reserve, bounded push, moving pop/replace, empty-only free; deterministic and failure/cleanup tests |
|
||||
| STD-6c | done (RFC 0025 Implemented) | safe std.deque for Copy/owners/files/endpoints | STD-6a/b | bounded ring, both ends, failure-preserving explicit growth, complete resource transfer and empty-only free |
|
||||
| STD-6d | done (RFCs Implemented) | HashMap, HashSet, BinaryHeap | STD-6a/b/c | safe collection contracts, including HashMap<Key, Own<Value>>, recoverable failures and explicit draining |
|
||||
| STD-6d.1 | done (RFC 0026 Implemented) | pure std.hash: FNV-1a 64 / CRC32C, fresh/extend | STD-1b | four safe functions, exact byte/chunk conventions, independent public vectors and CLI/profile checks |
|
||||
| STD-6d.2a | done (RFC 0027 Implemented) | pure built-in error construction prerequisite | STD-6d.1 | vertical error_values feature, no authority/effect/resource changes; preflight allocation validation |
|
||||
| STD-6d.2 | done (numeric-key implementation; RFC 0028 Implemented) | U64Map<V> first; general HashMap<K,V> key policy Q-037 | STD-6d.1 | safe map with ownership/failure/collision tests and error_values prerequisite (RFC 0027); general-key gate resolved by STD-6d.4/5 |
|
||||
| STD-6d.3 | done (RFC 0029 Implemented) | explicit static hash/equality/order functions | STD-4 | exact callable contracts, ordinary AIR calls/workers and nominal operation identity; general collections remain required |
|
||||
| STD-6d.4 | done (RFC 0030 Implemented) | general owning HashMap<K,V,H,E> | STD-6d.3 | dense complete entries, Copy probe indices, exact equality and returned key/value ownership |
|
||||
| STD-6d.5 | done (RFC 0031 Implemented) | general owning HashSet<K,H,E> | STD-6d.4 | exact membership, duplicate/full input ownership, moving extraction and empty-only free |
|
||||
| STD-6d.6 | done (RFC 0032 Implemented) | owning BinaryHeap<T,B> | STD-6a/6d.3 | explicit pure order, complete resource extraction, bounded push, failure-preserving growth |
|
||||
| STD-7 | done (intermediate foundation) | concrete I/O adapters, buffered I/O and lexical paths | STD-1b/2a/2b; STD-3 for public types | short reads, EOF, capacity and write failures covered; paths never grant filesystem authority |
|
||||
| STD-7a | done (RFC 0033 Implemented) | exact/bounded reads and limited file copies | STD-1b/3 | explicit progress/EOF/error, borrowed resources, caller slices and exact effects |
|
||||
| STD-7b | done (RFC 0034 Implemented) | owning buffered concrete file reader/writer | STD-6a/7a | failure ownership, refill/flush, explicit finish/discard and no hidden cleanup |
|
||||
| STD-7c | done (RFC 0035 Implemented) | caller-buffer lexical paths | STD-1b/2a | pure normalization/join/components with no filesystem authority |
|
||||
| STD-8 | todo | filesystem gaps, args/env capability RFC, time/random distinctions and structured log | STD-3/7; vertical runtime feature where needed | CLI/storage milestone examples work in deterministic and hosted profiles; all authority is granted at entry |
|
||||
| STD-9 | todo | independent integration application and API review | STD-6/7/8 | integration gate; public application is not private benchmark material |
|
||||
| STD-10 | todo | IPv4/IPv6/TCP/DNS contracts and runtime gaps; task/channel helpers | STD-9 | bounded service fixtures, deterministic scheduling and schedule stress pass |
|
||||
@@ -76,7 +77,7 @@ SQL/database clients, Redis/Kafka, ORMs, application authentication, gRPC/protob
|
||||
| STD-12 | todo | vetted crypto backend and TLS vertical RFC | STD-10/11 | explicit trusted dependency, certificate/trust/entropy inputs, audit and deterministic model |
|
||||
| STD-13 | todo | HTTP client/server integration and Std 0.3 review | STD-12 | internet-service exit criterion |
|
||||
|
||||
Each task can be split into reviewable increments; only executable exit criteria mark it done. Owning containers are the next semantic priority, but pure byte/text operations need not wait for them. P7 is reconsidered after B1 analysis and the integration gate; this plan does not unilaterally reopen it.
|
||||
Each task can be split into reviewable increments; only executable exit criteria mark it done. The intermediate foundation is complete; the remaining system and service milestones are backlog work. P7 is reconsidered after B1 analysis and the integration gate; this plan does not unilaterally reopen it.
|
||||
|
||||
## API review and Model Capability Compression
|
||||
|
||||
@@ -186,3 +187,10 @@ All 1061 conformance cases pass, including 34 buffered adapter fixtures. Every b
|
||||
STD-7c/RFC 0035 implements six pure std.path operations: raw component queries return bounded Copy ranges; normalize/join write into caller-provided storage with no heap or authority. NUL/size/capacity errors preserve the entire output. Reverse measurement/emission retains relative unmatched parents, drops parents above root, and needs only the final normalized capacity. Filesystem operations still enforce their independent path/grant rules.
|
||||
|
||||
All 1079 conformance cases pass, including 18 path fixtures. All path runtime fixtures pass collection before every instruction; shared reads and restored output loans pass 12 seeds under quanta 1, 2, 7 and their own quantum. An independent Python forward-stack oracle covers 132 paths with raw queries/idempotence and every short/exact/extra capacity, 49 joins and four malformed pairs; separate fixtures cover all 255 non-NUL bytes, disjoint slices, one-byte canceled results, late malformed input, guards/suffixes and T0008 for reused ranges. The model uses bounded batches with separate literal frames, preserving all vectors and capacities. Linux CLI/source/AIR/package/profile/provenance/audit/authority checks pass (68); all fourteen preceding std/source CLI suites pass again. Unit/Quick Reference, formatting, hosted smoke, 117/117 source construct coverage and reference generation pass. RFC 0035 records documentation growth. STD-7 and the intermediate foundation are complete; STD-8, the full Std 0.1 exit and later service milestones remain unfinished.
|
||||
|
||||
|
||||
## Intermediate adoption (owner decision, 2026-10-07)
|
||||
|
||||
The owner requested a sufficient intermediate std stage, integration of the work branch and resumption of language development. STD-0 through STD-7 provide nineteen compiler-pinned safe source modules: math/bytes/hash, UTF-8/hex/Base64/formatting, option/result, Vec/Deque/U64Map/general HashMap/HashSet/BinaryHeap, bounded std.io, owning buffered file adapters and lexical paths. The branch also supplies explicit modules/generics, whole-value linear aggregates/initialized buffers, pure error values and exact static callable contracts, through source/AIR/verifier/interpreter and tests where applicable. RFCs 0016–0035 are adopted and implemented; their rules are integrated into spec/reference in the same merged change.
|
||||
|
||||
This intermediate gate is sufficient to resume language work. It does not mark Std 0.1 complete: filesystem gaps, args/env, time/random wrappers, structured logs and CLI/storage exit examples remain STD-8; the public 5–10k LOC integration gate and network/JSON/HTTP/TLS milestones remain in the backlog. Frozen evaluation inputs and the private held-out corpus are untouched. Next source-language work is Q-034/P6-11 (explicit borrowed-return calls/bindings); P7/P8 retain their existing gate.
|
||||
@@ -1,9 +1,10 @@
|
||||
# RFC 0016: Standard library bootstrap and built-in source imports
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: `.aji` source composition and safe pure standard modules; AIR format 0 unchanged
|
||||
Language version: 0.1
|
||||
Supersedes: —
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
This branch contains the proposed spec text, reference implementation and tests for review. Only the owner changes the RFC to Accepted; implementation on a work branch does not constitute acceptance.
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# RFC 0017: Recoverable endian operations and qualified standard enums
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-1a, safe `std.bytes` algorithms and closed-registry enum names; AIR format 0 unchanged
|
||||
Language version: 0.1
|
||||
Supersedes: —
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
This branch integrates the proposed specification, implementation and tests for review. Only the owner changes the RFC to Accepted; branch implementation is not acceptance. RFC 0016 remains the historical bootstrap record.
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# RFC 0018: Bounded copy/search and recoverable unsigned arithmetic
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-1b, safe standard library APIs; existing source and AIR format 0 unchanged
|
||||
Language version: 0.1
|
||||
Supersedes: —
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
The proposed spec, reference implementation and tests are integrated on the work branch for review. Only the owner changes an RFC to Accepted. RFCs 0016/0017 remain the historical records for imports and endian operations.
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# RFC 0019: UTF-8 and supplied-buffer hex/Base64
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-2a, safe standard modules; existing source syntax and AIR format 0 unchanged
|
||||
Language version: 0.1
|
||||
Supersedes: —
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
This work branch contains the proposed specification, implementation and tests for review. Only the owner changes the RFC to Accepted. Formatting is a separate STD-2b increment.
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0020: Supplied-buffer integer formatting
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-2b, safe standard source; language 0.1 and AIR format 0 unchanged
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
This branch contains the proposed spec, implementation and tests. Owner acceptance remains separate from branch implementation.
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0021: Explicit package source modules
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-3 / P6-3; source language 0.1, AIR format 0 unchanged
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
The branch contains the proposed normative text, implementation and tests. Only the language owner changes RFC acceptance status.
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0022: Explicit source generics and Copy option/result
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-4 / P6-4; source language 0.1, AIR format 0 unchanged
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
This branch contains proposed normative text, implementation and tests. Owner acceptance remains separate from branch implementation.
|
||||
|
||||
@@ -70,7 +71,7 @@ For example, passing mut a twice to swap::<u64> rejects E2101, and passing the s
|
||||
|
||||
Spec 15 §13/§14 distinguish complete ordinary declarations from templates under §15; source grammar, type property reference and spec 01 overview point to the explicit forms. The source bundle includes an on-demand language/generics.md; std signatures/constraints are in library/std.md. Two safe embedded modules add two enum templates and two helper templates; the existing six modules, 39 monomorphic functions and 14 enums retain contracts. No package discovery, ambient authority or dependency fetch is added.
|
||||
|
||||
Previously invalid explicit source generic syntax becomes valid; monomorphic source/AIR and legacy channel.make<T> remain compatible. Fixing array layout recursion rejects previously misaccepted but normatively invalid AIR. Existing unsupported from-return behavior remains visible and separately tracked. STD-4 completes the generic/structural-specialization task on this branch; full Phase 6 and owning containers remain incomplete. RFC status is Proposed for owner review.
|
||||
Previously invalid explicit source generic syntax becomes valid; monomorphic source/AIR and legacy channel.make<T> remain compatible. Fixing array layout recursion rejects previously misaccepted but normatively invalid AIR. Existing unsupported from-return behavior remains visible and separately tracked. STD-4 completes the generic/structural-specialization task on this branch; full Phase 6 and owning containers remain incomplete. The owner adopted this implemented contract with the intermediate std merge (2026-10-07).
|
||||
|
||||
## Agent complexity impact
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0023: Whole-value linear aggregates
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-5, vertical source/AIR/verifier/interpreter phase; AIR format 0
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0024: Initialized linear buffers and safe vectors
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-6a storage / STD-6b Vec; vertical Phase 6, additive AIR format 0
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation and invariant
|
||||
|
||||
@@ -25,7 +26,7 @@ A valid program explicitly allocates Vec<own<u64>>, pushes with a mutable borrow
|
||||
|
||||
## Compatibility and scope
|
||||
|
||||
New type/opcodes belong to linear_buffers; baseline own/own_array/region operations retain semantics. New source cases extend previously rejected forms. Existing generic Copy code without move lowers identically; non-generic invalid Copy moves keep E7006. Q-034 from-returns, channel_transfer, guard/task gates and recursive ownership remain restricted. RFC remains Proposed for owner review. Deque/maps/heaps are not completed by this increment.
|
||||
New type/opcodes belong to linear_buffers; baseline own/own_array/region operations retain semantics. New source cases extend previously rejected forms. Existing generic Copy code without move lowers identically; non-generic invalid Copy moves keep E7006. Q-034 from-returns, channel_transfer, guard/task gates and recursive ownership remain restricted. The owner adopted this implemented contract with the intermediate std merge (2026-10-07). Deque/maps/heaps are not completed by this increment.
|
||||
|
||||
## Agent complexity impact
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0025: Safe owning deque
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-6c deque increment, ordinary safe library source
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Decision and invariant
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0026: Non-cryptographic hash foundation
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-6d.1 pure library; next map contract remains a design proposal
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Decision
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# RFC 0027: Explicit built-in error values
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-6d.2 prerequisite; vertical Phase 6, additive AIR format 0
|
||||
Language version: 0.1
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# RFC 0028: Safe owning numeric-key map
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-6d.2, safe standard source; general-key gate remains Q-037
|
||||
Language version: 0.1
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# RFC 0029: Explicit static function parameters
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: vertical Phase 6 source specialization prerequisite for general collections
|
||||
Language version: 0.1
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0030: Safe owning general-key hash map
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-6d.4, ordinary safe library source after RFC 0029
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation
|
||||
|
||||
@@ -53,4 +54,4 @@ cl100k growth is +0.9% / +4.6% / +4.1%. library/std.md is 16,504 cl100k tokens.
|
||||
|
||||
## Validation result
|
||||
|
||||
The complete conformance corpus passes 947 cases, including 33 general-map cases. Unit tests, Quick Reference checking, formatting, reference-bundle generation, source coverage (104/104 constructs) and 55 CLI/source/AIR/profile/package/provenance checks pass. Independent Python dict/dense-order oracles cover 192 public operations across Copy and owning-value traces, checking every key and complete returned owners. Tests cover owning byte-buffer keys, owning key/value replacement/full returns, files, sender task transfer, shared lookups, exact allocation peaks, both reserve-failure phases, new-allocation rollback, cross-authority refunds and invalid-metadata nonempty free. The focused collection-before-every-step/scheduler-stress process has completed: all 33 general-map cases pass, including both independent owning/Copy model traces; scheduled fixtures run 12 seeds under quanta 1, 2, 7 and their own quantum. The process used no wall-clock termination. Subsequent set/heap regression passes the full 1007-case corpus. General key-policy/storage validation is complete on this branch (Q-037); RFC status remains Proposed for owner review.
|
||||
The complete conformance corpus passes 947 cases, including 33 general-map cases. Unit tests, Quick Reference checking, formatting, reference-bundle generation, source coverage (104/104 constructs) and 55 CLI/source/AIR/profile/package/provenance checks pass. Independent Python dict/dense-order oracles cover 192 public operations across Copy and owning-value traces, checking every key and complete returned owners. Tests cover owning byte-buffer keys, owning key/value replacement/full returns, files, sender task transfer, shared lookups, exact allocation peaks, both reserve-failure phases, new-allocation rollback, cross-authority refunds and invalid-metadata nonempty free. The focused collection-before-every-step/scheduler-stress process has completed: all 33 general-map cases pass, including both independent owning/Copy model traces; scheduled fixtures run 12 seeds under quanta 1, 2, 7 and their own quantum. The process used no wall-clock termination. Subsequent set/heap regression passes the full 1007-case corpus. General key-policy/storage validation is complete on this branch (Q-037); The owner adopted this implemented contract with the intermediate std merge (2026-10-07).
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0031: Safe owning general-key hash set
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-6d.5, safe library source after RFCs 0029/0030
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation and normative changes
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0032: Safe owning binary heap
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-6d.6, safe library source after RFCs 0024/0029
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation and normative changes
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0033: Explicit bounded I/O composition
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-7a, safe std.io foundation before buffered adapters and paths
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation and normative changes
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0034: Owning bounded file reader and writer
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-7b, safe std.io.reader / std.io.writer after RFCs 0024/0033
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation and normative integration
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# RFC 0035: Caller-buffer lexical paths
|
||||
|
||||
Status: Proposed
|
||||
Status: Implemented
|
||||
Scope: STD-7c, std.path after owning buffered files
|
||||
Adoption: owner-requested intermediate std merge, 2026-10-07; normative rules and reference implementation are integrated together.
|
||||
|
||||
## Motivation and spec integration
|
||||
|
||||
|
||||
Reference in new issue
Block a user