draftcat 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -123,7 +123,7 @@ However your agent runs, draftcat sits between it and your customer systems as a
123
123
  - **Approver scoping** — `approvers:` on a step narrows who may decide it to a subset of `allowed_users`. Quorum says *how many*; this says *which ones*. It can only narrow, never widen.
124
124
  - **Model I/O policy** - ordered `model_policy` regex rules check exact input before it reaches the provider and output before it leaves Draftcat. A match can deny or enter the existing human approval gate, and the decision is written as a versioned receipt.
125
125
  - **Input sanitization** — operator input is scrubbed for prompt-injection patterns before the LLM.
126
- - **Output validation** — AI output is checked against the skill's `output_schema` (field types, numeric `min`/`max`, `enum` membership) and rejected if it doesn't conform.
126
+ - **Output validation** — AI output is checked against the skill's `output_schema` (field types, numeric `min`/`max`, `enum` membership) and rejected if it doesn't conform. A rejected reply is asked for once more with the validation error, as its own budgeted, policy-checked call; `output_retries` on the step sets the count (0 to 3, `0` fails on the first invalid reply).
127
127
  - **Checked action receipts** - v2 receipts bind immutable action ID, payload hash, policy digest, validity window, run, and decision. List, inspect, or stream JSONL from SQLite with `draftcat receipts`; see [`docs/action-receipts.md`](docs/action-receipts.md).
128
128
  - **Durable webhook admission** - Draftcat writes a body-hash-only admission row before returning HTTP 202. The response includes `admission_id` and an authenticated poll URL; unfinished admissions become `interrupted` after restart.
129
129
  - **Health contract** - `GET /healthz` reports process liveness and `GET /readyz` succeeds only while the SQLite decision store is available.
@@ -292,6 +292,15 @@ observability: {spans: false} # or DRAFTCAT_TRACE=1
292
292
  state: {path: ./state.db}
293
293
  ```
294
294
 
295
+ A step that sends the same long instructions on every run can have them
296
+ cached by an Anthropic model: `prompt_cache: true` on the model marks the
297
+ step's prompt up to its first `{{placeholder}}` for Anthropic prompt caching.
298
+ Runs that start with the same instructions within five minutes read them at a
299
+ tenth of the input price; the run that writes them pays 1.25x, so it is off by
300
+ default. It applies to `anthropic/` models on OpenRouter; every other model is
301
+ sent the plain prompt. Without a provider-reported charge, the cost caps count
302
+ cache writes at the write price.
303
+
295
304
  An approval step can narrow who may decide it:
296
305
 
297
306
  ```yaml
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "draftcat",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Governed AI pipelines with human approval gates",
5
5
  "license": "MIT",
6
6
  "author": "Rene Zander",