-
Notifications
You must be signed in to change notification settings - Fork 14
[Root] Frontstage 代码区块浏览器运行时编排与加载体验 #1382
Copy link
Copy link
Open
6 / 66 of 6 issues completedLabels
area:apiPublic API or protocol contract workPublic API or protocol contract workarea:backendBackend API, service, repository, or runtime workBackend API, service, repository, or runtime workarea:frontendFrontend UI or interaction workFrontend UI or interaction workarea:runtimeRuntime and execution behaviorRuntime and execution behaviorcontractContract or API semantics changeContract or API semantics changegrade:g4Architecture or data risk workArchitecture or data risk workneeds-backendNeeds backend workNeeds backend workneeds-frontendNeeds frontend workNeeds frontend workneeds-qaNeeds QA or acceptance validationNeeds QA or acceptance validationparent-issueParent tracking issueParent tracking issueperformancePerformance-sensitive behavior or verificationPerformance-sensitive behavior or verificationphase:user-acceptanceWaiting for user acceptanceWaiting for user acceptanceplan:treeLong plan with one Root and vertical Delivery issuesLong plan with one Root and vertical Delivery issuesrisk:highHigh risk if implemented incorrectlyHigh risk if implemented incorrectlysize:lLarge implementation and review sizeLarge implementation and review sizetype:featureFeature or new capabilityFeature or new capability
Description
Metadata
Metadata
Assignees
Labels
area:apiPublic API or protocol contract workPublic API or protocol contract workarea:backendBackend API, service, repository, or runtime workBackend API, service, repository, or runtime workarea:frontendFrontend UI or interaction workFrontend UI or interaction workarea:runtimeRuntime and execution behaviorRuntime and execution behaviorcontractContract or API semantics changeContract or API semantics changegrade:g4Architecture or data risk workArchitecture or data risk workneeds-backendNeeds backend workNeeds backend workneeds-frontendNeeds frontend workNeeds frontend workneeds-qaNeeds QA or acceptance validationNeeds QA or acceptance validationparent-issueParent tracking issueParent tracking issueperformancePerformance-sensitive behavior or verificationPerformance-sensitive behavior or verificationphase:user-acceptanceWaiting for user acceptanceWaiting for user acceptanceplan:treeLong plan with one Root and vertical Delivery issuesLong plan with one Root and vertical Delivery issuesrisk:highHigh risk if implemented incorrectlyHigh risk if implemented incorrectlysize:lLarge implementation and review sizeLarge implementation and review sizetype:featureFeature or new capabilityFeature or new capability
Type
Fields
No fields configured for issues without a type.
Issue 元数据
grade:g4hybrid-foundationplan:tree、parent-issue、grade:g4、phase:implementation、area:runtime、area:frontend、area:backend、area:api、contract、risk:high77fa65a4d已进入origin/beta@b201cfca4;新 Packet 已获准启动最终结果
Frontstage 代码区块继续在浏览器 Worker 中编译并受限执行,同时用同一份源码身份消除无意义重复工作:
这里缓存的是两个不同阶段:
BlockModule.main(ctx)。动态数据永远在本次 Worker 运行时重新获取。compile = 0指平台 transform 被跳过;浏览器 JavaScript 引擎仍可能解析/JIT 转换后程序,不承诺引擎字节码复用。现状、证据与关键决策
已集成基线
init → ready → run生命周期、预算与阶段失败语义。5796a2a7b9527428b5af602daa09a8d6457ede60已集中 QA 通过并合入beta@61ed1ef5b;证据见 [Root] Frontstage 代码区块浏览器运行时编排与加载体验 #1382 评论。api/apps/api-server/src/routes/frontstage/mod.rs,API Client 位于web/packages/api-client/src/console/frontstage.ts。CompiledBlockArtifactcontract、runtime_fingerprint或 IndexedDB artifact cache。source_sha256;页面返回 snapshot 仍沿用后台 revalidate/TTL 内容有效性语义。2026-07-22 Superseding Delta
source_sha256contract,但不新增数据库列;持久化源码仍是唯一真值。总范围、权限与非目标
范围内
source_sha256;DTO/API Client 字段保持同名。BlockResult为值,以区块实例、runtime_fingerprint、source_sha256与显式dependency_generation为身份。actor/workspace namespace + runtime_fingerprint + source_sha256持久化可序列化CompiledBlockArtifact。source_fetch / worker_boot / compile / api_wait / main / schema_validate / present,区分 L1 hit、L2 hit 与 miss。已授权动作
web/packages/page-runtime、Frontstage runtime/cache/auth 最近边界与测试。origin/beta@b201cfca4创建隔离 assembly;主工作树现有 JSX Studio 未提交修改不得作为输入。非目标
BlockResult、context、outputs、logs、effects、interface calls、Signal 值或用户运行状态。load/render/loading/StaticBlockModulecontract。Root 验收点账本
已集成回归与被取代语义
本次增量
source_sha256;持久化字节变化进入新身份main()0main()重新执行Delivery Map
beta@61ed1ef5bbeta@61ed1ef5bbetaa6d76betaa6d76新增执行顺序固定:#1393 stable baseline → #1401(P8 → P9 → P10)→ #1402(P11 → P12 → P13)。既有 #1383~#1386 不 reopen、不重复实现。
Control Ledger
BlockModule.main(ctx);AC-017~024 已由 cycle 2 QA 全部结算 green;运行数据永不持久化;L1 同身份零执行,L2 只跳过平台 transform。beta@61ed1ef5b,旧 Root QA 已 PASS。origin/beta@b201cfca49adbcb0b1728ff2c4d398a5c83ba27e。77fa65a4d是 frozen input 的祖先;当前脏改仅位于 JSX Studio codegen/UI,未进入 assembly。codex/issue-1382-content-cache-assembly@b201cfca4;worktree/home/taichuy/git/1flowbase_git_workspace/root-1382-content-cache。api/apps/api-server/src/routes/frontstage/mod.rs的 block-code GET/PUT;web/packages/api-client/src/console/frontstage.ts;source_sha256、runtime_fingerprint、内容寻址 L1 或 IndexedDB artifact cache;0fddbb5a3/ [Delivery] 权威源码身份与同会话内容寻址结果缓存 #1401:后端source_sha256+ API Client contract;owned block-code route/DTO/最近后端测试与 api-client frontstage contract/测试;AC-017。009f36908/ [Delivery] 权威源码身份与同会话内容寻址结果缓存 #1401:L1 内容寻址BlockResultcache,取消返回时 SWR/TTL 自动重跑;owned Frontstage runtime source/session/coordinator、PageCanvas/preview 最近边界与测试;AC-018~020。c2a1a0121/ [Delivery] 权威源码身份与同会话内容寻址结果缓存 #1401:auth/query namespace、logout cleanup、七阶段观测;owned auth-store 最近入口、cache provider/query integration、instrumentation 与测试;AC-020、024。70d177405+ identity correction6761a4e80/ [Delivery] 刷新后复用 CompiledBlockArtifact 并安全冷启动 #1402:可序列化CompiledBlockArtifact、runtime_fingerprint、Worker cached-execution protocol;owned page-runtime transform/evaluator、Worker contract/host/executor、公开类型与测试;AC-021、023~024。1cc7bcd49+ transaction correctiond94bc01a4/ [Delivery] 刷新后复用 CompiledBlockArtifact 并安全冷启动 #1402:actor/workspace IndexedDB namespace + byte-weighted LRU;owned Frontstage artifact persistence adapter、auth cleanup integration、fake IDB tests;AC-022~023。73f45c685+ fingerprint correctionc95965b0c+ QA fixc4ed23dbd/ [Delivery] 刷新后复用 CompiledBlockArtifact 并安全冷启动 #1402:L2 页面运行整合、恢复与性能 fixture;owned Frontstage runtime host/factory/session、browser fixtures 与 instrumentation;AC-021~024。0fddbb5a3(P8)、009f36908(P9)、c2a1a0121(P10)、70d177405+6761a4e80(P11)、1cc7bcd49+d94bc01a4(P12);P11 hash owner 与 P12 transaction completion review findings 均已修正;无冲突、73f45c685+c95965b0c+c4ed23dbd(P13/QA fix);无冲突;assembly re-frozen。tmp/test-governance/。packets=6、needs_split=0、assembly_conflicts=0、agent_contexts=4(Root + aborted Scout + D4 dev + D5 dev)、validation_runs=4、duplicate_evidence_runs=0、qa_cycles=2。c4ed23dbd841ff5ad6b9871ed58521f941649df6;QA PASS;protected baseline:betaa6d765c5bba5bfa8ee3565cc39c41e748364;下一可控结果:用户最终验收 Root。验证、回滚与资源边界
source_sha256是无数据库迁移的派生响应字段;L2 IndexedDB schema/namespace 可整库删除,不影响源码与用户数据。停止与重构条件
BlockModule.main(ctx)、Signal/interface ownership 或使当前 Packet owner/写集合失效。source_sha256无法由后端实际持久化源码派生,或必须新增数据库真值/migration。BlockResult或用户运行状态的前提下序列化执行。生命周期
phase:user-acceptance。c4ed23dbd841ff5ad6b9871ed58521f941649df6,等待新的唯一 fresh QA。