// What is an AI harness, and who actually runs the tools? // Teaching excerpts; see the explanation and boundaries on the episode page. // A tool request is data const call = { id: "call_1", name: "runTests" }; // Check permission before execution let result = { error: "blocked" }; if (call.name === "runTests") { if (permissions.tests === true) { result = await runTests(); } } await model.next({ call, result }); // Return the result to the model // Same runTests request, permission off: { error: "blocked" } // Permission on, actual test summary: { failed: 1, passed: 0 }