Harness

Properties from a tool

Read one of the app's secrets, or sign with one of its key pairs, inside a tool at call time with the task token.

Properties are secrets and key pairs the app keeps in Scute for its agents. A tool reads a secret when it runs, or asks Scute to sign with a key whose private half never leaves Scute. The value is for the tool, never for the model: use it, do not return it.

Read a secret#

const refund_invoice = tool({  description: "Refund an invoice",  inputSchema: z.object({ invoice_id: z.string(), amount: z.number() }),  execute: async ({ invoice_id, amount }) => {    const apiKey = await run.property("stripe");    await refunds.create({ invoice_id, amount }, apiKey);    return { refunded: invoice_id };  },});

refunds.create stands for your payment client. The request is GET /v1/auth/:app_id/agent/properties/:name with the task token; the answer is { "name", "value" } and the method returns the value.

Sign with a key pair#

const { jws, kid } = await run.sign("mandates", { claims: { sub: "INV-1", amount: 90 } });const { signature } = await run.sign("mandates", { data: "aGVsbG8" }); // base64url bytes
  • claims come back as a compact JWS. Scute adds iat and sets iss to <app public id>/properties/<name>.
  • data (base64url bytes) comes back as a base64url signature. Data that is not base64url is refused with invalid (422).
  • Python and Ruby raise when neither claims nor data is given.
  • The request is POST /v1/auth/:app_id/agent/properties/:name/sign.
  • Verifiers find the public keys at /v1/auth/:app_id/properties/:name/jwks.json.

Who may use a property#

Scute checks, on every read and every signature:

CheckRefusal
The property existsnot_found (404)
It is the right kind (secret for property, key pair for sign)wrong_kind
It is turned on and not expiredproperty_disabled, property_expired
The task's agent is listed on the propertyagent_not_listed
The task is liveinvalid_task_token (401)
When the property names a permission: the task is allowed it nowtask_not_permitted when the engine denies; when it needs verification or approval, the engine's reason (403) with the engine's answer and a say line in the error details

Every use is logged with the agent and task and updates the property's last-used time.

In TypeScript a refusal throws ScuteHarnessError with status, code and the API's body; in Python and Ruby it raises APIError.

The harness sends no verification or approval proofs with property reads or signatures. A property whose permission needs step-up or a reviewer is refused with the engine's answer until the task is allowed the permission without them.

What properties are and how they are set up is described under Agents.