Design discussion: tamper-evident reuse results (hash-chained repair_cache/events)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- javascript, sqlite
Research direction
Start with the README's threat-model statement and inspect the append-only repair_cache and events surfaces, along with workflow_status. Compare the proposed prev-hash chain and workflow_verify-style check against the existing workflow lifecycle; done means an agreed design that reports the first divergence without chaining steps or adding external dependencies.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- JavaScript
- Stars
- 17
- Forks
- 13
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 19
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MiniMax-AI/MiniMax-Code-Plugins
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in MiniMax-AI/MiniMax-Code-Plugins
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100