chore: add .opencode/dcp.jsonc with compress.protectTags enabled

オープン 初心者向け
#77 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
json
領域
tooling

調査の方向性

opencode.json を読み、現在 protectTags がどこに設定されているか確認してください。そのトップレベルキーを削除し、issue に示されているスキーマ URL と compress.protectTags の設定を含む .opencode/dcp.jsonc を追加してください。DCP の設定がプロジェクトレベルの設定にあり、無効なキーが opencode.json から削除されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Problem

Slash command files use <protect> tags to mark execution-critical sections (guardrails, checklists, mandatory gates) that must survive DCP context compression. However, these tags are inert without a DCP config file that enables them.

Additionally, the replicator repo currently has "protectTags": true at the top level of opencode.json, which causes:

Configuration is invalid at opencode.json
↳ Unrecognized key: protectTags

Fix

  1. Remove "protectTags": true from opencode.json
  2. Add .opencode/dcp.jsonc to the repo with:
{
  "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
  "compress": {
    "protectTags": true
  }
}

This file should be committed to source control (project-level setting, not personal config).

Context

  • protectTags is a DCP plugin config key under compress, not an OpenCode core config key
  • Placing it in opencode.json causes the startup error shown above
  • The correct location is .opencode/dcp.jsonc (or dcp.json)
  • Related: unbound-force/unbound-force#497, unbound-force/unbound-force#499
主要言語
Go
スター
0
フォーク
9
平均マージ
1日 14時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

unbound-force/replicator のほかの issue

unbound-force/replicator の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。