Skip to content

Commit ecc8685

Browse files
committed
fix(cli): pin the 18.x release span of the own-field-row answer, and narrow the changeset to --from
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYAcXpQMmT3KPQGzfJ
1 parent 0e3ecec commit ecc8685

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎.changeset/39176-own-field-row-18x-note.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fix(cli): `os migrate meta --from 18` says which 18.x release its own-field-row
88
Clause-②: no
99
Metadata-protocol: none
1010

11-
Who sees it: a developer running `os migrate meta --from 18` (with or without `--write`) or `os migrate meta --stored` to move a project or deployment to protocol 19.
11+
Who sees it: a developer running `os migrate meta --from 18` (with or without `--write`) to move a project to protocol 19. The `--stored` review's rows are unchanged; the step-19 entry's note covers a deployment last run on an earlier 18.x.
1212

1313
- **The own-field-row list names its releases.** The list of own field rows beside Modify All that protocol 19 narrows printed a "protocol 18" answer that is the one 18.3.0 to 18.6.0 give. Its header and each row's protocol-18 line now say so.
1414
- **The View All and Modify All manual change carries a note for an earlier 18.x.** `--from` names a major, so the tool cannot tell which 18.x a source last ran on. The note, printed in every run that crosses into 19 whether the list is empty or not, says what differs:

‎packages/cli/test/migrate-meta-own-field-row-38924.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ describe('os migrate meta --from 18 — the own field rows beside Modify All pro
138138
expect(text).toContain('protocol 19: hidden, no read and no edit');
139139
expect(text).toMatch(/choice: to keep the protocol-18 read and edit, .*otherwise accept the narrowing\./);
140140
expect(text).not.toContain('so their field reads are kept');
141+
// The protocol-18 answer names the releases it describes, and the step-19 manual change
142+
// carries the note for a source last run on an earlier 18.x (`--from` names a major only).
143+
expect(text).toContain('the protocol-18 answer is 18.3.0 to 18.6.0\'s');
144+
expect(text).toContain('protocol 18: read and edit on 18.3.0 to 18.6.0');
145+
expect(text).toContain('from 18.3.0 to 18.5.0 View All also read a field over the set\'s own `readable: false` row');
146+
expect(text).toContain('before 18.3.0 neither bit cast a field vote');
141147
// The control set rides in the same stack and is not named.
142148
expect(text).not.toContain("permission set 'auditor'");
143149
}, 60_000);

‎packages/spec/src/conversions/own-field-rows-beside-modify-all.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
*
4949
* ## Which 18.x the answer describes
5050
*
51-
* The protocol-18 answer is 18.6.0's, and 18.3.0's to 18.5.0's beside Modify
52-
* All. A source last run on an earlier 18.x differs, and no predicate here can
51+
* The protocol-18 answer is 18.3.0's to 18.6.0's (beside Modify All they
52+
* agree). A source last run on an earlier 18.x differs, and no predicate here can
5353
* tell, since `--from` names a major only; the step-19 semantic entry
5454
* (`permission-view-all-modify-all-cast-no-field-vote`) carries the note:
5555
* - 18.3.0 to 18.5.0: View All also read over the set's own `readable: false`

‎packages/spec/src/migrations/entries/semantic/19.permission-view-all-modify-all-cast-no-field-vote.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export const entry: SemanticMigration = {
3030
+ '`editable: true` field row in the set that should edit it.',
3131
reason:
3232
'From protocol 19 View All (`viewAllRecords`) and Modify All (`modifyAllRecords`) widen RECORDS only and '
33-
+ 'cast no field vote. From 18.3.0 until 19 View All voted every field of the object readable and Modify All voted '
33+
+ 'cast no field vote. From 18.3.0 until 19 View All voted every field of the object readable (on 18.6.0 '
34+
+ 'except over the set\'s own `readable: false` row) and Modify All voted '
3435
+ 'every field readable and editable, so one set\'s bit re-opened a field another set hid with '
3536
+ '`readable: false` and unlocked a field another set locked with `editable: false`. Reading every field '
3637
+ 'is now `viewAllFields: true`, which votes read on every field of the object (fields added later '

0 commit comments

Comments
 (0)