feat(runtime): add governance-aware runtime bundle preparation#37
feat(runtime): add governance-aware runtime bundle preparation#37
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e35f8c315c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const allowedActions = uniqueStrings([ | ||
| ...(explicit?.allowedActions ?? []), | ||
| ...(explicit?.allowedActions ? [] : inferredActions), | ||
| inferredActions.length === 0 ? "update-copy" : undefined, | ||
| ]); |
There was a problem hiding this comment.
Respect explicit mutation action allowlists
When a surface defines runtime.mutationEnvelope.allowedActions explicitly, this builder still appends "update-copy" whenever no section-level inferred actions exist. That broadens the contract’s declared mutation envelope (e.g., a surface that intended to allow only swap-variant will also permit copy updates in both generation.adaptation and runtime.mutationEnvelope), which can cause runtime/generation adapters to authorize changes that governance metadata did not allow.
Useful? React with 👍 / 👎.
Summary
runtime.jsonbundle fromcompileprepare-generationand newprepare-runtimeValidation