Skip to content

security (v19 major): View All / Modify All stop voting on fields — ADR-0087 conversion adds viewAllFields: true beside them, superuserFieldVote and security-superuser-field-mask-inert retire (step 3 of #34365, behaviour change) #36055

Description

@objectstack-fleet

repo:objectstack#7 · os-tesla · session_01L9qibzFAE8YRsK8YCDAeLL

Filing gate: ④ sub-card of the ruled decision #34365 (ruling 6912661484, verbatim 「同意,立决策卡」; implementation cards are cut after PR #34082, merged 2026-11-16T21:40Z) · Source: topic #34365

Parent: #34365 (step 3, "v19 major")
Blocked-by: #36050, #36052
Grade: left to triage. Suggested p2 (the end state of the p2 security card #34365). Area: data. Type suggestion: Feature.
⛔ Behaviour change in a major. Ships only in the v19 major, and is built only after the maintainer's go-ahead through the seat (this card's parent ruling sets the end state, not the build start).
Dedupe: repo:objectstack-ai/objectstack is:issue viewAllFields → 3 hits: #34365 (the parent), #33828 (closed), #6015 (triage seat post). No card covers this step.

Business reason

This is the step that fixes the defect class for good: one set's View All / Modify All will no longer re-open a field another set hides (hotcrm#2481's class). Every mainstream platform the parent card checked (Salesforce, Dataverse, ServiceNow, Odoo) keeps the record-wide bit off the field axis, and Salesforce added a separate read-only "View All Fields" for the same reason. The conversion keeps every existing app's behaviour verbatim, so no app owner loses access at upgrade.

What to build

  • viewAllRecords and modifyAllRecords cast no field vote: retire superuserFieldVote as a field-vote source (packages/core/src/security/effective-object-permissions.ts) in both merges (getFieldPermissions, buildEffectiveFieldPermissions), leaving viewAllFields as the only "all fields" channel. Readers of superuserFieldVote outside the merges (e.g. packages/qa/scenarios/src/score/scenario-tags.ts) move to the new reading.
  • One ADR-0087 mechanical conversion (packages/spec/src/conversions/entries/19/): add viewAllFields: true to every objects entry (wildcard included) that carries viewAllRecords or modifyAllRecords and does not already say viewAllFields. Behaviour kept verbatim; authors remove the bit where it isn't wanted.
  • One semantic upgrade-guide entry (packages/spec/src/migrations/entries/semantic/). After conversion, the only remaining behaviour change is "Modify All plus the same set's own editable: false / readable: false row" — the entry names it, and the lint that already names that case is its pointer.
  • Retire security-superuser-field-mask-inert (packages/lint), and re-point the cross-set warning from the step-2 lint sub-card (it no longer fires for View All / Modify All after the switch) — the PR says what that rule becomes.
  • ADR-0066 D2 ⑧ end-state note (governed, Tier H).
  • File the hotcrm follow-up when this lands: convert sales_manager (which relies on Modify All to read account roll-ups) from the converted viewAllFields: true to explicit rows (Decision: separate the record axis from the field axis — View All / Modify All stop voting on fields, a read-only viewAllFields bit carries the admin channel (end state, v19) #34365 step 4).

Declarations the PR owes

Clause-②: yes · Metadata-protocol: semantic (with a mechanical conversion) · Skills-docs: line · Tier H · contract review at the required tier · full verification (! major).

Acceptance

  • After conversion, every fixture app's field maps are identical to before; an unconverted set with View All alone no longer reads a field another set hides.
  • Gates green; L1 + L2 PASS on the final head; landed by the maintainer's approval.

Activity

  1. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:spec · pm:blocked (Blocked-by #36050, #36052); rationale: area:data · Feature · step 3 of #34365, the v19 major: View All / Modify All stop voting on fields (ADR-0087 conversion adds viewAllFields: true beside them; superuserFieldVote and security-superuser-field-mask-inert retire), closing for good the class where one set re-opens a field another hides (hotcrm#2481) → p2 (the end state of p2 #34365) · size L.

  2. added
    domain:spec
    pm:blocked
    priority:p2
    on Nov 21, 2026
  3. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor
  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:datadomain:specpm:queuepriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions