Add Epiphany runtime links
This commit is contained in:
parent
d9a63883cb
commit
7eba3e6d6d
5 changed files with 130 additions and 0 deletions
|
|
@ -5207,6 +5207,7 @@ impl CodexMessageProcessor {
|
|||
investigation_checkpoint: patch.investigation_checkpoint,
|
||||
job_bindings: patch.job_bindings,
|
||||
acceptance_receipts: patch.acceptance_receipts,
|
||||
runtime_links: patch.runtime_links,
|
||||
observations: patch.observations,
|
||||
evidence: patch.evidence,
|
||||
churn: patch.churn,
|
||||
|
|
@ -6567,6 +6568,7 @@ impl CodexMessageProcessor {
|
|||
investigation_checkpoint: patch.investigation_checkpoint,
|
||||
job_bindings: patch.job_bindings,
|
||||
acceptance_receipts: patch.acceptance_receipts,
|
||||
runtime_links: patch.runtime_links,
|
||||
observations: patch.observations,
|
||||
evidence,
|
||||
churn: patch.churn,
|
||||
|
|
@ -6658,6 +6660,7 @@ impl CodexMessageProcessor {
|
|||
investigation_checkpoint: patch.investigation_checkpoint,
|
||||
job_bindings: patch.job_bindings,
|
||||
acceptance_receipts: patch.acceptance_receipts,
|
||||
runtime_links: patch.runtime_links,
|
||||
observations: patch.observations,
|
||||
evidence: patch.evidence,
|
||||
churn: patch.churn,
|
||||
|
|
@ -15691,6 +15694,12 @@ fn imagination_role_accept_patch_errors(patch: &ThreadEpiphanyUpdatePatch) -> Ve
|
|||
"acceptance receipt changes are owned by roleAccept, not worker statePatch".to_string(),
|
||||
);
|
||||
}
|
||||
if !patch.runtime_links.is_empty() {
|
||||
errors.push(
|
||||
"runtime link changes are owned by launch/read-back surfaces, not worker statePatch"
|
||||
.to_string(),
|
||||
);
|
||||
}
|
||||
if patch.churn.is_some() || patch.mode.is_some() {
|
||||
errors.push(
|
||||
"churn or mode changes are not allowed through imagination role acceptance".to_string(),
|
||||
|
|
@ -15753,6 +15762,12 @@ fn modeling_role_accept_patch_errors(patch: &ThreadEpiphanyUpdatePatch) -> Vec<S
|
|||
"acceptance receipt changes are owned by roleAccept, not worker statePatch".to_string(),
|
||||
);
|
||||
}
|
||||
if !patch.runtime_links.is_empty() {
|
||||
errors.push(
|
||||
"runtime link changes are owned by launch/read-back surfaces, not worker statePatch"
|
||||
.to_string(),
|
||||
);
|
||||
}
|
||||
if patch.planning.is_some() {
|
||||
errors
|
||||
.push("planning changes are not allowed through modeling role acceptance".to_string());
|
||||
|
|
@ -17956,6 +17971,7 @@ fn thread_epiphany_patch_has_state_replacements(patch: &ThreadEpiphanyUpdatePatc
|
|||
|| patch.investigation_checkpoint.is_some()
|
||||
|| patch.job_bindings.is_some()
|
||||
|| !patch.acceptance_receipts.is_empty()
|
||||
|| !patch.runtime_links.is_empty()
|
||||
|| patch.churn.is_some()
|
||||
|| patch.mode.is_some()
|
||||
|| patch.planning.is_some()
|
||||
|
|
@ -18064,6 +18080,9 @@ fn epiphany_update_patch_changed_fields(
|
|||
if !patch.acceptance_receipts.is_empty() {
|
||||
fields.push(ThreadEpiphanyStateUpdatedField::AcceptanceReceipts);
|
||||
}
|
||||
if !patch.runtime_links.is_empty() {
|
||||
fields.push(ThreadEpiphanyStateUpdatedField::RuntimeLinks);
|
||||
}
|
||||
if !patch.observations.is_empty() {
|
||||
fields.push(ThreadEpiphanyStateUpdatedField::Observations);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue