Guard
A Guard is a check every outbound Message and publish passes, from code rules to model review to a Human for high stakes.
Properties
| Property | Type | Required | Description |
|---|---|---|---|
tier | string | required | One of code, model, reviewer, or human. |
checks | string | What it refuses; a claim Guard checks a stated term or promise against the record that backs it. Never randomized. |
Object
{
"$id": "https: //api.sb/ shiftnote.app/ guards/ guard_1",
"$type": "Guard",
"tier": "code",
"checks": "tone"
}Relationships
- A Guard screens many Messages: Guards check every outbound Message before it goes out.
screens, inversescreenedBy.
Verbs
createCreates a Guard.POST /{namespace}/guardsgetReturns one Guard by id.GET /{namespace}/guards/{id}listReturns Guards, newest first, one page at a time.GET /{namespace}/guardsupdateChanges the given properties of a Guard.PATCH /{namespace}/guards/{id}deleteDeletes a Guard; its history is kept.DELETE /{namespace}/guards/{id}
Permissions
Which Access level may call each Verb. One-way Verbs wait their delay window.
| Operation | owner | admin | member | viewer |
|---|---|---|---|---|
Guard.create | Yes | Yes | No | No |
Guard.get | Yes | Yes | Yes | Yes |
Guard.list | Yes | Yes | Yes | Yes |
Guard.update | Yes | Yes | No | No |
Guard.delete | Yes | Yes | No | No |
Call it
Add a guard to RouteWise.Example
A Guard blocks a sales email that promises "guaranteed 100% accuracy," because the Offer warrants 99.5%. The Agent rewrites it before it sends.