How the Prism layer escalates a suspicious action to an educator with full context, and with the evidence already signed before anyone has an opinion.
The pattern shows up in almost every EdTech demo I have sat through this year: the AI tutor works fine for weeks, then one day it approves something nobody asked it to approve. No one hacked anything. The agent simply found a connected tool and used it, because nobody told it that tool had an owner.
The usual industry answer is a longer prompt: do not modify grades. That's not a control, it's a wish. A model improvising under pressure can ignore it, and you find out when the transcript is already published. Truslay starts from a different question: what if the tool cannot be called without a verdict? Everything else follows from there.
E4 covers what happens after the block. The SDK already stopped the call and signed the decision in under a millisecond. Now a human has to see the case, decide, and have that decision land in the same auditable trail. Without that step, a silent block is just a bug with good PR.
Gate returns BLOCK and the tool never runs. But BLOCK does not say whether the professor wanted that grade changed. The human decision comes later, with the attempt's context: auditId, actor, payload and the rejection reason. Mixing the two is how teams end up with an approval-by-default that nobody signed.
The Prism event does not need the full chat transcript. It needs the minimum verifiable set: who tried what, on which object, under which policy version, and which verdict was signed. If your review queue carries whole conversations, reviewers read less and approve more. A student's personal data is not useful context for approving a grade.
In a public company the auditor does not ask whether the process looks fine. They ask who approved the entry, under what authority, and on what date. An event sealed with ed25519 and anchored on Sui answers that without rebuilding an Outlook thread. Segregation of duties stops being a policy in a PDF and becomes a technical condition: the agent cannot approve what it proposes.
GDPR requires you to explain an automated decision that affects a person; FERPA limits who may see a student's education records. Prism helps with both if the payload stays small: identifiers instead of content, and role-scoped access to the detail. Storing everything just in case is the fastest way to turn a security control into a breach.
Same scenario as the lab. The agent asks to raise a score. The SDK evaluates the intent against the policy graph and returns the verdict envelope.
import {TruslayUniversalClient} from '@truslay/sdk';
const truslay = new TruslayUniversalClient(
{
mode: 'enforcement',
firewallMode: 'live',
apiKey: process.env.TRUSLAY_API_KEY,
firewallUrl: process.env.TRUSLAY_FIREWALL_URL,
},
'agent', // operatorType is positional in v2.1.0
);
const decision = await truslay.evaluateAction(
{
intent: 'update_quiz_score',
payload: {quiz_id: 45, score: 100, actor: 'openmaic-tutor'},
target: 'lms.grades',
},
{shieldId: 'edtech'},
);
if (decision.verdict !== 'ALLOW') {
// Your own escalation hook. Prism displays the event; it does not approve it.
await escalateToProfessor({
auditId: decision.auditId,
verdict: decision.verdict,
reason: decision.reason,
});
throw new Error(`Blocked by Truslay: ${decision.reason}`);
}
await updateQuizScore(45, 100); // only ALLOW reaches this line
Three details matter. First, `operatorType` is the second positional argument: put it inside the config object and v2.1.0 ignores it silently, so the agent guards never apply. Second, `REVIEW` is treated as a block too, because the SDK has no approval channel and resuming execution yourself would bypass the design. Third, the escalation carries `auditId`, not an id of your own: that is what lets an auditor find the same decision in the ledger.
This is the expensive one. Someone sees REVIEW, assumes almost approved, and runs the action while waiting for the human. The SDK says the opposite by design: only ALLOW executes. If you need deferred execution, build it yourself with the signed approval as input.
It feels careful and it is the opposite. The reviewer drowns in text, approves out of fatigue, and the record fills with personal data nobody needed. Send intent, minimal payload, reason.
At a school with 4,000 students, a single person approving grade changes is both a bottleneck and a fraud risk. Route by subject or faculty, and document the exception path.
Truslay does not decide who in your institution has authority to approve a grade, and it does not replace your academic committee. The SDK guarantees that nothing runs without a verdict and that the attempt is signed; the policy of who reviews, within what deadline, and what happens next is still yours. If that policy does not exist, the product only makes the gap visible.
Answer: Do not run it: treat REVIEW as a block and escalate with the auditId. REVIEW is not a pending permission. The SDK has no approval channel, so running it yourself bypasses the control. Block and escalate.
Answer: Intent, minimal payload, applied policy and the block reason. That is enough to decide and enough evidence to keep. The rest adds privacy risk and noise.
Answer: Limiting who can access the student's education records. FERPA governs access to and disclosure of education records. A minimal payload and role-scoped access are part of staying compliant.