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
  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

    Ruled: build now, ship in 19.0 · 2026-11-25T23:09Z

    Ruled: the maintainer gives this card's go-ahead (the body's "built only after the maintainer's go-ahead through the seat"): build it now and ship it in the 19.0 major.

  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

    Claim: PM loop round 1 (seat 7) · 2026-11-25T23:12Z
    Session: session_011y7As8wf3DSPRevwNnYLcM
    Thread session: session_011y7As8b4YLdvodeGAQWNTQ
    Account: os-alice
    Branch: claude/project-thread-o3bcge
    Worktree: objectstack-issue-36055
    Domain: domain:spec
    Seat: repo:objectstack#7
    File surface: packages/core/src/security/** (superuserFieldVote out of both merges), packages/spec/src/conversions/entries/19/** (the ADR-0087 mechanical conversion adding viewAllFields: true), packages/spec/src/migrations/entries/semantic/** (one semantic entry), packages/lint/src/** (retire security-superuser-field-mask-inert, re-point the cross-set warning), packages/qa/scenarios/src/score/** and any other reader of superuserFieldVote, packages/plugins/plugin-security/src/** tests that pin the vote, generated packages/spec artifacts, changesets. Out of surface (stop and report): docs/adr/** (the ADR-0066 D2 ⑧ note becomes a row on weekly card #37245 after merge), .claude/**, skills/**.
    Container & model: L, mode:thread, model: default (dispatch-gates --tier --repo objectstack-ai/objectstack at 80da086: no path-derived mandate; thread reports opus, effort high), effort: high
    Clause-②: yes
    Metadata-protocol: semantic
    Responsibility: n/a — not a defect card
    Thread-read: 7177220994
    Premise: holds (at 80da086 superuserFieldVote is read in packages/core/src/security/effective-object-permissions.ts and packages/lint/src/validate-security-posture.ts; blockers #36050 and #36052 closed completed; the 19 line is open, PR #37230, pre mode next)
    Serial constraints cleared: none — no open pm:dispatched card claims packages/core/src/security/**; #37086 (in flight, seat 7) touches packages/spec/src/** and packages/lint/src/** on other files (form type, defineForm rename); shared files, if any, resolve at merge by the later lander.

    Provenance: maintainer go-ahead ruled on this card (7177220994): Alice (os-alice), 「现在开工,进 19.0」, decision card in seat 7's project decision thread, 2026-11-25T23:04Z.

    Clause-②: yes reason: changes the field-axis meaning of published viewAllRecords / modifyAllRecords and ships a conversion (the card's declarations). Owes: L1, a contract-tier L2 review, and the maintainer's own merge (pm:awaiting-merge).

    Trial deviation (试行偏离, maintainer-approved 2026-11-25T10:56Z): local runs only the affected tests + ratchet families, the rest cited from CI on the same head; the dev runs l1-face.mjs before reporting.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  8. 2 remaining items

  9. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM
    os-dev-report

    Interim report (the seat asked for one before #37314 merges), 2026-11-26T00:03Z.

    {
      "issue": 36055,
      "status": "rework",
      "branch": "claude/project-thread-o3bcge",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37371",
      "session": "session_011y7As8b4YLdvodeGAQWNTQ",
      "premise_still_valid": true,
      "summary": "Interim, known incomplete: waits on #37314 for the 19 step. Built: View All / Modify All cast no field vote in both merges (core viewAllFieldsReadVote replaces superuserFieldVote; plugin-security and explain follow; scenarios scoring follows), lint retires security-superuser-field-mask-inert and re-points security-cross-set-field-reopen to viewAllFields only, showcase migrated by hand, docs, spec describes, changeset with the one-step check ruling A asks for. Still owed after #37314: entries/19 conversion permission-view-all-fields-beside-record-bypass (retiredFromLoadPath), CONVERSIONS_BY_MAJOR[19] and step19 conversionIds, the 19 semantic entry, the ruling-A refusals at DEFAULT_FLIPS_NOT_REPLAYED_HERE and stored.ts, the fixture field-map measurement, the dogfood battery. Premise refinement: Modify All's cross-set EDIT re-open is lost too (viewAllFields votes read only), the built-in admin beside an app set's edit lock included; ruled by 6912661484, named in the PR and to be named in the D3 entry. Declaration line written Clause-②: yes (narrowing), the arm added to the order's literal because the change narrows what a caller reads.",
      "tests": "head 18c15eac (ebc9d48c adds changeset front-matter only): vitest core src/security 75 files / 1493 tests passed; lint 235 files passed (377 in the touched files after fixes); plugin-security 289 files, 7277 passed / 45 skipped, 0 failed; scenarios test/score/scenario-tags.test.ts 116 passed (suite-wide 2 failures in test/build and test/runner/packages.test.ts need a packed workspace build, files untouched); spec src/security/permission.test.ts + src/contracts/security-service.test.ts 162 passed; cli test/superuser-bypass-mirror-parity.test.ts 3 passed. typecheck exit 0: core, lint, plugin-security, scenarios. dogfood typecheck exit 2: 932 TS2307 module-not-found from unbuilt connector packages, none in the two touched dogfood files. Acceptance (unconverted View All alone no longer reads a field another set hides) pinned in core superuser-field-vote-33828.test.ts, plugin-security fls-superuser-vote.test.ts, and a new third member in fls-own-field-mask-33828.dogfood.test.ts (run owed with the battery).",
      "gates": "local, exit codes before any pipe: lint check:doc-security-posture 0; lint check:doc-formula-expressions 0; check:i18n-stale-fill 0; check-skills-token-ratchet 0; check:doc-anchors 0; check:doc-authoring 0; docs-audit/check-affected-docs 0; check:spec-docblock-symbol-anchors 0; check:issue-citations 0; check-empty-changeset 0; check:docs-spec-enumerations 0; check-changeset-no-major 0 (pre mode); spec check:generated 1 then --fix (gen:docs) and re-check 0; eslint on the touched ts files 0. Red: check-adr-0087-registration 1 (expected: the id registers with the 19 entry); check:adr-symbol-anchors 1 (docs/adr/0066-unified-authorization-model.md:146 anchors effective-object-permissions.ts#superuserFieldVote, docs/adr out of surface); check:platform-checklist 1 (areas/automation.json FlowItemMoreMenu anchor, not in this diff). NOT MEASURED locally: check:type-check-debt (needs the whole workspace built), the remaining 100+ derived families; CI on the PR head is the record, 20 checks pending at 00:02Z. l1-face --pr 37371 exit 4: changeset flag fixed in ebc9d48c, skills-docs flag (card to file), dogfood owed, floor and all checks pending.",
      "dogfood_battery": "NOT MEASURED — owed on the final head, after #37314 merges and the 19 entry lands",
      "mcp_calls": "7 — mcp__github__issue_read x4, mcp__github__pull_request_read x2, mcp__github__get_file_contents x1; all reads",
      "api_writes": "2 — relay pr_create POST /repos/objectstack-ai/objectstack/pulls (+ assignees os-alice), this comment via post-stamped",
      "open_questions": [
        {
          "question": "Ruling A asks for a one-step check of which STORED permission sets are affected. No command lists them today, and Studio's matrix has no viewAllFields control, so the stored fix goes through the metadata API. The changeset states the predicate (an objects entry, wildcard included, with viewAllRecords or modifyAllRecords and no viewAllFields) and that fix. Enough?",
          "options": [
            "A: keep the stated predicate and the metadata-API fix in this PR; file a follow-up card for a stored review list in os migrate meta --stored (like the flow decision-mode review list)",
            "B: add that review list to this PR (metadata-protocol stored-migration, outside the claim, cost M)"
          ],
          "recommendation": "A, because the list is new plumbing outside the claimed surface and the check is already one predicate a reader applies to one set"
        },
        {
          "question": "check:adr-symbol-anchors is red: docs/adr/0066:146 anchors #superuserFieldVote, which this PR removes. docs/adr is out of surface.",
          "options": [
            "A: the #37245 ADR revision re-points the anchor to #viewAllFieldsReadVote (with the D2 note in the PR body) before this PR leaves draft",
            "B: add that one anchor line to this PR's claim (docs/adr effort floor xhigh)"
          ],
          "recommendation": "A, because the D2 end-state note goes to #37245 anyway and the anchor is the same paragraph"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: unclassified · reach: check:platform-checklist red on the merged tree, neither file in this diff (arrived with origin/main 98bda0ac) · evidence: areas/automation.json anchors ui/packages/app-shell/src/views/studio-design/FlowItemMoreMenu.tsx#FlowItemMoreMenu, not declared there · dedupe words: FlowItemMoreMenu absent symbol platform checklist",
        "skills docs owed (skills/** out of surface): skills/objectstack-ai/SKILL.md pitfall 2 says Modify All grants a field edit; skills/objectstack-data/evals/hooks-security-seeds-datasources.json expected output says View All and Modify All re-open a field · carrier: seat files the card, PR line Skills-docs rewritten to the number",
        "hotcrm sales_manager: convert the migrated viewAllFields: true to explicit field rows (#34365 step 4) · carrier: seat files it"
      ]
    }
  10. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

    Duplicate: this interim report was posted twice by mistake. The record is comment 7178352702 above; this copy carries nothing else.

  11. added a commit that references this issue on Nov 26, 2026
  12. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

    Paused · 2026-11-26T00:09Z

    Paused-for: maintainer concurrency order — who: Alice (os-alice); words: 「并发降到1」; where: seat 7's project chat, 2026-11-26T00:09Z. Seat 7 keeps one lane running (#37086).

  13. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

    Resumed · 2026-11-26T13:00Z

    Resumed-by: maintainer order — who: Alice (os-alice); words: 「37314 已经合并了」「同时做」; where: seat 7's project chat, 2026-11-26T12:59Z. Cap back to 2 (#37086 + this card).

  14. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM
    os-dev-report

    Final report for the second half (head bad558d).

    {
      "issue": 36055,
      "status": "done",
      "branch": "claude/project-thread-o3bcge",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37371",
      "session": "session_011y7As8b4YLdvodeGAQWNTQ",
      "premise_still_valid": true,
      "summary": "Second half delivered on final head bad558d5 (merged main 1dd682c1 first; the os-regen debt on content/docs/references/api/protocol.mdx was regenerated and committed). New ADR-0087 D2 default flip permission-view-all-fields-beside-record-bypass (packages/spec/src/conversions/entries/19/, retiredFromLoadPath, retiredAfter 18.6.0, fixture with 3 notices) writes viewAllFields: true on every objects entry, '*' included, that has viewAllRecords or modifyAllRecords and no viewAllFields; it is registered in a new sorted MAJOR_19_CONVERSIONS as CONVERSIONS_BY_MAJOR[19], and step19.conversionIds derives from it (step 19 not re-opened, rationale extended by one sentence). The D3 entry permission-view-all-modify-all-cast-no-field-vote carries every behaviour change and ruling A's one-step check. Ruling A exclusions: applyConversionsToStoredItem refuses the id by name (module-local STORED_ROWS_NOT_REWRITTEN, merged into any caller's excludeConversionIds), and DEFAULT_FLIPS_NOT_REPLAYED_HERE carries it with its reason. Upgrade guidance lives in three places, and each says stored permission sets are read with the 19 meaning and the fix is adding viewAllFields: true: (1) the semantic entry packages/spec/src/migrations/entries/semantic/19.permission-view-all-modify-all-cast-no-field-vote.ts; (2) the generated guide content/docs/protocol-upgrade/19.md, written by gen:upgrade-guide, gitignored and built by the docs site (conversion row plus D3 entry); (3) the changeset .changeset/36055-view-all-stops-voting-on-fields.md (metadata-core added as minor, plus a pointer to the D3 entry). Mechanical consequences outside the listed surface, all test or fixture data: the major-18 fixture permission-modify-all-allow-delete-false-to-true gained viewAllFields: true so the fixture table stays disjoint; scripts/conversions-major18-merge.test.ts reads major 18's slice of ALL_CONVERSIONS instead of its tail; retired-key-removal-version.pin.test.ts gained a semantic row kind joining the flip to its D3 entry; examples/app-showcase/access-matrix.json now records the five hand-migrated viewAllFields grants, which the showcase build's ADR-0090 D6 drift check named. Seams: no other seam replays the id. The flow-only exclusions never see a permission set, every stored-row caller (database-loader, objectql convertStoredRow, metadata-protocol convertStoredItemDetailed, os migrate meta --stored, core translation sync, service-datasource) goes through applyConversionsToStoredItem, and the artifact door is the only other includeRetired caller. Updated PR body saved for the seat at /mnt/project-files/seat7/36055-dev/pr-body-37371-v2.md (re-read, byte-identical to the scratch copy). The auto-mode classifier refused one compound command (commit plus push plus background build); the same steps then ran one at a time, with nothing skipped.",
      "tests": "Acceptance measurement (one-shot script under packages/core/.measure-36055, deleted, not committed). Method: the pre-PR sources from origin/main under the v18 merge, against the same sources run through the conversion under the v19 merge, for every single set and every pair. Built-in default sets: 9 sets, 45 combos, 507 field cells, 0 conversion notices; read 507/507, edit 507/507 identical. Showcase plus defaults: 18 sets, 171 combos, 1314 cells, 5 notices; read 1314/1314 identical; edit 1302/1314, and all 12 differences are the ruled loss of Modify All's edit vote (admin_full_access or organization_admin beside showcase_contributor or showcase_client_liaison on showcase_project.budget, spent and budget_remaining). CRM plus defaults: 11 sets, 66 combos, 663/663 identical. No field or edit opened; zero own-row-beside-Modify-All cases occur in these fixtures. The conversion of the pre-PR showcase equals the branch's hand migration on 9/9 sets. Control: an unconverted View All set beside another set hiding o.secret reads it under v18 (readable true) and not under v19 (readable false). Unit tests: spec src/conversions + src/migrations + the pin + the major-18 merge test: 29 files / 1072 tests passed. Full spec local project: 900/901 files, with the one failure being the unjoined pin, since fixed. metadata-core test: 27 files / 1070 passed. cli unit 'migrate': 44 files / 449 passed. core src/security: 75 / 1493 passed. lint: 236 / 9658 passed. typecheck: spec and metadata-core green. Ablations, each with mutation and restore proven on disk by scripts/ablation-replace.mjs (blob after restore = blob at HEAD, git diff HEAD empty): removing the id from STORED_ROWS_NOT_REWRITTEN gave 3 failed / 7 passed; removing it from DEFAULT_FLIPS_NOT_REPLAYED_HERE gave 4 failed. The first stored-seam ablation was a refused no-op (its replacement text already occurred in the file) and was rerun with a distinct marker.",
      "gates": "dispatch-gates --commands at bad558d5: 132 families. --ran reconciliation with exit codes: 132 accounted, 128 run, 4 NOT MEASURED, 0 unrun. 127 exit 0, including check-adr-0087-registration (now green), spec check:generated, check:spec-changes, check:upgrade-guide, check:api-surface, check:authorable-surface, check:type-check-debt, check:platform-checklist and check:nul-bytes. 1 exit 1, known and outside the surface: check:adr-symbol-anchors at docs/adr/0066:146 (#superuserFieldVote). 4 NOT MEASURED (exit 3): check-plugin-teardown-shape --self-test (shallow clone) and check:skill-examples, check:dual-build-cjs-loads and check:published-readme-exports (their packages are not built here). The platform-checklist red named in the brief was green here. Local-only: check:skill-frame-freshness exit 0; check:dev-prereqs exit 1 because 35 ui/ packages have no dist (box state, not this diff). CI check-runs at bad558d5, read once: 70 runs, 58 success, 10 skipped, 0 pending, 2 failure (Lint & Repo Gates, Lint · docs & code guards). The job log names only the check-adr-symbol-anchors finding. TypeScript Type Check, Test Core (10/10 shards plus the aggregate), Build Core and the other required contexts on the PR set: success. l1-face --pr 37371 exit 5 (FLAGGED): skills-docs (the live PR body's long Skills-docs line; v2 uses 'follow-up #37374'), floor-checks and all-checks (the adr-symbol-anchors red), dogfood (owed and flagged, not judged; recorded below). mergeable_state unknown after 1 read.",
      "dogfood_battery": "bad558d5 · os-verify-lock: VERDICT command-exit 0 (held 36m26s) · Test Files 488 passed + 3 skipped / 491 · Tests 4137 passed + 68 skipped / 4205 · no failures",
      "mcp_calls": "0 — no GitHub MCP tool used",
      "api_writes": "1 — POST issues/36055/comments (this report, via post-stamped.mjs). Reads, not writes: 10 gh api GETs (card comments list, 4 comment reads, check-runs list, 2 check-run reads, 1 annotations read, 1 job log) plus l1-face's own read-only calls. git push x5 to the branch (not REST)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #37374 · published skills (skills/objectstack-ai/SKILL.md pitfall 2, skills/objectstack-data evals) still describe Modify All granting a field edit; out of surface (skills/**), noted, not filed",
        "carrier: #37375 · os migrate meta --stored lists no affected stored permission sets yet, and Studio's permission matrix has no viewAllFields control, so the operator fix goes through the metadata API; noted, not filed",
        "carrier: #37245 · docs/adr/0066:146 anchors #superuserFieldVote; the ADR PR re-points it to #viewAllFieldsReadVote; noted, not filed"
      ]
    }
  15. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

    Landed · 2026-11-26T19:44Z

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

Metadata

Metadata

Assignees

Labels

area:datadomain:specpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions