fw doctor should assert no tracked path matches an ignore rule (a gitignore line for a tracked file is inert)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
調査の方向性
Start by reading the fw doctor implementation and its existing checks, then inspect how it invokes Git; the issue names git ls-files and git check-ignore --stdin --no-index as the proposed check. The requested work also discusses changes to fw init and audit filtering, so confirm the intended scope with maintainers. Done when tracked paths matched by ignore rules are reported with a git rm --cached fix.
索引モデルが issue の本文から書いたものです。
説明
Summary
A .gitignore rule that names an already-tracked path is inert, and nothing in the framework
notices. fw doctor should assert that the set of tracked paths and the set of ignored paths do
not intersect.
What we measured
In a project on 1.6.769, .context/working/.gitignore has carried these lines since T-1005:
watchtower.log
watchtower.pid
watchtower.port
watchtower.url
git ls-files .context/working returned watchtower.pid, watchtower.port and watchtower.url
anyway. T-1005 wrote the rules but never ran git rm --cached, so for months the rule sat beside
three files it had no effect on. Consequences: the port file was committed on every Watchtower
restart, and watchtower.url carried a LAN address (http://192.168.10.107:3000) in the
repository. Same shape for .approval-notified, .auto-restart-pending and .handover-cooldown,
which agents/context/post-compact-resume.sh:73-76 deletes on every compaction — three staged
deletions per compaction, permanently.
Note that git check-ignore hides this by default: it does not report tracked files unless you
pass --no-index. So the obvious manual check comes back clean.
Why this matters beyond one project
The framework had already routed around the symptom rather than fixing it.
agents/audit/audit.sh:3724 maintains _SESSION_STATE_FILTER:
_SESSION_STATE_FILTER='^\.context/(working/(watchtower\.|session\.yaml|focus\.yaml|...|\.approval-notified|\.restart-requested|...)|audits/|...)'
That is a second, hand-maintained list of volatile paths, in a shell regex, used to filter these
files out of the audit's "uncommitted changes present" warning. So two lists exist — one in
.gitignore, one in audit.sh — that must agree, are written in different languages, live in
different files, and are never compared. The audit suppressed the noise; the noise stayed, and
the ignore rule that was supposed to prevent it never ran.
This is the same shape as the template→CLAUDE.md cross-reference in #41, and the same lesson a
project-level learning already records: a cross-reference from code into a document rots silently
unless a check spans both.
Asks, in order of leverage
-
fw doctorcheck: no tracked path matches an ignore rule. One line, catches every future
instance in every project:git ls-files > /tmp/t && git check-ignore --stdin --no-index < /tmp/tNon-empty output is the finding. Report the paths and the fix (
git rm --cached <path>). -
Make
fw init/ the ignore-writing path untrack what it ignores. When a rule is added for
a path that is already in the index,git rm --cachedit in the same operation, or refuse and
say so. Writing a rule that cannot take effect is worse than writing none, because it reads
like enforcement. -
Derive
_SESSION_STATE_FILTERfrom the gitignore instead of duplicating it. If the audit
needs to know which paths are volatile session state, the gitignore already says so — and once
ask 1 holds, the two can no longer disagree. Failing that, add a test that asserts every path
in the filter is covered by an ignore rule.
Environment
- Framework 1.6.769, shared-tooling mode
- Fixed locally in the project as T-1120; the six paths are untracked and the intersection
assertion is now a P-011 verification line there.
- 主要言語
- Shell
- スター
- 16
- フォーク
- 6
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DimitriGeelen/agentic-engineering-framework のほかの issue
-
area:context bug severity:medium status:received triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
DimitriGeelen/agentic-engineering-framework#113 · コメント 2 件 ·
-
area:watchtower bug severity:medium status:received triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DimitriGeelen/agentic-engineering-framework#110 · コメント 2 件 ·
-
area:fabric bug severity:medium status:received triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
DimitriGeelen/agentic-engineering-framework#109 · コメント 2 件 ·
-
area:fabric bug severity:medium status:received triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DimitriGeelen/agentic-engineering-framework#108 · コメント 2 件 ·
-
area:tasks bug severity:high status:received triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
DimitriGeelen/agentic-engineering-framework#107 · コメント 2 件 ·
DimitriGeelen/agentic-engineering-framework の issue をすべて見る
似ている issue
-
prove-test.sh fails on macOS bash 3.2 without --test-path対応中かも @skhussain96 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
addyosmani/factory#5 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
rossoctl/automation#133 ·
メンテナーはふだん 3 日以内に返信
-
source:reader type:enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
stephrobert/blog-roadmap#162 ·
-
Release archives ship cvc5 without its license files対応中かも @mbovel が今日担当しました。 オープンbug packaging
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
wazuh/wazuh-ansible#2413 ·
メンテナーはふだん 1 日以内に返信