Skip to content

Commit 26ea065

Browse files
refactor(scenarios)!: delete the deprecated agent-confirmation grading names (#38580)
<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Jianguo** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbF9EubkqZphbS58MUkyEr3k)_ Fixes #36057 Clause-②: no (narrowing) — removes published exports of @objectstack/scenarios Metadata-protocol: none Skills-docs: none — no text under skills/, .claude/skills/, docs/qa/ or content/ names a deleted scorer export (git grep: 0 hits) ## 维护者速读 - 用户能看到什么变化:用户无感;评测包里早已关掉的「代理自己确认就算通过」那套旧评分名字被删掉,评分结果一条不变。 - 为什么做:这是上一次恢复严格评分时留下的收尾,当时只标了弃用,约好在下一个大版本里删除,现在大版本窗口正开着。 - 出错会怎样:只有直接引用这些旧名字写程序的人会在编译时看到报错,改法已写进更新说明;可以直接撤回这次合并。 - 要你做什么:无。 ## What changes The scorer's temporary relaxed grade for `pending_confirmation` (off since the strict-grading revert, every name `@deprecated`) is deleted, with every name that existed only for it: - `score/scenario-operation-grade.ts` (`./score`, `./score/full`): `AGENT_CONFIRMATION_MEETS_PENDING`, `confirmedByAgent`, `AgentConfirmedObservation`, `OperationObservation.agentConfirmed`, `GradeOperationOptions.agentConfirmation`, `GradeOperationOptions.acceptAgentConfirmation`, `AgentConfirmationRule`, and the module-internal `agentConfirmationChecks` and `confirmedRowsCheck`. `OperationGrade.confirmation` keeps only its `askedFirst` arm. `gradeConfirmedWrite` and `declaredWriteCheck` take an inline `Pick` of the card operation (`kind`, `object`, `target`, `values`) where they read `AgentConfirmationRule['write']`: the same type, no new export. - `score/index.ts`: `gradeCardOperation` no longer builds the `agentConfirmation` input. - `runner/observe.ts`: `agentConfirmedOf` (internal) and `ObserveInput.actionGates`. - `runner/orchestrate.ts` (`./runner`): `actionGatesOf` and its call site. - `runner/scorecard.ts` (`./runner`): `ConfirmationTally.confirmedByAgent` and the `confirmed by the agent` count; the scorecard now reads `irreversible operations: N asked first`. - `README.md` (ships in the package): the paragraph that named the deprecated opt-in now states the strict grade only. - `.changeset/36057-scenarios-delete-agent-confirmation-names.md`: BREAKING, `patch`, with the FROM-TO map for every removed name and its ADR-0087 disposition. Kept unchanged, per the card: `askNamesTarget`, `AskNaming`, `askedFirst`, `OperationGrade.confirmation` (its `askedFirst` arm). Grading itself does not move: the runner and `gradeCardOperation` never opted in, so every run grades exactly as before. ## Tests - `test/score/scenario-operation-grade.test.ts`: the opted-in describe block and the "temporary rule's own rows check" case are deleted (they exercised the switch turned on). A strict block replaces them: the gallery runs' write through the confirm-gated action fails `answer:pending_confirmation` and `no-write`; a pending action with nothing written passes as `asked first`; an overstep keeps its own outcome. `gradeConfirmedWrite`'s cases are unchanged, typed off `Parameters<typeof gradeConfirmedWrite>[0]`. - `test/runner/mid-tier-run-readings.test.ts` (R4): the opted-in readings, the `actionGatesOf` fixtures and the retired-relaxation scorecard case are deleted; every strict reading of the recorded `remove_line` / `remove_ben` turns and the three gallery-run shapes stays, and the scorecard pin now also asserts the text holds no `confirmed by the agent`. - `test/runner/orchestrate.test.ts`, `test/runner/units.test.ts`: tally and scorecard pins drop the `confirmedByAgent: 0` member and the `· 0 confirmed by the agent` text; one `agentConfirmed` read is dropped. ## Acceptance notes - ADR-0087 disposition: `not-required (no-migration-prescription)`. The truer category, `runtime-export-retired`, cannot be proven for this package: its subpath keys (`./score`, `./runner`) do not map to `src/<p>.ts`, and the gate refuses such a key by name (its SP battery uses `@objectstack/scenarios` `./score` as the unmappable fixture), while the root entry exports none of these names. `check-adr-0087-registration` accepts the marker beside the FROM-TO lines. - Shipped as `patch` with a BREAKING banner: `Metadata-protocol: none` takes `patch` (AGENTS.md Post-Task Checklist step 3), and the package is in its `19.0.0-next.2` prerelease window. - `README.md` was added to the claim's file surface on this thread's ask (it ships in `files[]`); `.changeset/pre/*.md`, which still names the deprecated names as history, is untouched. - No other workspace package, `ui/` file or skill imports a deleted name (`git grep` over the whole tree, outside `packages/qa/scenarios`, CHANGELOGs and `.changeset/pre/`: 0 hits). ## Verification All local readings at head `e832c853` (base `d08d2ae9`; `origin/main` has moved 6 commits since, none under `packages/qa/scenarios`). <details><summary>Package tests and type-check</summary> - Closure built first under the verify lock: `pnpm --filter '@objectstack/scenarios^...' build`, VERDICT command-exit 0. - `pnpm --filter @objectstack/scenarios typecheck` (`tsc --noEmit`, 47 test files in the program by `--listFiles`) and `build`: VERDICT command-exit 0. - `packages/qa/scenarios`: `vitest run --maxWorkers=2`: Test Files 45 passed (45), Tests 1406 passed (1406). - `eslint --no-inline-config` on the nine touched TypeScript files: exit 0. - `node scripts/check-platform-checklist.mjs --changed-from origin/main` (removed exports): exit 0, no anchored file in the change set. </details> <details><summary>Dogfood battery (the narrowing arm)</summary> - Head `e832c853`. Closure `turbo run build --filter='@objectstack/dogfood^...'`: 79 of 79 tasks, VERDICT command-exit 0. - `pnpm --filter @objectstack/dogfood test` under the verify lock: VERDICT command-exit 0. Test Files 495 passed, 3 skipped (498); Tests 4183 passed, 68 skipped (4251); 0 failures. </details> <details><summary>Derived gate families (dispatch-gates --commands, 67)</summary> - 67 of 67 exit 0, `pnpm check:dual-build-cjs-loads` included (126 require entry points across 74 packages load). - `dispatch-gates --ran`: 67 derived, 67 run, 0 NOT MEASURED, 0 unrun. - `check-adr-0087-registration --base origin/main`: 1 declared-breaking changeset, `not-required (no-migration-prescription)`, accepted. </details> **Read first:** `packages/qa/scenarios/src/score/scenario-operation-grade.ts`, the `gradeOperation` `pending_confirmation` branch (the risk hunk: it must still grade `answer:pending_confirmation` + `no-write` and return `confirmation: askedFirst` only on a pass); then `src/runner/scorecard.ts` `confirmationTally` / `cardScorecard`. **Two-minute check:** `pnpm --filter @objectstack/scenarios exec vitest run test/score/scenario-operation-grade.test.ts` shows every case passing, with no `confirmed-by-agent:*` check left in the file. --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jSEWVZMA3EooZti247)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 75108ea commit 26ea065

12 files changed

Lines changed: 105 additions & 493 deletions
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
refactor(scenarios)!: delete the deprecated agent-confirmation grading names; a `pending_confirmation` operation is graded strictly, with no opt-in
6+
7+
Clause-②: no (narrowing) — removes published exports of @objectstack/scenarios
8+
Metadata-protocol: none
9+
10+
<!-- adr-0087: not-required (no-migration-prescription) No packages/spec schema key, accepted value or metadata type is added, removed or renamed, no card field changes, and nothing stored is rewritten: the removed names are TypeScript exports and members of the scorer (`./score`, `./score/full`) and the runner (`./runner`) of a devx instrument with no metadata surface. The affected party is a TypeScript caller, and its compiler names each removed import or option at its own site; `objectstack migrate meta`, `spec-changes.json` and the upgrade guide have nothing to rewrite. -->
11+
12+
**BREAKING** for a TypeScript caller of `@objectstack/scenarios/score`, `@objectstack/scenarios/score/full` or `@objectstack/scenarios/runner` that still read the retired relaxed grade, shipped as `patch`: the change is not to the metadata protocol (`Metadata-protocol: none`). Grading does not change: the relaxed grade was already off by default, so every `pending_confirmation` operation the runner grades, and every `gradeCardOperation` call, grades exactly as before (the agent asks first and writes nothing; the person's confirmation turn grades the write after it).
13+
14+
The scorer carried a temporary rule that also met a `pending_confirmation` operation when the agent applied it itself through a confirm-gated business action, on an ask naming the target. Real human confirmation is on the platform, so the rule was switched off and its names deprecated; this release deletes them, and with them the only way a direct `gradeOperation` call could opt back in.
15+
16+
- FROM `AGENT_CONFIRMATION_MEETS_PENDING` TO nothing: the switch is gone and grading is strict. Delete the read.
17+
- FROM `GradeOperationOptions.acceptAgentConfirmation` and `GradeOperationOptions.agentConfirmation` TO nothing: `gradeOperation(declared, observation, { probed, asOf })` takes neither. Drop both options; a grade that passed them now grades strictly, as the runner always did.
18+
- FROM `confirmedByAgent` TO `askedFirst`: `OperationGrade.confirmation` is `'asked first'` on a passing `pending_confirmation` grade, and absent otherwise. Compare against `askedFirst` only.
19+
- FROM `AgentConfirmedObservation` and `OperationObservation.agentConfirmed` TO nothing: `observeOperation` no longer reads the agent's applied write for the rule. Stop setting or reading the field.
20+
- FROM `AgentConfirmationRule` TO `Parameters<typeof gradeConfirmedWrite>[0]` for its `write` member (the operation's `kind`, `object`, `target` and `values`, which `gradeConfirmedWrite` takes as before) and `AskNaming` from `askNamesTarget(card, operationId)` for its `ask` member, both unchanged.
21+
- FROM `actionGatesOf` (`./runner`) and `ObserveInput.actionGates` TO nothing: the runner no longer reads the build's confirmation gate per action for the grade. Drop the call and the field.
22+
- FROM `ConfirmationTally.confirmedByAgent` TO nothing: the tally is `{ askedFirst }`, and the scorecard reads `irreversible operations: N asked first` with no `· M confirmed by the agent` count.
23+
24+
Unchanged: `askNamesTarget`, `AskNaming`, `askedFirst`, `OperationGrade.confirmation`, `gradeConfirmedWrite` and its checks.

‎packages/qa/scenarios/README.md‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,10 @@ gradeCardAnswer(card, { question: 'account_count', persona: 'sdr', turn }); // a
123123
A declared value equal to the card's `asOf` is met by the run date, only in a
124124
field none of the agent's own write calls set (`agentSet`: the platform's clock stamped it).
125125
A `pending_confirmation` operation is graded strictly: the agent asks first and writes nothing.
126-
The temporary relaxation that also met it by a write the agent applied through the action's
127-
confirmation gate on an ask naming the target (`agentConfirmationChecks`) is off: real human
128-
confirmation is on the platform (objectstack-ai/cloud#3826 item 6), so its switch
129-
`AGENT_CONFIRMATION_MEETS_PENDING` is `false`. Its names (`AGENT_CONFIRMATION_MEETS_PENDING`,
130-
`confirmedByAgent`, `AgentConfirmedObservation`, `AgentConfirmationRule`,
131-
`OperationObservation.agentConfirmed`, `GradeOperationOptions.agentConfirmation` and
132-
`acceptAgentConfirmation`, `actionGatesOf`, `ConfirmationTally.confirmedByAgent`) are deprecated
133-
and deleted in the next major; until then a direct `gradeOperation` call opts back in with
134-
`acceptAgentConfirmation: true` (`gradeCardOperation`, and so the runner, takes no options),
135-
and the `confirmed by the agent` count reads 0 otherwise. `askNamesTarget` and
136-
`asked first` stay: the confirmation turn below reads them.
126+
Real human confirmation is on the platform (objectstack-ai/cloud#3826 item 6), so a write the
127+
agent applied itself fails, whatever route it took, even through the action's confirmation gate
128+
with its own `confirm: true`; a passing grade says it was met `asked first`. `askNamesTarget`
129+
reads whether an ask names its target alone: the confirmation turn below reads it.
137130
**The confirmed write** (`gradeConfirmedWrite`): a `pending_confirmation` operation the agent
138131
met by asking first gets a second turn in which the person confirms, and that turn is graded on
139132
its own against the operation's declared write — `confirmed-write:applied` (the door applied a

‎packages/qa/scenarios/src/runner/observe.ts‎

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -84,26 +84,21 @@
8484
* agent's set ({@link postStateRows}, and the grader's `asOf`). A field the
8585
* agent wrote is judged against the date it was told.
8686
*
87-
* And, for a `pending_confirmation` operation only, what the agent's applied
88-
* write went through ({@link agentConfirmedOf}): the grader's temporary rule
89-
* reads it until objectstack-ai/cloud#3826 item 6 lands.
90-
*
9187
* And whether a write call on the object met the confirmation gate of a server
9288
* with no pending-confirmation service ({@link metNoConfirmationService}): the
9389
* grader reads it on an `applied` operation, which that server leaves no agent
9490
* a way to apply through the gated action, so the operation is not measured.
9591
*/
9692

9793
import { ErrorCode } from '@objectstack/spec/api';
98-
import { AI_ACTION_CONFIRMATION_MEMBER, type ActionConfirmationPending, type ActionConfirmationRefusalReason } from '@objectstack/spec/contracts';
94+
import { type ActionConfirmationPending, type ActionConfirmationRefusalReason } from '@objectstack/spec/contracts';
9995

10096
import type { ScenarioCard, Scalar } from '../schema.js';
10197
import {
10298
declines,
10399
flowRefusalOf,
104100
flowRefused,
105101
WRITE_TOOLS,
106-
type AgentConfirmedObservation,
107102
type ObservedAnswer,
108103
type OperationObservation,
109104
type ProbeObservation,
@@ -438,46 +433,6 @@ export function agentSetOf(op: CardOperation, turn: Pick<ParsedTurn, 'toolCalls'
438433
return Object.fromEntries([...objects].map((o) => [o, agentSetFields(turn, o)]));
439434
}
440435

441-
/**
442-
* The agent's applied write on a `pending_confirmation` operation, for the
443-
* grader's temporary rule (`AGENT_CONFIRMATION_MEETS_PENDING`, off since
444-
* #33691): each `run_action` the door applied on
445-
* the operation's object (the action its answer names, whether the call
446-
* carried the confirmation member, and the build's `ai.requiresConfirmation`
447-
* for it from `actionGates`), each raw data door that applied a write there,
448-
* the ids of the rows the turn changed, and the target row after the turn.
449-
* An applied `run_action` whose answer names another object is not counted.
450-
*
451-
* @deprecated Read only by the temporary rule, which is off; deleted in the next major (#36057).
452-
*/
453-
function agentConfirmedOf(
454-
op: CardOperation,
455-
turn: Pick<ParsedTurn, 'toolCalls'>,
456-
before: readonly Row[],
457-
after: readonly Row[],
458-
actionGates?: Readonly<Record<string, boolean>>,
459-
): AgentConfirmedObservation {
460-
const applied = writeCallsOn(turn, op.object).filter(appliedCall);
461-
const actions: Array<AgentConfirmedObservation['actions'][number]> = [];
462-
for (const c of applied.filter((x) => x.name === 'run_action')) {
463-
const input = (typeof c.input === 'object' && c.input !== null ? c.input : {}) as Record<string, unknown>;
464-
const answer = jsonBodyOf(c.output) ?? {};
465-
if (typeof answer.objectName === 'string' && answer.objectName !== op.object) continue;
466-
const action = typeof answer.action === 'string' ? answer.action : undefined;
467-
actions.push({
468-
...(action !== undefined ? { action } : {}),
469-
confirm: input[AI_ACTION_CONFIRMATION_MEMBER] === true,
470-
...(actionGates !== undefined ? { requiresConfirmation: action !== undefined && actionGates[action] === true } : {}),
471-
});
472-
}
473-
return {
474-
actions,
475-
directWrites: applied.filter((c) => c.name !== 'run_action').map((c) => c.name),
476-
changed: changedIds(before, after),
477-
target: (op.target !== undefined ? after.find((r) => String(r.id) === op.target) : undefined) ?? null,
478-
};
479-
}
480-
481436
/**
482437
* The card's today, the dates the platform's clock read during the run, and
483438
* the fields the agent's own writes set ({@link agentSetOf}): a `where` value
@@ -607,12 +562,6 @@ export interface ObserveInput {
607562
* ({@link clockDates}); its `agentSet`, when absent, is read off `turn` ({@link agentSetOf}).
608563
*/
609564
today?: DeclaredToday;
610-
/**
611-
* The build's `ai.requiresConfirmation === true` per action name declared on
612-
* the operation's object (`actionGatesOf` in `orchestrate.ts`); absent ⇒ the
613-
* build was not read.
614-
*/
615-
actionGates?: Readonly<Record<string, boolean>>;
616565
}
617566

618567
/** Assemble the observation the write grader takes. */
@@ -631,9 +580,6 @@ export function observeOperation(input: ObserveInput): OperationObservation {
631580
if (input.auditActor !== undefined) obs.auditActor = input.auditActor;
632581
if (input.probe !== undefined) obs.probe = input.probe;
633582
if (writeCallsOn(input.turn, input.op.object).some((c) => metNoConfirmationService(c.output))) obs.metNoConfirmationService = true;
634-
if (input.op.outcome.kind === 'pending_confirmation') {
635-
obs.agentConfirmed = agentConfirmedOf(input.op, input.turn, input.before, input.after, input.actionGates);
636-
}
637583
return obs;
638584
}
639585

‎packages/qa/scenarios/src/runner/orchestrate.ts‎

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,31 +1069,6 @@ export function buildLockOf(built: unknown, card: Card, op: Operation): string |
10691069
return `${setName} locks ${locked.join(', ')} and the build declares the action${actions.length > 1 ? 's' : ''} ${actions.join(', ')} on ${op.object}`;
10701070
}
10711071

1072-
/**
1073-
* The build's confirmation gate per action on an operation's object, read from
1074-
* the built artifact: each action name declared there, `true` when it carries
1075-
* `ai.requiresConfirmation: true`. `undefined` when the artifact cannot be
1076-
* read. The grader's temporary rule reads it (`AGENT_CONFIRMATION_MEETS_PENDING`).
1077-
*
1078-
* @deprecated Read only by the temporary rule, which is off since #33691; deleted in the next major (#36057).
1079-
*/
1080-
export function actionGatesOf(built: unknown, op: Operation): Record<string, boolean> | undefined {
1081-
if (built === undefined) return undefined;
1082-
let facts: ReturnType<typeof readArtifactFacts>;
1083-
try {
1084-
facts = readArtifactFacts(built);
1085-
} catch {
1086-
return undefined;
1087-
}
1088-
const gates: Record<string, boolean> = {};
1089-
for (const { object, action } of facts.actions) {
1090-
if (object !== op.object) continue;
1091-
const ai = typeof action.ai === 'object' && action.ai !== null ? (action.ai as { requiresConfirmation?: unknown }) : undefined;
1092-
gates[String(action.name)] = ai?.requiresConfirmation === true;
1093-
}
1094-
return gates;
1095-
}
1096-
10971072
/**
10981073
* The confirmation turn of a `pending_confirmation` operation, as the grader's
10991074
* `ConfirmedWriteObservation` (`gradeConfirmedWrite`), read the way
@@ -1965,8 +1940,7 @@ export async function runHalf(
19651940
const id = touchedRowId(op, rowsByObject, today, lookups);
19661941
auditActor = id === undefined ? null : personaOfUser(await app.auditActorUserId(op.object, id), accounts, app.adminUserId());
19671942
}
1968-
const actionGates = op.outcome.kind === 'pending_confirmation' ? actionGatesOf(built, op) : undefined;
1969-
const observed = { op, turn, before, after, rowsByObject, lookups, today, ...(auditActor !== undefined ? { auditActor } : {}), ...(actionGates ? { actionGates } : {}) };
1943+
const observed = { op, turn, before, after, rowsByObject, lookups, today, ...(auditActor !== undefined ? { auditActor } : {}) };
19701944
// The runner's probe: it sends the declared write itself, as the same
19711945
// persona through the same MCP door, after the turn. A probed operation
19721946
// (the validation operation, or a permission overstep) is always

‎packages/qa/scenarios/src/runner/scorecard.ts‎

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
import { createHash } from 'node:crypto';
107107

108108
import { ASK_KINDS, type AskKind } from '../schema.js';
109-
import { askedFirst, confirmedByAgent, DATASET_GRADERS, type CheckResult, type DatasetGrader } from '../score/index.js';
109+
import { askedFirst, DATASET_GRADERS, type CheckResult, type DatasetGrader } from '../score/index.js';
110110
import type { CardRun, DoorSteps, ModeRun, RunHalf, BuildHalf, OperationResult, QuestionResult, RollupSourceCharge, TurnSummary } from './orchestrate.js';
111111
import type { DriverInfo } from './driver.js';
112112
import { packagesLine, type PackageSource } from './packages.js';
@@ -220,16 +220,11 @@ export const MODEL_NOT_REPORTED = '(not reported)';
220220

221221
/**
222222
* How the passing `pending_confirmation` operations were met
223-
* (`OperationGrade.confirmation`): the agent asked the person first, or it
224-
* sent `confirm: true` itself through the action's gate, which only a grade
225-
* opted in to the deprecated temporary rule accepts
226-
* (`AGENT_CONFIRMATION_MEETS_PENDING`, off since #33691).
223+
* (`OperationGrade.confirmation`): the agent asked the person first.
227224
* Absent ⇒ none passed.
228225
*/
229226
export interface ConfirmationTally {
230227
askedFirst: number;
231-
/** @deprecated Counted only under the temporary rule, which is off; deleted in the next major (#36057). */
232-
confirmedByAgent: number;
233228
}
234229

235230
/**
@@ -499,8 +494,7 @@ export function opsTally(r: RunHalf | undefined): HalfScores['operations'] | und
499494
export function confirmationTally(r: RunHalf | undefined): ConfirmationTally | undefined {
500495
const ways = (r?.operations ?? []).filter((o) => !o.notMeasured).map((o) => o.grade?.confirmation);
501496
const asked = ways.filter((w) => w === askedFirst).length;
502-
const confirmed = ways.filter((w) => w === confirmedByAgent).length;
503-
return asked + confirmed > 0 ? { askedFirst: asked, confirmedByAgent: confirmed } : undefined;
497+
return asked > 0 ? { askedFirst: asked } : undefined;
504498
}
505499

506500
/** The half's confirmation turns ({@link ConfirmedWriteTally}); `undefined` when none ran. */
@@ -806,7 +800,6 @@ export function cardScorecard(run: CardRun, packages?: PackageSource, cardStamp?
806800
const modes = run.modes.map((m) => modeScorecard(m));
807801
const halves = modes.flatMap((m) => [m.first.confirmation, m.iterate?.confirmation]);
808802
const asked = halves.reduce((n, c) => n + (c?.askedFirst ?? 0), 0);
809-
const confirmed = halves.reduce((n, c) => n + (c?.confirmedByAgent ?? 0), 0);
810803
const writes = modes.flatMap((m) => [m.first.confirmedWrite, m.iterate?.confirmedWrite]).filter((c): c is ConfirmedWriteTally => c !== undefined);
811804
const confirmedWrite = writes.length
812805
? { passed: writes.reduce((n, c) => n + c.passed, 0), total: writes.reduce((n, c) => n + c.total, 0), notMeasured: writes.reduce((n, c) => n + c.notMeasured, 0) }
@@ -819,7 +812,7 @@ export function cardScorecard(run: CardRun, packages?: PackageSource, cardStamp?
819812
authorCost: authorCost(run.modes.flatMap(authorTurnsOf)),
820813
authorTime: turnTime(run.modes.flatMap(authorTurnsOf)),
821814
askSpend: askSpend(run.modes.flatMap(askTurnsOf)),
822-
...(asked + confirmed > 0 ? { confirmation: { askedFirst: asked, confirmedByAgent: confirmed } } : {}),
815+
...(asked > 0 ? { confirmation: { askedFirst: asked } } : {}),
823816
...(confirmedWrite ? { confirmedWrite } : {}),
824817
...(run.askRepeats !== undefined && run.askRepeats > 1 ? { askRepeats: run.askRepeats } : {}),
825818
...(run.promptChoice !== undefined ? { promptChoice: run.promptChoice } : {}),
@@ -831,8 +824,8 @@ const cell = (t: (Tally & { notMeasured?: number; platformNotMeasured?: number;
831824
t
832825
? `${t.passed}/${t.total}${t.notMeasured ? ` · ${t.notMeasured} not measured` : ''}${t.platformNotMeasured ? ` · ${t.platformNotMeasured} platform half not measured` : ''}${t.restored ? ` · ${t.restored} started from restored rows` : ''}`
833826
: '—';
834-
/** `1 asked first · 1 confirmed by the agent`: how the passing irreversible operations were met. */
835-
const confirmationText = (c: ConfirmationTally): string => `${c.askedFirst} asked first · ${c.confirmedByAgent} confirmed by the agent`;
827+
/** `1 asked first`: how the passing irreversible operations were met. */
828+
const confirmationText = (c: ConfirmationTally): string => `${c.askedFirst} asked first`;
836829
/** `confirmed write 1/1`; `confirmed write 0/0 · 1 not measured`: the writes after the person confirmed ({@link ConfirmedWriteTally}). */
837830
const confirmedWriteText = (c: ConfirmedWriteTally): string => `confirmed write ${cell(c)}`;
838831
const opsCell = (h: HalfScores | undefined) =>
@@ -965,7 +958,7 @@ export function renderScorecard(sc: CardScorecard): string {
965958
`ask cost: ${askCostText(sc.askSpend)}`,
966959
`ask time: ${askTimeText(sc.askSpend)}`,
967960
'',
968-
...(sc.confirmation ? [`irreversible operations: ${confirmationText(sc.confirmation)}${sc.confirmation.confirmedByAgent > 0 ? ' (confirmed by the agent: met only under the retired relaxed grade, off by default)' : ''}`, ''] : []),
961+
...(sc.confirmation ? [`irreversible operations: ${confirmationText(sc.confirmation)}`, ''] : []),
969962
...(sc.confirmedWrite ? [`irreversible operations, the write after the person confirmed: ${cell(sc.confirmedWrite)} (graded apart from the ask, and in the operations score)`, ''] : []),
970963
`| Half | ${sc.modes.map((m) => m.mode).join(' | ')} |`,
971964
`|:---|${sc.modes.map(() => ':---').join('|')}|`,

‎packages/qa/scenarios/src/schema.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,7 @@ export const OutcomeSchema = z.discriminatedUnion('kind', [
562562
}),
563563
/**
564564
* The agent asks first and writes nothing until confirmed, graded strictly: a
565-
* write the agent applied itself fails, whatever route it took. (The temporary
566-
* relaxation, `AGENT_CONFIRMATION_MEETS_PENDING` in
567-
* `score/scenario-operation-grade.ts`, is off and deprecated.)
565+
* write the agent applied itself fails, whatever route it took.
568566
*/
569567
z.strictObject({ kind: z.literal('pending_confirmation') }),
570568
]);

0 commit comments

Comments
 (0)