2.0 KiB
2.0 KiB
G6 Host Bridge Workflow Design
Date: 2026-04-18 Status: Initial implementation slice
Goal
Define G6 宿主桥接多步查询型 as a separate scene family so boundary samples no longer fall back into G1 or G1-E.
The initial implementation goal is classification and fail-closed safety, not runnable generation.
Family Definition
G6 covers scenes where the business workflow is primarily advanced by host-browser bridge actions instead of direct request contracts.
Minimum signals:
- explicit host bridge action such as
BrowserAction(...) - explicit browser script bridge such as
sgBrowserExcuteJsCode(...) - callback-driven request progression
- business endpoints nested behind the host callback chain
- optional
localhost:*dependency as host runtime evidence
P0 Boundary Sample
电能表现场检验完成率指标报表
Repo-local representative:
tests/fixtures/generated_scene/g6_host_bridge_workflow
Contract Policy
The first slice intentionally does not generate runnable skills for G6.
Instead, it must:
- classify the scene as
host_bridge_workflow - preserve host bridge actions as evidence
- preserve
localhost:*dependencies as host-runtime evidence - prevent fallback to
single_request_table - prevent fallback to
single_request_enrichment - fail closed with a stable blocker
Non-Goals
- no host transport redesign
- no callback runtime implementation
- no full browser bridge orchestration
- no broad
G7/G8expansion - no weakening of
G1-EorG3gates
Readiness Gates
The first slice adds these G6-specific gates:
g6_host_bridge_detectedg6_fail_closed
g6_fail_closed is expected to fail until a real G6 runtime contract exists.
Acceptance Criteria
G6fixture is classified ashost_bridge_workflow- generation fails closed instead of writing a pseudo-runnable skill
- ordinary localhost export noise does not get promoted to
G6 - existing
G1-E,G3,G2, and canonical tests remain green