DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to block replayed or altered agent write approvals with AI Engineering From Scratch

Check role and path on agent tool calls, consume each approval once, and write an audit receipt.

Short answer: Confirm a Rust toolchain is installed, since the README names Rust but does not give a version; then run python3 scripts/project_test.py tool-call-firewall --init learning-artifacts/tool-call-firewall from the repository root; Validate the call envelope and check the caller's role and path in the starter. All steps.

Who it is forA developer building an agent that proposes writes and needs an approval step with a clear audit trail.

The problemA write can change after review, or an approval can be replayed to run a different operation.

The outcomeAn audit receipt that shows the requested operation and the policy decision, with approvals bound to the exact request.

What you need first

  • Node.js, npx, and python3 installed for the coding agent tutor
  • A skill-capable coding agent such as Claude Code or Codex, with a writable skills scope
  • Python 3.10 or newer for the retrieval and firewall projects
  • Node.js 22.18 or newer for the agent trace debugger
  • A clone of the repository so the project_test.py grader is available

Steps

  1. Confirm a Rust toolchain is installed, since the README names Rust but does not give a version. (inferred, check the README)
  2. Run python3 scripts/project_test.py tool-call-firewall --init learning-artifacts/tool-call-firewall from the repository root. (inferred, check the README)
  3. Validate the call envelope and check the caller's role and path in the starter.
  4. Consume an approval bound to the exact request and content, then run python3 scripts/project_test.py tool-call-firewall --all --path learning-artifacts/tool-call-firewall --strict. (inferred, check the README)
  5. Keep the audit receipt and confirm the replay test fails.

Prompt for your agent

In the repo rohitg00/ai-engineering-from-scratch, run the tool-call-firewall project with --init into learning-artifacts/tool-call-firewall, then implement the stages until the --all --strict grader passes. Expected output: an audit receipt for each tool call with the policy decision. Verify that a replayed approval and an altered write are both rejected.

Caveat. The caller application supplies identity, and the project does not provide persistent authorization or an operating-system sandbox.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for rohitg00/ai-engineering-from-scratch and "Block replayed or altered agent write approvals"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer