Commit Graph
73 Commits
Author SHA1 Message Date
dev 6a02659f31 diag: explain pointer-sized cast restrictions in source advice 2026-10-09 21:01:58 +03:00
dev 3906ce5a9b verifier: evaluate type sizes with explicit continuations 2026-10-09 19:28:03 +03:00
dev ba99ad6727 tests: audit source rejections before AIR lowering 2026-10-09 18:49:28 +03:00
dev a491eba193 tests: add nested-size source rejection twins 2026-10-09 18:43:18 +03:00
dev 4cda44823d frontend: collect independent source diagnostics without cascades 2026-10-09 16:01:18 +03:00
dev 2c6c7a3dcd frontend: provide contextual source repair advice 2026-10-09 14:04:40 +03:00
dev 111a3861f9 verifier: account finite anonymous type sizes exactly 2026-10-09 13:26:17 +03:00
dev edfef82cc6 diag: preserve factual source atomic-access diagnostics 2026-10-09 00:04:12 +03:00
dev ee09a7a290 tests: audit swap leak and remaining source rule boundaries 2026-10-08 22:25:42 +03:00
dev 03305f0957 tests: audit feature-header context and rejection boundaries 2026-10-08 22:12:04 +03:00
dev fe63ae9586 tests: preserve audited CFG loan handoff contexts 2026-10-08 21:57:27 +03:00
dev 50d1bb2c4b tests: audit source boundaries and cancellation join twins 2026-10-08 21:35:58 +03:00
dev 5371eb7a2f tests: audit buffer and error-value rejection twins 2026-10-08 21:21:42 +03:00
dev 2742867ef7 tests: audit task argument identities and source error boundaries 2026-10-08 20:57:51 +03:00
dev fd92604f36 tests: preserve rejection contexts and normalize callee effects 2026-10-08 19:41:01 +03:00
dev 06d8a1a76a tests: extend rejection twins across public semantic features 2026-10-08 19:14:12 +03:00
dev 272aebfd32 tests: extend audited rejection twins through tasks and locks 2026-10-08 18:12:53 +03:00
dev e4aacef48c tests: inventory and verify source rejection twins 2026-10-08 18:01:58 +03:00
dev 09fbf8a5bc verifier: preserve resource obligations across CFG handoff 2026-10-08 17:17:08 +03:00
dev 762c5abe7b frontend: validate unknown effect names before body lowering 2026-10-08 14:49:49 +03:00
dev 4c9c5626c9 frontend: align source grammar and reject empty enum payload lists 2026-10-08 14:14:45 +03:00
dev 48b9b42fed verifier: cache structural properties and nominal size queries 2026-10-08 13:33:24 +03:00
dev 41f3afbf05 cli: validate exclusive source places before AIR 2026-10-08 12:37:22 +03:00
dev dcd5f1f702 cli: reject non-value operands without aborting lowering 2026-10-08 12:17:15 +03:00
dev bc5412dadd cli: validate inferred allocation content before AIR 2026-10-08 10:31:10 +03:00
dev 1bbfed24a8 cli: check inferred array elements before AIR 2026-10-08 09:26:33 +03:00
dev cfbe01a16f cli: validate Copy content of source owning arrays 2026-10-08 09:01:58 +03:00
dev caf3b86e80 cli: validate structural source type positions before AIR 2026-10-07 23:54:55 +03:00
dev 5f76e92ff3 cli: parse dereferenced places in inline borrow arguments 2026-10-07 22:55:10 +03:00
dev dde801c653 cli: preserve whole-array arguments for explicit array parameters 2026-10-07 22:29:45 +03:00
dev 1a80c42289 cli: map block diagnostics to their source constructs 2026-10-07 21:45:57 +03:00
dev 1495650587 cli: resolve struct len fields by receiver type
Use ordinary field lowering and declared field types for nominal receivers while preserving array and slice lengths. Make array field type hints available to chained access. Missing struct len now reports E7002 instead of the builtin-length E7005.

Add 15 source regressions and imported generic CLI checks. Unit tests, all 1201 conformance cases, per-instruction collection for new cases, formatter corpus and original public check/lower compatibility pass.
2026-10-07 20:50:48 +03:00
dev 9001e56325 cli: restrict source scope names to lexical task operands 2026-10-07 19:50:49 +03:00
dev 364eb57bbc diag: preserve envelope fields and reject JSON key collisions in tests 2026-10-07 19:28:36 +03:00
dev 8ee0f4c2bf diag: add factual related borrow and task locations 2026-10-07 19:12:58 +03:00
dev 911982dd1c cli: disambiguate block statement boundaries 2026-10-07 18:21:07 +03:00
dev a9a0d63f27 cli: implement explicit source borrow returns 2026-10-07 18:20:45 +03:00
dev 8edec5b831 cli: add caller-buffer lexical path APIs
Add pure std.path queries and failure-preserving normalization/join using
safe reverse measurement/emission and caller-provided output storage.
Component queries return explicit Copy ranges; filesystem authority is
checked independently. Complete the STD-7 implementation gate.

Validation: 1079 conformance cases, 18 path cases with per-step collection
and 12-seed schedule stress, independent 132-path/49-join capacity oracle,
68 CLI checks, fourteen previous source/std CLI suites, unit/Quick Reference,
formatting, hosted smoke, 117/117 source coverage and reference budgets.
2026-10-07 13:41:45 +03:00
dev 8d8bef8f3e cli: add explicit owning buffered file adapters
Add pinned std.io.reader and std.io.writer using safe source, explicit fixed
allocation and file transfer. Finish/discard return complete resources;
writer failures preserve pending data and prohibit unsound partial retries.

Specify cursor, acceptance, failure and cleanup contracts in spec 16,
RFC 0034, the API reference and source bundle. Add standalone conformance,
independent byte oracles, task/GC stress, CLI/package/profile checks and
hosted partial-write tests with a raised child quota to detect retries.

Validation: 1061 conformance cases; 34 buffered cases with per-step GC and
12 schedule seeds; unit/Quick Reference, formatting, hosted smoke,
89 CLI checks, 115 source coverage constructs and reference generation.
2026-10-07 12:38:55 +03:00
dev 3e1c0f34e8 cli: add explicit bounded standard I/O composition
Add std.io exact stdin/file/TCP reads, bounded file read-to-end and
limited file write/append copies. Use caller slices and resource loans,
exact effects, explicit EOF/capacity/limit and confirmed partial progress.
No implicit heap, open/close, timeout or new AIR/runtime semantics.

Document failure limits and check hosted read errors and a partial
external file write under a child-only file-size quota. Integrate
normative contracts, RFC, source reference budgets, CLI/profile/package
checks and independent byte/count/cursor vectors.

Validation: 1027 conformance cases, 20 I/O GC cases, scheduled stress,
unit/Quick Reference, formatting, hosted smoke, 55 CLI checks, 111 source
coverage constructs and unchanged AIR reference bundle.
2026-10-07 12:14:11 +03:00
dev cfece6080c cli: add safe owning binary heaps
Add std.heap with an exact explicit pure ordering operation, bounded
push, Copy-only peek, moving pop and empty-only free. Sift Copy indices
while complete owners remain in dense initialized storage; repair holes
through complete exchange. Reserve preserves layout on returned failure
and accounts for both old/new buffers and separately owned payloads.

Integrate normative contracts, RFC, references, bundle measurements,
independent heapq/permutation oracles and CLI/package/profile checks.

Validation: 1007 conformance cases; 34 heap GC fixtures and scheduled
stress; unit/Quick Reference, formatting, hosted smoke, 70 CLI checks,
109 source coverage constructs and unchanged AIR reference bundle.
2026-10-07 11:41:35 +03:00
dev 4716cda0f1 cli: add safe owning general-key hash sets
Add std.hashset with explicit pure hash/equality policies and complete
owning keys. Duplicate/full insert returns the original input, while
remove/pop and nonempty free preserve explicit resource ownership.

Reuse safe HashMap storage and failure/peak/refund accounting. Integrate
normative contracts, RFC, references, complexity measurements, CLI/profile
checks and independent Copy/owner set traces.

Validation: 973 conformance cases; runtime set GC and schedule stress;
unit/Quick Reference, formatting, hosted smoke, 53 CLI checks, 106 source
coverage constructs and bundle generation.
2026-10-07 11:14:53 +03:00
dev 7bb5bd7931 cli: add safe owning general-key hash maps
Use explicit static hash/equality functions, dense complete key/value entries
and Copy probe indices. Preserve returned ownership and allocation failure
state without unsafe code or new runtime instructions.

Add normative contracts, API/reference budgets, 33 conformance cases, independent
Copy/owner dict traces and 55 CLI/package/profile checks. Full corpus: 947 passing.
Collection-every-step scheduler stress remains in progress, recorded in RFC/plan.
2026-10-07 10:55:09 +03:00
dev f02f4bd55b cli: add explicit static function parameters
Bind typed source functions with exact effect contracts during deterministic
specialization; retain nominal operation identity and ordinary AIR verification.

Add spec/RFC/grammar, checked Quick Reference examples, source/AIR conformance,
package/hosted CLI tests, scheduler/GC coverage and documentation budgets.
2026-10-07 10:23:03 +03:00
dev 57603860df cli: add safe owning numeric-key maps
Register std.map with bounded U64Map<V>, exact key equality and explicit
allocation/growth. Preserve returned ownership, old slots on reserve failure
and original-authority refunds; support Copy values, owners and resources.

Cover collision/tombstone/wrap behavior, independent dictionary traces,
quota/cleanup/borrow/task rules, source/AIR parity and hosted/package CLI.
Publish the API, roadmap and measured documentation cost. General key
hashing/equality remains Q-037; numeric maps do not satisfy that gate.
2026-10-07 08:36:23 +03:00
dev fc23f1b23a cli: canonicalize integer match patterns
Emit decimal AIR patterns without source suffixes, radix spellings or
separators. Validate range before formatting and preserve duplicate-value
detection, including negative zero and 128-bit boundaries.

Add source run/reject regressions for canonical spelling, duplicates and
out-of-range patterns; clarify the existing integer pattern contract.
2026-10-07 08:31:27 +03:00
dev 1eaf968f4f cli: add explicit built-in error values
Add the error_values feature and error.const through specification, AIR,
verification, interpretation and source lowering. Error values are Copy data
with no allocation, effects or authority. Keep enum.make semantics frozen.

Cover all registered tags, feature negotiation, payload/type errors and
authority rejection in AIR/source; verify canonical and hosted CLI behavior.
Record reference-bundle costs and the map preflight-validation prerequisite.
2026-10-07 08:09:49 +03:00
dev 89c63c306b cli: add standard hashes and propose owning map contract
Embed std.hash with four ordinary safe byte functions: FNV-1a 64 and
Castagnoli CRC-32C, each with fresh and numeric continuation forms.
Specify exact constants, empty/chunk semantics, arbitrary continuation
states, target-independent numeric results and explicit serialization.
No heap allocation, authority, AIR, verifier or runtime change.

Propose the next U64Map<V> contract: exact key equality, bounded insert,
returned replacement/full ownership, tombstones, moving drain and
failure-preserving peak-charged rehash. Keep general HashMap<K,V> key
hash/equality policy open as Q-037. A checked slot prerequisite confirms
read-only Copy key/state fields over Option<V>, with explicit accounting
for both tags and owning payload cleanup; no map module is registered.

Validation: unit tests, 797 full conformance cases, 12 new fixtures;
all 11 hash cases with per-instruction collection and 12 schedule seeds
across four quanta, plus owning slot collection; 84 source/AIR, package
and hosted CLI checks; independent forward-polynomial CRC and arbitrary
precision FNV oracles for 286 inputs / 1144 results; 95/95 source coverage;
Zig formatting, whitespace and reference generation. Published vectors
come from RFC 9923 and RFC 3720, with explicit numeric/wire conventions.

Reference cost: source excluding AIR 53,993 -> 55,281 cl100k (+2.4%);
Quick Reference 7,747 -> 7,806 (+0.8%); AIR remains 175,736 bytes.
Map design remains outside both bundles. No empirical MCC or native
throughput claim; CRC initially uses eight bit steps per byte.
2026-10-07 00:53:50 +03:00
dev 93405f69ce cli: add safe owning deque standard module
Embed std.deque with eleven generic operations implemented entirely in
safe Aji over initialized Option<T> buffer slots. Bounded pushes and
moving pops work at both ends; full pushes, out-of-bounds replacements
and nonempty free return ownership to the caller. Explicit reserve
preserves order and all state on allocation failure, charges the old
and new slot capacities at the allocation peak, and rotates whole
values after successful growth. No AIR, verifier or runtime change.

Specify the visible representation invariant, tag-inclusive allocation
accounting and empty-only cleanup. Add RFC 0025, a runnable owning
example, source/CLI conformance and CI coverage. Complete STD-6c;
HashMap, HashSet and BinaryHeap remain STD-6d.

Validation: unit tests and 785 full conformance cases; 28 deque fixtures;
focused collection after every instruction and 12 schedule seeds over
four quanta; 136 source/package/hosted CLI checks; an independent Python
deque oracle for 128 operations and 71 small growth configurations;
93/93 source coverage; Zig formatting, staged whitespace and bundles.

Reference cost: full source excluding AIR grows 52,384 -> 53,993 cl100k
tokens (+3.1%); Quick Reference 7,667 -> 7,747 (+1.0%). AIR stays at
175,736 bytes. Construction/growth still incur interpreter prefix-copy
overhead; no native performance or empirical MCC benefit is claimed.
2026-10-07 00:08:42 +03:00
dev 4138a52af6 cli: add initialized buffers and safe owning vectors
Introduce linear_buffers through the specification, AIR parser/serializer,
verifier, deterministic interpreter and source lowering. A buffer owns an
initialized prefix with explicit reserve, bounded push, moving pop/views and
recoverable empty-only free. Growth charges old+new capacity; failed growth,
full push and nonempty free preserve or return complete ownership.

Implement compiler-pinned safe std.vec with nine operations for Copy values,
owners, files and channel endpoints. Permit complete Copy moves inside
specialized generic bodies without weakening monomorphic or borrow rules.
Update RFC 0024, Q-036, STD-6a/b, reference grammar, Quick Reference, bundles,
source coverage and CI. Remaining collections stay STD-6c.

Validation: unit tests and AIR round-trip; 757 conformance cases; 56 dedicated
buffer cases with per-instruction collection and 32-seed schedule stress;
extended memory test; hosted smoke; 36 module, 20 generic, 49 linear and
118 buffer CLI checks; 91/91 source constructs; Zig fmt and reference bundles.
Full source bundle: 49,589 -> 52,384 cl100k tokens (+5.6%); AIR 175,736 bytes.
The reference interpreter's push copies its initialized prefix; no native
performance or empirical MCC benefit is claimed.
2026-10-06 23:26:41 +03:00