docs: design notes for build-flag capture at release, verify at patch - #3701
Closed
eseidel wants to merge 2 commits into
Closed
docs: design notes for build-flag capture at release, verify at patch#3701eseidel wants to merge 2 commits into
eseidel wants to merge 2 commits into
Conversation
… not to hash - Scope is specifically flags that affect the AOT snapshot (VM data / instructions sections). Build-name, build-number, flavor, tree-shake-icons, split-per-abi, export-method don't — remove them from the captured set. Build-name/number are separately auto-applied via buildNameAndNumberArgsFromReleaseVersion. - Verified experimentally: dart-define keys are stripped from the AOT binary only when used in a const context. In a non-const context the key literal survives. Updated doc to reflect this honestly. - Add the practical argument against hashing paths: path hashes change with the build machine, so they'd generate pure noise rather than useful equality signal. Record presence for paths; record plaintext for values we can safely disclose.
Contributor
Author
|
This should turn into a PRD first. Closing for now. |
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.
From Claude:
Draft — seeking design review before I write the implementation.
Design doc at
NOTES_ON_FLAG_CAPTURE.md.What this proposes
Record the set of flags used at `shorebird release` time that affect the AOT snapshot, so `shorebird patch` can:
Follows on from #3695 (incident), #3698 (obfuscate-after-`--` drop), #3699 (CLI-side hint), #3700 (this issue).
What I want review on before implementing
Plan after review
Test plan