Skip to content

refactor(opencode): make primary policy headings self-contained - #80

Merged
xnoto merged 1 commit into
mainfrom
refactor/self-contained-primary-policy-headings
Sep 4, 2026
Merged

refactor(opencode): make primary policy headings self-contained#80
xnoto merged 1 commit into
mainfrom
refactor/self-contained-primary-policy-headings

Conversation

@xnoto

@xnoto xnoto commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes runtime-agent references to keeping primary policy headings aligned with default.md. Every full-capability primary agent now uses the self-contained ## Primary operating rules heading; the developer-facing architecture document explicitly keeps default.md as a maintainer reference and prohibits runtime prompts from referring agents to another agent file.

Fixes #

None — owner-requested prompt-context cleanup.

Type of change

  • Bug fix
  • Feature / enhancement
  • Documentation
  • Infrastructure (OpenTofu root or module)
  • GitOps desired state (manifests, kustomize, charts, SOPS/KSOPS secrets)
  • Container image
  • CI / reusable workflow
  • Refactor / cleanup
  • Breaking change

Validation

  • Required pull-request checks pass — workflow run 33917056127 succeeded: repository hygiene, Helm validation, changed-chart detection, and package opencode-server.
  • Generated or centrally distributed files were regenerated by their owning automation, not hand-edited — none exist among the changed chart inputs.
  • Reviewed the full branch diff: all nine primary-agent definitions now use the same self-contained heading, while the five subagent definitions contain no default.md alignment reference.

Impact and rollout

Producer: makeitworkcloud/charts owns the packaged OpenCode prompts and chart configuration.

This authored and validated change updates nine primary-agent prompts, documents the maintainer-only default.md reference, and bumps opencode-server from 0.1.61 to 0.1.62 because OCI chart versions are immutable. No generated copies, image pins, OpenCode default-agent selection, or GitOps source changes are modified.

After explicit merge approval, the charts main workflow will publish immutable chart version 0.1.62 and automatically create or update the separate kustomize-cluster version-pin PR. That desired-state PR, its merge, Argo CD reconciliation, workload health, and representative agent behavior are separate and currently unverified stages.

Rollback: select the prior immutable chart version through the canonical kustomize-cluster Application workflow; never republish or overwrite an OCI version.

Safety and secrets

  • Contains no plaintext secrets, decrypted SOPS values, state files, kubeconfigs, tokens, or private endpoints
  • No local OpenTofu init/plan/apply/destroy/import/state operations were run or claimed — plans come from pull-request checks
  • Breaking or irreversible effects are described above with rollback notes — none expected; this changes prompt presentation only

GitHub Advanced Security secret scanning is unavailable for this repository; the non-sensitive, heading-and-documentation-only diff was manually reviewed, and PR CI remains the authoritative validation.

AI-assisted change: an OpenCode agent materially produced this refactor; reviewers should verify that the role-local policy remains unchanged and only its unhelpful runtime reference was removed.

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Chart CI passed

Repository hygiene and Helm validation passed. View the workflow run.

@xnoto
xnoto merged commit 8f2dc3b into main Sep 4, 2026
4 checks passed
@xnoto
xnoto deleted the refactor/self-contained-primary-policy-headings branch September 4, 2026 20:43
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.

1 participant