Skip to content

policy: admit Gemini 4 Neon at xhigh - #755

Merged
Dong1017 merged 1 commit into
mainfrom
policy/gemini-4-neon-admission
Nov 27, 2026
Merged

Dong1017 merged 1 commit into
mainfrom
policy/gemini-4-neon-admission

Conversation

@Dong1017

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #754

  • Accepted scope / delegation: the owner's Issue policy: admit Gemini 4 Neon (gemini-4-neon) at xhigh #754. It asks for the exact ID gemini-4-neon with no aliases, following the shape of policy: admit GPT-6.1 Terra at xhigh and max #298, policy: admit Claude Fable 5.2 at xhigh and max #439 and policy: admit GPT-6.2 Astra and GPT-6.2 Sol, stop admitting GPT-6-Astra, GPT-6.1 Sol and GPT-6.1 Terra #499.
  • What this PR delivers: one commit, 6b1d1bc7, on main 477446f6:
    • .github/knowledge-model-policy.json: a new gemini-4-neon entry with "efforts": ["xhigh"], no aliases, not suspended, and the Gemini API model page as source.
    • docs/knowledge-model-policy.md: a Gemini 4 Neon row in the owner table, thinking_level added to the line that names each vendor's effort parameter, and one paragraph. The paragraph records the 2026-11-27 doc check, says that Neon has no max level and is admitted at xhigh only, maps Google Cloud's XHIGH spelling to the declared xhigh, and lists the aliases that are not admitted.
    • tests/knowledge/test_knowledge_model_policy.py: the new cases listed in the evidence table.
  • What it does not deliver: this PR does not change the evaluator or its fixed qualifying set {xhigh, max}. It also leaves unchanged the exception process, protected paths, trusted-main policy selection and the four existing entries. It does not admit other Gemini 4 models or the allowlist-only gemini-4-neon-cyber-permissive. It does not run a model and does not qualify knowledge content.

Knowledge authorship declaration

This PR changes policy_paths only (the policy JSON and its document) and no protected knowledge path, so the declaration is disclosure only. Checks use the target branch's policy, so this PR's own status does not exercise the new entry; the tests below do.

{"schema_version":1,"head_sha":"6b1d1bc7cba70dab381ca6577594e737e827d28f","human_only":false,"material_ai_authors":[{"tool":"Claude Code","model_id":"claude-opus-5-5","effort":"xhigh","role":"author"}]}

Changed artifacts and evidence

Requirement Actual change Check / evidence and result Remaining gap
Admit gemini-4-neon, exact ID, no aliases Policy JSON entry; owner table row Official docs checked 2026-11-27 (below). test_gemini_4_neon_qualifies_at_xhigh_only: xhigh passes assess with "Declaration compliance only" None
Effort set matches the documented levels "efforts": ["xhigh"]; doc paragraph The same test: max fails with exactly Material AI author 1: effort is not allowed. test_effort_is_exact_set_membership now includes Neon: low, medium, high, none, minimal, ultra, maximum, unknown, XHIGH, MAX, xhigh , max all fail None
No inferred aliases or near misses Doc paragraph test_unknown_models_and_inferred_aliases_fail adds gemini-4, neon, Gemini 4 Neon, GEMINI-4-NEON, leading and trailing spaces, models/gemini-4-neon, gemini-4-neon-latest, gemini-4-neon-cyber-permissive and gemini-4-hydrogen; all fail None
Suspension and mixed declarations Tests only Suspension case for gemini-4-neon; a mixed declaration with gemini-4-neon at max fails in either position and reports only that author None

Doc check (2026-11-27). The pages were fetched with curl from a Linux host, because the local network cannot reach them.

  • Gemini API model page: "Model code gemini-4-neon", "Stable: gemini-4-neon", and "Thinking: Supported (low, medium, high, xhigh)". The page lists no other version or alias.
  • Gemini API thinking guide: gemini-4-neon | On (high) | low, medium, high, xhigh. No model in that table lists a max level. minimal is "Not supported on Gemini 4 models".
  • Google Cloud model page (last updated 2026-11-24 UTC): "Model ID gemini-4-neon", "Launch stage: GA", "Release date: November 18, 2026", and "Neon supports thinking levels LOW, MEDIUM, HIGH (default), and XHIGH. Setting thinking_budget or thinking_level="MINIMAL" returns an HTTP 400 validation error." The page lists gemini-4-neon-cyber-permissive as a separate model ID with allowlist-only access.
  • No paid API call or model run was made.

Open PRs (scanned 2026-11-27 before opening, 26 open). No open PR body mentions Gemini, so merging this changes no open PR's verdict.

Checks and dependencies

  • Checks actually run (result and tested scope):
    • python -m pytest -o addopts= -q -p no:cacheprovider tests/knowledge/test_knowledge_model_policy.py on head 6b1d1bc7: 229 passed. Environment: local Windows 11, Python 3.13.5, pytest 9.0.2.
    • Reverse check: with only .github/knowledge-model-policy.json restored to main, the Gemini/Neon subset (-k "gemini or neon") gives 2 failed and 22 passed. The two failures are test_gemini_4_neon_qualifies_at_xhigh_only and the gemini-4-neon suspension case, so the new tests read the new entry. The 22 rejection cases also pass on main, where any Neon declaration is rejected as unapproved.
    • uvx ruff@0.17.6 check tests/knowledge/test_knowledge_model_policy.py tools/check_knowledge_model_policy.py: all checks passed. 0.17.6 is the version installed in the latest green ci-ready run (45935560246). The policy JSON parses, and git diff --check is clean.
  • Failed, skipped, timed-out or not-run checks (if applicable): The full suite and the other policy test modules were not run locally. They do not read the model list. Hosted full-check is authoritative.
  • Dependencies / shared interfaces / integration assumptions (if applicable): none beyond main. The entry takes effect for open PRs only once it is on main, because the workflow evaluates trusted main.

Remaining work and Issue closure

  • Remaining Issue requirements / follow-up: hosted CI and two approving reviews on the current head.
  • Goal-acceptance owner or accepted closure delegation: @Dong1017 (Issue owner).
  • Goal ready for acceptance? Not claimed.

Provenance

One commit on main 477446f6. No merge, amend, force push or skipped hooks. The policy JSON, document and tests were written in a Claude Code session reported as claude-opus-5-5 with effort xhigh. This is client/session attribution, not a backend attestation. Passing tests is not policy approval.

Agent-assisted-by: Claude Code / claude-opus-5-5 [effort=xhigh] (author)

🤖 Generated with Claude Code

Knowledge contributions declaring gemini-4-neon currently fail model
admission. Add that exact identity, as requested by the owner, with no
aliases. The official Gemini API and Google Cloud model pages confirm the
canonical ID and list its thinking levels as low, medium, high (default)
and xhigh (checked 2026-11-27). Neon has no max level, so its admitted
effort set is xhigh only; the evaluator's qualifying set is unchanged.

Record the check, the thinking_level parameter name and the non-admitted
aliases in the policy document. Extend the admission tests: Neon passes
at xhigh and fails at max with "effort is not allowed", fails at every
other effort, rejects inferred aliases and near-miss IDs (including the
separately gated cyber-permissive variant), honours suspension, and
fails a mixed declaration in either position. The evaluator, exception
process, protected paths, existing models and trusted-main policy
selection are unchanged. This is an admission-policy change; it does
not qualify knowledge content or run a model.

Agent-assisted-by: Claude Code / claude-opus-5-5 [effort=xhigh] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
@Dong1017 Dong1017 added kind:task Bounded delivery task with a delegated slice area:knowledge Knowledge line: packs, skill library, knowledge admission labels Nov 27, 2026
@Dong1017 Dong1017 self-assigned this Nov 27, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for zengchuang-hw.

固定范围 477446f → 6b1d1bc。

首审 #754 的精确策略增量。对比 policy JSON 后,唯一新增条目是 gemini-4-neon,aliases 为空、未暂停、efforts 仅 xhigh;其他模型、保护路径、例外和审批人没有变化。Google 官方表明确默认 high、最高 xhigh,不含 max。说明、测试和配置一致。

独立运行固定 main 的实际 model_errors 对候选 JSON:准确 ID+xhigh 通过;默认 high、max、大小写/别名和其他变体拒绝,暂停与混合非合规作者也拒绝。未执行模型或完整工作流。正式批准只反映独立代码检视,不是例外。候选策略不会被该 PR 自己的 trusted-main 状态提前采用;合入后应核对受影响 PR 的精确 head 刷新。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

@david6666666 @Bounty-hunter please review this PR. It needs one more approval to merge.

  • Change: one new allowlist entry, gemini-4-neon, with "efforts": ["xhigh"], no aliases, suspended: false, and the Gemini API model page as source. The policy doc gains an owner-table row and a doc-check paragraph. The admission tests gain Neon cases. The evaluator, protected paths and existing entries are unchanged.
  • Why xhigh only: Google documents Neon's thinking levels as low, medium, high (default) and xhigh, with no max. The evaluator's qualifying set {xhigh, max} stays as it is. The doc quotes are in the PR body.
  • State at head 6b1d1bc7: all 11 checks pass, including both full-check jobs and knowledge-model-policy. zengchuang-hw approved this head.

If you agree with admitting Neon at xhigh only, please approve. Otherwise, say what should change.

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.

PR review verdict — PASS
Reviewed 477446f6d675bb47b4912bb52ae04e0cb3fb4b3e → 6b1d1bc7cba70dab381ca6577594e737e827d28f for #754. Score 86/100: scope 3/3, correctness 3/3, validation 3/3, claim evidence N/A, simplicity 0/3 (the new explanatory test comment triggers the scorecard's hard zero).

The only admitted identity is canonical gemini-4-neon at xhigh. Google documents default high and no max; no alias, protected-path or evaluator changes are included. I independently ran all 229 policy tests on this exact head, including disallowed efforts, near misses, suspension and mixed declarations. Exact Ready CI passed both full Linux and installed-package lanes, and the tested merge has the reviewed parents. The trusted-main admission status is not a test that the candidate entry has taken effect. I did not call the model.

@Dong1017
Dong1017 merged commit 4f03587 into main Nov 27, 2026
11 checks passed
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Claude Code, acting for @Dong1017.

merge-audit: head=6b1d1bc7cba70dab381ca6577594e737e827d28f approvals=@zengchuang-hw #755 (review), @david6666666 #755 (review) approver=@david6666666 list=ed13999d4c8a5ee25d1fefcfd79f0ce14b91c647 merge=4f03587eea627637f98f637bb3cde6c6142d487b by=@Dong1017

I treated this PR as high-risk because it changes the allowlist that the required knowledge-model-policy check enforces. Both approving accounts are on the high-risk list at ed13999d, and both had admin permission when checked right before the merge.

  • Base: I read protected main as ed13999d for the final checks and again right before the merge. The squash commit 4f03587e has exactly one parent, ed13999d. main therefore did not move between the final check and the merge.
  • Content: the three changed files in 4f03587e are identical to the approved head 6b1d1bc7. The one commit on main after the reviewed base 477446f6 (Unify knowledge discovery and delivery through find and read #709) touches none of them.
  • Other checks before the merge: auto-merge was off. There was no bot:stop label or stop comment on this PR or on its Issue, which has no parent. tools/check_pr_references.py passed on the live body, and the PR had no closing references or linked branches. All 11 checks passed on the head.
  • Limit: no exclusive merge window was held, because the repository has neither a merge queue nor a base-enforcing merge path. The single-parent check above is evidence after the fact, not a lock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:knowledge Knowledge line: packs, skill library, knowledge admission kind:task Bounded delivery task with a delegated slice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants