























@@ -806,6 +806,36 @@ setInterval(() => {}, 1000);
806806expect(result.stderr).toContain("--limit must be a positive integer");
807807});
808808809+it("documents gauntlet guardrail options and env defaults in help", () => {
810+const result = spawnSync(
811+process.execPath,
812+[path.resolve("scripts/check-plugin-gateway-gauntlet.mjs"), "--help"],
813+{
814+cwd: path.resolve("."),
815+encoding: "utf8",
816+},
817+);
818+819+expect(result.status, result.stderr).toBe(0);
820+for (const text of [
821+"--wall-anomaly-multiplier",
822+"--rss-anomaly-multiplier",
823+"--qa-cpu-regression-multiplier",
824+"--qa-wall-regression-multiplier",
825+"--command-timeout-ms",
826+"--build-timeout-ms",
827+"--qa-timeout-ms",
828+"OPENCLAW_PLUGIN_GATEWAY_GAUNTLET_IDS",
829+"OPENCLAW_PLUGIN_GATEWAY_GAUNTLET_TOTAL",
830+"OPENCLAW_PLUGIN_GATEWAY_GAUNTLET_INDEX",
831+"OPENCLAW_PLUGIN_GATEWAY_GAUNTLET_FAIL_ON_OBSERVATION",
832+"OPENCLAW_PLUGIN_GATEWAY_GAUNTLET_KEEP_RUN_ROOT",
833+"OPENCLAW_PLUGIN_GATEWAY_GAUNTLET_QA_SUMMARY_MAX_BYTES",
834+]) {
835+expect(result.stdout).toContain(text);
836+}
837+});
838+809839it("parses observation failure mode from CLI and env", () => {
810840expect(parseArgs(["--fail-on-observation", "--allow-empty"])).toMatchObject({
811841allowEmpty: true,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。