Skip to content

build(nix): update agent-config to v0.7.0 and pin the gh config dir as unwritable - #536

Merged
furedea merged 1 commit into
mainfrom
build/update-agent-config-gh-config
Dec 1, 2026
Merged

furedea merged 1 commit into
mainfrom
build/update-agent-config-gh-config

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

概要

agent-config を v0.7.0(99f2ca3)に更新します.これには furedea/agent-config#290 が含まれます.

  • agent 用の gh 設定ディレクトリ ~/.config/agent-harness/gh を,すべての agent から書込み不可として宣言します.
  • gh ガードは,保護された GH_CONFIG_DIR を,リテラルな --repo 付きの読み取りに限って信頼します.

agent-harness は dotfiles#532 の時点から現在の main(249aeac)のままで,更新はありません.

あわせて nix/checks.nix に契約を追加しました.描画された Claude / Codex / Antigravity の設定が,いずれも ~/.config/agent-harness/gh への書込みを拒否することを評価で確認します.

確認済み

  • nix flake check が通ります.
  • 追加した3つの契約はいずれも true です.

マージ後の確認(ユーザー)

  1. sudo darwin-rebuild switch を実行し,agent のセッションを再起動する.
  2. 新しい Claude セッションで git fetch -q origin && gh pr list --repo furedea/dotfiles --limit 1 が承認プロンプトなしで実行できる.
  3. Claude からの ~/.config/agent-harness/gh/config.yml への Edit / Write が拒否される.

🤖 Generated with Claude Code

…s unwritable

Update the agent-config input to 99f2ca3 (v0.7.0, furedea/agent-config#290), which
denies writes to ~/.config/agent-harness/gh for every agent and lets the gh guard
trust a protected GH_CONFIG_DIR for literal --repo reads. agent-harness is already
at its current main (249aeac).

Add contracts that the rendered Claude, Codex and Antigravity settings deny
writes to that directory.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea

furedea commented Dec 1, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-01T08:37:33.379168Z
We couldn’t complete this review. Comment @codex review to try again.
19b3f34 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Review summary: I found no blocking issues.

  • flake.lock changes only the agent-config input (rev 99f2ca3, v0.7.0), which matches the PR description.
  • The three new checks in nix/checks.nix follow the structure of the existing github-app-key-unreadable-by-* checks. The Codex check short-circuits on a null profile, so it won't error on a missing default_permissions.
  • I couldn't run nix flake check here. The exact-string matches (Edit(~/.config/agent-harness/gh/**), write_file(~/.config/agent-harness/gh)) depend on what agent-config v0.7.0 renders. I'm relying on the PR's report that nix flake check passes.
  • There is no test for the gh guard behaviour (trusting a protected GH_CONFIG_DIR only for reads with a literal --repo). That lives upstream in agent-config#290, so I'm not flagging it here.

🤖 Generated with Claude Code

@furedea
furedea merged commit 9ab089a into main Dec 1, 2026
21 of 23 checks passed
@furedea
furedea deleted the build/update-agent-config-gh-config branch December 1, 2026 09:16
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