Skip to content

Add policy result types and diagnostic metadata plumbing#38515

Draft
dsa0x wants to merge 2 commits intopolicy-pr1-foundationfrom
policy-pr2-results-diags
Draft

Add policy result types and diagnostic metadata plumbing#38515
dsa0x wants to merge 2 commits intopolicy-pr1-foundationfrom
policy-pr2-results-diags

Conversation

@dsa0x
Copy link
Copy Markdown
Member

@dsa0x dsa0x commented May 4, 2026

This is part of a stacked series to upstream the policy work in smaller, reviewable pieces:

This PR adds the shared Terraform-side types needed to carry policy evaluation results through planning and execution, along with the diagnostic plumbing needed to preserve policy metadata and source context.

Included here

  • plans.PolicyResults
  • plan-side storage for policy results
  • tfdiags support needed for policy diagnostics and metadata

Target Release

1.16.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant