fix: resolve runnables and run-as identities consistently across tasks, deploys and triggers (#12744)

* fix: run workflow tasks at the version their parent job runs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: resolve a script path to its deployed version whoever asks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: keep deploy schedule updates to schedules that run the deployed path

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: run only app script rows the deployed app version names

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: read a preprocessed flow's tag from its own workspace

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: keep a perpetual run on its version when a deploy drops its named identity

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: re-push resumed suspended trigger jobs as the trigger's identity

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: keep a schedule's or trigger's identity when the AI tools edit it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: state the authorization a script payload helper expects of its callers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-11-29 12:43:49 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 3ee0d889ef
commit 8fac722b8e
18 changed files with 307 additions and 128 deletions
+1 -1
View File
@@ -2674,7 +2674,7 @@ async fn create_script_internal<'c>(
.await?;
let schedule = sqlx::query_as::<_, Schedule>(
"UPDATE schedule SET path = $1, script_path = $1 WHERE path = $2 AND workspace_id = $3 AND is_flow IS false RETURNING *")
"UPDATE schedule SET path = $1, script_path = $1 WHERE path = $2 AND script_path = $2 AND workspace_id = $3 AND is_flow IS false RETURNING *")
.bind(&ns.path)
.bind(&p_path)
.bind(&w_id)