Skip to content

feat(models): support Gemini 4 core matrix and orchestrator mode - #19

Closed
ggdayup wants to merge 1 commit into
jtaroreh:mainfrom
ggdayup:feat/gemini-4-matrix-support
Closed

ggdayup wants to merge 1 commit into
jtaroreh:mainfrom
ggdayup:feat/gemini-4-matrix-support

Conversation

@ggdayup

@ggdayup ggdayup commented Nov 18, 2026

Copy link
Copy Markdown

Why

In mid-November 2026, Google rolled out Gemini 4 Hydrogen and Orchestrator mode to Google Antigravity for Google AI Ultra subscribers across 5x and 20x tiers. Cloud Run swarms and Antigravity subagent workflows require native alias resolution, global Vertex AI endpoint routing, and Model Garden preflight support for the complete Gemini 4 matrix (Carbon, Argon, Hydrogen, and Orchestrator).

Scope

  • Add model aliases and resolution for carbon, argon, hydrogen, orchestrator, and their prefixed variants in skills/swarm/scripts/cloud_dispatch.py and skills/swarm/scripts/cloud_worker.py.
  • Update --list-models output in skills/swarm/scripts/cloud_dispatch.py to include gemini-4-carbon and gemini-4-hydrogen under Tier 1 Native MaaS.
  • Route orchestrator mode to the global Vertex AI location namespace in skills/swarm/scripts/cloud_dispatch.py.
  • Add gemini-4-carbon and gemini-4-hydrogen to serverless_models in skills/setup-agystack/scripts/setup_runtime.py.
  • Update agystack-models.md, rules/AGENTS.md, and documentation in skills/setup-agystack/SKILL.md, skills/swarm/SKILL.md, skills/poteto-mode/references/antigravity-tools.md, and docs/guide/01-setup.md.
  • Add regression tests in tests/test_setup_runtime.py, tests/test_cloud_preflight_and_worker.py, and tests/test_cloud_worker_vertex_partner.py.

Tradeoffs

  • orchestrator is treated as a valid model identifier routed to global Vertex AI for dynamic multi-model delegation.
  • Non-partner model classification is preserved so Gemini 4 models bypass Anthropic SDK initialization.

Blast Radius

  • Touches model alias resolution, doctor preflight checks, and documentation.
  • Fully backward compatible with existing Gemini 3.x and Anthropic partner model workflows.

Verification

  • UV_CACHE_DIR=/tmp/uv-cache uv run --extra test pytest -q: 391 passed, 3 skipped, 0 failures, 153 subtests passed in 30.29s.
  • cd skills/poteto-mode/scripts && bun test: 47 passed across 4 test suites.
  • python3 skills/setup-agystack/scripts/setup_runtime.py --doctor: platform doctor check returned status OK across all 22 roles.
  • UV_CACHE_DIR=/tmp/uv-cache uv run ruff check .: all checks passed with zero errors.

## Why

In mid-November 2026, Google rolled out Gemini 4 Hydrogen and Orchestrator mode to Google Antigravity for Google AI Ultra subscribers (5x and 20x tiers). Cloud Run swarms and Antigravity subagent workflows require native alias resolution, global Vertex AI endpoint routing, and Model Garden preflight support for the complete Gemini 4 matrix (Carbon, Argon, Hydrogen, and Orchestrator).

## Scope

- Add model aliases and resolution for carbon, argon, hydrogen, orchestrator, and their prefixed variants in skills/swarm/scripts/cloud_dispatch.py and skills/swarm/scripts/cloud_worker.py.
- Update --list-models output in skills/swarm/scripts/cloud_dispatch.py to include gemini-4-carbon and gemini-4-hydrogen under Tier 1 Native MaaS.
- Route orchestrator mode to the global Vertex AI location namespace.
- Add gemini-4-carbon and gemini-4-hydrogen to serverless_models in skills/setup-agystack/scripts/setup_runtime.py.
- Update agystack-models.md, rules/AGENTS.md, and documentation in skills/setup-agystack/SKILL.md, skills/swarm/SKILL.md, skills/poteto-mode/references/antigravity-tools.md, and docs/guide/01-setup.md.
- Add regression tests in tests/test_setup_runtime.py, tests/test_cloud_preflight_and_worker.py, and tests/test_cloud_worker_vertex_partner.py.

## Tradeoffs

- orchestrator is treated as a first-class model identifier routed to global Vertex AI for dynamic multi-model delegation.
- Non-partner model classification is preserved so Gemini 4 models bypass Anthropic SDK initialization.

## Blast Radius

- Touches model alias resolution, doctor preflight checks, and documentation.
- Fully backward compatible with existing Gemini 3.x and Anthropic partner model workflows.

## Verification

- 391 Python unit tests and 153 subtests passed via pytest.
- 47 Bun TypeScript unit tests passed in skills/poteto-mode/scripts.
- Platform doctor check passed with status OK across all 22 roles.
- Ruff linter passed with zero violations.
@jtaroreh

Copy link
Copy Markdown
Owner

Thank you @ggdayup for putting this together. We folded your core contributions into #30 on top of the post-#21 skills/cloud-swarm/ layout:

  • Gemini 4 alias resolution in resolve_swarm_model and resolve_worker_model across skills/cloud-swarm/scripts/cloud_dispatch.py and skills/cloud-swarm/scripts/cloud_worker.py.
  • Tier 1 Native MaaS updates in cloud_dispatch.py --list-models, skills/cloud-swarm/SKILL.md, rules/AGENTS.md, and check_model_garden() in skills/setup-agystack/scripts/setup_runtime.py.
  • Regression coverage in tests/test_cloud_preflight_and_worker.py and tests/test_cloud_worker_vertex_partner.py.

PR #30 also adds boundary translation (normalize_model_for_surface) so orchestrator resolves safely to the active parent model or gemini-3.8-flash on Vertex AI endpoints, and keeps the default agystack-models.md on universal tiers (inherit, flash, pro) so Gemini 3.8 Flash sessions and invoke_subagent schema validation work out of the box. Closing this PR in favor of #30.

@jtaroreh jtaroreh closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants