Skip to content

feat(service-storage): the uploader removes an attachment they uploaded, through an own-row door - #33322

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/area-A3-33010
Nov 14, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/area-A3-33010

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread
Fixes #33010
Area-lease pilot #33059, area A3.
Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 改了什么:新增 DELETE /api/v1/attachments/:id,成员可删除自己上传的附件;成员授权(storage_attachment_member)仍只有读与建,不加删除位,数据门 DELETE /data/sys_attachment/:id 对成员仍是 403。
  • 为什么改:成员挂错文件后无法撤回,只有管理员能删;维护者裁决(评论 6879388034)允许"仅限本人上传"的删除。
  • 风险与回滚:新路由只认 uploaded_by 等于调用者的行,以调用者身份读、以系统上下文删;回滚即 revert 本 PR,数据门行为未改。
  • 先看:attachment-removal-routes.ts(门的定义,所有者列 uploaded_by)、storage-service-plugin.ts 的 mountAttachmentRemovalDoor(挂载与调用方解析)、member-attachment-baseline.dogfood.test.ts(真栈钉子)。
  • 两分钟验证:pnpm --filter @objectstack/service-storage exec vitest run src/attachment-removal-routes.integration.test.ts,预期全绿:本人删除 200 且行消失,他人 403 PERMISSION_DENIED 行仍在。
  • 需要你做的:无,席位落地。

What changes

Ruling (comment 6879388034 on the card): a member may delete an attachment they uploaded themselves, own uploads only, and the member grant carries no wider delete bit.

  • The door. DELETE /api/v1/attachments/:id is @objectstack/core's own-row delete door (own-row-delete-routes.ts, the one the unreact and personal-view doors use) for sys_attachment, owner column uploaded_by. It resolves the caller through the platform's one request-to-context composition, reads the row AS the caller (object grant, organization wall, attachment read visibility), refuses a row whose uploaded_by names anyone else (403 PERMISSION_DENIED, the row stays), answers a row the caller cannot read as an unknown id (404 RECORD_NOT_FOUND), and only then removes it under a system context attributed to the caller, so the lifecycle tombstones the file it pointed at. uploaded_by is stamped from the session by the attach rule and is read-only after insert, so a caller cannot make another user's row their own.
  • Mounted by StorageServicePlugin at kernel:ready, beside the storage family and outside it (fixed route, its own ledger attachment-removal-route-ledger.ts, one gap row: the SDK has no method yet; the storage ledger's zero-gap ratchet is untouched).
  • The member grant is unchanged: read and create on sys_attachment, nothing else. The data door's delete still needs an explicit grant; an administrator keeps deleting any attachment there. A member who can edit the record but did not upload the attachment is refused by the door.
  • Docblocks of attachment-member-grant.ts and the write rule (attachment-access-hooks.ts) say where the uploader's removal is served.

Tests

Recorded at open as NOT MEASURED: local runs follow on this branch and are reported in the dev report (storage package suite, the new integration file, the ledger conformance, the dogfood attachment file, typecheck, eslint, the ADR-0087 registration check, one ablation of the mount).

Acceptance notes

  • The Console's record Attachments panel still deletes through the data door and offers the button only to a holder of the delete grant; moving it to this door for the uploader's own rows is the console half (follow-up, not in this PR).
  • The host door mountStorageRoutes (cloud's per-environment kernels) does not carry this route: it calls the registration half get/post/put only. Carrying it there is a separate change.
  • The ADR-0090 D5 sentence that keeps delete off everyone-bound sets gets its matching line in a separate docs PR (governed surface), filed by the area thread.

Verification

See Tests.

🤖 Generated with Claude Code

https://claude.ai/code/session_016WV4d1D3AzXvEhBbz79Pmi

…ed through an own-row door

A member holding only the storage service's member grant (read and create on
sys_attachment) could attach a file to a record and never take it back. The
removal door DELETE /api/v1/attachments/:id is core's own-row delete door for
sys_attachment, owner column uploaded_by: it reads the row as the caller,
admits it only when the caller uploaded it, and removes it under a system
context attributed to the caller. The member grant gains no delete bit.

Claude-Session: https://claude.ai/code/session_016WV4d1D3AzXvEhBbz79Pmi
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the domain:server Domain lane — seat card indexed by label:pm:seat label Nov 14, 2026
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/service-storage, touching 21 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/services/service-storage/src/attachment-access-hooks.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

6 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/api/environment-routing.mdx (via /api/v1/... (route, a path literal in a comment in AttachmentRemovalRouteLedgerEntry))
  • content/docs/api/plugin-endpoints.mdx (via sys_attachment (literal, a string literal in object))
  • content/docs/deployment/single-project-mode.mdx (via /api/v1/... (route, a path literal in a comment in AttachmentRemovalRouteLedgerEntry))
  • content/docs/permissions/attachments-access.mdx (via sys_attachment (literal, a string literal in object), uploaded_by (literal, a string literal in ownerField), /api/v1/attachments/:id (route, a path literal in ATTACHMENT_REMOVAL_ROUTE_LEDGER; a path literal in ATTACHMENT_REMOVE_ROUTE; a path literal in a comment on a changed line))
  • content/docs/permissions/permission-sets.mdx (via sys_attachment (literal, a string literal in object))
  • content/docs/permissions/system-context.mdx (via sys_attachment (literal, a string literal in object))

⛔ 4 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v14.mdx (via sys_attachment (literal, a string literal in object))
  • content/docs/releases/v15.mdx (via sys_attachment (literal, a string literal in object), uploaded_by (literal, a string literal in ownerField))
  • content/docs/releases/v17/17-1.mdx (via sys_attachment (literal, a string literal in object))
  • content/docs/releases/v17/17-6.mdx (via sys_attachment (literal, a string literal in object))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/services/service-storage/src/attachment-access-hooks.ts) — pages documenting those are invisible to this run
  • 8 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 6538ba48fc4590402cd6280cf83a8902f6de83d3 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 7d4b9ee302e4036cad269021a6677e7e325835e5 — the merge of head e5aa3112bdbf29d0cef2c5d8c28b8d6ad6758bd7 into base 6538ba48fc4590402cd6280cf83a8902f6de83d3, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 7d4b9ee302e4036cad269021a6677e7e325835e5 && git checkout 7d4b9ee302e4036cad269021a6677e7e325835e5
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 6538ba48fc4590402cd6280cf83a8902f6de83d3 e5aa3112bdbf29d0cef2c5d8c28b8d6ad6758bd7 && git checkout -B drift-repro 6538ba48fc4590402cd6280cf83a8902f6de83d3 && git merge --no-ff e5aa3112bdbf29d0cef2c5d8c28b8d6ad6758bd7

node scripts/docs-audit/affected-docs.mjs --json 6538ba48fc4590402cd6280cf83a8902f6de83d3

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 6538ba48fc4590402cd6280cf83a8902f6de83d3 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…s and changeset

The member withdraws their own attachment through DELETE /api/v1/attachments/:id;
another member who edits the record is refused on the door and on the data door;
the data door still refuses the uploader and still serves an administrator; explain
still reports read and create allowed and delete refused. The route ledger joins the
live-mount parity pin, declared as a dogfood test input.

Claude-Session: https://claude.ai/code/session_016WV4d1D3AzXvEhBbz79Pmi
Co-authored-by: Claude <noreply@anthropic.com>
…lope audit

The module supplies its part of the shared own-row delete door and builds no body
itself, declared as the personal-view and unreact doors are.

Claude-Session: https://claude.ai/code/session_016WV4d1D3AzXvEhBbz79Pmi
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 14, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-elon-musk · session_016WV4d1D3AzXvEhBbz79Pmi

Request: review · area A3 · head e5aa3112bdbf29d0cef2c5d8c28b8d6ad6758bd7 · Fixes #33010 · Clause-②: yes (widening) · all checks on this head green. Dev report (premise, pins, ablation, dependents) is on #33010.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract-review-claim: session_016WV4cxDxAYxdtDhtR1kQQe · head e5aa311 · 2026-11-14T19:00Z

review#2 (server area pilot, A3).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: TIER_DEFAULT
Head-sha: e5aa3112bdbf29d0cef2c5d8c28b8d6ad6758bd7
Local-runs: none

review#2 (server area pilot) · area A3 · Fixes #33010 · declaration face (Clause-②: yes (widening): one route added). Read at high effort as an authorization change.

① Derived judgments

  • Matches the ruling (6879388034). A member removes only attachments they uploaded, and the member grant gains no delete bit: storage_attachment_member is untouched, and the dogfood CONTROL case pins security/explain as read ✓ create ✓ delete ✗ and the data door's DELETE /data/sys_attachment/:id still 403 for the uploader.
  • The door is the shared core one (registerOwnRowDeleteRoute, packages/core/src/security/own-row-delete-routes.ts, already serving comment reactions and personal views). Every refusal comes before any removal: caller, then 401, then held sign-in, then query parameters refused, then the row read as the caller, then uploaded_by === caller. Only then is the row deleted by id under isSystem with attributedUserId = caller and the caller's tenantId. This PR supplies only { object: 'sys_attachment', ownerField: 'uploaded_by' } and the mount.
  • The owner column cannot be forged by a caller. The attachment beforeInsert stamps uploaded_by from the session over any client value and refuses a session with no user. The column is readonly on update. Only a system write can set it otherwise, and that is trusted by definition.
  • The read as the caller runs the object grant, the organization wall and installAttachmentReadVisibility (a row is readable exactly when its parent is). So an attachment on a record the caller cannot see answers 404 RECORD_NOT_FOUND, the same as an unknown id, the uploader's own included. That is the data door's answer and leaks nothing (pinned in the integration test).
  • What the system delete skips: only the one beforeDelete on sys_attachment (the attachment delete gate, whose uploader limb would admit this row anyway, attachment-access-hooks.ts ~660). afterDelete still runs, so the file is tombstoned when no other row holds it (pinned: "its file is tombstoned").
  • A non-uploader is 403 (another member, a parent editor, an administrator), and the row stays. Removing someone else's attachment stays on the data door behind an explicit grant, as the ruling scopes it.
  • Route: DELETE /api/v1/attachments/:id collides with no existing route on main. It has its own ledger row (gap: the Console panel moves to it in the console half, and @objectstack/client has no method yet), the conformance test, live-mount parity, and check-route-envelope coverage. A server without DELETE routes mounts nothing and warns.
  • CI on this head: 59 success, 9 skipped, none failed. mergeable_state: clean.

② Semver level

@objectstack/service-storage patch with Clause-②: yes (widening) (a new route; no export moves; every existing answer unchanged) and Metadata-protocol: none is right. Skills-docs names content/docs/permissions/attachments-access.mdx, which documents the door, its four refusals and its row in the enforcement table.

③ Boundary flags

Implemented-by: claude/area-A3-33010
Reviewed-by: session_016WV4cxDxAYxdtDhtR1kQQe

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-elon-musk · session_016WV4d1D3AzXvEhBbz79Pmi

ACCEPT · area A3

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 14, 2026 19:05
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43633136778 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (5/8) — 失败步骤: Run this shard's tests

    @objectstack/rest:test:  FAIL   local  src/meta-qualified-item-route.test.ts > a composition with no package-scoped resolver: the protocol's 501, with its sentence > CONTROL — a type ADR-0150 does not
      ↳ 失败原因: @objectstack/rest:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • src/meta-qualified-item-route.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 8 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 14, 2026
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43637152754 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (5/8) — 失败步骤: Run this shard's tests

    @objectstack/rest:test:  FAIL   local  src/meta-qualified-item-route.test.ts > a composition with no package-scoped resolver: the protocol's 501, with its sentence > CONTROL — a type ADR-0150 does not
      ↳ 失败原因: @objectstack/rest:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • src/meta-qualified-item-route.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • ⚠️ 本 PR 过去 24h 已在队列失败 1 次(不含本次)。 内容未变而反复失败 ⇒ 高度怀疑 flaky 测试或与同组 PR 的语义冲突,重排不解决。
  • 过去 24h 队列共有 10 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…needs (objectstack-ai#33433)

<!-- claude-projects-attribution: {"github_login":"os-elon-musk"} -->
_Requested by **Elon** · [project
thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DU5CHkeh2msc49m4dh6kwEt)_

## Summary

Test-only. `packages/rest/src/meta-qualified-item-route.test.ts` ›
"CONTROL — a type ADR-0150 does not address by package (view) is served
as before" timed out (`Test timed out in 5000ms`) in two merge-queue
builds for objectstack-ai#33322 (runs 43633136778: 5089ms, 43637152754: 5281ms). It
passed in a third queue build on the same code (43633195065: 2816ms).

## Why

It is the file's only served `view` read. `metadata-diagnostics.ts`
attaches `@objectstack/lint` warnings to view reads and loads the lint
bundle lazily, so the first view read in a vitest worker pays the cold
load: measured on `main` b462444, 716–853ms for the first drive and
1–2ms for an identical second drive; loading the bundle alone took
1027ms. On a loaded runner that load passes 5s. Nothing hangs. It only
shows when the queue runs `rest` uncached (e.g. a PR that changes
`turbo.json`).

## What changes

- The one test gets a 30s budget, with a comment naming the cold load it
pays for. Assertions unchanged.

Local: origin/main 4 runs and main + objectstack-ai#33322 2 runs, 302/302 each.

No changeset (test-only).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_016WV4d1D3AzXvEhBbz79Pmi

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…ectstack-ai#33010 ruling) (objectstack-ai#33407)

<!-- claude-projects-attribution: {"github_login":"os-elon-musk"} -->
_Requested by **Elon** · [project
thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DU5CHkeh2msc49m4dh6kwEt)_

## Summary

Docs-only companion to objectstack-ai#33322 (merged). The maintainer's ruling on
objectstack-ai#33010 (comment 6879388034) says a member may delete an attachment they
uploaded themselves, own uploads only, and that the ADR-0090 D5 text
saying the member grant has no delete bit gets a matching sentence. This
records that sentence as a dated note in D5, after the `Note
(2026-10-14)` blockquote, citing the ruling by its record id: removing a
row one owns is served by an own-row delete door, not by `allowDelete`
on a set bound to `everyone`; the attachment member grant stays read and
create only.

## What changes

- `docs/adr/0090-permission-model-v2-concept-convergence.md`: one new
dated note blockquote in D5, `Note (2026-11-14, ruling of record
6879388034 on objectstack-ai#33010)`, after the `Note (2026-10-14)` blockquote. No
ruled text is edited.
- Review 2, item 1, option (a): the first head placed the sentence as a
D5 bullet directly above the `Revision (2026-09-12, objectstack-ai#17189)` blockquote,
whose ruled text opens with "the bullet above" and means the D7 lint
bullet. As a dated note after the last D5 blockquote it no longer sits
between that revision and its antecedent.

## Landing

Governed surface (`docs/adr/**`, Tier H): lands only on its tier's
record. objectstack-ai#33322 merged 2026-11-14T21:19Z, so the door the note names is
on `main`.

No code, no changeset.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_016WV4d1D3AzXvEhBbz79Pmi

<!-- signed: domain:server#5 · os-elon-musk ·
session_016WV4d1QwJJ5KGZTThP4fnq -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation domain:server Domain lane — seat card indexed by label:pm:seat size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

attachments: a member who uploaded an attachment cannot withdraw it (delete own attachment) after the member grant of #32754

2 participants