Skip to content

Commit 15f65b7

Browse files
committed
chore(changeset): Metadata-protocol added for the new optional scope key; spec minor
Claude-Session: https://claude.ai/code/session_01L6bhgWgMUXf5juNBhN6rLX Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2e8b0b9 commit 15f65b7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.changeset/36794-reference-out-of-scope.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
'@objectstack/spec': patch
2+
'@objectstack/spec': minor
33
'@objectstack/core': patch
44
'@objectstack/runtime': patch
55
---
66

77
feat(spec,core): an import lookup cell that names a record under another parent answers its own reason, `reference_out_of_scope`, with the scoping columns as data
88

99
Clause-②: yes (widening)
10-
Metadata-protocol: none (a wire error code, no author-writable key)
10+
Metadata-protocol: added (`ValidateDataIssueSchema.scope`, a new optional key on the import cell error; the new `FieldErrorCode` value is a wire code, no author-writable key)
11+
Skills-docs: follow-up owed — skills/objectstack-data/rules/relationships.md
1112

1213
`FieldErrorCode` (ADR-0114) gains `reference_out_of_scope`. The importer answers it for a SCOPED lookup cell (a `dependsOn` column, or the master the same row sets) whose value matches no record within the row's scope while it does match a record outside it: the row names a record that lives under another parent. Until now that cell answered `reference_not_found`, the same reason as a value no record has, and only the message told the two apart (`Contract: no record matches "CTR-0006" (Account = "Acme")`); a client that keys its text on the reason, such as the Import Wizard's dry run, could only say "no matching record". The message is unchanged in English and has its own catalog key, `import_reference_out_of_scope`, in all four platform locales (a deployment overrides it under `validation.field.import_reference_out_of_scope`).
1314

0 commit comments

Comments
 (0)