Separate feedback identity and approval
This commit is contained in:
parent
6c400def70
commit
0dda73604d
10 changed files with 35 additions and 11 deletions
|
|
@ -212,7 +212,7 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
require_text(&brief_text, "status = \"draft\"")?;
|
||||
require_text(&brief_text, "converged = false")?;
|
||||
require_text(&brief_text, "conflicts_remaining = true")?;
|
||||
require_text(&brief_text, "requires_human_or_persona_review = true")?;
|
||||
require_text(&brief_text, "requires_additional_public_feedback = true")?;
|
||||
require_text(
|
||||
&brief_text,
|
||||
"recommended_next_safe_family = \"repo.task_card\"",
|
||||
|
|
|
|||
|
|
@ -247,7 +247,8 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
"aftercare_audit = \"gamecult.idunn.deployment_aftercare_audit.v0\"",
|
||||
)?;
|
||||
require_text(&request_text, "requires_deployment_script_ref = true")?;
|
||||
require_text(&request_text, "requires_script_hash_or_review_ref = true")?;
|
||||
require_text(&request_text, "requires_script_hash = true")?;
|
||||
require_text(&request_text, "requires_script_review_ref = true")?;
|
||||
require_text(&request_text, "requires_host_access_policy_ref = true")?;
|
||||
require_text(&request_text, "requires_secret_policy_ref = true")?;
|
||||
require_text(&request_text, "requires_rollback_plan = true")?;
|
||||
|
|
|
|||
|
|
@ -3086,7 +3086,7 @@ fn derive_repo_consensus_brief_plan(
|
|||
"status = \"draft\"".to_string(),
|
||||
"converged = false".to_string(),
|
||||
"conflicts_remaining = true".to_string(),
|
||||
"requires_human_or_persona_review = true".to_string(),
|
||||
"requires_additional_public_feedback = true".to_string(),
|
||||
format!(
|
||||
"recommended_next_safe_family = {}",
|
||||
toml_basic_string(recommended_family)
|
||||
|
|
@ -5588,7 +5588,8 @@ fn derive_repo_deployment_request_plan(
|
|||
"requires_target_environment = true".to_string(),
|
||||
"requires_git_ref_or_branch = true".to_string(),
|
||||
"requires_deployment_script_ref = true".to_string(),
|
||||
"requires_script_hash_or_review_ref = true".to_string(),
|
||||
"requires_script_hash = true".to_string(),
|
||||
"requires_script_review_ref = true".to_string(),
|
||||
"requires_host_access_policy_ref = true".to_string(),
|
||||
"requires_secret_policy_ref = true".to_string(),
|
||||
"requires_rollback_plan = true".to_string(),
|
||||
|
|
@ -13750,7 +13751,8 @@ aftercare_audit = "gamecult.idunn.deployment_aftercare_audit.v0"
|
|||
requires_target_environment = true
|
||||
requires_git_ref_or_branch = true
|
||||
requires_deployment_script_ref = true
|
||||
requires_script_hash_or_review_ref = true
|
||||
requires_script_hash = true
|
||||
requires_script_review_ref = true
|
||||
requires_host_access_policy_ref = true
|
||||
requires_secret_policy_ref = true
|
||||
requires_rollback_plan = true
|
||||
|
|
|
|||
|
|
@ -481,7 +481,8 @@ pub(super) struct RepoDeploymentRequestPacket {
|
|||
pub(super) requires_target_environment: bool,
|
||||
pub(super) requires_git_ref_or_branch: bool,
|
||||
pub(super) requires_deployment_script_ref: bool,
|
||||
pub(super) requires_script_hash_or_review_ref: bool,
|
||||
pub(super) requires_script_hash: bool,
|
||||
pub(super) requires_script_review_ref: bool,
|
||||
pub(super) requires_host_access_policy_ref: bool,
|
||||
pub(super) requires_secret_policy_ref: bool,
|
||||
pub(super) requires_rollback_plan: bool,
|
||||
|
|
@ -548,7 +549,8 @@ impl RepoDeploymentRequest {
|
|||
value.requires_target_environment
|
||||
&& value.requires_git_ref_or_branch
|
||||
&& value.requires_deployment_script_ref
|
||||
&& value.requires_script_hash_or_review_ref
|
||||
&& value.requires_script_hash
|
||||
&& value.requires_script_review_ref
|
||||
&& value.requires_host_access_policy_ref
|
||||
&& value.requires_secret_policy_ref
|
||||
&& value.requires_rollback_plan
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ impl RepoConsensusBrief {
|
|||
self.consensus.status == "draft"
|
||||
&& !self.consensus.converged
|
||||
&& self.consensus.conflicts_remaining
|
||||
&& self.consensus.requires_human_or_persona_review
|
||||
&& self.consensus.requires_additional_public_feedback
|
||||
}
|
||||
pub(super) fn has_imagination_route(&self) -> bool {
|
||||
let i = &self.imagination;
|
||||
|
|
@ -59,7 +59,7 @@ struct RepoConsensusState {
|
|||
status: String,
|
||||
converged: bool,
|
||||
conflicts_remaining: bool,
|
||||
requires_human_or_persona_review: bool,
|
||||
requires_additional_public_feedback: bool,
|
||||
}
|
||||
#[derive(Debug, Deserialize)]
|
||||
struct RepoConsensusImagination {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ private_state_exposed = false
|
|||
status = "draft"
|
||||
converged = false
|
||||
conflicts_remaining = true
|
||||
requires_human_or_persona_review = true
|
||||
requires_additional_public_feedback = true
|
||||
[imagination]
|
||||
role = "consensus-discovery"
|
||||
candidate_actions_non_authoritative = true
|
||||
|
|
|
|||
Reference in a new issue