GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(guardrails): 実CLIとAIDDの発火を検査 by terisuke · Pull Request #372 · Cor-Incorporated/opencode

Conversation

@terisuke

@terisuke terisuke commented Nov 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Issue for this PR

Closes #365

Type of change

  • Refactor / code improvement

What does this PR do?

単体テストだけでは確認できないCLI・ランチャー・profile・AIDDの接続を、実CLIから検査するローカルharnessを追加します。モデル応答はloopbackで固定し、実認証・外部推論は使用しません。

許可shell、保護対象への書込拒否、同じ失敗の4回目の拒否、H17の最終回答の許可・拒否、不正sidecarのモデル要求前拒否を、実tool結果・ファイル不在・台帳行で突き合わせます。設定・判定器・起動helperのハッシュを記録します。

先行 #373・#368・#369・#370・#371 の修正を祖先として保持した最終統合候補です。これらの統合後、固有差分はharnessとその説明の2ファイルになります。先行PRの全対象CIと統合を確認してから、このPRを統合します。

How did you verify your code works?

自身のguard/profileを既定値のまま使用し、最終固定ce53を含むCLIビルド2.2.5-cor-f01d09fba7を明示して3ケースを実行しました。deny・partial・invalid-policyは全成功、H17 unavailable=0、不正sidecarのモデル要求とtool実行は0件でした。他worktreeのprofileには依存しません。installed2.0.32でも同じ最終構成の3ケースが成功しています。

全体check35/35、最終構成guardrails249/0を確認しました。別の実4社テストも最終ビルド・同じ構成で成功していますが、本harnessの固定応答検査とは区別します。

H5-E2E: mise exec [email protected] [email protected] -- bun packages/guardrails/smoke/native-cli.ts --cli /private/tmp/opencode-source-latest-full-build-20261104-noq9neo_/dist/cli-darwin-arm64/bin/opencode --out /private/tmp/opencode-native-own-final-20261104
H5-E2E-OUT: PASS: native CLI + profile enforcement + AIDD iteration/completion; artifacts=/private/tmp/opencode-native-own-final-20261104

H17の最終回答拒否は台帳・stderrで確認します。CLIの終了コードは0のままで、回答の標準出力を阻止しません。保護対象への書込と4回目のtool実行は実際に阻止されます。本番TUIの画面操作は未検証です。

先行上流同期のworkflowがdev比較に残る間の構造変更証跡:

H5-guard: yes
H5-NEGATIVE: websearch.useのenforcerだけprovider.useへ変異すると実policy検査1fail/exit1、復元後exit0。前提workflowの実YAMLでCor GUI unknown-param fixtureは1 warning/exit1、削除後exit0、共通祖先なしはexit1。既知のFileWrite片側変異・Blacksmith-only変異もexit1。履歴secret検査は登録前300件/exit1、登録後0件/exit0、新commitの同一pathと別pathの合成候補2件はexit1
H5-LEDGER: 既存scripts/h5-admission-check.shの不足マーカー拒否がH5_LEDGER_PATHのguard-ledger.jsonlへcomponent=H5,event=blockを記録する経路を一時台帳で実測。native/AIDDのtool・回答判定もscratchの実guard-ledger.jsonlへ到達
H5-RETIRE: runner fallbackは専用fork runnerで同一SHA対象jobが20回連続成功するか上流が標準runnerへ移行した時に撤去。FileWriteの文字列PAIR検査は全writer入口の片側変異を型または動作テストで検出できた時に撤去
H5-SUBTRACTION: N/A
H5-PAIR: websearch.use policy宣言 ↔ core/config/plugin/policy.tsのprovider除外; mutation=enforcerのactionだけprovider.useへ変更して実policy検査exit1、復元後exit0。前提workflowのrepo条件・fork lint祖先入力 ↔ GitHub job gateとfork-ci.testの実式評価; mutation=元checkout/YAMLで2fail、Cor GUI警告fixtureでexit1。FileWrite到達検査 ↔ core/file-write.tsのaccess.resolve; mutation=/incorrectでexit1

Screenshots / recordings

固有変更はローカル検査harnessです。先行上流UIの確認範囲は #373 に記載しています。

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
opencode-agent Bot and others added 30 commits October 30, 2026 09:57
@opencode-agent @jlongster
fix(app): list commands above sessions in command palette search (ano…
df39a70
…malyco#60616)

Co-authored-by: jlongster <[email protected]>
@opencode-agent @Tarquinen
fix(tui): keep plugin-set prompt cursor styles (anomalyco#60599)
bb6769c
Co-authored-by: Tarquinen <[email protected]>
@jlongster
chore(core): use @opencode/pty 0.4.0 (anomalyco#60387)
4e7d369
@kitlangton
feat(core,server): enable schedules by default and run loop in openco…
e76c67a
…de serve (anomalyco#60478)
@opencode-agent @MrMushrooooom
docs(go): raise DeepSeek V4.1 Flash limits to $100/$200/$105 (anomaly…
4fdea64
…co#60625)

Co-authored-by: MrMushrooooom <[email protected]>
@rekram1-node
refactor(ai): one ai object for Promise and Effect (anomalyco#60516)
f0944f0
@rekram1-node
chore(release): leave AI package changes out of the changelog (anomal…
fed4cfc
…yco#60631)
@rekram1-node
Update CHANGELOG.md to remove breaking changes
dca643f
Removed breaking changes section regarding `@opencode/ai` and updated the changelog with new features and fixes.
@rekram1-node
Update CHANGELOG with new features and breaking changes
c6f2f81
Added breaking changes section and updated features.
@kitlangton
refactor(core): store background job markers in a SQLite job table (a…
664c8f0
…nomalyco#60491)
@jlongster
feat(app): move the desktop terminal to persistent PTYs (anomalyco#60346
ef712d3
)
@rekram1-node @r266-tech @PJ-Zetier
fix(cli): keep loopback requests off environment proxies (anomalyco#6…
78dda62
…0441)

Co-authored-by: r266-tech <[email protected]>
Co-authored-by: pj.reid <[email protected]>
@thdxr
fix(core): allow local config to override Console-supplied providers
5759491
Reverts the lock from anomalyco#60315 that ignored user, project and remote overrides on providers the Console supplies. It also blocked harmless overrides such as model limits, names and variants (anomalyco#60597) and internal gateways.
@jlongster
fix(app): keep terminal tab clicks and renames on the right tab (anom…
e7acf85
…alyco#60645)
@github-actions
chore: update nix node_modules hashes (anomalyco#60187)
85d7397
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@thdxr
fix(core): keep schedules off unless experimental.schedules is enabled
da87c47
Restores the opt-in default from before anomalyco#60478. The schedule loop still runs in every server process and keeps its leader election; it only fires schedules in locations that enable the flag.
@usrnk1
feat(ui): add flat input surfaces and compact sizing (anomalyco#60598)
c65bb26
@usrnk1
fix(app): add top inset to recently closed menu search (anomalyco#60652)
a8091a2
@rekram1-node
fix(core): cap compaction's prompt size at the context window (anomal…
cb1e58f
…yco#60660)
@github-actions
release: v2.2.4 (anomalyco#60664)
872f694
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@rekram1-node
fix(ai): stop demoting unsigned and interrupted reasoning to text (an…
822594b
…omalyco#60498)
@rekram1-node
feat(core): accept a percentage for compaction.buffer (anomalyco#60647)
6700dd8
@thdxr
fix(app,tui): hide MCP integrations from the connect menu (anomalyco#…
bf5d12c
…60675)
@rekram1-node
fix(core): keep MCP quiet while a location shuts down (anomalyco#60668)
2e29481
@usrnk1
feat(app): send quotes directly from the comment popup (anomalyco#60640)
ad71144
@kitlangton
fix(core): run calls to a bash tool as shell (anomalyco#60687)
ea982d7
@opencode-agent
fix(stats): scroll dense charts to latest data in Safari (anomalyco#5…
0e82d22
…7459)
@kitlangton
fix(core): show the closest lines when edit misses oldString (anomaly…
2f4653b
…co#60689)
@thdxr
fix(ci): fail desktop publish when an R2 upload fails (anomalyco#60696)
a03ccfd
@kitlangton
fix(core): say which folder is missing when read misses (anomalyco#60688
9321c2c
)
terisuke and others added 26 commits November 4, 2026 16:19
@terisuke
chore: 同期元とstandalone引数修正を統合
1d5770e
@terisuke
chore: 上流互換ソースを認証修正へ統合
653a40d
@rekram1-node
fix(cli): wait for background jobs in opencode run (anomalyco#60699)
ffe6fed
@terisuke
chore: 上流同期を設定移行へ取り込む
8bbe34e
最新のfork CIとWindows修正を保持し、設定のネイティブ化と独立したモデル許可集合を同じソースで検証できるようにする。競合は検査用importの両側を保持して解消した。

Refs: #359

Agent-Lane: codex
@terisuke
chore: 検証済みランチャーを検査へ統合
77f99f2
@terisuke
ci: forkのGUI検査基準を上流祖先へ統一
9f1e63e
上流同期の未変更GUIまでforkの変更と判定していた。ローカルと同じ公式上流の共通祖先をCIでも解決し、fork側のファイル全体検査は維持する。取得失敗や共通祖先不明は拒否する。

Refs: #357

Agent-Lane: codex
@terisuke
chore: fork検査基準の同期を設定移行へ反映
1cb42ea
Metadataの検証を最新の上流祖先基準と同じ条件で開始し、source統合後も設定移行のtreeを変更せずに引き継ぐ。

Refs: #359

Agent-Lane: codex
@terisuke
chore: 上流のCLI待機とUI描画修正を同期
e77c08e
@terisuke
ci(gitleaks): 上流の既知検出を履歴位置に限定
9d07826
メッセージ識別子とloopbackの認証設定例が上流同期の履歴で再検出されるため、除外をcommit・path・rule・行へ固定する。同じ設定で新commitの同pathと別pathに置く非機能候補は検出される。

Refs: #357

Agent-Lane: codex
@adamdotdevin
feat(core): add a websearch.use policy action (anomalyco#61557)
baeebc2
@adamdotdevin
feat(server): let embedders supply the fetch for OpenCode's HTTP and …
ce53f18
…MCP requests (anomalyco#61582)
@terisuke
chore: 上流同期の履歴検査資料を保持
42fc801
@terisuke
chore: 同期元のCI検証修正を取り込む
6f76185
@terisuke
chore: 同期元のCI検証更新を統合
e250252
@terisuke
chore: 既知検出基準を設定移行へ同期
746ed43
@terisuke
chore: forkの検査修正を認証変更へ統合
c30c6d2
@terisuke
chore: 最新のfork検証をモデル更新へ同期
fc84a76
上流同期と同じ検査基準および履歴位置を限定したsecret scanを先に取り込み、source統合後もキャッシュ変更のtreeを維持する。

Refs: #361

Agent-Lane: codex
@terisuke
chore: 設定互換修正を最終候補へ収集
0b840cd
@terisuke
chore(team): 起動互換と実発火検査を最終候補へ収集
00e4df7
@terisuke
chore(team): キャッシュ更新修正を最終候補へ収集
e901e5e
@terisuke
chore(team): Coding Plan鍵修正を最終候補へ収集
8e632d6
@terisuke
chore(team): 追加上流変更を最終候補へ収集
3133c5a
@terisuke
chore: 上流の検索権限とHTTP注入修正を同期
f01d09f
@terisuke
chore(team): 最終固定上流を検証候補へ収集
ec5dc0b
@terisuke
chore(team): 設定修正の公開headを検証候補へ収集
1013c29
@terisuke
chore(team): 引数修正の公開headを検証候補へ収集
bace74e
@terisuke
terisuke marked this pull request as ready for review November 4, 2026 10:54
@terisuke terisuke mentioned this pull request Nov 5, 2026
fix(guardrails): モデル許可集合を上流2.2.5のカタログへ揃える #374
Merged
3 tasks done
@terisuke

terisuke commented Nov 18, 2026

Copy link
Copy Markdown
Author

11/04 から担当がいない。要るなら作り直す。

根拠: 本PR本文が先行として挙げていた #368・#369・#371・#373 などは、すでに dev へ入っている。一方、本文が「固有差分」とした packages/guardrails/smoke/native-cli.ts と packages/guardrails/smoke/README.md は、2026-11-18 時点の dev に無い。関連 issue #365 も未完了。本PRは 11/04 から DIRTY(CONFLICTING)のまま担当がいない。branch は残します。要るなら、今の dev から作り直してください。

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@terisuke terisuke closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

実CLIとAIDDの強制点をローカルで反証可能に検証する

Uh oh!

There was an error while loading. Please reload this page.

18 participants

@terisuke @jlongster @kitlangton @rekram1-node @thdxr @usrnk1 @Hona @cheapredwine @simonklee @nexxeln @richardharnisch @Tarquinen @adamdotdevin @renatomoselli @neriousy @heimoshuiyu @ludvigrask @la55u
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.