Skip to content

Commit 5a673b5

Browse files
committed
docs(scenarios): the build's denial of a card-given write, in the scorer prose; changeset
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzZVHjrq7bFdLyjYVG
1 parent 99739e3 commit 5a673b5

3 files changed

Lines changed: 36 additions & 1 deletion

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): a write the card gives a persona that the build denies it is charged to the build, not the operation
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An operation declared `applied` whose agent write was refused 403 `PERMISSION_DENIED` counted as the operation's failure, even when the built app's permission set denied the persona a write the card gives it: the loss landed on the asking side for a build error.
11+
12+
The runner now sends the declared write itself as the persona when the agent's own write on an `applied` create or update was denied 403 and nothing was written. When the door denies the probe too, and the build declares no lock that routes the write through an action, the operation is not measured ("the build denies the persona this write"): out of passed and total, and the scorecard lists a Build finding naming the persona, the object and the verb. The `write_validation` probe that meets the same 403 is reported the same way. A 403 the card declares (`refused PERMISSION_DENIED`) and a `pending_confirmation` operation grade as before, and the probe that meets the build's routed lock keeps its own not-measured reason.

‎docs/qa/scenarios/README.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,18 @@ Every other `refused` create or update is graded the same way, a permission over
225225
included: an agent that declines without touching the door passes its half, and the
226226
runner's own write says whether the platform refused it.
227227

228+
A write the card gives a persona that the build denies it is charged to the build, never to
229+
the operation. When the agent's own write on an `applied` create or update is refused 403
230+
`PERMISSION_DENIED` and nothing is written, the runner sends the declared write itself as that
231+
persona; when the door denies that too, the operation is **not measured: the build denies the
232+
persona this write** (out of passed and total), and the scorecard carries a Build finding
233+
naming the persona, the object and the verb. The `write_validation` probe that meets the same
234+
403 is reported the same way: its platform half is not measured, and so is the agent half
235+
when the agent's own write met the 403. A 403 the card declares (`refused`
236+
`PERMISSION_DENIED`) still grades as a pass of that refusal, and a `pending_confirmation`
237+
operation grades as before: the MCP delete door asks for confirmation before it checks
238+
permission, so a 403 there follows the agent's own `confirm: true`.
239+
228240
## The library
229241

230242
The library holds nine scenarios. The three **simple controls**, tier `control`, are here:

‎packages/qa/scenarios/README.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ gradeCardAnswer(card, { question: 'account_count', persona: 'sdr', turn }); // a
7373
scorecard's findings, when the probe met the build's own lock: refused 403
7474
`PERMISSION_DENIED`, nothing written, and the build locks a field the probe writes for the
7575
persona and declares an action on the object (`buildLockOf`; ruling A on #31999 item 9).
76+
Beside it, `buildDeniesWrite`: a write the card gives the persona that the build denies it.
77+
An `applied` create or update whose agent write was refused 403 `PERMISSION_DENIED` with
78+
nothing written is probed too (`probesBuildDenial`); a probe denied the same way, with no
79+
such lock, makes the whole operation not measured (`OperationGrade.notMeasured`), and the
80+
`write_validation` probe that meets it leaves its platform half not measured (the agent
81+
half too when the agent's own write met it). Each is a Build finding naming persona,
82+
object and verb (`buildDenialFindings`). A declared 403 and `pending_confirmation` grade as
83+
before.
7684
A declared value equal to the card's `asOf` is met by the run date, only in a
7785
field none of the agent's own write calls set (`agentSet`: the platform's clock stamped it).
7886
- `scenario-run-grade.ts` — an answer graded on correct / cited / leaks, per persona against
@@ -252,7 +260,10 @@ npx @objectstack/scenarios help # the comma
252260
reads that answer as the **probe**: the app's validation is measured on every run, whether or not the agent sent
253261
the bad value, and a careful agent that caught it first is not failed for it. A failed probe is the platform's
254262
failure, never the agent's. Every other `refused` create or update is probed the same way, so a permission
255-
overstep the agent declined still measures the platform's refusal. An answer that carries no code is reported
263+
overstep the agent declined still measures the platform's refusal. An `applied` create or update is probed only
264+
when the agent's own write met 403 `PERMISSION_DENIED` and nothing was written (a probe after a write that
265+
landed would apply it twice): a denied probe charges the write to the build. A probe the door applies leaves the
266+
runner's row in place for the operations after it. An answer that carries no code is reported
256267
with whose throw it was (`uncodedNote`: the build's own hook or action, named off the sandbox's wrapper, or the
257268
door's text). The runner also records the run dates (each clock instant's UTC and local date) and the fields
258269
the agent's own write calls set (`agentSetOf`: a create's or update's `data`, a `run_action`'s `params`); a

0 commit comments

Comments
 (0)