Skip to content

Commit a6cd2e8

Browse files
fix: preserve Google Gemini 3 cron thinking
1 parent 5853c2e commit a6cd2e8

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

‎test/scripts/real-behavior-proof-policy.test.ts‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,45 @@ describe("real-behavior-proof-policy", () => {
116116
expect(labelsForRealBehaviorProof(evaluation)).toEqual([PROOF_SUPPLIED_LABEL]);
117117
});
118118

119+
it("accepts source PR proof when explicit gaps live in out-of-scope follow-ups", () => {
120+
const body = [
121+
"## Real behavior proof",
122+
"",
123+
'- Behavior addressed: Cron/provider thinking validation no longer downgrades `google/gemini-3-flash-preview` `thinkingDefault: "low"` to `"off"` when cached catalog metadata says `reasoning:false` but the Google provider policy says Gemini 3 supports low thinking.',
124+
"- Real environment tested: Local macOS source checkout, Node v24.8.0, OpenClaw 2026.5.21 (c8a35c4), local `openclaw` shim pointed at the freshly built checkout. No channel credentials or provider API keys were used.",
125+
"- Exact steps or command run after this patch:",
126+
" 1. Built the local checkout with `node scripts/build-all.mjs`.",
127+
" 2. Updated `/Users/example/.local/bin/openclaw` to run this checkout's `openclaw.mjs` and verified `/Users/example/.local/bin/openclaw --version`.",
128+
" 3. Ran a redacted behavior probe for the reported cron validation decision with `provider=google`, `model=gemini-3-flash-preview`, `configuredThinkingDefault=low`, and `catalogReasoning=false`.",
129+
'- Evidence after fix: `.artifacts/behavior-85156/after-installed.json` from the local checkout recorded `lowSupported: true` and `fallbackFromLow: "low"`.',
130+
"- Observed result after fix:",
131+
" - `levels: off, minimal, low, medium, adaptive, high`",
132+
" - `lowSupported: true`",
133+
" - `fallbackFromLow: low`",
134+
" - `local command version: OpenClaw 2026.5.21 (c8a35c4)`",
135+
"",
136+
"## Out-of-scope Follow-ups",
137+
"- No live systemd cron schedule is added in this PR.",
138+
"- No real Google provider request is sent in this PR.",
139+
"- No catalog refresh or provider model-list behavior is changed in this PR.",
140+
"- No channel, gateway allowlist, credential, or auth-profile behavior is changed in this PR.",
141+
].join("\n");
142+
const evaluation = evaluateRealBehaviorProof({
143+
pullRequest: externalPr(body),
144+
});
145+
146+
expect(evaluation.status).toBe("passed");
147+
expect(evaluation.fields?.notTested).toBe(
148+
[
149+
"- No live systemd cron schedule is added in this PR.",
150+
"- No real Google provider request is sent in this PR.",
151+
"- No catalog refresh or provider model-list behavior is changed in this PR.",
152+
"- No channel, gateway allowlist, credential, or auth-profile behavior is changed in this PR.",
153+
].join("\n"),
154+
);
155+
expect(labelsForRealBehaviorProof(evaluation)).toEqual([PROOF_SUPPLIED_LABEL]);
156+
});
157+
119158
it("fails external PRs without a real behavior proof section", () => {
120159
const evaluation = evaluateRealBehaviorProof({
121160
pullRequest: externalPr("## Summary\n\n- Fixed startup."),

0 commit comments

Comments
 (0)