Commit 5a0fa0a
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
File tree
- codegen/src
- conformance
- src/validators/rust
- examples/consumer-smoke/tests
- foundation
- examples
- src
- tests
- lean4
- UOR
- Individuals
- spec/src/namespaces
- uor-foundation-sdk
- src
- tests
- uor-foundation-test-helpers/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments