fix(opencode): bound Kimi MCP tool loops - #96
Merged
Conversation
Chart CI passedRepository hygiene and Helm validation passed. View the workflow run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hardens the packaged
kimiandkimi-256ksubagents against non-MCP fallback and repeated failed tool calls. Both now deny all native OpenCode tool permissions, bound agentic execution to 6/8 steps, deny the OpenCode doom-loop recovery action, and instruct the model to stop with a blocker after a denied, invalid, unavailable, or no-progress MCP call rather than retrying or guessing an alternate native tool.Bumps immutable
opencode-serverchart version from0.1.73to0.1.74because packaged agent files changed.Fixes #
N/A — owner-approved headless Kimi subagent hardening.
Type of change
Validation
test(repository hygiene and Helm validation),detect, andpackage opencode-server..Files.Glob; no generated source was edited.Chart.yamlversion bump.ADVANCE; release readiness returnedREADY.Impact and rollout
Producer:
makeitworkcloud/chartspackageopencode-server0.1.74; affected paths are only the two packaged Kimi subagent definitions and chart metadata.After a separately confirmed merge, the
mainworkflow automatically packages and publishes the immutable OCI chart, then opens or updatesmakeitworkcloud/kustomize-cluster's scoped version-pin PR forworkloads/apps/opencode-app.yaml. Its required checks and auto-merge govern desired-state selection. Argo CD reconciliation, pod replacement, workload health, and a fresh-session test that Kimi honors the permissions, step limits, and circuit breaker are separate, unverified stages. No sync, rollout, or live mutation is authorized by this PR.Rollback: publish and select a new immutable chart version restoring the prior agent policy; do not republish
0.1.74.Safety and secrets
AI-assisted change; reviewer scrutiny requested for OpenCode agent-permission semantics and runtime behavior.