Skip to content

Migrate WebFlow to global schema with getDynamicGrammar/getDynamicSchema#2086

Merged
hillary-mutisya merged 2 commits intomicrosoft:mainfrom
hillary-mutisya:authoring7
Mar 27, 2026
Merged

Migrate WebFlow to global schema with getDynamicGrammar/getDynamicSchema#2086
hillary-mutisya merged 2 commits intomicrosoft:mainfrom
hillary-mutisya:authoring7

Conversation

@hillary-mutisya
Copy link
Copy Markdown
Collaborator

Replace per-hostname dynamic agent registration with server-side grammar and schema generation, aligning WebFlow with ScriptFlow/TaskFlow patterns. WebFlow actions are now visible to LLM translation and discover_actions.

  • WebFlowStore: add parameter metadata and grammarRuleText to index, getDynamicGrammarText(), generateDynamicSchemaText(), findSimilar()
  • Browser agent: add getDynamicGrammar/getDynamicSchema callbacks, initialize and seed WebFlowStore on startup with race-condition-safe shared promise across parallel updateAction calls
  • WebFlowAgent (extension): remove per-site registerForHost and buildSchemaFromFlows; keep continuation support and flow caching
  • Script generation: include existing flows in LLM prompt for dedup awareness; filter noop recordings (<2 meaningful actions)
  • Recording prompt: add WebFlow section to learn: trigger with auto-detection of browser tasks
  • Browser grammar: fix 26 compilation errors (remove parameters: {} from parameterless actions, fix changeTabs -> changeTab)
  • Enable webFlows sub-schema by default (defaultEnabled: true)

Replace per-hostname dynamic agent registration with server-side grammar and schema generation, aligning WebFlow with ScriptFlow/TaskFlow patterns. WebFlow actions are now visible to LLM translation and discover_actions.

  - WebFlowStore: add parameter metadata and grammarRuleText to index, getDynamicGrammarText(), generateDynamicSchemaText(), findSimilar()
  - Browser agent: add getDynamicGrammar/getDynamicSchema callbacks, initialize and seed WebFlowStore on startup with race-condition-safe shared promise across parallel updateAction calls
  - WebFlowAgent (extension): remove per-site registerForHost and buildSchemaFromFlows; keep continuation support and flow caching
  - Script generation: include existing flows in LLM prompt for dedup awareness; filter noop recordings (<2 meaningful actions)
  - Recording prompt: add WebFlow section to learn: trigger with auto-detection of browser tasks
  - Browser grammar: fix 26 compilation errors (remove parameters: {} from parameterless actions, fix changeTabs -> changeTab)
  - Enable webFlows sub-schema by default (defaultEnabled: true)
@hillary-mutisya hillary-mutisya added this pull request to the merge queue Mar 27, 2026
Merged via the queue into microsoft:main with commit d2170f4 Mar 27, 2026
13 of 15 checks passed
@hillary-mutisya hillary-mutisya deleted the authoring7 branch March 27, 2026 12:44
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