refactor(opencode): make primary policies agent-local - #79
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
Moves repository, routing, delegation, evidence, pull-request, and delivery rules from the long shared OpenCode prompt into direct primary-agent definitions. Adds a generic selectable
defaultprimary-agent template, keeps the universal safety floor short for subagents, gives repository-capable Kimi subagents compact self-contained routing, and documents the architecture and maintenance rules.The configured unqualified-session agent remains
makeitwork; this change does not alterdefault_agentselection.Fixes #
None — owner-approved prompt architecture refactor.
Type of change
Validation
testworkflow run succeeded: repository hygiene, Helm validation, changed-chart detection, andpackage opencode-serverall passed.Impact and rollout
Producer:
makeitworkcloud/chartsowns the packaged OpenCode prompts and chart configuration.Validated authored impact: this PR bumps
opencode-serverfrom0.1.60to0.1.61and changes only packaged instructions and chart documentation. After an explicitly approved merge, the main workflow may publish the immutable chart and automatically open or update the separatekustomize-clusterversion-pin PR. That PR, controller reconciliation, workload health, and representative agent behavior remain separate, unverified stages.Rollback: select the prior immutable chart version through the canonical
kustomize-clusterApplication after the normal rollout/rollback process; do not republish an OCI tag.Safety and secrets
AI-assisted change: an OpenCode agent materially produced this refactor and documentation; reviewers should assess the prompt-policy split and role-specific restrictions closely.