Skip to content

Preserve workflow context for admitted LLM tool writes - #580

Merged
witbrock merged 1 commit into
mainfrom
fix/workflow-llm-write-context
Sep 8, 2026
Merged

Preserve workflow context for admitted LLM tool writes#580
witbrock merged 1 commit into
mainfrom
fix/workflow-llm-write-context

Conversation

@witbrock

@witbrock witbrock commented Sep 8, 2026

Copy link
Copy Markdown
Member

Durable LLM steps lost their workflow and state metadata when constructing the internal tool loop. Ontology writes consequently arrived as unlabelled agent effects and failed with ontology_agent_delegation_required, despite being admitted by the workflow mutation ceiling.

Preserve the trusted workflow context and use the existing workflow ontology invocation binder after tool admission. Each LLM tool call gets a distinct effect identifier. Canonical live actor/target/scope checks and denied-write gates remain in force.

Validation: 164 targeted workflow and ontology-authority tests passed, including metadata propagation, distinct effect IDs, denied-call non-execution, cross-context authority checks and reserved-governance checks. One unrelated pre-existing advisory-versus-hard-timeout fixture was deselected. Real slideshow workflow replay follows activation.

@witbrock
witbrock merged commit 89a6ad5 into main Sep 8, 2026
2 checks passed
@witbrock
witbrock deleted the fix/workflow-llm-write-context branch September 8, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant