Skip to content

Commit 5a0fa0a

Browse files
afflomclaude
andcommitted
ADR-060: source-polymorphic value carrier — complete reconciliation (0.5.0)
Replace the contrived fixed 4096-byte TermValue ceiling and DefaultHostBounds with the source-polymorphic TermValue<'a, INLINE_BYTES> carrier (Inline / Borrowed / Stream) + ChunkSource, enabling allocation-free streaming of arbitrarily large payloads. The inline carrier width is derived per application from its HostBounds via carrier_inline_bytes::<B>(). Foundation + SDK: - Remove DefaultHostBounds and the 12 byte-width-cap HostBounds consts (TERM_VALUE_MAX_BYTES, ROUTE_*_BUFFER_BYTES, AXIS_OUTPUT_BYTES_CEILING, the 8 psi-stage *_OUTPUT_BYTES_MAX). HostBounds is now 14 consts. - TermValue struct -> enum<'a, INLINE_BYTES>; add ChunkSource trait, carrier_inline_bytes + the descriptor consts (HASHER_IDENTIFIER_BYTES, SITE/CONSTRAINT/BETTI descriptor, PSI_STAGE_HEADER_BYTES). - Thread <'a, const INLINE_BYTES> through Term, TermArena, Grounded, CompileUnit, PrismModel, FoundationClosed, the eight resolver traits + Has* markers, run/run_const/run_route + every driver, and all SDK macros (prism_model!/verb!/axis!/resolver!). - alloc-gated TermValue::to_vec(); principal path stays alloc-free. Consumers + verification: - Add ReferenceHostBounds + REFERENCE_INLINE_BYTES to test-helpers. - Migrate smoke.rs, 27 foundation integration tests, 9 examples, consumer-smoke off DefaultHostBounds. - New behavior_adr_060_arbitrary_scaling.rs: folds an 8 MiB ChunkSource stream through the hasher with bounded resident memory, proving lossless scaling with no cap. Conformance + docs: - Update public-api snapshots, endpoint_coverage.toml, and the phantom_tag/driver_shape/driver_must_use/bridge_namespace/ pipeline_run_threads_input validators for the new signatures. - Refresh codegen doc examples (no DefaultHostBounds links; concrete INLINE_BYTES). Conformance: 546 pass / 0 fail. Bump workspace to 0.5.0 (breaking). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent d82d19d commit 5a0fa0a

58 files changed

Lines changed: 1243 additions & 699 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ members = [
1818
resolver = "2"
1919

2020
[workspace.package]
21-
version = "0.4.15"
21+
version = "0.5.0"
2222
edition = "2021"
2323
rust-version = "1.83"
2424
license = "Apache-2.0"
@@ -30,7 +30,7 @@ authors = ["The UOR Foundation"]
3030
# v0.2.2 T4.1 (cleanup): uor-foundation is published to crates.io; the
3131
# verify crate must reference it by version + path so cargo publish
3232
# accepts the manifest (path-only deps are rejected for published crates).
33-
uor-foundation = { version = "0.4.0", path = "foundation" }
33+
uor-foundation = { version = "0.5.0", path = "foundation" }
3434

3535
# Serialization
3636
serde = { version = "1", features = ["derive"] }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ structure based on Z/(2^n)Z.
99

1010
## Ontology
1111

12-
Version 0.4.15: 34 namespaces · 474 classes · 948 properties · 3601 named individuals
12+
Version 0.5.0: 34 namespaces · 474 classes · 948 properties · 3601 named individuals
1313

1414
All terms are encoded as typed Rust data in `spec/` (`uor-ontology`) and exported as:
1515
- `foundation/` (`uor-foundation`) — typed Rust traits (published to crates.io)

0 commit comments

Comments
 (0)