fix: emit FlowStartedEvent when a boundary hook aborts the flow (#6953)

* fix: emit FlowStartedEvent when a boundary hook aborts the flow

A HookAborted at EXECUTION_START or INPUT propagated before
`FlowStartedEvent` was emitted, so a policy deny left logs but no
record of the execution. On abort, stamp the state id and open the
flow scope before re-raising: the deny surfaces as a started -> failed
execution while normal runs keep the existing ordering — the started
event carries hook-resolved inputs and `id` rewrites keep redirecting
persistence restoration.

* docs: translate execution-boundary-hooks page to ar, ko, and pt-BR

The English page updated on this branch had never been localized.
Translate it into the three supported locales following
`DOCS_TRANSLATIONS.md` and register the page in each locale's
navigation in `docs/docs.json`. Untranslated link targets (the
step-hooks page and the aborting-an-operation anchor) are omitted
rather than pointed at English, matching the locale navigation
convention.
This commit is contained in:
Lucas Gomide
2026-08-11 15:54:27 -03:00
committed by GitHub
parent 6c19669d63
commit 65a4b7cede
8 changed files with 997 additions and 83 deletions

View File

@@ -12394,7 +12394,8 @@
"edge/pt-BR/learn/using-annotations",
"edge/pt-BR/learn/execution-hooks",
"edge/pt-BR/learn/llm-hooks",
"edge/pt-BR/learn/tool-hooks"
"edge/pt-BR/learn/tool-hooks",
"edge/pt-BR/learn/execution-boundary-hooks"
]
},
{
@@ -23684,7 +23685,8 @@
"edge/ko/learn/using-annotations",
"edge/ko/learn/execution-hooks",
"edge/ko/learn/llm-hooks",
"edge/ko/learn/tool-hooks"
"edge/ko/learn/tool-hooks",
"edge/ko/learn/execution-boundary-hooks"
]
},
{
@@ -35346,7 +35348,8 @@
"edge/ar/learn/using-annotations",
"edge/ar/learn/execution-hooks",
"edge/ar/learn/llm-hooks",
"edge/ar/learn/tool-hooks"
"edge/ar/learn/tool-hooks",
"edge/ar/learn/execution-boundary-hooks"
]
},
{