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.
95 lines
4.1 KiB
Plaintext
95 lines
4.1 KiB
Plaintext
# Agent Reference Bundle manifest (spec 14 §3.7).
|
|
#
|
|
# The minimal material a model must receive to write correct AIR without the
|
|
# rest of the repository. One entry per line:
|
|
# <path> the whole file
|
|
# <path> :: <heading prefix> one section: the heading that starts with the
|
|
# prefix and everything up to the next heading
|
|
# of the same or a higher level
|
|
# Order is the order of the bundle. Rationale (RFCs), plans, design history,
|
|
# README prose and benchmark descriptions are deliberately absent.
|
|
|
|
# Minimal syntax reference
|
|
docs/agent/syntax-example.air
|
|
|
|
# AIR text grammar and format rules
|
|
docs/reference/air-text.ebnf
|
|
docs/spec/07-air.md :: ## 8. Text AIR
|
|
|
|
# Instruction set, run results, canonical record
|
|
docs/spec/07a-air-instructions.md
|
|
|
|
# Types and integer semantics
|
|
docs/spec/02-types-and-values.md :: ## 2. Integer semantics
|
|
|
|
# Traps
|
|
docs/spec/01-language-overview.md :: ## 6. Trap
|
|
|
|
# Verifier: limits and accounted sizes, borrows, facts, initialization, stage order
|
|
docs/spec/08-verifier.md :: ## 7. Bounded analysis
|
|
docs/spec/08-verifier.md :: ## 11. Borrow verification
|
|
docs/spec/08-verifier.md :: ## 12. Bounds facts
|
|
docs/spec/08-verifier.md :: ## 13. Initialization
|
|
docs/spec/08-verifier.md :: ## 14. Stage order
|
|
|
|
# Tasks, loans, Send/Share, scheduler
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 33. Tasks in AIR
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 34. Lending borrows to tasks
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 35. Send and Share in AIR
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 36. The deterministic scheduler
|
|
|
|
# Waiting, cancellation, channels, select, mutex
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 37. Waiting and cancellation
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 38. Channels in AIR
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 39. `select` in AIR
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 40. Mutex in AIR
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 41. The critical-section rule
|
|
|
|
# Atomics: types, orderings, effects, mixing, instructions (the formal model of §20 is not included)
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 22. DRF-SC guarantee
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 23. Atomic types
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 24. Atomic ordering
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 25. Weak atomics
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 28. Mixing atomic and ordinary access
|
|
docs/spec/04-concurrency-and-atomics.md :: ## 42. Atomics in AIR
|
|
docs/spec/05-effects-and-capabilities.md :: ## 13. Atomic effects
|
|
|
|
# Effects, capabilities, intrinsics
|
|
docs/spec/05-effects-and-capabilities.md :: ## 9. Effects in AIR
|
|
docs/spec/05-effects-and-capabilities.md :: ## 10. Capabilities in AIR
|
|
docs/spec/05-effects-and-capabilities.md :: ## 11. Intrinsic calls
|
|
docs/spec/05-effects-and-capabilities.md :: ## 12. Runtime
|
|
|
|
# Resources and I/O errors
|
|
docs/spec/06-resources-and-errors.md :: ## 6. Resources in AIR
|
|
docs/spec/06-resources-and-errors.md :: ## 7. I/O errors
|
|
|
|
# Heap, regions, budgets
|
|
docs/spec/03-memory-model.md :: ## 18. Allocation authority in AIR
|
|
docs/spec/03-memory-model.md :: ## 19. Heap in AIR
|
|
docs/spec/03-memory-model.md :: ## 20. Regions in AIR
|
|
docs/spec/03-memory-model.md :: ## 22. Islands in AIR
|
|
docs/spec/03-memory-model.md :: ## 23. Frozen graphs in AIR
|
|
docs/spec/03-memory-model.md :: ## 24. Arc in AIR
|
|
|
|
# Unsafe boundaries
|
|
docs/spec/13-contracts-and-unsafe.md :: ## 6. Unsafe code in AIR
|
|
|
|
# Deterministic runtime contract: fuel, profiles, PRNG
|
|
docs/spec/11-determinism-and-replay.md :: ## 7. Execution limits
|
|
docs/spec/11-determinism-and-replay.md :: ## 8. Execution profiles
|
|
|
|
# Diagnostics format and registries
|
|
docs/spec/10-diagnostics-and-agent-protocol.md :: ## 2. Stable codes
|
|
docs/reference/error-codes.md
|
|
docs/reference/air-features.md
|
|
docs/reference/effects.md
|
|
docs/reference/capabilities.md
|
|
docs/reference/intrinsics.md
|
|
|
|
# Whole-value linear aggregates (STD-5)
|
|
docs/spec/03-memory-model.md :: ## 25. Linear aggregates in AIR
|
|
|
|
# Dynamic initialized storage (STD-6a)
|
|
docs/spec/03-memory-model.md :: ## 26. Dynamic initialized buffers
|