Repository navigation
feat(agents): add tool-free isolated completion - #114343
Conversation
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
|
Codex review: needs real behavior proof before merge. Reviewed July 30, 2026, 1:58 PM ET / 17:58 UTC. ClawSweeper reviewWhat this changesAdds an isolated, tool-free LLM completion mode so plugins such as Merge readiness⛔ Blocked until stronger real behavior proof is added - 7 items remain Keep this PR open for human review. The implementation is substantial and has useful live evidence, but it exposes a new documented agent-harness capability that controls zero-tool execution and prepared credential routing without a recorded runtime-owner acceptance; current labels also mark it Priority: P2 Review scores
Verification
How this fits togetherPlugin code calls the runtime LLM API, which selects and authorizes a model, authentication profile, and agent runtime. The new isolated path bypasses normal agent transcript, hook, tool, and delivery handling, then requires each selected harness or CLI owner to enforce a literal zero-tool completion boundary. flowchart LR
A[Plugin such as llm-task] --> B[Runtime LLM authorization]
B --> C[Isolated completion selection]
C --> D[Prepared model and credential]
D --> E[Selected harness or CLI runtime]
E --> F[Zero-tool fresh completion]
F --> G[Validated text-only result]
G --> H[Plugin result]
Decision needed
Why: The code can implement the contract, but only maintainers can decide whether this is a permanent cross-runtime extension boundary or should remain a private bundled implementation detail. Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch adds an explicit credential-routing and zero-tool enforcement boundary; no concrete bypass is established, but a runtime owner must accept the resulting public security contract before merge. PR surfaceSource +2144, Tests +2697, Docs +99, Config +1, Generated 0, Other +3. Total +4944 across 67 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Have an agent-runtime owner explicitly accept the documented public capability and its credential/isolation contract, then attach redacted exact-current-head Gemini isolated-completion proof; otherwise keep the mechanism internal until that ownership boundary is ready. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug report: this PR introduces a new isolated-completion capability. The submitted live matrices demonstrate the intended behavior on earlier branch heads, but not the final Gemini behavioral change. Is this the best way to solve the issue? No—not yet. The implementation may be a viable technical path, but publishing the harness contract before an owner accepts its cross-runtime credential and isolation obligations is not the narrowest maintainable solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 3b355879b8cc. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
dd78510 to
9e38cc1
Compare
12a8780 to
7c5bb74
Compare
9e9af6e to
35fadff
Compare
|
Merged via squash.
|
* feat: add isolated pure-inference completion * fix(google): block ambient system prompt writes * docs: refresh generated map
Related: #108738
Depends on merged prerequisite #114282.
What Problem This Solves
Callers needing pure inference previously had to enter an ordinary agent turn. That path could expose tools, reuse thread context, or reject
disableTools, even when the caller only needed one fresh model completion. This affected flows such asllm-taskand made safe behavior depend on each harness's ordinary-turn semantics.Why This Change Was Made
Adds one explicit isolated-completion contract owned by the selected runtime. The operation uses fresh context, a literal zero-tool native surface, exact model/profile authorization, no fallback to another runtime, and rejects tool calls or non-text output. OpenClaw, Codex-backed transport, Copilot, Claude CLI, and Gemini CLI owners implement the contract at their native isolation boundary; non-adopting owners fail closed.
The Copilot path creates an empty SDK client/session with discovery and capability surfaces disabled. Prepared credentials and model headers remain sentinelized until the selected external harness egress boundary, then are unwrapped exactly once.
The Gemini path supports only auth modes that can enforce the contract, isolates native settings/context/extensions, rejects native prompt preprocessing, and replaces the complete model-routing surface with exact-model aliases/overrides/resolutions/chains. This behavior was checked against the pinned Gemini CLI 0.39.1 source rather than inferred from current upstream documentation.
User Impact
llm-taskand other pure-inference callers can request a fresh, tool-free completion without breaking normal signup/onboarding or ordinary agent turns. Explicit runtime selection remains authoritative; unsupported owners report a stable error instead of silently falling back to a less isolated path.Evidence
21ea5c5764de60a366b25689a479de11a95e4bf9.tsgoproject build, lint, and runtime import cycles. Testbox Actions run 30506948768.patch is correct(0.86 confidence).run_864208ad6b22, leasecbx_c7dc40daf23e(stopped):google/gemini-3-flash-previewschema-constrained completion passed;{ kind: "cli", id: "google-gemini-cli" };LLM_RUNTIME_UNAVAILABLE;run_d05c3338bebb..artifacts/qa-e2e/108738-pure-inference/live-summary.json(local QA artifact; contains no credential or model output).dotenvdependency is intentional: it is used only by the Google owner to parse Gemini's ambient auth/transport dotenv contract. Dependency-pin, lockfile, supply-chain, and package-contract gates passed.AI-assisted: yes. I understand the implementation and validated dependency-backed behavior against the installed Copilot SDK source/types, OpenAI Codex source, pinned Gemini CLI 0.39.1 source, and live provider traffic.