Design discussion: tamper-evident reuse results (hash-chained repair_cache/events)
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- javascript, sqlite
调研方向
从 README 的 threat-model 声明开始,检查 append-only 的 repair_cache 和 events 接口,以及 workflow_status。将提议的 prev-hash 链和 workflow_verify 风格的检查与现有的 workflow 生命周期进行比较;完成意味着形成一个达成共识的设计,在不串联步骤或添加外部依赖的情况下报告首次出现的分歧。
由索引模型根据 Issue 内容生成。
描述
repair_cache rows are inputs to future execution decisions: a reused result bypasses a fresh agent call, and its output flows into downstream nodes. Today the SQLite file has no integrity protection — the README is upfront that the service is "not protected against other local processes". This is not about attackers; it is about agent mistakes: a buggy tool call, a careless script, or a well-meant cleanup that silently edits or drops reuse rows would be undetectable before those rows are trusted again.
Would you be open to a small hash chain over the append-only surfaces?
repair_cacheinserts andeventsare append-only today; chain them prev-hash style (SHA-256 over the canonical row plus the previous head) and keep the chain head whereworkflow_statuscan report it, so a human or the dashboard can check "the results I am about to reuse are the ones earlier runs actually produced"- mutating rows (
steps) stay out of the chain — they change through their lifecycle by design - a
workflow_verify-style call (or an extension ofworkflow_status) recomputes the chain and reports the first divergence instead of a vague mismatch
Constraints we think matter: chain only append-only surfaces; the threat model is accidental mutation, not adversaries; no git, network, or account dependencies. We run a similar append-only hash-chain trail in our own open-source agent-governance engine (sih-engine — NDJSON event trails with prev-hash and a verify sensor), and are happy to work out a full design and a PR if this fits the roadmap — we would rather align on the shape first.
- 主要语言
- JavaScript
- 星标
- 17
- 派生
- 13
- 平均合并
- 2 天 23 小时
- 30 天内合并 PR
- 19
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MiniMax-AI/MiniMax-Code-Plugins 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
查看 MiniMax-AI/MiniMax-Code-Plugins 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
babalae/bettergi-scripts-list#3674 ·
-
ecosystem wording
难度 1/5 1 小时以内 新手友好度 90/100
matrix-org/matrix.org#3649 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
vadimdemedes/ink#1029 ·
-
code-quality refactoring
难度 2/5 1-3 小时 新手友好度 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
难度 2/5 1-3 小时 新手友好度 74/100
langchain-ai/deepagents#6450 ·