ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 TransmuteLabs

catalyst-probes

# catalyst-probes

TransmuteLabs@TransmuteLabs

TransmuteLabs/Catalyst/tree/main/plugins/catalyst-probes

已翻譯

關於這個 mod

一個 hooks 模組提供諮詢引擎和確定性的表單裁判。諮詢者和表單規則在 probes.toml 中設定,啟用方式與諮詢者契約記錄在 NOTES.md。

Form boundary

重新導向、tee 和列出的寫入器會接受判斷;直譯器內的記錄不在判斷範圍內。

列出的寫入器包括 cp、mv、install、dd of=、就地 sed 和 perl、truncate,以及強制符號 ln。目標必須能靜態決定。動態目標字詞和未知工作目錄會標為警告。命令模型涵蓋 bash 和 zsh 視圖的聯集,包括 shell 快照、靜態指派、glob 候選和管線狀態變體。

寫入會在執行後判斷,即使執行拋出例外也一樣;但 log_only 下的候選擴散會跳過執行後判斷(form-post-skipped-fanout)。拒絕類別會比較並還原始檔案、連結或不存在狀態;指紋變更或無法取得,以及父路徑被重新指向,會阻止還原並產生明確警告。還原會替換路徑物件,不是新連結所指向的內容。回滾警告會補充原始記錄,不取代拒絕結果。

每個目標的備份資格是 F 加上該目標的 A1–A3/C1。所有適用類別都設為 log_only 時,該目標不備份也不還原,其位元組不占用共用備份額度。準備階段允許缺少父資料夾,但還原會檢查已保存的祖先和新的目錄鏈。還原使用平台特定的目的地旗標,並在替換後檢查檔案指紋或連結拼字。

每次呼叫的備份額度是 4 MiB 判斷門檻的 8 倍:超過備份容量會在執行前拒絕呼叫。

模組版本是 0.1.55。一次交付中先交付模組,再交付 canon。缺少必要的 canon 金鑰會明確給出 F,而不是靜默關閉表單判斷。驗證和測試不會啟用已安裝的外掛。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add TransmuteLabs/Catalyst
claude plugin install catalyst-probes
原文 / README

catalyst-probes

One hooks module provides the consultation engine and deterministic form judge. Consultants and form rules are configured in probes.toml; arming and the consultant contract are documented in NOTES.md.

Form boundary

судятся перенаправления, tee и перечисленные писатели; записи внутри интерпретаторов — вне суда

The listed writers are cp, mv, install, dd of=, in-place sed and perl, truncate, and forced symbolic ln. Targets must be statically determinable. Dynamic target words and unknown working directories are named warnings. The command model covers the union of bash and zsh views, including shell snapshots, static assignments, glob candidates, and pipeline state variants.

Writes are judged after execution, including when execution throws, except that candidate fan-out under log_only skips post-judgment (form-post-skipped-fanout). Refusing classes use compare-and-restore of the original file/link/absent state; changed or unavailable fingerprints and retargeted parent paths prevent restoration and produce named warnings. Restoration replaces the path object, not the contents of a new link's referent. Rollback warnings augment the original record without replacing its refusal. Backup eligibility is computed per target: F plus that target's A1–A3/C1. All applicable classes set to log_only means no backup and no restoration for that target; its bytes do not consume the shared backup budget. Missing parents are allowed during preparation, but restoration checks the saved ancestor and new directory chain. Restoration uses platform-specific destination flags and checks the resulting file fingerprint or link spelling after replacement. The backup budget is 8 times the 4 MiB judgment threshold per call: превышение объёма бэкапа отказывает вызов до исполнения.

The module version is 0.1.55. Deliver the module first and its canon second, in one delivery step. Missing required canon keys give an explicit F rather than silently disabling form judgment. Validation/tests do not activate the installed plugin.

更多類似作品