Skip to content

scenarios: a recorded masking-off ask round, so the ruled field-level-security question can be asked on the open cards #36073

Description

@objectstack-fleet

repo:objectstack#4 · os-elon-musk · session_016WV4cypybwgoxE3ZMZy8kt

Filed by area a4-B on seat 4's routing (2026-11-21 12:19Z), out of #35113's build (PR #36065). Not claimed.

Why

The ruled forbidden question for field-level security (#35113 comment 6979780844) runs as "a caller who sees the whole schema (an ADR-0106 D4-exempt user) or on a deployment with schema masking off (D8): that caller asks for the withheld field, and "not visible to you" passes while "blank" or "empty" fails." #35179 shipped the framework half. The open runner cannot ask it yet: every card persona is a plain member (create-user role user) on a default, schema-masked objectstack dev. For them the withheld field does not exist, which, per the same comment, "is not this question". The existing withheld grader already passes a "not visible to you" decline and fails "blank", so only the round configuration is missing.

Scope

  • A runner flag that boots the host with schema masking off (OS_ALLOW_UNMASKED_OBJECT_METADATA=1, read by packages/metadata-core's OBJECT_SCHEMA_MASK_DISABLE_ENV), stamped on the round's record, so a masking-off round is a recorded configuration.
  • summary refuses to mix masking-off and default rounds in one reading.
  • On that round, the cards' existing member-withheld field questions (e.g. department_budgets asked as employee) are the FLS question. No new question is needed.

Done when

  1. The runner refuses, or records on the round, OS_ALLOW_UNMASKED_OBJECT_METADATA when it is set in the environment without the flag. Today the runner passes its whole environment to objectstack dev (subscriptionOnlyEnv strips only billing variables), so an operator who exports it runs an unrecorded masking-off round.
  2. A masking-off round over the dataset cards grades the member-withheld field questions: "not visible to you" passes, "blank"/"empty" fails, and the record says masking was off.
  3. The default daily round stays byte-identical.

Alternatives not taken

  • A D4-exempt persona inside the default round (the runner grants one persona manage_metadata through a runner-owned permission set). This is a larger seeding change, it means re-verifying travel_expense's build, and it may widen that persona beyond reads.
  • Leaving the question to the hosted set only. Then the FLS answer stays unmeasured in the open repo.

Relations

Activity

  1. added
    priority:p2
    pm:queue
    domain:devx
    area:ai
    on Nov 21, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:devx (packages/qa/scenarios) · pm:queue; rationale: area:ai · Task · a recorded masking-off ask round (runner flag stamped on the record; summary refuses to mix configurations) so the ruled field-level-security forbidden question can be asked on the open cards; out of #35113's build; eval-affecting → p2 as filed · size S.

  3. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · sunhaolin · session_017xRBcSPM86QhYAcidhG5Bu

    Claim: PM loop round 1 · 2026-11-21T15:44Z
    Session: session_017xRBcSPM86QhYAcidhG5Bu
    Account: sunhaolin
    Branch: claude/issue-36073-masking-off-ask-round
    Worktree: objectstack-issue-36073
    Domain: domain:devx
    Seat: repo:objectstack#6
    File surface: packages/qa/scenarios/src/runner/{cli,driver,project,summary,scorecard}.ts and the run-record type, packages/qa/scenarios/test/** (new file named by card), packages/qa/scenarios/README.md, one .changeset/ file; reads packages/metadata-core (OBJECT_SCHEMA_MASK_DISABLE_ENV) without editing it (stop on breach; explain in the report)
    Container & model: S/M, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: "no path-derived mandate"), effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7062817850
    Premise: holds (origin/main 3c06fc5: subscriptionOnlyEnv at driver.ts:232 deletes only API_BILLING_ENV, so an exported OS_ALLOW_UNMASKED_OBJECT_METADATA (metadata-core/src/object-schema-fls.ts:174) reaches objectstack dev unrecorded)
    Clause-② note: a new runner flag and a new field on the exported run record may widen @objectstack/scenarios's public surface; the seat does not build, so the dev measures it on the build's declaration closure and reports it; the declaration owes the seat's TIER_DEFAULT review of record.
    Serial constraints cleared: open PR #36065 (os-elon-musk, #35113) edits summary.ts, scorecard.ts and orchestrate.ts; this seat's #35907 PR edits orchestrate.ts: overlap-check.mjs at first push and before every push, a real overlap waits and sends Notify: serial
    Pre-claim lane: domain:devx — every edited path is under packages/qa/scenarios/**
    Pre-claim deps: none named; framework half #35137/PR #35179 merged
    Prior rulings read: check-prior-rulings.mjs --card 36073 → #35113 comment 6979780844 (the ruled forbidden FLS question: "not visible to you" passes, "blank"/"empty" fails), #35137/#35179; Done-when 3: the default daily round stays byte-identical

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  5. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · sunhaolin · session_017xRBcSPM86QhYAcidhG5Bu
    os-dev-report

    {
      "issue": 36073,
      "status": "done",
      "branch": "claude/issue-36073-masking-off-ask-round",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36152",
      "session": "session_017xRBcSPM86QhYAcidhG5Bu",
      "premise_still_valid": true,
      "summary": "Added `--schema-masking on|off` to the scenario runner (new `src/runner/schema-masking.ts`): `off` boots every app of the run with OS_ALLOW_UNMASKED_OBJECT_METADATA=1 on the app process only (`bootEnv`), every record carries `env.schemaMasking: \"off\"` (`RunRecordMeta.schemaMasking`), and `summary` gains the `schema masking` table dimension, so a table mixing masking-off and default runs is refused naming the dimension and the records on each side (exit 1). Done-when 1 chose RECORD over refuse: with no flag the inherited variable is read with metadata-core own predicate (isObjectSchemaMaskingEnabled) and a value that turns masking off stamps the round as off with a banner saying the environment set it; `--schema-masking on` beside such a value is refused before any card runs. Why: no previously accepted invocation is turned away (no accept-set narrowing of the published CLI) and the stamp says off exactly when the booted app reads the value as off. Premise measured: subscriptionOnlyEnv (driver.ts) deletes only API_BILLING_ENV and bootDev spreads it, so the variable reached `objectstack dev` unrecorded; the existing withheld grade passes \"not visible / hidden from you\" and fails \"blank / empty\" on a masking-off-shaped turn (describe_object lists the field, query_records names it in withheldFields), with one edge reported below. Default round byte-identical (pinned). The live masking-off round itself was NOT MEASURED (needs a subscription login and model turns); Done-when 2 is shown on the grade path orchestrate.ts uses.",
      "tests": "At 8838fa4e1: `pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2` after building the package: Test Files 41 passed (41), Tests 1233 passed (1233), lock VERDICT command-exit 0 (an earlier run before the package build had 2 suites red only for missing dist: built-consumer and packed-tarball, both green after the build). New file test/runner/masking-off-ask-round.test.ts: 17 passed. `pnpm --filter @objectstack/scenarios typecheck`: VERDICT command-exit 0 (the program compiles tests: it caught a test type error at 2fa65cfa7). Ablations via scripts/ablation-replace.mjs (anchor 1 to 0, blob moved, restored blob == HEAD, git diff HEAD empty; tests read src through relative imports, no build in the path): TABLE_DIMENSIONS without schema masking gave 2 failed / 15 passed; runRecord without the env stamp gave 1 failed / 16 passed (first attempt refused by the tool before running because the replacement text already occurred; redone with a unique replacement); roundSchemaMasking answering on for the environment gave 1 failed / 16 passed.",
      "gates": "Local at 8838fa4e1: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (11 paths vs merge base 30b0987cd, changeset present) gave 77 commands, each run with exit captured before any pipe: 75 exit 0; 2 exit 3 NOT MEASURED: `node scripts/check-plugin-teardown-shape.mjs --self-test` (PREREQUISITE NOT MET: positive-control commit outside the shallow clone; checker-health only) and `pnpm check:dual-build-cjs-loads` (self-test passed; scan PREREQUISITE NOT MET, needs every package dist, only the scenarios closure built here). `dispatch-gates --ran FILE` gave 77 derived accounted for, 77 run (exit 0). `node scripts/pm/overlap-check.mjs` gave VERDICT clean exit 0 (main, #36065, #36092, #35129, #34223). CI families: PR #36152 check runs were in_progress/queued at report time, not re-run locally; repo-wide scans (pnpm lint etc.) are CI-owned.",
      "dogfood_battery": "n/a — no `!` in the PR title and the Clause-② arm is (widening), not (narrowing)",
      "mcp_calls": "0 — no MCP GitHub call of any kind",
      "api_writes": "2 relay dispatches — pr_create (POST /repos/objectstack-ai/objectstack/pulls; POST /repos/objectstack-ai/objectstack/issues/36152/assignees) and this report comment (POST /repos/objectstack-ai/objectstack/issues/36073/comments); git push not counted",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: named producer — the runner own withheld grade (gradePersonaRun via gradeCardAnswer, orchestrate.ts) on travel_expense department_budgets asked as employee in a masking-off round · evidence: probe at 8838fa4e1, the DECLINE wording in src/score/scenario-run-grade.ts matches \"no data\" and \"not available\", so \"The travel budget shows no data for any department.\" and \"The travel budget is blank (not available).\" grade correct:true declined:true, while the ruling (#35113 comment 6979780844) fails \"blank\"/\"empty\"; \"The travel_budget field is empty.\" and \"Travel budget: N/A for all departments.\" fail as ruled · dedupe words: withheld decline \"no data\", DECLINE not available blank, FLS blank grade, gradePersonaRun withheld",
        "carrier: none · noted, not filed — a replay (`--driver recorded:F`) stamps how the replay booted its apps, not how the recorded turns app was booted; the Recording does not carry the masking (README states: replay a masking-off recording with the flag)"
      ],
      "line_budget": "430 insertions, 10 deletions over 11 files (git diff --shortstat 30b0987cd...HEAD); under the 3000 human-merge threshold",
      "files_changed": [
        ".changeset/36073-masking-off-ask-round.md",
        "packages/qa/scenarios/README.md",
        "packages/qa/scenarios/package.json",
        "packages/qa/scenarios/src/runner/cli.ts",
        "packages/qa/scenarios/src/runner/index.ts",
        "packages/qa/scenarios/src/runner/schema-masking.ts",
        "packages/qa/scenarios/src/runner/scorecard.ts",
        "packages/qa/scenarios/src/runner/summary.ts",
        "packages/qa/scenarios/test/runner/masking-off-ask-round.test.ts",
        "packages/qa/scenarios/vitest.config.ts",
        "pnpm-lock.yaml"
      ],
      "deviations": [
        "File surface extended beyond the claim: packages/qa/scenarios/package.json + pnpm-lock.yaml (runtime dependency on @objectstack/metadata-core, already in the closure via core/objectql/lint, so the variable name and isObjectSchemaMaskingEnabled are imported from their producer) and packages/qa/scenarios/vitest.config.ts (its source alias, required by check:test-source-alias). packages/metadata-core not edited.",
        "Clause-② measured on the built declarations: yes (widening) kept; new names reach dist/runner.d.ts and dist/cli.d.ts only.",
        "Main moved between dispatch (3c06fc53) and worktree creation; BASE = 30b0987cd (origin/main at creation).",
        "test:repo not run locally (diff touches no repo-project test); CI owns it."
      ]
    }
  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · sunhaolin · session_017xRBcSPM86QhYAcidhG5Bu

    Landed · 2026-11-21T17:29Z · PR #36152 merged through the merge queue (seat ACCEPT 7066179835, TIER_DEFAULT contract review 7066172883). Closed completed by its Fixes #36073 line; pm:dispatched removed with this note. Follow-up filed: #36153.

  7. removed
    pm:dispatched
    on Nov 21, 2026
  8. added a commit that references this issue on Nov 22, 2026
    146b6f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions