Repository navigation
test(interactive): G02 intent-to-JS product closed-loop evidence - #21
Conversation
Record a Grok-generated feature-review workflow, compile it with the official Standard and Interactive compilers, and replay success, gate-false, review-false, and scripted schema-retry paths. Agent payloads are M-level Grok-authored results bound to exact Pendings, except one labeled scripted invalid fixture. This does not claim native Host provenance or N-PASS.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 689e0bd. Configure here.
| const diagnostics = await check(workflowFile, compileOptions); | ||
| assert.equal(diagnostics.some(d => d.severity === 'error'), false, | ||
| JSON.stringify(diagnostics)); | ||
| }); |
There was a problem hiding this comment.
Golden compile check overwrites artifact
Medium Severity
The Standard golden assertion calls compile() first, which writes feature-review.compiled.mjs (and the mermaid file) in place, then hashes that same path and runs check() against it. The comparison therefore always matches the just-written output and cannot detect a stale checked-in artifact. The Interactive test avoids this by compiling with output: 'memory'.
Reviewed by Cursor Bugbot for commit 689e0bd. Configure here.
|
GitHub Actions 已在本 PR 的精确 HEAD 这只是仓库既有四矩阵 + website 回归,不是 N-PASS,也不是原生安全 Host 来源认证。G02 已停止,待 ChatGPT 独立复审,请勿合并,不要开始 G03。 |
Address ChatGPT G02 review findings R01 and R02 without changing Core, Program ABI, or Store Schema. Distinguish six grok-model result uses, five distinct authored bodies, and one rebound reuse. Rename the runner pendingPublished field to pendingAtEnd and record publishedPendingCount measured from each run's route.


范围
G02 产品闭环验证:真实用户意图 → 现有 Workflow DSL → 官方编译器生成可执行 JavaScript → Standard
run()与 Interactive P0-A Coordinator/Trusted Host 执行。本 PR 只增加示例、测试、夹具和证据文档,不修改 FlowKit Core / Standard Root API / Store schema / LICENSE,也没有第二套 DSL 解析器或模型网关。
Base:
main@7e5960fc570f0cd91a5ff8e9fe6029345932442f。不要重做 M1–M5,不要重复合并 #11 / #12 / #20。覆盖的路径
reviewApproved=true进入acceptedmaterialsReady=false时不发布 Pending,程序直接进入rejectedreviewApproved=false,程序进入rejectedsource=scripted-invalid)触发评审第 2 次 attempt,随后由 Grok 撰写合法结果分支由编译后的 JS Program(Standard
evalWhen/ Interactiveadvance())选择,模型结果不含next/toBlockId。证据分级(请勿升格)
flowkit compile/check/compileInteractive与 JS/SQLite 执行requestId/taskDigest的 Agent 正文与现有 Standard golden(
examples/editorial.workflow.js)的差异见docs/evidence/g02-intent-js-closed-loop-20261112/07-standard-golden-diff.md。G02 DSL 仅含 Condition / Agent / Terminal,因此可以进入 Interactive P0-A;不得把 editorial 的 Loop / Action / Human / Parallel 记为 Interactive 已实现。复现
Interactive Program Hash:
sha256:8d811766fd1d58456ce4e58cc2a2f04c4d1e36dd683f86496c2df946cb15eded审查门禁
请按精确 PR HEAD 跑 CI。本阶段结束后停在独立复审门禁,请勿合并,也不要开始 G03 / G01 / G04。用户将把报告与证据包交给 ChatGPT 做独立复审;如有修复要求,在本 PR 上迭代。
Note
Low Risk
Additive examples, fixtures, tests, and evidence docs only; runtime/compiler behavior is exercised but not modified.
Overview
Adds the G02 product closed-loop bundle: a Grok-generated
feature-review.workflow.js(Interactive P0-A only: Condition / Agent / Terminal), checked-in Standard and Interactive compile outputs, skills, Mermaid diagram, and maintainer replay scripts (run-standard.mjs,run-interactive.mjs).Introduces fixtures (
turns-success-retry.json,turns-review-false.json) with boundrequestId/taskDigest, Grok-authored bodies, one scripted-invalid review retry, and accounting metadata; plustests/interactive/g02-product-closed-loop.test.mjs(8 tests) that lock artifact hashes, exercise success / gate-false / review-false / retry on both layers, SQLite reopen recovery, and contrast with the editorial golden.Adds
docs/evidence/g02-intent-js-closed-loop-20261112/(generation inputs, CLI/execution logs, golden diff vs editorial,HASHES.sha256) and a short pointer inexamples/README.md. No FlowKit Core, API, or compiler source changes in this PR.Reviewed by Cursor Bugbot for commit 708d41a. Bugbot is set up for automated code reviews on this repo. Configure here.