1.8 KiB
G8 Local Document Pipeline Design
Date: 2026-04-18 Status: Initial implementation slice
Goal
Define G8 抓取落库分析出文档型 as a separate family so local storage, SQL analysis, and document-generation scenes no longer fall back into G1, G1-E, G6, or G3.
The first implementation slice is classification and fail-closed safety only.
Family Definition
G8 covers scenes where page/browser data capture is only the front half of the workflow. The business result depends on a downstream local pipeline:
- local service persistence or
selectData - SQL analysis such as
definedSqlQuery - document generation such as
docExport - optional host bridge actions
- optional
localhost:*dependencies
P0 Boundary Sample
95598供电服务月报
Repo-local representative:
tests/fixtures/generated_scene/g8_local_doc_pipeline
Contract Policy
The first slice intentionally blocks runnable generation until a real G8 local document pipeline contract exists.
The initial system must:
- classify as
local_doc_pipeline - preserve local pipeline evidence
- avoid fallback to
page_state_eval - avoid fallback to
host_bridge_workflow - avoid fallback to
single_request_table - fail closed with a stable blocker
Priority Rule
When both host bridge and local document pipeline signals exist, G8 wins over G6.
Reason: G6 is about host-bridge-driven query progression; G8 is about the downstream local storage, SQL, and document production chain.
Acceptance Criteria
- representative fixture classifies as
local_doc_pipeline - local pipeline actions include
definedSqlQuery - local pipeline actions include
docExport - local pipeline actions include
selectData - generation fails closed
- existing
G1-E,G3,G6,G7, andG2regressions remain green