Skip to content

Commit 78dc145

Browse files
committed
test(spec): count the HookRefusalSchema pin in the ADR-0122 census
Claude-Session: https://claude.ai/code/session_01WGufzfyVQuRsL6SRGuKCem Co-authored-by: Claude <noreply@anthropic.com>
1 parent 72219f5 commit 78dc145

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎packages/spec/src/type-alias-convention.pin.test.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ import type * as M194 from './automation/assignment-rule.zod.js';
285285
import type * as M195 from './security/queue.zod.js';
286286

287287
// ---------------------------------------------------------------------------
288-
// 796 isomorphic aliases: `z.input` === `z.infer`, so no `XParsed` is declared.
288+
// 797 isomorphic aliases: `z.input` === `z.infer`, so no `XParsed` is declared.
289289
//
290290
// That number is machine-checked, not hand-kept. The runtime companion at the
291291
// bottom of this file recomputes the pin count from the source and asserts that
@@ -1731,7 +1731,7 @@ describe('ADR-0122 type-alias convention', () => {
17311731
// this title and the section header above the pin list — are now asserted
17321732
// against the recomputed count below, so neither can go stale without a red
17331733
// test naming it.
1734-
it('still declares all 796 isomorphic pins', () => {
1734+
it('still declares all 797 isomorphic pins', () => {
17351735
// The truth of each pin is proved by tsc, not here — an `Assert<Eq<...>>`
17361736
// that stops holding is a compile error with the alias named. What tsc
17371737
// cannot notice is a pin that was DELETED: removing the assertion removes
@@ -2648,7 +2648,11 @@ describe('ADR-0122 type-alias convention', () => {
26482648
// Iso_automation_assignmentRule__AssignmentStrategy,
26492649
// Iso_automation_assignmentRule__AssignmentTargetSchema). The rule's entry
26502650
// schema has two shapes and carries `AssignmentRuleEntryParsed` instead. +4 added.
2651-
expect(pins).toHaveLength(796);
2651+
//
2652+
// 796 -> 797 is #26170: a hook's declared refusal entry, `HookRefusalSchema`
2653+
// (`data/hook.zod.ts`), closed at `message` / `status` with no default or
2654+
// transform, pinned here (Iso_data_hook__HookRefusalSchema). +1 added.
2655+
expect(pins).toHaveLength(797);
26522656

26532657
// The count is stated in PROSE twice as well — this case's title and the
26542658
// section header above the pin list — and until commit c6b05c76a nothing read either

0 commit comments

Comments
 (0)