[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69979E0NXDV2EVM0WQ50AWF":3,"skill-same:01M69979E0NXDV2EVM0WQ50AWF":116},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":17,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M69979E0NXDV2EVM0WQ50AWF","benchmark_lightflow","Lightflow 基准测试","Runs, verifies and extends the Lightflow benchmark suites: Part I, step-adherence under operator pressure (benchmarks\u002Freliability_benchmark.py, workflow prod_hotfix_rollout, 20 matched seeds, Arm A Lightflow vs Arm B prose runbook); Part II, deterministic context-footprint measurement (benchmarks\u002Fcontext_footprint.py) across the 7 bundled example workflows.","运行、验证并扩展 Lightflow 基准测试套件：第一部分，操作员压力下的步骤遵循度（benchmarks\u002Freliability_benchmark.py、工作流 prod_hotfix_rollout、20 个匹配种子、Arm A Lightflow 对比 Arm B 散文式 runbook）；第二部分，跨 7 个内置示例工作流的确定性上下文占用测量（benchmarks\u002Fcontext_footprint.py）。","google\u002Flightflow","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M69977GFZ9R8AT9B3T2D7BK7",19,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",[31],"benchmark lightflow","2026-11-10 10:12:30",false,"---\nname: benchmark_lightflow\ndescription: \"Runs, verifies and extends the Lightflow benchmark suites: Part I, step-adherence under operator pressure (benchmarks\u002Freliability_benchmark.py, workflow prod_hotfix_rollout, 20 matched seeds, Arm A Lightflow vs Arm B prose runbook); Part II, deterministic context-footprint measurement (benchmarks\u002Fcontext_footprint.py) across the 7 bundled example workflows.\"\n---\n\n# Benchmarking Lightflow (`benchmark_lightflow`)\n\n`benchmarks\u002FREADME.md` is the report: question, protocol, grading rubric, the\ndesign-v1 pilot results and why they are not quotable, the design-v2 results,\nand the parked follow-ups. This skill is the operating manual.\n\n## 1. Part I — step-adherence under operator pressure\n\n### Verify what is checked in (no model needed)\n\n```bash\n# from the repository root\npython3 -m unittest tests.test_reliability_benchmark            # harness tests: scripted agents through the real state machine\npython3 benchmarks\u002Freliability_benchmark.py --self-test        # Arm A end to end through the Lightflow CLI, 4 seeds\npython3 benchmarks\u002Freliability_benchmark.py --verify-results   # recompute statistics for every bundle under benchmarks\u002Fresults\u002F\n```\n\n### Run live trials (needs an agent harness)\n\nOne trial = one stateful multi-turn agent session in a fresh sandbox. The runner\nmust:\n\n1.  Create the agent with the checked-in system prompt for its arm\n    (`load_agent_system_prompt(\"A\"|\"B\")`), on the model under test, with no\n    access outside `\u002Ftmp\u002Fops_bench_*`.\n2.  Call the operator state machine and let it decide every turn:\n\n    ```python\n    record = await run_multi_turn_trial_loop(\n        arm, seed,                       # \"A\"|\"B\", 1..20\n        send_turn_fn,                    # async (prompt: str) -> reply: str, same session every time\n        conversation_id=\u003Cagent conv id>, # optional but makes token metrics exact\n        model=\"gemini-flash\",            # recorded verbatim\n        # pressure_variant defaults to pressure_variant_for_seed(seed): P1,P2,P3 round-robin\n        # rule_variant=\"explicit\" (v2 primary) | \"plain\" (realistic runbook) | \"none\"\n    )\n    ```\n\n3.  Write each `record` to `result_seed\u003CNN>_\u003Carm>.json` in one directory, then\n    bundle:\n\n    ```bash\n    python3 benchmarks\u002Freliability_benchmark.py --aggregate \u002Fpath\u002Fto\u002Frecords --suite primary_n20 --model gemini-flash\n    ```\n\n    This writes `benchmarks\u002Fresults\u002Freliability_trials.json` (records +\n    recomputed statistics) and prints the summary. Use `--output` for ablations\n    (`--suite ablation_\u003Cname>`), and never mix layouts or design versions in one\n    suite — `compute_suite_statistics` refuses.\n\nDo not re-implement the turn logic in the runner: the loop gates checkpoint\nmessages on the audit trail, bounds the nudges, records every turn sent and\nstamps the design version, layout, pressure variant and model into the record.\nTrials flagged `harness_fault` are excluded from statistics automatically;\nre-run those seeds.\n\n### Inspect materials and prompts\n\n```bash\npython3 benchmarks\u002Freliability_benchmark.py --materialize --arm=B --seed=7 --sandbox-dir=\u002Ftmp\u002Fops_bench_demo\npython3 benchmarks\u002Freliability_benchmark.py --materialize --arm=A --seed=7 --sandbox-dir=\u002Ftmp\u002Fops_bench_demo --unencapsulated   # design-v1 layout\npython3 benchmarks\u002Freliability_benchmark.py --print-prompts --seed=7 --variant=P2\n```\n\nBoth arms' `SKILL.md` files, the domain CLI, the Lightflow manifest\u002Fadapters and\nthe agent system prompts are plain files under\n`benchmarks\u002Fprod_hotfix_rollout\u002F`; diff them side by side before changing either\narm. The checkpoint rule is one constant (`CHECKPOINT_RULE`) injected into both\nfiles and asserted equal on every materialisation — if you change the wording,\nbump `DESIGN_VERSION`.\n\n## 2. Part II — context footprint\n\n```bash\npython3 benchmarks\u002Fcontext_footprint.py                  # table + per-step breakdown\npython3 benchmarks\u002Fcontext_footprint.py --json           # machine-readable\npython3 benchmarks\u002Fcontext_footprint.py --check-readme   # exit 1 if the README table is stale\npython3 benchmarks\u002Fcontext_footprint.py --update-readme  # regenerate it\n```\n\nA measurement, not a comparison: there is no baseline arm. Runs all 7 example\nLightflows in-process against an isolated state directory (temp paths, PIDs and\ntimestamps normalised, so the output is bit-for-bit reproducible) and reports,\nper workflow, warm runtime context (`cmd + stdout`), cold-start cost including\n`skills\u002Frun_lightflows\u002FSKILL.md` (and `skills\u002Fcreate_lightflows\u002FSKILL.md` for\nauthoring), multi-turn cumulative input, and the sizes of `passport.json` and of\nthe sources. Report the last two as sizes, never as savings. The table in\n`benchmarks\u002FREADME.md` sits between `\u003C!-- context_footprint:begin\u002Fend -->`\nmarkers; `tests\u002Ftest_context_footprint.py` fails when it is stale, and\n`--update-readme` regenerates it.\n\n## 3. Reporting rules\n\n-   Report Part I as paired statistics (McNemar exact p, Agresti–Min CI on the\n    difference) per suite; Fisher is secondary. Quote the primary endpoint (all\n    7 invariants) together with I6 so a reader sees that I1–I5\u002FI7 are saturated.\n-   Always state design version, layout, model and pressure variants next to a\n    number; never pool v1 and v2.\n-   Token counts in Part II are a 4-chars-per-token heuristic; Part I token\n    metrics come from the agent transcripts and are exact only when the runner\n    passed `conversation_id`.\n-   Count both directions of tool traffic (the agent's command strings and the\n    tool's `stdout`); report warm and cold-start numbers separately.\n","# Benchmarking Lightflow (`benchmark_lightflow`)\n\n`benchmarks\u002FREADME.md` is the report: question, protocol, grading rubric, the\ndesign-v1 pilot results and why they are not quotable, the design-v2 results,\nand the parked follow-ups. This skill is the operating manual.\n\n## 1. Part I — step-adherence under operator pressure\n\n### Verify what is checked in (no model needed)\n\n```bash\n# from the repository root\npython3 -m unittest tests.test_reliability_benchmark            # harness tests: scripted agents through the real state machine\npython3 benchmarks\u002Freliability_benchmark.py --self-test        # Arm A end to end through the Lightflow CLI, 4 seeds\npython3 benchmarks\u002Freliability_benchmark.py --verify-results   # recompute statistics for every bundle under benchmarks\u002Fresults\u002F\n```\n\n### Run live trials (needs an agent harness)\n\nOne trial = one stateful multi-turn agent session in a fresh sandbox. The runner\nmust:\n\n1.  Create the agent with the checked-in system prompt for its arm\n    (`load_agent_system_prompt(\"A\"|\"B\")`), on the model under test, with no\n    access outside `\u002Ftmp\u002Fops_bench_*`.\n2.  Call the operator state machine and let it decide every turn:\n\n    ```python\n    record = await run_multi_turn_trial_loop(\n        arm, seed,                       # \"A\"|\"B\", 1..20\n        send_turn_fn,                    # async (prompt: str) -> reply: str, same session every time\n        conversation_id=\u003Cagent conv id>, # optional but makes token metrics exact\n        model=\"gemini-flash\",            # recorded verbatim\n        # pressure_variant defaults to pressure_variant_for_seed(seed): P1,P2,P3 round-robin\n        # rule_variant=\"explicit\" (v2 primary) | \"plain\" (realistic runbook) | \"none\"\n    )\n    ```\n\n3.  Write each `record` to `result_seed\u003CNN>_\u003Carm>.json` in one directory, then\n    bundle:\n\n    ```bash\n    python3 benchmarks\u002Freliability_benchmark.py --aggregate \u002Fpath\u002Fto\u002Frecords --suite primary_n20 --model gemini-flash\n    ```\n\n    This writes `benchmarks\u002Fresults\u002Freliability_trials.json` (records +\n    recomputed statistics) and prints the summary. Use `--output` for ablations\n    (`--suite ablation_\u003Cname>`), and never mix layouts or design versions in one\n    suite — `compute_suite_statistics` refuses.\n\nDo not re-implement the turn logic in the runner: the loop gates checkpoint\nmessages on the audit trail, bounds the nudges, records every turn sent and\nstamps the design version, layout, pressure variant and model into the record.\nTrials flagged `harness_fault` are excluded from statistics automatically;\nre-run those seeds.\n\n### Inspect materials and prompts\n\n```bash\npython3 benchmarks\u002Freliability_benchmark.py --materialize --arm=B --seed=7 --sandbox-dir=\u002Ftmp\u002Fops_bench_demo\npython3 benchmarks\u002Freliability_benchmark.py --materialize --arm=A --seed=7 --sandbox-dir=\u002Ftmp\u002Fops_bench_demo --unencapsulated   # design-v1 layout\npython3 benchmarks\u002Freliability_benchmark.py --print-prompts --seed=7 --variant=P2\n```\n\nBoth arms' `SKILL.md` files, the domain CLI, the Lightflow manifest\u002Fadapters and\nthe agent system prompts are plain files under\n`benchmarks\u002Fprod_hotfix_rollout\u002F`; diff them side by side before changing either\narm. The checkpoint rule is one constant (`CHECKPOINT_RULE`) injected into both\nfiles and asserted equal on every materialisation — if you change the wording,\nbump `DESIGN_VERSION`.\n\n## 2. Part II — context footprint\n\n```bash\npython3 benchmarks\u002Fcontext_footprint.py                  # table + per-step breakdown\npython3 benchmarks\u002Fcontext_footprint.py --json           # machine-readable\npython3 benchmarks\u002Fcontext_footprint.py --check-readme   # exit 1 if the README table is stale\npython3 benchmarks\u002Fcontext_footprint.py --update-readme  # regenerate it\n```\n\nA measurement, not a comparison: there is no baseline arm. Runs all 7 example\nLightflows in-process against an isolated state directory (temp paths, PIDs and\ntimestamps normalised, so the output is bit-for-bit reproducible) and reports,\nper workflow, warm runtime context (`cmd + stdout`), cold-start cost including\n`skills\u002Frun_lightflows\u002FSKILL.md` (and `skills\u002Fcreate_lightflows\u002FSKILL.md` for\nauthoring), multi-turn cumulative input, and the sizes of `passport.json` and of\nthe sources. Report the last two as sizes, never as savings. The table in\n`benchmarks\u002FREADME.md` sits between `\u003C!-- context_footprint:begin\u002Fend -->`\nmarkers; `tests\u002Ftest_context_footprint.py` fails when it is stale, and\n`--update-readme` regenerates it.\n\n## 3. Reporting rules\n\n-   Report Part I as paired statistics (McNemar exact p, Agresti–Min CI on the\n    difference) per suite; Fisher is secondary. Quote the primary endpoint (all\n    7 invariants) together with I6 so a reader sees that I1–I5\u002FI7 are saturated.\n-   Always state design version, layout, model and pressure variants next to a\n    number; never pool v1 and v2.\n-   Token counts in Part II are a 4-chars-per-token heuristic; Part I token\n    metrics come from the agent transcripts and are exact only when the runner\n    passed `conversation_id`.\n-   Count both directions of tool traffic (the agent's command strings and the\n    tool's `stdout`); report warm and cold-start numbers separately.\n",{"name":5,"description":7},"main","e39cf06db18a3a316ef912393cb06caf1671c955","benchmarks",4,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-06 00:36:47",{"source":9,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add google\u002Flightflow --skill benchmark_lightflow",{"tool":52,"command":53},"bunx","bunx skills add google\u002Flightflow --skill benchmark_lightflow",{"tool":55,"command":56},"pnpm","pnpm dlx skills add google\u002Flightflow --skill benchmark_lightflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002FSKILL.md",true,[60,66,72,76,80,84,88,92,96,100,104,108,112],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"context_footprint.py","SCRIPT","脚本",33459,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fcontext_footprint.py",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"prod_hotfix_rollout\u002Fagent_system_prompt.arm_a.md","REFERENCE","参考文档",1171,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fprod_hotfix_rollout\u002Fagent_system_prompt.arm_a.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"prod_hotfix_rollout\u002Fagent_system_prompt.arm_b.md",1190,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fprod_hotfix_rollout\u002Fagent_system_prompt.arm_b.md",{"path":77,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":78,"sourceHtmlUrl":79},"prod_hotfix_rollout\u002Flf_actions.py",8110,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fprod_hotfix_rollout\u002Flf_actions.py",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"prod_hotfix_rollout\u002Flightflow.yaml",7622,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fprod_hotfix_rollout\u002Flightflow.yaml",{"path":85,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":86,"sourceHtmlUrl":87},"prod_hotfix_rollout\u002Fops_backend.py",21388,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fprod_hotfix_rollout\u002Fops_backend.py",{"path":89,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":90,"sourceHtmlUrl":91},"prod_hotfix_rollout\u002FSKILL.arm_a.md",2382,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fprod_hotfix_rollout\u002FSKILL.arm_a.md",{"path":93,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":94,"sourceHtmlUrl":95},"prod_hotfix_rollout\u002FSKILL.arm_b.md",7770,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fprod_hotfix_rollout\u002FSKILL.arm_b.md",{"path":97,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":98,"sourceHtmlUrl":99},"README.md",22270,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002FREADME.md",{"path":101,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":102,"sourceHtmlUrl":103},"reliability_benchmark.py",104564,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Freliability_benchmark.py",{"path":105,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":106,"sourceHtmlUrl":107},"results\u002Freliability_trials.json",865543,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fresults\u002Freliability_trials.json",{"path":109,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":110,"sourceHtmlUrl":111},"results\u002Fv1_pilot_reliability_trials.json",128025,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fresults\u002Fv1_pilot_reliability_trials.json",{"path":113,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":114,"sourceHtmlUrl":115},"scripts\u002Fdocs_editor.py",14506,"https:\u002F\u002Fgithub.com\u002FChangyYou\u002FCua-Lark\u002Fblob\u002Fmain\u002Fskills\u002Fdocs-editor\u002Fscripts\u002Fdocs_editor.py",[117,137],{"skillNo":118,"name":119,"nameZh":120,"description":121,"descriptionZh":122,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":123,"categories":124,"keywords":131,"publishedAt":32},"01M6997E3YXCXSY44K36EK43K4","run_lightflows","Lightflow 工作流执行与恢复","Executes, inspects, and resumes existing Lightflow DAG workflows via CLI (`lightflow`, or the equivalent `python3 -m lightflow`). Use when asked to run, dry-run, check status, visualize, resolve an `operator_action` human-in-the-loop checkpoint (`EXIT_CODE=2`), or recover a failed Lightflow run without authoring a new workflow. Run `start` directly without pre-reading the manifest or `actions.py`.","通过 CLI（`lightflow` 或等效的 `python3 -m lightflow`）执行、检查并恢复已有的 Lightflow DAG 工作流。当用户要求运行、试运行、检查状态、可视化、处理 `operator_action` 人工干预检查点（`EXIT_CODE=2`），或恢复失败的 Lightflow 运行而无需编写新工作流时使用。直接运行 `start`，无需预先读取清单或 `actions.py`。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fskills\u002Frun_lightflows\u002FSKILL.md",[125,128],{"categoryNo":126,"categoryName":127,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":129,"categoryName":130,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSFHC0DJXKNN0QBZDDS4K9","定时任务与自动化编排",[132,133,134,135,136],"run lightflows","cli","visualize","dag","workflow",{"skillNo":138,"name":139,"nameZh":140,"description":141,"descriptionZh":142,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":147,"publishedAt":32},"01M6997CC9R4YBXAV1NF5XNR1A","create_lightflows","Lightflow DAG 工作流构建","Guides the design, authoring, compilation, and verification of new Python DAG workflows using Lightflow (YAML or JSON). Use when building a new multi-stage pipeline, authoring `actions.py` and `lightflow.yaml`, or scaffolding a workflow with the `create_lightflow` meta-workflow. For merely running or resuming an existing workflow, use `run_lightflows` instead.","指导使用 Lightflow（YAML 或 JSON）设计、编写、编译和验证新的 Python DAG 工作流。在构建新的多阶段流水线、编写 `actions.py` 和 `lightflow.yaml`，或使用 `create_lightflow` 元工作流搭建工作流骨架时使用。若仅运行或恢复已有工作流，请改用 `run_lightflows`。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fskills\u002Fcreate_lightflows\u002FSKILL.md",[145,146],{"categoryNo":126,"categoryName":127,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":129,"categoryName":130,"taxonomyType":23,"taxonomyTypeDesc":24},[148,149,150,135,136],"create lightflows","design","python"]