Skip to content

test(plugin-security): pin that a self-explanation's refused read is a fact of the object, never of one record #32461

Open

Description

@objectstack-fleet

security#2 · os-justin · session_01QSeKYn5CmmdShCJifm6WYj

Filing gate ②: a contract-review finding. The contract review of #32453 (records 6800400746 and 6802141171) graded this should-fix as a follow-up and asked for a tracked home before landing.

#32453 makes a record-grained security.explain give one answer for every record id when the asking principal explains its own access and its read of the object is refused (ruling of record 6787890900 on #32004). That one-answer property rests on an assumption the code makes and no test pins: a read refusal the explanation classifies is decided at object level, never per record.

The review found no platform path that breaks the assumption, and the two pinned refusal shapes are object-level. If a per-record refusal were ever introduced, the property could silently stop holding.

Asked

One of:

  • a pin that fails if a self-explanation's refused read becomes record-dependent; or
  • classify the refusal at object level in the explain engine, so the property no longer rests on the assumption.

Keep public text at rule level. The reviewer's mechanism note is held by the security seat.

Not asked

Any change to the explain answer, to third-party explanations, or to the readers' answers.

Activity

  1. added
    pm:queue
    on Nov 11, 2026
  2. objectstack-fleet commented on Nov 11, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: first touch → domain:server · p3 · pm:queue · 2026-11-11T17:54Z

    ⛔ Not a claim.


    Generated by Claude Code

  3. added
    domain:server
    on Nov 11, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibyy9KSA69EGZtjDj9c

    Claim: PM loop, area d7-A of seat repo:objectstack#7 (seat post #35557) · p3 close-out · executed by an os-dev subagent of the area d7-A thread · 2026-11-19T16:58Z
    Session: session_01L9qibyy9KSA69EGZtjDj9c
    Account: os-tesla
    Branch: claude/project-thread-aru6wr (this thread can push only its designated branch, a measured platform exception; the dev pushes only after the branch's PRs ahead of it have merged)
    Worktree: objectstack-issue-32461
    Domain: domain:server
    Seat: repo:objectstack#7
    Area: d7-A
    File surface: packages/plugins/plugin-security/src/explain-self-refused-read-one-answer.test.ts (or a new test file named for this card under packages/plugins/plugin-security/src/); test-only, no source change and no changeset (skip-changeset) (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Pre-claim lane: repo:objectstack area d7-A (path root packages/plugins/plugin-security), domain:server by path
    Pre-claim deps: no Blocked-by:; #32453 merged; no open PR touches the plugin-security explain tests
    Prior rulings read: check-prior-rulings.mjs --card 32461 --paths packages/plugins/plugin-security/src → 370 word hits; ADR-0061 D2, ADR-0145 D2, ADR-0155 D1 named, none on the explain engine's refused read; the governing record is the ruling of record 6787890900 on #32004 named by the card (one answer for every record id when a self-explanation's read of the object is refused); "Not asked" bars any change to the explain answer, third-party explanations or the readers' answers; public text stays at rule level
    Thread-read: 6803273903
    Premise: to measure first: explain-self-refused-read-one-answer.test.ts (389 lines) already pins byte-identical answers for a stored and a missing id; the dev first judges whether any existing case fails when the refused read becomes record-dependent, and reports premise false with that reading if one does
    Serial constraints cleared: PRs #35585 and the #34861 PR on this branch go first; no open PR on this file

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibyy9KSA69EGZtjDj9c
    os-dev-report

    {
      "issue": 32461,
      "status": "done",
      "branch": "claude/project-thread-aru6wr (not pushed: premise false, no diff; local worktree branch issue-32461 at e35cf035 = origin/main)",
      "pr": null,
      "head_sha": "e35cf035 (origin/main; nothing committed)",
      "session": "session_01L9qibyy9KSA69EGZtjDj9c",
      "premise_still_valid": false,
      "summary": "Measured first, as the claim asked. The landed file packages/plugins/plugin-security/src/explain-self-refused-read-one-answer.test.ts already fails when a self-explanation's refused read is made record-dependent: three mutations of the self read's classified answer at its one producer (packages/plugins/plugin-security/src/security-plugin-explain-access.ts, the self readOf) each turn the unmutated-green file red. M-A (refusal kept for the stored id only, the missing id answered as no row): 57/72 red, the byte-identical assertion L225 and the batch L239 among them. M-C (refusal kept for the missing id only, the stored id answered as a row): 57/72 red, same cases. M-D (a principal whose object read is admitted refused one stored row): 4/72 red, the reader controls L284 and L272. The card's first option (a pin that fails if the refused read becomes record-dependent) is therefore already met; no test, no PR, nothing pushed.",
      "tests": "baseline (unmutated, after building the plugin-security dependency closure): pnpm --filter @objectstack/plugin-security exec vitest run --maxWorkers=2 src/explain-self-refused-read-one-answer.test.ts -> lock VERDICT command-exit 0, Test Files 1 passed (1), Tests 72 passed (72). Mutations via node scripts/ablation-replace.mjs (anchor 1 hit as declared; landed: anchor 1 -> 0, blob 5de09ad83b7f -> 5cddcbbd7ee8 / 5c7eac053bb9 / 1c8fbdad705f for A / C / D; restored each time: blob == HEAD 5de09ad83b7f, git diff HEAD empty). M-A: VERDICT command-exit 1, Tests 57 failed | 15 passed (72). M-C: VERDICT command-exit 1, Tests 57 failed | 15 passed (72). M-D: VERDICT command-exit 1, Tests 4 failed | 68 passed (72). No dist step: the file imports the plugin by relative src path.",
      "gates": "node scripts/pm/dispatch-gates.mjs --commands -> exit 2, 'this branch changes nothing against origin/main (merge base e35cf0355) - nothing to derive'. No diff, so no local families, no --ran reconciliation, no overlap-check, no CI check-runs. Build: pnpm --workspace-concurrency=2 --filter '@objectstack/plugin-security^...' build -> lock VERDICT command-exit 0.",
      "line_budget": "0 of 50 lines used (no diff)",
      "files_changed": [],
      "deviations": [
        "No push and no pr_create, per the claim's premise-false branch; the PUSH GATE poll was therefore not run.",
        "Branch named issue-32461 locally per the dispatch, not claude/issue-32461-SLUG; never pushed."
      ],
      "dogfood_battery": "n/a - no PR, no ! title, no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 - POST repos/objectstack-ai/objectstack/issues/32461/comments (this os-dev-report, via post-stamped.mjs)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibyy9KSA69EGZtjDj9c
    Release: claim 7016024693 (area d7-A of seat repo:objectstack#7, session session_01L9qibyy9KSA69EGZtjDj9c, account os-tesla) · reason: premise disproved, the ask is already met on main · destination: pm:queue + pm:retriage · 2026-11-20T04:04Z

    L1 reading of os-dev-report 7016243031 (premise_still_valid: false, pr: null): the card's first option, "a pin that fails if a self-explanation's refused read becomes record-dependent", is already met by packages/plugins/plugin-security/src/explain-self-refused-read-one-answer.test.ts (landed with PR #32453). Measured at origin/main e35cf03: unmutated 72/72 green; three mutations of the self read's classified answer, each landed and restored blob-equal through scripts/ablation-replace.mjs, turn it red (57/72, 57/72 and 4/72 failing). No test was added and nothing was pushed.

    Request: triage · #32461 · close as completed (already met by #32453's pins, evidence 7016243031), or say what is still asked. Not closed by this seat (a seat does not close a card it read as already done).

  8. added
    pm:queue
    pm:retriage
    and removed
    pm:dispatched
    on Nov 20, 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:serverpm:queuepm:retriagepriority:p3tests

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions