Repository navigation
feat!: infer record payloads and schema from typed keys (design 063) - #487
Merged
Merged
Conversation
…ntation details and acceptance criteria
- Updated the usage of record keys in various examples to utilize the new `aimdb_core::Name` type for better type safety and clarity. - Replaced string literals for record keys with `Name` instances in MQTT connector demos, HTTP server examples, and CLI tools. - Ensured consistency in the configuration of record keys across different modules, enhancing maintainability and reducing potential errors. - Adjusted tests to reflect the new key structure, ensuring all tests pass with the updated key handling.
4 of 5 tasks
The trybuild suite also runs without the observable feature (alloc,linkable-json,migratable), where ObservableRegistrarExt does not exist, so the contract-verbs case failed to resolve its import. Cover observe() with a compile_fail doctest on the method instead, which only builds when the feature is on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGkDJ9Sps6DnUDtpdbs6kD
4 of 5 tasks
The demos imported payload types only for the old configure::<T> turbofish; with typed keys they are unused and fail make examples under denied warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGkDJ9Sps6DnUDtpdbs6kD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implement design 063: record declarations bind a name to its payload type, so configuration, handles, direct reads/writes, transforms, joins and aimdb-sync infer the payload from the key.
Breaking API change: callers pass typed declarations instead of a separate record name and payload type. Runtime registration uses interned declarations; repeated lookups borrow names.
Related Issue
Implements design 063, building on the landed design 062 implementation.
Validation
Passed locally:
make buildandmake bench-gate: envelope paths remain allocation-free and migration performs one decode per value.The full local
make checkwas stopped during its test phase at the user's request; CI will complete the remaining validation.Checklist
make check) — awaiting CI.