Skip to content

Commit 0a22461

Browse files
committed
fix(spec): ColumnApplyOn names the author state and is pinned isomorphic; quick-reference data count
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018HE4VY52U3L5Bfzz51dsFv
1 parent d231975 commit 0a22461

3 files changed

Lines changed: 17 additions & 5 deletions

File tree

‎content/docs/getting-started/quick-reference.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Categories that have no section here at all are named under
2222
[Categories Without a Section](#categories-without-a-section) — that curation is stated,
2323
not left implicit.
2424

25-
## Data Protocol (15 of 29 schemas)
25+
## Data Protocol (15 of 30 schemas)
2626

2727
Core business logic and data modeling schemas.
2828

‎packages/spec/src/data/column-apply-on.zod.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ import { z } from 'zod';
2020
export const ColumnApplyOnSchema = z.enum(['create', 'always'])
2121
.describe('When a matched-row write door writes a column: `always` on create and update, `create` on create only');
2222

23-
export type ColumnApplyOn = z.infer<typeof ColumnApplyOnSchema>;
23+
export type ColumnApplyOn = z.input<typeof ColumnApplyOnSchema>;

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,11 @@ import type * as M189 from './system/fate-supplement.zod.js';
277277
import type * as M190 from './kernel/execution-context.zod.js';
278278
// An api flow's hook secret named by reference (`config.secretRef`) -- new module, next free index.
279279
import type * as M191 from './automation/api-trigger-secret-ref.zod.js';
280+
// [#25761] The one column apply-on vocabulary both write doors read -- new module, next free index.
281+
import type * as M192 from './data/column-apply-on.zod.js';
280282

281283
// ---------------------------------------------------------------------------
282-
// 790 isomorphic aliases: `z.input` === `z.infer`, so no `XParsed` is declared.
284+
// 791 isomorphic aliases: `z.input` === `z.infer`, so no `XParsed` is declared.
283285
//
284286
// That number is machine-checked, not hand-kept. The runtime companion at the
285287
// bottom of this file recomputes the pin count from the source and asserts that
@@ -781,6 +783,9 @@ export type Iso_data_analytics__DimensionType = Assert<Eq< z.input< typeof M55.D
781783
export type Iso_data_analytics__MetricSchema = Assert<Eq< z.input< typeof M55.MetricSchema >, z.infer< typeof M55.MetricSchema > >>;
782784
export type Iso_data_analytics__TimeUpdateInterval = Assert<Eq< z.input< typeof M55.TimeUpdateInterval >, z.infer< typeof M55.TimeUpdateInterval > >>;
783785

786+
// data/column-apply-on.zod.ts
787+
export type Iso_data_columnApplyOn__ColumnApplyOnSchema = Assert<Eq< z.input< typeof M192.ColumnApplyOnSchema >, z.infer< typeof M192.ColumnApplyOnSchema > >>;
788+
784789
// data/context-tokens.zod.ts
785790
export type Iso_data_contextTokens__ContextTokenPlaceholderSchema = Assert<Eq< z.input< typeof M176.ContextTokenPlaceholderSchema >, z.infer< typeof M176.ContextTokenPlaceholderSchema > >>;
786791

@@ -1708,7 +1713,7 @@ describe('ADR-0122 type-alias convention', () => {
17081713
// this title and the section header above the pin list — are now asserted
17091714
// against the recomputed count below, so neither can go stale without a red
17101715
// test naming it.
1711-
it('still declares all 790 isomorphic pins', () => {
1716+
it('still declares all 791 isomorphic pins', () => {
17121717
// The truth of each pin is proved by tsc, not here — an `Assert<Eq<...>>`
17131718
// that stops holding is a compile error with the alias named. What tsc
17141719
// cannot notice is a pin that was DELETED: removing the assertion removes
@@ -2573,7 +2578,14 @@ describe('ADR-0122 type-alias convention', () => {
25732578
// start node gives its hook secret — a plain string, so it is pinned here
25742579
// (Iso_automation_apiTriggerSecretRef__ApiTriggerSecretRefSchema) rather
25752580
// than given a `…Parsed` synonym. +1 added.
2576-
expect(pins).toHaveLength(790);
2581+
//
2582+
// 790 -> 791 is #25761: `ColumnApplyOnSchema` (`data/column-apply-on.zod.ts`),
2583+
// the one `'create' | 'always'` vocabulary an import mapping entry and a seed
2584+
// dataset column both read — a plain string enum extracted from
2585+
// `FieldMappingEntrySchema.applyOn`, so it is pinned here
2586+
// (Iso_data_columnApplyOn__ColumnApplyOnSchema) rather than given a
2587+
// `…Parsed` synonym. +1 added.
2588+
expect(pins).toHaveLength(791);
25772589

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

0 commit comments

Comments
 (0)