Repository navigation
docs: design the D4 metadata sidecar - #14
Merged
Merged
Conversation
Records the contract before any code: a new write_ex entry carries the sample format (old write() stays byte-identical for HAL), sidecars are per .pcm file, written once at open and finalized at every close, and the feature is off by default so Android HAL behaviour is unchanged. Covers failure modes, JSON escaping, the LRU interaction that forces the hook into file_mgr, and a nine-case test plan.
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.
D4 的设计草案,先定契约再写码。
核心决定:
文档里包含对 Android HAL 的影响逐项核对表、JSON schema 与转义规则、失败矩阵、S-01~S-09 测试计划,以及 D4-A/B/C 三步拆分(A 可独立合入、行为等价)。
有两个待确认项写在最后:key 非 UTF-8 时是否改 base64;开关是否允许运行时切换。