Skip to content

Commit fade986

Browse files
committed
spec(automation): the dry-run admission paragraph names what it judges after ruling B
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5kYk6G1CvandwWbbhe
1 parent a7fbb14 commit fade986

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎packages/spec/src/contracts/automation-dry-run.pin.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ describe('IAutomationService.dryRun — the contract (#33757)', () => {
238238
// Ruling B (record 6917953931) replaced the by-name refusal of an
239239
// elevated self-triggered draft; the refusal sentence is gone.
240240
expect(doc).not.toContain('is refused for\n * every named user.');
241+
// After ruling B no dry-run admission rule reads the definition's `type`.
242+
expect(doc).toContain("judged on the supplied definition's `runAs`\n * and `requiredPermissions` against the named user.");
243+
expect(doc).not.toContain("judged on the supplied definition's `type`");
241244
});
242245

243246
it('a faulting start condition follows the live run only on the default error strategy (#33935)', () => {

‎packages/spec/src/contracts/automation-service.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,8 +1860,8 @@ export interface IAutomationService {
18601860
*
18611861
* **Admission: the by-name start rule.** The rules that admit a start by
18621862
* name (`flowStartRefusal`, `@objectstack/runtime`'s
1863-
* `flow-start-admission.ts`), judged on the supplied definition's `type`,
1864-
* `runAs` and `requiredPermissions` against the named user. There is no
1863+
* `flow-start-admission.ts`), judged on the supplied definition's `runAs`
1864+
* and `requiredPermissions` against the named user. There is no
18651865
* system-principal bypass, since the run always names a user.
18661866
* - A definition declaring `runAs: 'system'` whose `type` starts on its own
18671867
* trigger (`autolaunched`, `record_change`, `schedule`) is admitted to a

0 commit comments

Comments
 (0)