Release 1.4.1: fix missing tf_policy_checked/tf_policy_override RunStatus values - #199
Merged
Conversation
…values atlas introduced these two run statuses alongside tf-policy (the analogues of the pre-existing policy_checked/policy_override statuses for the Sentinel/OPA flow), but RunStatus never picked them up. A run paused awaiting a tf-policy override decision reports status: "tf_policy_override" on the wire, and client.runs.read()/.list() raised a pydantic validation error instead of returning the run. Found via live testing of the hashicorp.terraform Ansible collection's new tf-policy modules against a real run that reached this status - no mocked unit fixture had exercised it before. Bumps to 1.4.1.
iam404
approved these changes
Aug 21, 2026
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.
Summary
RunStatuswas missingtf_policy_checkedandtf_policy_override— the tf-policy analogues of the pre-existingpolicy_checked/policy_overridestatuses. Atlas transitions a run totf_policy_overridewhen its plan-stage tf-policy evaluation pauses awaiting an override decision (run.rb:transitions from: :planned, to: :tf_policy_override).client.runs.read()/.list()raised a pydanticValidationErrorinstead of returning the run, the moment a run's wire status becametf_policy_override.Runs_attributes_statustype is Kiota-generated from the OpenAPI spec, which already documents both values as public-beta. pytfe'sRunStatusis hand-maintained and simply missed the addition.hashicorp.terraformAnsible collection's new tf-policy modules (tf_policy_evaluation_info,tf_policy_evaluation) against a real HCP Terraform run that reached this status — no mocked unit fixture had exercised it before.pytfeto 1.4.1.Test plan
TestRunStatusTfPolicy) confirming both statuses parse correctly on theRunmodel.pytest tests/units— 1179 passed.make lint(ruff + mypy) — clean.tf_policy_overrideonprab-sandbox02now parses correctly with this fix installed, where it previously raised.