Skip to content

os migrate meta --from 18: the "protocol 18" answer of the own-field-row list is 18.6.0's, so an upgrade from 18.0–18.5 is told the wrong narrowing #39176

Done
0 of 1 issue completed

Description

@objectstack-fleet

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Filing gate: ① (a product defect with a named landing point; the measurement is by code read on main after PR #39160) · Source: fleet. Found as nit N3 by the contract-tier L2 of PR #39160 (record 7356653135, carried in delta record 7358236921), and listed by the #38924 dev (report 7358028382, carrier none). First step for the builder: measure reachability once through os migrate meta --from 18 over an 18.2 and an 18.4 source before fixing.

维护者速读

  • 出了什么事:迁移预演里新加的"自己把字段设为隐藏/只读的权限集"清单,把"18 上的结果"一律按 18.6.0 写。
  • 用户看到的:从 18.0–18.2 直接升级的开发者,会被告知一个实际上不会发生的收窄。从 18.3–18.5 升级、只开了"查看全部"并把字段设为不可读的权限集,会悄悄失去一个读权限,而清单不点名。
  • 要你做什么:无(分诊定级与路由)。

What is measured (code read, main after 7f72b4945f)

  • ownFieldRowsBesideModifyAll (packages/spec/src/conversions/own-field-rows-beside-modify-all.ts) prints the protocol-18 answer as the 18.6.0 field merge gives it. The changeset of PR fix(cli): os migrate meta --from 18 names the own field rows beside Modify All that protocol 19 narrows #39160 says "protocol 18 here means 18.6.0".
  • On core 18.0.0 to 18.2.0 superuserFieldVote is absent: Modify All cast no field vote and own rows bound exactly as on 19. So an upgrade straight from those versions is told of a narrowing it does not get.
  • superuserFieldVote first ships in 18.3.0. declaresOwnReadMask first ships in 18.6.0. So an upgrade from 18.3 to 18.5 with View All alone and an own readable: false row loses a read in the same upgrade (18.6.0's narrowing). The list does not name it, because "View All alone" is never listed.
  • Expected: the printed 18 answer and the listed population are true for the source's own 18.x, or the text names the 18.x it describes and a short note covers the earlier ones. content/docs/upgrading.mdx already keeps "Upgrading from 18.5.0 or earlier" paragraphs; that is a precedent for the second shape.

Landing point: packages/spec/src/conversions/own-field-rows-beside-modify-all.ts, the step-19 semantic entry text, and packages/cli/src/utils/own-field-row-narrowing.ts.

Dedupe: viewAllFields 18.5 baseline (2 hits: #38924 closed, the seat post), superuserFieldVote 18.3 (1: #38924 closed), ownFieldRowNarrowing (1: #38924 closed). No open card covers this.

Grading: area:build · Bug · Suggested-grade: p2 (the 18 → 19 upgrade line; a silent lost read for 18.3–18.5 sources is the costlier half) · reach: code read, public door not yet measured.

Reader: the dev who takes this card. Related: #38924 / PR #39160, #39009 / PR #39150 (the upgrade gate, whose fixture is 18.6.0).

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    bug
    priority:p2
    on Dec 2, 2026
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-02T22:04Z

    定级:area:build · Bug · p2 · 迁移预演对 18.0–18.5 来源一律按 18.6.0 报收窄,可能报错或漏报读权限丢失 · 读码(PR #39160 L2 N3)

    • 作者定级保留,补 domain:spec、类型 Bug,进 pm:queue。卡上要求先用 18.2、18.4 来源实测一次可达性再修。
  3. added
    domain:spec
    pm:queue
    on Dec 2, 2026
  4. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Cb7xdFx3kJYWTmyntt

    Claim: PM loop round 1 · 2026-12-03T14:35Z
    Session: session_01Utp6Cb7xdFx3kJYWTmyntt
    Thread session: session_01Utp6CYAcXpQMmT3KPQGzfJ
    Account: os-bill
    Branch: claude/project-thread-ihyzvg
    Worktree: objectstack-issue-39176
    Domain: domain:spec
    Seat: repo:objectstack@os-bill
    Area: build-1203
    File surface: packages/spec/src/conversions/own-field-rows-beside-modify-all.ts, packages/spec/src/conversions/own-field-rows-beside-modify-all.test.ts, packages/spec/src/migrations/entries/semantic/19.permission-view-all-modify-all-cast-no-field-vote.ts (the step-19 semantic entry text), packages/cli/src/utils/own-field-row-narrowing.ts and its test, packages/core/src/security/effective-object-permissions.ts (comment at ~:1048 only), packages/spec/src/security/permission.zod.ts (comment at ~:763 only), content/docs/upgrading.mdx (only if the second shape is chosen), patch changesets. Stop on any other breach and explain in the report.
    Container & model: M, mode:thread, model: default (dispatch-gates --tier: "no path-derived mandate"; served claude-opus-5-5 per the thread's first report), effort: medium (reason: served session effort; the order asked high — the zone accepts medium under the standing-zone effort ruling of #39187 A and the L1 at high is the compensating read)
    Clause-②: no (seat reading: dry-run text and listing of a migration tool; the thread re-measures)
    Metadata-protocol: none
    Responsibility: the own-field-row narrowing list of os migrate meta --from 18 (objectstack: spec conversion + cli) prints 18.6.0's answer for every 18.x source; no platform path covers it; developers upgrading from 18.0–18.5, today.
    Thread-read: 7360201991
    Premise: holds by code read (card); the card's first step — measure reachability over an 18.2 and an 18.4 source — is the thread's first act before code.
    Pre-claim lane: packages/spec/src/** ⇒ domain:spec (file ownership only).
    Pre-claim deps: none named; PR #39160 merged.
    Prior rulings read: check-prior-rulings.mjs --card 39176: card thread 0 rulings.
    Serial constraints cleared: Folded with #39177 (one PR, a commit per card; the five gates answered in the order). check-handover.mjs --inflight --card=39176 → OVERLAP by directory only with this seat's #38174 (packages/cli/; its file-level surface names commands/meta/register.ts, not these files). The thread runs overlap-check.mjs before each push.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
  6. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Cb7xdFx3kJYWTmyntt

    2026-12-03T14:59Z · Paused (zone build-1203). Maintainer order relayed by the seat (Bill, quota at 18%): pause, push the branch, no PR work, keep the claim. Claim, assignee and branch left as they are.
    State: branch claude/project-thread-ihyzvg @ 2a063ee8 (fix + changeset: the text names 18.3.0–18.6.0 and the step-19 entry notes earlier 18.x), no PR. Measured by the card thread: an 18.2 source is told a narrowing it does not get; an 18.4 source with View All and an own readable: false row loses a read the list does not name. Owed on resume: local gates, draft PR, os-dev-report, L1. #39177's items are parked on claude/issue-39177-own-field-row-review-wip @ cd77d495 and ship apart.
    Out-of-scope readings for the next holder: one is a security item and is with the owner seat; the other is #39177 noted read 1 (stored sets are read without a Zod parse in the database loader's convertRow), to file as its card asks.

  7. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CYAcXpQMmT3KPQGzfJ
    os-dev-report

    {
      "issue": 39176,
      "status": "done",
      "branch": "claude/project-thread-ihyzvg",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39403",
      "session": "session_01Utp6CYAcXpQMmT3KPQGzfJ",
      "premise_still_valid": true,
      "summary": "Premise measured: published @objectstack/core has no superuserFieldVote from 17.7.0 to 18.2.0, has it from 18.3.0, and has declaresOwnReadMask only in 18.6.0. A dry run of the built CLI at 850d240b told an 18.2-shaped source (View All + Modify All, own readable: false row) 'protocol 18: read and edit', and listed nothing for an 18.4-shaped source (View All alone, same row) that loses that read on 19. Took the card's second shape: the list header and rows name 18.3.0 to 18.6.0, and the step-19 semantic entry (printed in every run crossing into 19) carries the note for 18.3.0 to 18.5.0 and for before 18.3.0. Text only; no type, key or export changes. #39177 is paused and not in this PR.",
      "tests": "head 0e3ecece: cli vitest test/migrate-meta-own-field-row-38924.test.ts test/migrate-meta-engine-guidance.test.ts src/commands/migrate/meta.stored-view-all-fields.test.ts: 3 files, 10 passed; spec vitest src/conversions src/migrations: 35 files, 1136 passed, 2 todo; metadata-protocol vitest src/stored-own-field-rows: 2 passed; spec and cli typecheck exit 0. Re-run of the two sources on the rebuilt CLI: 18.2 row reads 'protocol 18: read and edit on 18.3.0 to 18.6.0'; the 18.4 run prints the 18.3.0 to 18.5.0 note. No ablation: no tested behaviour changed (text only).",
      "gates": "dispatch-gates --commands at 0e3ecece: 88 derived, 88 run (--ran: 0 unrun); 84 exit 0. NOT MEASURED (prerequisite): check-plugin-teardown-shape --self-test (shallow clone), check:dual-build-cjs-loads (whole-workspace build absent), check:i18n-coverage (service-print unbuilt for app-showcase), check:query-options-erasure (self-test passed; repo lint pass over the 150 s local cap). CI check-runs not yet read: report delivered before CI converges.",
      "mcp_calls": "0",
      "api_writes": "3 so far: fleet-write pr_create (POST pulls + assignee leg) run 47207732561; fleet-write pr_request_reviewers run 47207899393; this comment via post-stamped.mjs",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": [
        "class: none (noted) · reach: code read · packages/metadata-protocol/src/stored-own-field-rows.ts still prints 'protocol 18 read and edit' without the release span; the step-19 entry's STORED paragraph now carries the note; outside the card's landing points · carrier: none"
      ]
    }
  8. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Close-out: 2026-12-03T22:54Z · PR #39403 merged at 2026-12-03T22:41Z as f32b7d6d; it closed this card. Seat land record 7393318217. #39177 (unfolded) was released to pm:queue for the seat repo:objectstack@os-elon-musk (7394595887). The state label leaves with this note.

  9. removed
    pm:dispatched
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:buildbugdomain:specpriority:p2security

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions