Atomic, lock-safe writes for config.yaml, config.user.yaml, module-help.csv and .memlog.md
まだ誰も着手していません。
評価
調査の方向性
Start by reading merge-config.py, merge-help-csv.py, and memlog.py to compare their current write paths, then trace how each script reads and rewrites shared files. The issue calls for a shared atomic-write helper and platform-specific advisory locking around read-modify-write operations. Done means the named files use this approach and interrupted or concurrent writes do not truncate or lose updates; the issue does not name tests to run.
索引モデルが issue の本文から書いたものです。
説明
Describe your idea
Use one write_atomic(path, text) (unique temp in the same dir + fsync + os.replace) and an advisory lock for every shared file the scripts rewrite.
Why is this needed?
merge-config.py and merge-help-csv.py open their targets with "w", so an interrupted install truncates the shared _bmad/config.yaml or module-help.csv. memlog.py has an atomic write, but with a shared temp name and no lock it loses entries under concurrency (separate bug report).
How should it work?
Shared helper vendored like the others: mkstemp(dir=target.parent), write, flush, fsync, os.replace, plus fcntl.flock / msvcrt.locking around read-modify-write. Install-time config is read by every skill, so a truncated file breaks the whole BMad setup until the installer is re-run.
PR
Happy to help implement this if the direction is agreed.
- 主要言語
- Python
- スター
- 220
- フォーク
- 54
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bmad-code-org/bmad-builder のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bmad-code-org/bmad-builder#157 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bmad-code-org/bmad-builder#153 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bmad-code-org/bmad-builder#151 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
bmad-code-org/bmad-builder#127 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
bmad-code-org/bmad-builder#123 ·
bmad-code-org/bmad-builder の issue をすべて見る
似ている issue
-
namespace
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
EclipseFdn/open-vsx.org#15604 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
netbox-community/netbox-scripts#164 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 5 日以内に返信
-
Public function to read participants.tsv対応中かも @bruAristimunha が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
huggingface/tau#799 ·
メンテナーはふだん 2 日以内に返信