Files
PaperClipAI/tests/runner-e2e/chat-full-catalog-testops-manifest.test.mjs
T
Dotta d8b0eae687 test(evals): pin completed timeline command account for full-ten measurement (#19395)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work.
> - The chat catalog needs fixed source and explicit conditions for each
measurement.
> - The latest timeline run delivered a complete account within its
original deadline.
> - Its assertion missed ordinary exitCode notation and a command with
an omitted subject inside a named worker bullet.
> - The reviewed source corrects those bounded textual checks while
retaining independent history and command proof.
> - This pull request pins that immutable source for one full-ten
measurement.
> - Original failed grades and unresolved Company timing remain visible.

## Linked Issues or Issue Description

Refs: #19392, #19086, #19388.

This follows the prior source pin. The latest timeline response
correctly described requirements, a real failed command, saved pause,
human reassignment, repair and successful verification. Its original
grade still failed one narrative assertion. This pin carries the
reviewed correction without merging the full catalog or its production
overlays.

## What Changed

- Pin source `936c3bbe0e83ca15616254f23d9023b2065fc5fb`, tree
`e5c64d67935497164b098e31e995f87ba7875d06`.
- Advance only the timeline oracle from v11 to v12 in the candidate
snapshot and manifest.
- Retain all 244 current queries, contexts, expected outcomes, model,
credentials, clocks and human/native accounting.
- Record one planned full-ten bounded measurement at native cap 2 and
zero automatic retries.
- Change only the manifest, its target assertion and the exact candidate
descriptor snapshot.

## Verification

- I verified the immutable source branch readback before I published
this pin.
- The new narrative control fails on the parent. The fixed source passes
300 timeline, native-proof and declaration controls, including all 242
lazy declarations with zero fixture callbacks.
- The response from result 5094 is accepted by the local diagnostic. The
original grade is retained as FAILED; this is not a new native PASS.
- Fresh full runner E2E types and the SDK guard over 506 inputs pass in
the qualified source graph. An earlier isolated worktree type attempt
had dependency-alias errors; the clean source qualification supersedes
that setup gap.
- Controller: `node --test
tests/runner-e2e/chat-full-catalog-testops-manifest.test.mjs
tests/runner-e2e/chat-full-catalog-testops-adapter.test.mjs
tests/runner-e2e/chat-full-catalog-testops-reconcile.test.mjs` — 40
controls pass.
- The snapshot equals the committed source descriptor bytes. All 244
rows compare equal to the prior pin except the timeline oracle version.
- Source descriptor SHA256:
`19185aa5298c93d159c3d8547661fd6ef22185e74be1c18b8497bae2ef8051c7`.
- Controller manifest SHA256:
`822494b170139a8204ff36b33891e2f4960ac0aba6800e9856f2d25dd24de7c6`.
- Launcher, protected evidence wire and the accepted 506 SDK inputs
remain unchanged. The source SDK registry stays
`efa70621e9fb42aa185f7ee616a1a726aa3eccb367e67e28817cedf26ef2ade8`.

- Exact pin head `31f47fcdfb600e6b15b35ed50c2a447d03681f06` has 56
successful checks and three configured skips. Both protected checks
pass. Greptile is 5/5 for this head with zero open threads. Paperclip
Review completed neutral at 5/5. GitHub reports CLEAN and MERGEABLE.
These checks do not qualify the unrun native experiment.

## Risks

- Original timeline result 5094 remains FAILED. All three native runs
succeeded and the account was complete in 248,876 ms, but the original
narrative check failed. Local calibration does not rewrite that grade.
- Original Company result 5093 ended without first-CEO completion. Its
model/runtime timing cause remains unresolved. This source makes no
Company runtime or latency fix claim.
- The full-ten measurement is unrun. It is a bounded experiment, not
proof of deterministic timing, reliability or an all-ten pass.
- Company retains two base human inputs plus at most one independently
verified UI approval, minimum two and maximum three native runs, and
480,000 ms. Timeline retains three native runs, one human input and
720,000 ms. No condition is waived.
- Secret journeys still require independent semantic safety review.
Metadata shape alone does not establish that a proposed name is
non-sensitive.
- The interaction-accept and API-search overlays remain separate,
reviewed, unmerged core PRs. This pin does not merge them or the full
catalog. The 196/244 admission gate stays fixed.

## Model Used

OpenAI Codex, GPT-6.1 Sol (`gpt-6.1-sol`), with reasoning, repository
tools and code execution. The host does not expose an exact
context-window size. No model or paid provider was called for local
controls.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] All Paperclip CI gates are green
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge
2026-11-05 21:13:17 -06:00

425 lines
19 KiB
JavaScript

import test from 'node:test';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { readFileSync, readdirSync } from 'node:fs';
import { createRequire } from 'node:module';
import { catalogTargetSha, catalogManifestSha256, fullCatalogPlanName, fullCatalogCases, validateFullCatalogManifest, companySecretBindingApprovalMetadata, validateCompanySecretBindingApprovalSource } from './chat-full-catalog-testops-manifest.mjs';
const { parseDocument } = createRequire(import.meta.url)('yaml');
const bytes = readFileSync(new URL('./chat-full-catalog-testops-manifest.json', import.meta.url));
const manifest = JSON.parse(bytes);
const row = id => fullCatalogCases.find(value => value.key === id);
test('the manifest joins all244 source YAML scenarios without importing a domain or fabricating a result', () => {
const directory = new URL('./chat-scenarios/', import.meta.url);
const scenarios = readdirSync(directory).filter(file => file.endsWith('.yaml') && file !== 'defaults.yaml').flatMap(file => {
const parsed = parseDocument(readFileSync(new URL(file, directory), 'utf8'), { uniqueKeys: true });
assert.deepEqual(parsed.errors, []);
return parsed.toJS().scenarios;
});
assert.equal(scenarios.length, 244);
assert.equal(fullCatalogCases.length, 244);
assert.deepEqual(fullCatalogCases.map(value => value.key).sort(), scenarios.map(value => value.id).sort());
for (const scenario of scenarios) {
const actual = row(scenario.id);
const override = field => manifest.source.repairMetadata.changedFields.find(change => change.key === scenario.id && change.field === field);
for (const [field, original] of [['originalQuery', scenario.query], ['originalContext', scenario.context], ['expectedOutcome', scenario.expected_outcome]]) {
const change = override(field);
if (change) { assert.equal(change.previous, original); assert.equal(actual[field], change.current); }
else assert.equal(actual[field], original);
}
assert.ok(!Object.hasOwn(actual, 'status') && !Object.hasOwn(actual, 'passed'));
}
});
test('legacy aliases preserve existing TestOps identities while execution uses actual legacy task IDs', () => {
for (const task of ['create-backlog', 'delegate-announcement']) {
const actual = row(`tasks.${task}`);
assert.equal(actual.scenario, task);
assert.equal(actual.executionId, `chat-features.runner-opencode.local.${task}`);
assert.equal(actual.fullName, `paperclip.Product E2E.chat-features.tasks.${task}`);
assert.deepEqual(actual.aliases, [`paperclip.Product E2E.chat-features.${task}`]);
}
});
test('source bounds retain legacy and pilot runs, native zero turn policy and original finite attempts', () => {
for (const [id, minimum, maximum, attempt, checks] of [
['tasks.create-backlog', 1, 1, 420000, 10], ['tasks.delegate-announcement', 3, 3, 420000, 15],
['instance-operations.restart-service', 1, 1, 420000, 9], ['projects.project-defaults', 3, 3, 660000, 11],
['projects.project-work', 1, 3, 300000, 15],
]) {
const actual = row(id);
assert.deepEqual([actual.minimumRuns, actual.maximumRuns, actual.attemptTimeoutMs, actual.checks], [minimum, maximum, attempt, checks]);
assert.equal(actual.turnTimeoutMs, id.startsWith('tasks.') ? 120000 : 0);
}
assert.equal(row('access.sign-in').maximumRuns, 0);
assert.equal(row('assistant-connections.use-scoped-client').maximumRuns, 0);
assert.equal(fullCatalogCases.filter(value => value.turnTimeoutMs === 0).length, 242);
});
test('definition gaps and private prerequisites remain explicit instead of inferred runnable passes', () => {
assert.deepEqual(fullCatalogCases.filter(value => value.coverageGaps.length).map(value => value.key), [
'access.invite-teammate', 'access.manage-membership', 'activity.routine-audit', 'agents.restore-instructions', 'budgets-costs.subscription-fees',
]);
assert.equal(fullCatalogCases.filter(value => value.requiredCredentials.length).length, 18);
assert.equal(fullCatalogCases.filter(value => value.externalInput !== null).length, 37);
assert.equal(row('skills.enable-for-agent').coverageGaps.length, 0);
});
test('surface evidence declarations never manufacture a generic final screenshot for boundary cases', () => {
assert.equal(row('agent-chat.chat-disabled').screenshot, 'runtime-disabled-agent-chat.png');
for (const id of ['access.sign-in', 'onboarding.choose-first-runtime', 'onboarding.new-instance', 'onboarding.resume-wizard', 'assistant-connections.use-scoped-client']) {
assert.equal(row(id).screenshot, null);
assert.match(row(id).evidenceReadiness, /requires-final-state\.png/);
}
assert.equal(row('projects.project-work').screenshot, 'final-state.png');
assert.ok(manifest.source.requiredOriginalPassEvidence.includes('final-state.png'));
});
test('source identities and descriptor provenance are stable, deeply frozen and deterministic', () => {
assert.equal(catalogTargetSha, manifest.targetSha);
assert.equal(catalogManifestSha256, createHash('sha256').update(bytes).digest('hex'));
assert.equal(fullCatalogPlanName, 'Chat feature catalog — OpenCode 1017 (candidate)');
assert.equal(new Set(fullCatalogCases.map(value => value.fullName)).size, 244);
assert.equal(manifest.source.scenarioFiles.length, 35);
assert.equal(manifest.metadataSourceSha, 'de0941835cc8f0d01c982574ee258e110babdbeb');
assert.throws(() => { fullCatalogCases[0].coverageGaps.push('changed'); }, TypeError);
assert.throws(() => { fullCatalogCases[0].maximumRuns = 999; }, TypeError);
assert.ok(!bytes.toString().match(/sk-or-v1-[a-f0-9]{32,}/));
});
test('foreign identity, duplicated case and changed run-bound metadata are rejected by the pure loader', () => {
const copy = () => structuredClone(manifest);
const foreign = copy(); foreign.cases[0].executionId = 'chat-features.other.local.case';
assert.throws(() => validateFullCatalogManifest(foreign), /row_invalid/);
const duplicate = copy(); duplicate.cases[1] = duplicate.cases[0];
assert.throws(() => validateFullCatalogManifest(duplicate), /identity_conflict/);
const bounds = copy(); bounds.cases[0].minimumRuns = bounds.cases[0].maximumRuns + 1;
assert.throws(() => validateFullCatalogManifest(bounds), /row_invalid/);
});
test('repair source metadata binds the corrected candidate and explicit changed definitions', () => {
const repair = manifest.source.repairMetadata;
assert.equal(repair.baseTargetSha, '3b66c3c144360ddf32714a0742fd774b8ceafb16');
assert.equal(repair.previousTargetSha, 'ab2019e976076ec0eb60b026844f3d9211cb0208');
assert.equal(manifest.targetSha, '936c3bbe0e83ca15616254f23d9023b2065fc5fb');
assert.equal(repair.definitionSourceSha, manifest.metadataSourceSha);
assert.equal(repair.candidateDescriptorSnapshot, 'fixtures/chat-repair-candidate-descriptors.json');
const descriptorBytes = readFileSync(new URL(repair.candidateDescriptorSnapshot, import.meta.url));
assert.equal(createHash('sha256').update(descriptorBytes).digest('hex'), repair.candidateDescriptorSha256);
const declarations = JSON.parse(descriptorBytes);
assert.equal(declarations.length, 242);
assert.equal(new Set(declarations.map(value => value.scenarioId)).size, 242);
assert.deepEqual(repair.changedFields.map(value => [value.key, value.field]), [
[
"activity.work-timeline",
"sourceFiles"
],
[
"activity.work-timeline",
"oracleVersion"
],
[
"activity.work-timeline",
"expectedOutcome"
],
[
"agents.choose-primary",
"sourceFiles"
],
[
"app-permissions.ask-before-action",
"sourceFiles"
],
[
"app-permissions.ask-before-action",
"oracleVersion"
],
[
"app-permissions.test-as-agent",
"sourceFiles"
],
[
"app-permissions.test-as-agent",
"oracleVersion"
],
[
"app-permissions.test-as-agent",
"originalContext"
],
[
"app-permissions.test-as-agent",
"expectedOutcome"
],
[
"cli-operations.choose-cli-context",
"sourceFiles"
],
[
"cli-operations.choose-cli-context",
"oracleVersion"
],
[
"companies.agent-observability",
"sourceFiles"
],
[
"companies.configure-decision-model",
"sourceFiles"
],
[
"companies.fast-responses",
"sourceFiles"
],
[
"companies.fast-responses",
"originalQuery"
],
[
"companies.prompt-injection-guard",
"sourceFiles"
],
[
"goals.create-goal-tree",
"oracleVersion"
],
[
"goals.create-goal-tree",
"expectedOutcome"
],
[
"navigation-preferences.dismiss-announcement",
"sourceFiles"
],
[
"navigation-preferences.dismiss-announcement",
"oracleVersion"
],
[
"questions-and-approvals.duplicate-answer",
"oracleVersion"
],
[
"questions-and-approvals.formal-hire-revision",
"sourceFiles"
],
[
"questions-and-approvals.formal-hire-revision",
"oracleVersion"
],
[
"questions-and-approvals.multi-part-question",
"oracleVersion"
],
[
"questions-and-approvals.reject-and-revise",
"sourceFiles"
],
[
"questions-and-approvals.reject-and-revise",
"oracleVersion"
],
[
"questions-and-approvals.review-plan",
"sourceFiles"
],
[
"questions-and-approvals.review-plan",
"oracleVersion"
],
[
"secrets.configure-company-secret",
"sourceFiles"
],
[
"secrets.configure-company-secret",
"oracleVersion"
],
[
"secrets.personal-secret",
"sourceFiles"
],
[
"secrets.personal-secret",
"oracleVersion"
],
[
"skills.author-skill",
"sourceFiles"
],
[
"skills.author-skill",
"oracleVersion"
],
[
"skills.author-skill",
"expectedOutcome"
],
[
"skills.enable-for-agent",
"sourceFiles"
],
[
"skills.explicit-restriction",
"sourceFiles"
],
[
"skills.find-and-install",
"sourceFiles"
],
[
"skills.fork-read-only",
"sourceFiles"
],
[
"skills.review-update",
"sourceFiles"
],
[
"skills.studio-test",
"sourceFiles"
],
[
"skills.studio-test",
"oracleVersion"
],
[
"skills.studio-test",
"maximumRuns"
],
[
"teams.configure-team",
"sourceFiles"
],
[
"teams.configure-team",
"oracleVersion"
],
[
"connection-setup.secure-api-key",
"oracleVersion"
],
[
"secrets.least-scope-delivery",
"oracleVersion"
],
[
"secrets.secret-proposal",
"oracleVersion"
],
[
"secrets.vault-reference",
"oracleVersion"
],
[
"teams.install-team",
"oracleVersion"
],
[
"questions-and-approvals.multi-part-question",
"originalQuery"
],
['secrets.configure-company-secret', 'maximumRuns'],
['secrets.configure-company-secret', 'optionalCompanySecretBindingApproval'],
['secrets.configure-company-secret', 'expectedHumanMessageCount']
]);
for (const change of repair.changedFields) {
assert.deepEqual(row(change.key)[change.field], change.current);
assert.notDeepEqual(change.current, change.previous);
}
assert.deepEqual(repair.changedFields.filter(change => change.key === 'questions-and-approvals.multi-part-question' && change.field === 'originalQuery'), [{ key: 'questions-and-approvals.multi-part-question', field: 'originalQuery', previous: "Help me choose the details for the launch page before you build it.", current: "Walk me through the launch-page question form so I can choose the audience and tone and enter my own headline before you build anything." }]);
assert.equal(repair.runtimeConditions.multipart53QuestionClarification.changedQueries, 1);
assert.equal(repair.runtimeConditions.multipart53QuestionClarification.unchangedOtherCatalogQueries, 243);
assert.equal(repair.runtimeConditions.multipart53QuestionClarification.previousInventoryDigest, '0cf530c11449508e91b5ce664d9375fc8e76466fa908255a1af0ff55169d0220');
assert.equal(repair.runtimeConditions.multipart53QuestionClarification.inventoryDigest, '814bb3633268cb0488563aed51fce2f987bd47650ddfb5a3302d0354292c2323');
assert.equal(repair.descriptorChanges.length, 52);
assert.equal(new Set(repair.descriptorChanges.map(change => change.key)).size, 33);
assert.deepEqual([...new Set(repair.descriptorChanges.map(change => change.field))].sort(), ['expectedRunCount', 'minimumRunCount', 'optionalCompanySecretBindingApproval', 'oracleVersion', 'setupPolicy', 'sourceFiles']);
for (const change of repair.descriptorChanges) {
assert.notDeepEqual(change.current, change.previous);
const declaration = declarations.find(value => value.scenarioId === change.key);
assert.ok(declaration);
assert.deepEqual(change.current, declaration[change.field]);
if (Object.hasOwn(row(change.key), change.field)) assert.deepEqual(row(change.key)[change.field], change.current);
}
assert.deepEqual(repair.changedDefinitionFiles.map(value => value.path), [
'tests/runner-e2e/chat-scenarios/companies.yaml', 'tests/runner-e2e/chat-scenarios/goals.yaml', 'tests/runner-e2e/chat-scenarios/skills.yaml', 'tests/runner-e2e/chat-scenarios/app-permissions.yaml', 'tests/runner-e2e/chat-scenarios/activity.yaml', 'tests/runner-e2e/chat-scenarios/questions-and-approvals.yaml',
]);
assert.ok(repair.changedDefinitionFiles.every(value => /^[a-f0-9]{64}$/.test(value.sha256)));
for (const declaration of declarations) {
const value = row(declaration.scenarioId);
assert.deepEqual(value.sourceFiles, declaration.sourceFiles);
assert.equal(value.oracleVersion, declaration.oracleVersion);
assert.equal(value.minimumRuns, declaration.minimumRunCount ?? declaration.expectedRunCount);
assert.equal(value.maximumRuns, declaration.expectedRunCount);
const approval = companySecretBindingApprovalMetadata(declaration);
assert.deepEqual(Object.fromEntries(Object.keys(approval).map(key => [key, value[key]])), approval);
assert.equal(Object.hasOwn(value, 'optionalCompanySecretBindingApproval'), Object.hasOwn(approval, 'optionalCompanySecretBindingApproval'));
assert.equal(value.declaredTurnTimeoutMs, declaration.turnTimeoutMs);
assert.equal(value.attemptTimeoutMs, declaration.attemptTimeoutMs);
}
assert.deepEqual(repair.changedFields.filter(change => ['minimumRuns', 'maximumRuns'].includes(change.field)), [{ key: 'skills.studio-test', field: 'maximumRuns', previous: 2, current: 3 }, { key: 'secrets.configure-company-secret', field: 'maximumRuns', previous: 2, current: 3 }]);
assert.deepEqual(repair.runtimeConditions.studio144Accounting, { key: 'skills.studio-test', previousMinimumRuns: 2, previousMaximumRuns: 2, minimumRuns: 2, maximumRuns: 3, requiredActualAcceptedRuns: 3, originalAttemptTimeoutMs: 540000, humanMessages: 1, condition: 'Initial CEO + real Studio worker + exactly one source-bound completion delivery;2-run no-delivery positive is rejected.' });
assert.equal(repair.runtimeConditions.toolGuidance106.corePRUnmerged, false);
assert.equal(repair.runtimeConditions.sdkPublicProof.scannerAndCanaryCertificatesUnchanged, true);
assert.equal(repair.runtimeConditions.sdkPublicProof.sourceInputsChanged, true);
assert.equal(repair.runtimeConditions.sdkPublicProof.registrySha256, "efa70621e9fb42aa185f7ee616a1a726aa3eccb367e67e28817cedf26ef2ade8");
assert.equal(repair.runtimeConditions.sdkPublicProof.plugin558StillHeld, true);
assert.equal(repair.runtimeConditions.sdkPublicProof.expectedLockSha256, "54a81b2ed3f1f85eaa085c034560ac248e384db34fbc7aba8c5a3846c29b3ce8");
assert.equal(repair.runtimeConditions.sdkPublicProof.runtimeCompilerParserZodIdentitiesUnchanged, true);
assert.equal(repair.runtimeConditions.toolProposal487.corePRUnmerged, false);
assert.deepEqual(repair.runtimeConditions.toolProposal487.replay, {
"corePR": 18742,
"coreHead": "61996a96dd09e90a5788e8711a94fc5ae631f425",
"corePRUnmerged": false,
"condition": "A new Ask-first request only for an authenticated later same-person human intent after the prior decline; same-intent retry and derived or foreign sources remain denied. No approval/execution authority change.",
"acceptedDirectSources": [
"issue.comment",
"issue.comment.reopen"
],
"actualPostAssertionPGCasesPassed": 2
});
});
test('Company approval metadata is projected without executing a fixture and rejects foreign or changed bounds', () => {
const declaration = { scenarioId: 'secrets.configure-company-secret', optionalCompanySecretBindingApproval: true,
expectedRunCount: 3, minimumRunCount: 2, expectedHumanMessageCount: 2, attemptTimeoutMs: 480000,
setup() { throw new Error('Fixture must not execute'); } };
assert.deepEqual(companySecretBindingApprovalMetadata(declaration),
{ optionalCompanySecretBindingApproval: true, expectedHumanMessageCount: 2 });
assert.deepEqual(companySecretBindingApprovalMetadata({ scenarioId: 'other' }), {});
const future = structuredClone(manifest);
Object.assign(future.cases.find(value => value.key === declaration.scenarioId),
companySecretBindingApprovalMetadata(declaration), { minimumRuns: 2, maximumRuns: 3 });
assert.equal(validateFullCatalogManifest(future), future);
for (const mutation of [
{ scenarioId: 'secrets.personal-secret' }, { optionalCompanySecretBindingApproval: false },
{ expectedRunCount: 2 }, { minimumRunCount: 3 }, { expectedHumanMessageCount: 3 }, { attemptTimeoutMs: 480001 },
]) assert.throws(() => companySecretBindingApprovalMetadata({ ...declaration, ...mutation }), /company_approval_invalid/);
for (const mutation of [
{ key: 'secrets.personal-secret' }, { optionalCompanySecretBindingApproval: false },
{ maximumRuns: 2 }, { minimumRuns: 3 }, { expectedHumanMessageCount: 3 }, { attemptTimeoutMs: 480001 },
]) {
const invalid = structuredClone(future);
Object.assign(invalid.cases.find(value => value.key === declaration.scenarioId), mutation);
assert.throws(() => validateFullCatalogManifest(invalid), /company_approval_invalid/);
}
});
test('source admission joins the optional Company approval and base humans to actual static task metadata', () => {
const row = { key: 'secrets.configure-company-secret', optionalCompanySecretBindingApproval: true,
minimumRuns: 2, maximumRuns: 3, expectedHumanMessageCount: 2, attemptTimeoutMs: 480000 };
const task = { id: row.key, optionalCompanySecretBindingApproval: true, minimumExpectedRunCount: 2,
expectedRunCount: 3, expectedHumanMessageCount: 2, attemptTimeoutMs: { local: 480000 } };
assert.doesNotThrow(() => validateCompanySecretBindingApprovalSource(row, task));
for (const mutation of [{ optionalCompanySecretBindingApproval: undefined }, { expectedHumanMessageCount: 3 },
{ id: 'secrets.personal-secret' }, { expectedRunCount: 2 }, { minimumExpectedRunCount: 3 }]) {
assert.throws(() => validateCompanySecretBindingApprovalSource(row, { ...task, ...mutation }));
}
const unmarked = { ...row }; delete unmarked.optionalCompanySecretBindingApproval;
assert.throws(() => validateCompanySecretBindingApprovalSource(unmarked, task), /approval mismatch/);
});