[Decision] May a rank-and-file member set their OWN sys_user.locale? Ruling B opened the COLUMN; ADR-0092 D5 still answers no to the ROUTE, so today only admins can set it #14959

Description

@os-sales

Filed by the domain:services execution seat from a measured gap in PR #14958 (#14787), reported by the dev rather than acted on — correctly, because closing it is a second security-boundary decision the maintainer's ruling did not take.

What is already ruled, and is not being reopened

Maintainer ruling B on #14787 (comment 5522882528, verbatim 「同意」): the ADR-0092 D2 self-service whitelist becomes {name, image, locale} and the column's readonly goes. PR #14958 implements exactly that. ⛔ This card does not revisit it.

The gap, measured

After that PR:

Today a platform admin can set any user's locale, and a rank-and-file member cannot set their own.

ADR-0092 D5 is explicit that this split is intended — the guard decides which columns any permitted actor may touch; permission sets decide who. So PR #14958 is faithful to the ruling as written. The ruling simply did not reach the route.

⚠️ Why it cannot just sit: objectui#7501 is already filed for the account-settings "my language" form item, and it has no route to post to. #14788 was ruled in the same batch to make the stored locale outrank Accept-Languagebecause it is a user-stated preference — which is only true if the user can state it. Shipping the column without the route leaves a user-facing setting only an administrator can set.

Options

  • A — grant it on the generic data path, in the sys_api_key shape. An explicit member_default entry for sys_user (allowRead/allowEdit true, create/delete false) plus a sys_user_self RLS policy widened from select to cover writes. The identity write guard then bounds which fields to {name, image, locale} and the RLS bounds which rows to the caller's own.
  • B — a dedicated endpoint (POST /api/v1/me/locale, or extending the update_my_profile action) writing under system context after checking the caller is the subject, leaving member_default untouched.
  • C — leave it admin-only for now. Ship the column, let admins and applications use it, revisit when a shipped surface needs self-service.
  • D — make locale a better-auth additionalFields entry so /update-user carries it. ⛔ Named only to be refused: [Decision] Per-user notification locale —— 2026-08-13 裁决所等的「实测拉力」已到(hotcrm:4 个已发布语言 × 16 个 notify 节点 × 0 可本地化) #13881 already measured that this breaks getSession on any environment that has not run schema-sync.

⚠️ The cost of A, stated plainly because it is the real decision

A also opens name/image self-editing through the generic data path, which ADR-0092 D5 currently routes through better-auth /update-user for its session-cache refresh. That refresh is already mirrored by the D6 afterUpdate hook PR #14958 touches — so the mechanism exists — but exists is not ruled, and D5 is an accepted ADR. A is a maintainer decision with an ADR-0092 amendment, not an implementation detail. That is why it is here.


四棱分析

长期健全性(权重最高)。 只有 A 保住一套契约。平台已经有「某个行为者可以编辑自己那一行的这些列」的通用机制 —— 权限集 + _self RLS + ADR-0092 的列白名单 —— 而 sys_api_key 就是这个形状的已出货先例:better-auth 托管表上的、按属主限定的、只开一列的写入。B 会为同一列建第二条写路径,而这正是裁定 B 当初在 #14787 上否掉选项 A 时给的理由(「它会让每个应用自己去造一条 stamping 路线」)—— 一个平台自建的专用端点是同一个缺陷上移了一层。C 不稳定:它出货一个除管理员外没人能设的用户面设置,这是 ADR-0049 禁止的「declared-not-enforced」形状,只隔了一步。D 已被测量否决。

真实业务需求。 是实测的,不是设想的:hotcrm 为这个列本身测出了拉力(4 个已发布语言 × 16 个 notify 节点 × 0 个可本地化);#14788 在同一批里被裁定让该列压过Accept-Language;objectui#7501 是已立的表单项卡。⚠️这三处读的都是「用户自己的选择」;没有任何一处描述的是管理员去设别人的语言。 拉力指向的恰恰是自助。

AI 编写元数据的安全性。 A 是把「拒绝」留在它已经在的地方的那个选项。列上的形状规则在每条路径上同样地拒绝畸形 tag,所以放宽可写,并不放宽什么可写;B 需要在第二条路由上把这条规则重新证明一遍,而一个跑在系统上下文里的专用端点,正是这类检查最容易被跳过的位置。

创业公司范围。 A 是三个可行选项里 diff 最小的 —— 一条权限集条目 + 一处 RLS operation 放宽,两者所在的文件都已经带着 sys_api_key 的同款写法。不加新端点、不加新概念、不加新的待文档化面。

推荐 A,但它带 ADR-0092 D5 修订,因此必须由维护者裁。


Refs: #14787 / PR #14958(开列的那一半)· ADR-0092 D5(路由归权限集)· #13881(为何 D 被否)· #14788(读侧优先级,同批裁定)· objectui#7501(等这条路由的表单项)· #14951(ADR-0092 D1 的 tier 表仍写着旧的两字段)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
     blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
    }
    } catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
    })();
    (function(){
    try {
    var __m = "github.com";
    var __re = new RegExp('^' + "github\\.com" + '
    
    Skip to content

    [Decision] May a rank-and-file member set their OWN sys_user.locale? Ruling B opened the COLUMN; ADR-0092 D5 still answers no to the ROUTE, so today only admins can set it #14959

    Description

    @os-sales

    Filed by the domain:services execution seat from a measured gap in PR #14958 (#14787), reported by the dev rather than acted on — correctly, because closing it is a second security-boundary decision the maintainer's ruling did not take.

    What is already ruled, and is not being reopened

    Maintainer ruling B on #14787 (comment 5522882528, verbatim 「同意」): the ADR-0092 D2 self-service whitelist becomes {name, image, locale} and the column's readonly goes. PR #14958 implements exactly that. ⛔ This card does not revisit it.

    The gap, measured

    After that PR:

    Today a platform admin can set any user's locale, and a rank-and-file member cannot set their own.

    ADR-0092 D5 is explicit that this split is intended — the guard decides which columns any permitted actor may touch; permission sets decide who. So PR #14958 is faithful to the ruling as written. The ruling simply did not reach the route.

    ⚠️ Why it cannot just sit: objectui#7501 is already filed for the account-settings "my language" form item, and it has no route to post to. #14788 was ruled in the same batch to make the stored locale outrank Accept-Languagebecause it is a user-stated preference — which is only true if the user can state it. Shipping the column without the route leaves a user-facing setting only an administrator can set.

    Options

    • A — grant it on the generic data path, in the sys_api_key shape. An explicit member_default entry for sys_user (allowRead/allowEdit true, create/delete false) plus a sys_user_self RLS policy widened from select to cover writes. The identity write guard then bounds which fields to {name, image, locale} and the RLS bounds which rows to the caller's own.
    • B — a dedicated endpoint (POST /api/v1/me/locale, or extending the update_my_profile action) writing under system context after checking the caller is the subject, leaving member_default untouched.
    • C — leave it admin-only for now. Ship the column, let admins and applications use it, revisit when a shipped surface needs self-service.
    • D — make locale a better-auth additionalFields entry so /update-user carries it. ⛔ Named only to be refused: [Decision] Per-user notification locale —— 2026-08-13 裁决所等的「实测拉力」已到(hotcrm:4 个已发布语言 × 16 个 notify 节点 × 0 可本地化) #13881 already measured that this breaks getSession on any environment that has not run schema-sync.

    ⚠️ The cost of A, stated plainly because it is the real decision

    A also opens name/image self-editing through the generic data path, which ADR-0092 D5 currently routes through better-auth /update-user for its session-cache refresh. That refresh is already mirrored by the D6 afterUpdate hook PR #14958 touches — so the mechanism exists — but exists is not ruled, and D5 is an accepted ADR. A is a maintainer decision with an ADR-0092 amendment, not an implementation detail. That is why it is here.


    四棱分析

    长期健全性(权重最高)。 只有 A 保住一套契约。平台已经有「某个行为者可以编辑自己那一行的这些列」的通用机制 —— 权限集 + _self RLS + ADR-0092 的列白名单 —— 而 sys_api_key 就是这个形状的已出货先例:better-auth 托管表上的、按属主限定的、只开一列的写入。B 会为同一列建第二条写路径,而这正是裁定 B 当初在 #14787 上否掉选项 A 时给的理由(「它会让每个应用自己去造一条 stamping 路线」)—— 一个平台自建的专用端点是同一个缺陷上移了一层。C 不稳定:它出货一个除管理员外没人能设的用户面设置,这是 ADR-0049 禁止的「declared-not-enforced」形状,只隔了一步。D 已被测量否决。

    真实业务需求。 是实测的,不是设想的:hotcrm 为这个列本身测出了拉力(4 个已发布语言 × 16 个 notify 节点 × 0 个可本地化);#14788 在同一批里被裁定让该列压过Accept-Language;objectui#7501 是已立的表单项卡。⚠️这三处读的都是「用户自己的选择」;没有任何一处描述的是管理员去设别人的语言。 拉力指向的恰恰是自助。

    AI 编写元数据的安全性。 A 是把「拒绝」留在它已经在的地方的那个选项。列上的形状规则在每条路径上同样地拒绝畸形 tag,所以放宽可写,并不放宽什么可写;B 需要在第二条路由上把这条规则重新证明一遍,而一个跑在系统上下文里的专用端点,正是这类检查最容易被跳过的位置。

    创业公司范围。 A 是三个可行选项里 diff 最小的 —— 一条权限集条目 + 一处 RLS operation 放宽,两者所在的文件都已经带着 sys_api_key 的同款写法。不加新端点、不加新概念、不加新的待文档化面。

    推荐 A,但它带 ADR-0092 D5 修订,因此必须由维护者裁。


    Refs: #14787 / PR #14958(开列的那一半)· ADR-0092 D5(路由归权限集)· #13881(为何 D 被否)· #14788(读侧优先级,同批裁定)· objectui#7501(等这条路由的表单项)· #14951(ADR-0092 D1 的 tier 表仍写着旧的两字段)

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
      Skip to content

      [Decision] May a rank-and-file member set their OWN sys_user.locale? Ruling B opened the COLUMN; ADR-0092 D5 still answers no to the ROUTE, so today only admins can set it #14959

      Description

      @os-sales

      Filed by the domain:services execution seat from a measured gap in PR #14958 (#14787), reported by the dev rather than acted on — correctly, because closing it is a second security-boundary decision the maintainer's ruling did not take.

      What is already ruled, and is not being reopened

      Maintainer ruling B on #14787 (comment 5522882528, verbatim 「同意」): the ADR-0092 D2 self-service whitelist becomes {name, image, locale} and the column's readonly goes. PR #14958 implements exactly that. ⛔ This card does not revisit it.

      The gap, measured

      After that PR:

      Today a platform admin can set any user's locale, and a rank-and-file member cannot set their own.

      ADR-0092 D5 is explicit that this split is intended — the guard decides which columns any permitted actor may touch; permission sets decide who. So PR #14958 is faithful to the ruling as written. The ruling simply did not reach the route.

      ⚠️ Why it cannot just sit: objectui#7501 is already filed for the account-settings "my language" form item, and it has no route to post to. #14788 was ruled in the same batch to make the stored locale outrank Accept-Languagebecause it is a user-stated preference — which is only true if the user can state it. Shipping the column without the route leaves a user-facing setting only an administrator can set.

      Options

      • A — grant it on the generic data path, in the sys_api_key shape. An explicit member_default entry for sys_user (allowRead/allowEdit true, create/delete false) plus a sys_user_self RLS policy widened from select to cover writes. The identity write guard then bounds which fields to {name, image, locale} and the RLS bounds which rows to the caller's own.
      • B — a dedicated endpoint (POST /api/v1/me/locale, or extending the update_my_profile action) writing under system context after checking the caller is the subject, leaving member_default untouched.
      • C — leave it admin-only for now. Ship the column, let admins and applications use it, revisit when a shipped surface needs self-service.
      • D — make locale a better-auth additionalFields entry so /update-user carries it. ⛔ Named only to be refused: [Decision] Per-user notification locale —— 2026-08-13 裁决所等的「实测拉力」已到(hotcrm:4 个已发布语言 × 16 个 notify 节点 × 0 可本地化) #13881 already measured that this breaks getSession on any environment that has not run schema-sync.

      ⚠️ The cost of A, stated plainly because it is the real decision

      A also opens name/image self-editing through the generic data path, which ADR-0092 D5 currently routes through better-auth /update-user for its session-cache refresh. That refresh is already mirrored by the D6 afterUpdate hook PR #14958 touches — so the mechanism exists — but exists is not ruled, and D5 is an accepted ADR. A is a maintainer decision with an ADR-0092 amendment, not an implementation detail. That is why it is here.


      四棱分析

      长期健全性(权重最高)。 只有 A 保住一套契约。平台已经有「某个行为者可以编辑自己那一行的这些列」的通用机制 —— 权限集 + _self RLS + ADR-0092 的列白名单 —— 而 sys_api_key 就是这个形状的已出货先例:better-auth 托管表上的、按属主限定的、只开一列的写入。B 会为同一列建第二条写路径,而这正是裁定 B 当初在 #14787 上否掉选项 A 时给的理由(「它会让每个应用自己去造一条 stamping 路线」)—— 一个平台自建的专用端点是同一个缺陷上移了一层。C 不稳定:它出货一个除管理员外没人能设的用户面设置,这是 ADR-0049 禁止的「declared-not-enforced」形状,只隔了一步。D 已被测量否决。

      真实业务需求。 是实测的,不是设想的:hotcrm 为这个列本身测出了拉力(4 个已发布语言 × 16 个 notify 节点 × 0 个可本地化);#14788 在同一批里被裁定让该列压过Accept-Language;objectui#7501 是已立的表单项卡。⚠️这三处读的都是「用户自己的选择」;没有任何一处描述的是管理员去设别人的语言。 拉力指向的恰恰是自助。

      AI 编写元数据的安全性。 A 是把「拒绝」留在它已经在的地方的那个选项。列上的形状规则在每条路径上同样地拒绝畸形 tag,所以放宽可写,并不放宽什么可写;B 需要在第二条路由上把这条规则重新证明一遍,而一个跑在系统上下文里的专用端点,正是这类检查最容易被跳过的位置。

      创业公司范围。 A 是三个可行选项里 diff 最小的 —— 一条权限集条目 + 一处 RLS operation 放宽,两者所在的文件都已经带着 sys_api_key 的同款写法。不加新端点、不加新概念、不加新的待文档化面。

      推荐 A,但它带 ADR-0092 D5 修订,因此必须由维护者裁。


      Refs: #14787 / PR #14958(开列的那一半)· ADR-0092 D5(路由归权限集)· #13881(为何 D 被否)· #14788(读侧优先级,同批裁定)· objectui#7501(等这条路由的表单项)· #14951(ADR-0092 D1 的 tier 表仍写着旧的两字段)

      Activity

      Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

      Metadata

      Metadata

      Assignees

      Type

      No type

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
        Skip to content

        [Decision] May a rank-and-file member set their OWN sys_user.locale? Ruling B opened the COLUMN; ADR-0092 D5 still answers no to the ROUTE, so today only admins can set it #14959

        Description

        @os-sales

        Filed by the domain:services execution seat from a measured gap in PR #14958 (#14787), reported by the dev rather than acted on — correctly, because closing it is a second security-boundary decision the maintainer's ruling did not take.

        What is already ruled, and is not being reopened

        Maintainer ruling B on #14787 (comment 5522882528, verbatim 「同意」): the ADR-0092 D2 self-service whitelist becomes {name, image, locale} and the column's readonly goes. PR #14958 implements exactly that. ⛔ This card does not revisit it.

        The gap, measured

        After that PR:

        Today a platform admin can set any user's locale, and a rank-and-file member cannot set their own.

        ADR-0092 D5 is explicit that this split is intended — the guard decides which columns any permitted actor may touch; permission sets decide who. So PR #14958 is faithful to the ruling as written. The ruling simply did not reach the route.

        ⚠️ Why it cannot just sit: objectui#7501 is already filed for the account-settings "my language" form item, and it has no route to post to. #14788 was ruled in the same batch to make the stored locale outrank Accept-Languagebecause it is a user-stated preference — which is only true if the user can state it. Shipping the column without the route leaves a user-facing setting only an administrator can set.

        Options

        • A — grant it on the generic data path, in the sys_api_key shape. An explicit member_default entry for sys_user (allowRead/allowEdit true, create/delete false) plus a sys_user_self RLS policy widened from select to cover writes. The identity write guard then bounds which fields to {name, image, locale} and the RLS bounds which rows to the caller's own.
        • B — a dedicated endpoint (POST /api/v1/me/locale, or extending the update_my_profile action) writing under system context after checking the caller is the subject, leaving member_default untouched.
        • C — leave it admin-only for now. Ship the column, let admins and applications use it, revisit when a shipped surface needs self-service.
        • D — make locale a better-auth additionalFields entry so /update-user carries it. ⛔ Named only to be refused: [Decision] Per-user notification locale —— 2026-08-13 裁决所等的「实测拉力」已到(hotcrm:4 个已发布语言 × 16 个 notify 节点 × 0 可本地化) #13881 already measured that this breaks getSession on any environment that has not run schema-sync.

        ⚠️ The cost of A, stated plainly because it is the real decision

        A also opens name/image self-editing through the generic data path, which ADR-0092 D5 currently routes through better-auth /update-user for its session-cache refresh. That refresh is already mirrored by the D6 afterUpdate hook PR #14958 touches — so the mechanism exists — but exists is not ruled, and D5 is an accepted ADR. A is a maintainer decision with an ADR-0092 amendment, not an implementation detail. That is why it is here.


        四棱分析

        长期健全性(权重最高)。 只有 A 保住一套契约。平台已经有「某个行为者可以编辑自己那一行的这些列」的通用机制 —— 权限集 + _self RLS + ADR-0092 的列白名单 —— 而 sys_api_key 就是这个形状的已出货先例:better-auth 托管表上的、按属主限定的、只开一列的写入。B 会为同一列建第二条写路径,而这正是裁定 B 当初在 #14787 上否掉选项 A 时给的理由(「它会让每个应用自己去造一条 stamping 路线」)—— 一个平台自建的专用端点是同一个缺陷上移了一层。C 不稳定:它出货一个除管理员外没人能设的用户面设置,这是 ADR-0049 禁止的「declared-not-enforced」形状,只隔了一步。D 已被测量否决。

        真实业务需求。 是实测的,不是设想的:hotcrm 为这个列本身测出了拉力(4 个已发布语言 × 16 个 notify 节点 × 0 个可本地化);#14788 在同一批里被裁定让该列压过Accept-Language;objectui#7501 是已立的表单项卡。⚠️这三处读的都是「用户自己的选择」;没有任何一处描述的是管理员去设别人的语言。 拉力指向的恰恰是自助。

        AI 编写元数据的安全性。 A 是把「拒绝」留在它已经在的地方的那个选项。列上的形状规则在每条路径上同样地拒绝畸形 tag,所以放宽可写,并不放宽什么可写;B 需要在第二条路由上把这条规则重新证明一遍,而一个跑在系统上下文里的专用端点,正是这类检查最容易被跳过的位置。

        创业公司范围。 A 是三个可行选项里 diff 最小的 —— 一条权限集条目 + 一处 RLS operation 放宽,两者所在的文件都已经带着 sys_api_key 的同款写法。不加新端点、不加新概念、不加新的待文档化面。

        推荐 A,但它带 ADR-0092 D5 修订,因此必须由维护者裁。


        Refs: #14787 / PR #14958(开列的那一半)· ADR-0092 D5(路由归权限集)· #13881(为何 D 被否)· #14788(读侧优先级,同批裁定)· objectui#7501(等这条路由的表单项)· #14951(ADR-0092 D1 的 tier 表仍写着旧的两字段)

        Activity

        Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

        Metadata

        Metadata

        Assignees

        Type

        No type

        Projects

        No projects

          Milestone

          No milestone

          Relationships

          None yet

          Development

          No branches or pull requests

          Issue actions

          , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
          Skip to content

          [Decision] May a rank-and-file member set their OWN sys_user.locale? Ruling B opened the COLUMN; ADR-0092 D5 still answers no to the ROUTE, so today only admins can set it #14959

          Description

          @os-sales

          Filed by the domain:services execution seat from a measured gap in PR #14958 (#14787), reported by the dev rather than acted on — correctly, because closing it is a second security-boundary decision the maintainer's ruling did not take.

          What is already ruled, and is not being reopened

          Maintainer ruling B on #14787 (comment 5522882528, verbatim 「同意」): the ADR-0092 D2 self-service whitelist becomes {name, image, locale} and the column's readonly goes. PR #14958 implements exactly that. ⛔ This card does not revisit it.

          The gap, measured

          After that PR:

          Today a platform admin can set any user's locale, and a rank-and-file member cannot set their own.

          ADR-0092 D5 is explicit that this split is intended — the guard decides which columns any permitted actor may touch; permission sets decide who. So PR #14958 is faithful to the ruling as written. The ruling simply did not reach the route.

          ⚠️ Why it cannot just sit: objectui#7501 is already filed for the account-settings "my language" form item, and it has no route to post to. #14788 was ruled in the same batch to make the stored locale outrank Accept-Languagebecause it is a user-stated preference — which is only true if the user can state it. Shipping the column without the route leaves a user-facing setting only an administrator can set.

          Options

          • A — grant it on the generic data path, in the sys_api_key shape. An explicit member_default entry for sys_user (allowRead/allowEdit true, create/delete false) plus a sys_user_self RLS policy widened from select to cover writes. The identity write guard then bounds which fields to {name, image, locale} and the RLS bounds which rows to the caller's own.
          • B — a dedicated endpoint (POST /api/v1/me/locale, or extending the update_my_profile action) writing under system context after checking the caller is the subject, leaving member_default untouched.
          • C — leave it admin-only for now. Ship the column, let admins and applications use it, revisit when a shipped surface needs self-service.
          • D — make locale a better-auth additionalFields entry so /update-user carries it. ⛔ Named only to be refused: [Decision] Per-user notification locale —— 2026-08-13 裁决所等的「实测拉力」已到(hotcrm:4 个已发布语言 × 16 个 notify 节点 × 0 可本地化) #13881 already measured that this breaks getSession on any environment that has not run schema-sync.

          ⚠️ The cost of A, stated plainly because it is the real decision

          A also opens name/image self-editing through the generic data path, which ADR-0092 D5 currently routes through better-auth /update-user for its session-cache refresh. That refresh is already mirrored by the D6 afterUpdate hook PR #14958 touches — so the mechanism exists — but exists is not ruled, and D5 is an accepted ADR. A is a maintainer decision with an ADR-0092 amendment, not an implementation detail. That is why it is here.


          四棱分析

          长期健全性(权重最高)。 只有 A 保住一套契约。平台已经有「某个行为者可以编辑自己那一行的这些列」的通用机制 —— 权限集 + _self RLS + ADR-0092 的列白名单 —— 而 sys_api_key 就是这个形状的已出货先例:better-auth 托管表上的、按属主限定的、只开一列的写入。B 会为同一列建第二条写路径,而这正是裁定 B 当初在 #14787 上否掉选项 A 时给的理由(「它会让每个应用自己去造一条 stamping 路线」)—— 一个平台自建的专用端点是同一个缺陷上移了一层。C 不稳定:它出货一个除管理员外没人能设的用户面设置,这是 ADR-0049 禁止的「declared-not-enforced」形状,只隔了一步。D 已被测量否决。

          真实业务需求。 是实测的,不是设想的:hotcrm 为这个列本身测出了拉力(4 个已发布语言 × 16 个 notify 节点 × 0 个可本地化);#14788 在同一批里被裁定让该列压过Accept-Language;objectui#7501 是已立的表单项卡。⚠️这三处读的都是「用户自己的选择」;没有任何一处描述的是管理员去设别人的语言。 拉力指向的恰恰是自助。

          AI 编写元数据的安全性。 A 是把「拒绝」留在它已经在的地方的那个选项。列上的形状规则在每条路径上同样地拒绝畸形 tag,所以放宽可写,并不放宽什么可写;B 需要在第二条路由上把这条规则重新证明一遍,而一个跑在系统上下文里的专用端点,正是这类检查最容易被跳过的位置。

          创业公司范围。 A 是三个可行选项里 diff 最小的 —— 一条权限集条目 + 一处 RLS operation 放宽,两者所在的文件都已经带着 sys_api_key 的同款写法。不加新端点、不加新概念、不加新的待文档化面。

          推荐 A,但它带 ADR-0092 D5 修订,因此必须由维护者裁。


          Refs: #14787 / PR #14958(开列的那一半)· ADR-0092 D5(路由归权限集)· #13881(为何 D 被否)· #14788(读侧优先级,同批裁定)· objectui#7501(等这条路由的表单项)· #14951(ADR-0092 D1 的 tier 表仍写着旧的两字段)

          Activity

          Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

          Metadata

          Metadata

          Assignees

          Type

          No type

          Projects

          No projects

            Milestone

            No milestone

            Relationships

            None yet

            Development

            No branches or pull requests

            Issue actions

            , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
            Skip to content

            [Decision] May a rank-and-file member set their OWN sys_user.locale? Ruling B opened the COLUMN; ADR-0092 D5 still answers no to the ROUTE, so today only admins can set it #14959

            Description

            @os-sales

            Filed by the domain:services execution seat from a measured gap in PR #14958 (#14787), reported by the dev rather than acted on — correctly, because closing it is a second security-boundary decision the maintainer's ruling did not take.

            What is already ruled, and is not being reopened

            Maintainer ruling B on #14787 (comment 5522882528, verbatim 「同意」): the ADR-0092 D2 self-service whitelist becomes {name, image, locale} and the column's readonly goes. PR #14958 implements exactly that. ⛔ This card does not revisit it.

            The gap, measured

            After that PR:

            Today a platform admin can set any user's locale, and a rank-and-file member cannot set their own.

            ADR-0092 D5 is explicit that this split is intended — the guard decides which columns any permitted actor may touch; permission sets decide who. So PR #14958 is faithful to the ruling as written. The ruling simply did not reach the route.

            ⚠️ Why it cannot just sit: objectui#7501 is already filed for the account-settings "my language" form item, and it has no route to post to. #14788 was ruled in the same batch to make the stored locale outrank Accept-Languagebecause it is a user-stated preference — which is only true if the user can state it. Shipping the column without the route leaves a user-facing setting only an administrator can set.

            Options

            • A — grant it on the generic data path, in the sys_api_key shape. An explicit member_default entry for sys_user (allowRead/allowEdit true, create/delete false) plus a sys_user_self RLS policy widened from select to cover writes. The identity write guard then bounds which fields to {name, image, locale} and the RLS bounds which rows to the caller's own.
            • B — a dedicated endpoint (POST /api/v1/me/locale, or extending the update_my_profile action) writing under system context after checking the caller is the subject, leaving member_default untouched.
            • C — leave it admin-only for now. Ship the column, let admins and applications use it, revisit when a shipped surface needs self-service.
            • D — make locale a better-auth additionalFields entry so /update-user carries it. ⛔ Named only to be refused: [Decision] Per-user notification locale —— 2026-08-13 裁决所等的「实测拉力」已到(hotcrm:4 个已发布语言 × 16 个 notify 节点 × 0 可本地化) #13881 already measured that this breaks getSession on any environment that has not run schema-sync.

            ⚠️ The cost of A, stated plainly because it is the real decision

            A also opens name/image self-editing through the generic data path, which ADR-0092 D5 currently routes through better-auth /update-user for its session-cache refresh. That refresh is already mirrored by the D6 afterUpdate hook PR #14958 touches — so the mechanism exists — but exists is not ruled, and D5 is an accepted ADR. A is a maintainer decision with an ADR-0092 amendment, not an implementation detail. That is why it is here.


            四棱分析

            长期健全性(权重最高)。 只有 A 保住一套契约。平台已经有「某个行为者可以编辑自己那一行的这些列」的通用机制 —— 权限集 + _self RLS + ADR-0092 的列白名单 —— 而 sys_api_key 就是这个形状的已出货先例:better-auth 托管表上的、按属主限定的、只开一列的写入。B 会为同一列建第二条写路径,而这正是裁定 B 当初在 #14787 上否掉选项 A 时给的理由(「它会让每个应用自己去造一条 stamping 路线」)—— 一个平台自建的专用端点是同一个缺陷上移了一层。C 不稳定:它出货一个除管理员外没人能设的用户面设置,这是 ADR-0049 禁止的「declared-not-enforced」形状,只隔了一步。D 已被测量否决。

            真实业务需求。 是实测的,不是设想的:hotcrm 为这个列本身测出了拉力(4 个已发布语言 × 16 个 notify 节点 × 0 个可本地化);#14788 在同一批里被裁定让该列压过Accept-Language;objectui#7501 是已立的表单项卡。⚠️这三处读的都是「用户自己的选择」;没有任何一处描述的是管理员去设别人的语言。 拉力指向的恰恰是自助。

            AI 编写元数据的安全性。 A 是把「拒绝」留在它已经在的地方的那个选项。列上的形状规则在每条路径上同样地拒绝畸形 tag,所以放宽可写,并不放宽什么可写;B 需要在第二条路由上把这条规则重新证明一遍,而一个跑在系统上下文里的专用端点,正是这类检查最容易被跳过的位置。

            创业公司范围。 A 是三个可行选项里 diff 最小的 —— 一条权限集条目 + 一处 RLS operation 放宽,两者所在的文件都已经带着 sys_api_key 的同款写法。不加新端点、不加新概念、不加新的待文档化面。

            推荐 A,但它带 ADR-0092 D5 修订,因此必须由维护者裁。


            Refs: #14787 / PR #14958(开列的那一半)· ADR-0092 D5(路由归权限集)· #13881(为何 D 被否)· #14788(读侧优先级,同批裁定)· objectui#7501(等这条路由的表单项)· #14951(ADR-0092 D1 的 tier 表仍写着旧的两字段)

            Activity

            Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

            Metadata

            Metadata

            Assignees

            Type

            No type

            Projects

            No projects

              Milestone

              No milestone

              Relationships

              None yet

              Development

              No branches or pull requests

              Issue actions

              , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
              Skip to content

              [Decision] May a rank-and-file member set their OWN sys_user.locale? Ruling B opened the COLUMN; ADR-0092 D5 still answers no to the ROUTE, so today only admins can set it #14959

              Description

              @os-sales

              Filed by the domain:services execution seat from a measured gap in PR #14958 (#14787), reported by the dev rather than acted on — correctly, because closing it is a second security-boundary decision the maintainer's ruling did not take.

              What is already ruled, and is not being reopened

              Maintainer ruling B on #14787 (comment 5522882528, verbatim 「同意」): the ADR-0092 D2 self-service whitelist becomes {name, image, locale} and the column's readonly goes. PR #14958 implements exactly that. ⛔ This card does not revisit it.

              The gap, measured

              After that PR:

              Today a platform admin can set any user's locale, and a rank-and-file member cannot set their own.

              ADR-0092 D5 is explicit that this split is intended — the guard decides which columns any permitted actor may touch; permission sets decide who. So PR #14958 is faithful to the ruling as written. The ruling simply did not reach the route.

              ⚠️ Why it cannot just sit: objectui#7501 is already filed for the account-settings "my language" form item, and it has no route to post to. #14788 was ruled in the same batch to make the stored locale outrank Accept-Languagebecause it is a user-stated preference — which is only true if the user can state it. Shipping the column without the route leaves a user-facing setting only an administrator can set.

              Options

              • A — grant it on the generic data path, in the sys_api_key shape. An explicit member_default entry for sys_user (allowRead/allowEdit true, create/delete false) plus a sys_user_self RLS policy widened from select to cover writes. The identity write guard then bounds which fields to {name, image, locale} and the RLS bounds which rows to the caller's own.
              • B — a dedicated endpoint (POST /api/v1/me/locale, or extending the update_my_profile action) writing under system context after checking the caller is the subject, leaving member_default untouched.
              • C — leave it admin-only for now. Ship the column, let admins and applications use it, revisit when a shipped surface needs self-service.
              • D — make locale a better-auth additionalFields entry so /update-user carries it. ⛔ Named only to be refused: [Decision] Per-user notification locale —— 2026-08-13 裁决所等的「实测拉力」已到(hotcrm:4 个已发布语言 × 16 个 notify 节点 × 0 可本地化) #13881 already measured that this breaks getSession on any environment that has not run schema-sync.

              ⚠️ The cost of A, stated plainly because it is the real decision

              A also opens name/image self-editing through the generic data path, which ADR-0092 D5 currently routes through better-auth /update-user for its session-cache refresh. That refresh is already mirrored by the D6 afterUpdate hook PR #14958 touches — so the mechanism exists — but exists is not ruled, and D5 is an accepted ADR. A is a maintainer decision with an ADR-0092 amendment, not an implementation detail. That is why it is here.


              四棱分析

              长期健全性(权重最高)。 只有 A 保住一套契约。平台已经有「某个行为者可以编辑自己那一行的这些列」的通用机制 —— 权限集 + _self RLS + ADR-0092 的列白名单 —— 而 sys_api_key 就是这个形状的已出货先例:better-auth 托管表上的、按属主限定的、只开一列的写入。B 会为同一列建第二条写路径,而这正是裁定 B 当初在 #14787 上否掉选项 A 时给的理由(「它会让每个应用自己去造一条 stamping 路线」)—— 一个平台自建的专用端点是同一个缺陷上移了一层。C 不稳定:它出货一个除管理员外没人能设的用户面设置,这是 ADR-0049 禁止的「declared-not-enforced」形状,只隔了一步。D 已被测量否决。

              真实业务需求。 是实测的,不是设想的:hotcrm 为这个列本身测出了拉力(4 个已发布语言 × 16 个 notify 节点 × 0 个可本地化);#14788 在同一批里被裁定让该列压过Accept-Language;objectui#7501 是已立的表单项卡。⚠️这三处读的都是「用户自己的选择」;没有任何一处描述的是管理员去设别人的语言。 拉力指向的恰恰是自助。

              AI 编写元数据的安全性。 A 是把「拒绝」留在它已经在的地方的那个选项。列上的形状规则在每条路径上同样地拒绝畸形 tag,所以放宽可写,并不放宽什么可写;B 需要在第二条路由上把这条规则重新证明一遍,而一个跑在系统上下文里的专用端点,正是这类检查最容易被跳过的位置。

              创业公司范围。 A 是三个可行选项里 diff 最小的 —— 一条权限集条目 + 一处 RLS operation 放宽,两者所在的文件都已经带着 sys_api_key 的同款写法。不加新端点、不加新概念、不加新的待文档化面。

              推荐 A,但它带 ADR-0092 D5 修订,因此必须由维护者裁。


              Refs: #14787 / PR #14958(开列的那一半)· ADR-0092 D5(路由归权限集)· #13881(为何 D 被否)· #14788(读侧优先级,同批裁定)· objectui#7501(等这条路由的表单项)· #14951(ADR-0092 D1 的 tier 表仍写着旧的两字段)

              Activity

              Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

              Metadata

              Metadata

              Assignees

              Type

              No type

              Projects

              No projects

                Milestone

                No milestone

                Relationships

                None yet

                Development

                No branches or pull requests

                Issue actions

                , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
                Skip to content

                [Decision] May a rank-and-file member set their OWN sys_user.locale? Ruling B opened the COLUMN; ADR-0092 D5 still answers no to the ROUTE, so today only admins can set it #14959

                Description

                @os-sales

                Filed by the domain:services execution seat from a measured gap in PR #14958 (#14787), reported by the dev rather than acted on — correctly, because closing it is a second security-boundary decision the maintainer's ruling did not take.

                What is already ruled, and is not being reopened

                Maintainer ruling B on #14787 (comment 5522882528, verbatim 「同意」): the ADR-0092 D2 self-service whitelist becomes {name, image, locale} and the column's readonly goes. PR #14958 implements exactly that. ⛔ This card does not revisit it.

                The gap, measured

                After that PR:

                Today a platform admin can set any user's locale, and a rank-and-file member cannot set their own.

                ADR-0092 D5 is explicit that this split is intended — the guard decides which columns any permitted actor may touch; permission sets decide who. So PR #14958 is faithful to the ruling as written. The ruling simply did not reach the route.

                ⚠️ Why it cannot just sit: objectui#7501 is already filed for the account-settings "my language" form item, and it has no route to post to. #14788 was ruled in the same batch to make the stored locale outrank Accept-Languagebecause it is a user-stated preference — which is only true if the user can state it. Shipping the column without the route leaves a user-facing setting only an administrator can set.

                Options

                • A — grant it on the generic data path, in the sys_api_key shape. An explicit member_default entry for sys_user (allowRead/allowEdit true, create/delete false) plus a sys_user_self RLS policy widened from select to cover writes. The identity write guard then bounds which fields to {name, image, locale} and the RLS bounds which rows to the caller's own.
                • B — a dedicated endpoint (POST /api/v1/me/locale, or extending the update_my_profile action) writing under system context after checking the caller is the subject, leaving member_default untouched.
                • C — leave it admin-only for now. Ship the column, let admins and applications use it, revisit when a shipped surface needs self-service.
                • D — make locale a better-auth additionalFields entry so /update-user carries it. ⛔ Named only to be refused: [Decision] Per-user notification locale —— 2026-08-13 裁决所等的「实测拉力」已到(hotcrm:4 个已发布语言 × 16 个 notify 节点 × 0 可本地化) #13881 already measured that this breaks getSession on any environment that has not run schema-sync.

                ⚠️ The cost of A, stated plainly because it is the real decision

                A also opens name/image self-editing through the generic data path, which ADR-0092 D5 currently routes through better-auth /update-user for its session-cache refresh. That refresh is already mirrored by the D6 afterUpdate hook PR #14958 touches — so the mechanism exists — but exists is not ruled, and D5 is an accepted ADR. A is a maintainer decision with an ADR-0092 amendment, not an implementation detail. That is why it is here.


                四棱分析

                长期健全性(权重最高)。 只有 A 保住一套契约。平台已经有「某个行为者可以编辑自己那一行的这些列」的通用机制 —— 权限集 + _self RLS + ADR-0092 的列白名单 —— 而 sys_api_key 就是这个形状的已出货先例:better-auth 托管表上的、按属主限定的、只开一列的写入。B 会为同一列建第二条写路径,而这正是裁定 B 当初在 #14787 上否掉选项 A 时给的理由(「它会让每个应用自己去造一条 stamping 路线」)—— 一个平台自建的专用端点是同一个缺陷上移了一层。C 不稳定:它出货一个除管理员外没人能设的用户面设置,这是 ADR-0049 禁止的「declared-not-enforced」形状,只隔了一步。D 已被测量否决。

                真实业务需求。 是实测的,不是设想的:hotcrm 为这个列本身测出了拉力(4 个已发布语言 × 16 个 notify 节点 × 0 个可本地化);#14788 在同一批里被裁定让该列压过Accept-Language;objectui#7501 是已立的表单项卡。⚠️这三处读的都是「用户自己的选择」;没有任何一处描述的是管理员去设别人的语言。 拉力指向的恰恰是自助。

                AI 编写元数据的安全性。 A 是把「拒绝」留在它已经在的地方的那个选项。列上的形状规则在每条路径上同样地拒绝畸形 tag,所以放宽可写,并不放宽什么可写;B 需要在第二条路由上把这条规则重新证明一遍,而一个跑在系统上下文里的专用端点,正是这类检查最容易被跳过的位置。

                创业公司范围。 A 是三个可行选项里 diff 最小的 —— 一条权限集条目 + 一处 RLS operation 放宽,两者所在的文件都已经带着 sys_api_key 的同款写法。不加新端点、不加新概念、不加新的待文档化面。

                推荐 A,但它带 ADR-0092 D5 修订,因此必须由维护者裁。


                Refs: #14787 / PR #14958(开列的那一半)· ADR-0092 D5(路由归权限集)· #13881(为何 D 被否)· #14788(读侧优先级,同批裁定)· objectui#7501(等这条路由的表单项)· #14951(ADR-0092 D1 的 tier 表仍写着旧的两字段)

                Activity

                Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

                Metadata

                Metadata

                Assignees

                Type

                No type

                Projects

                No projects

                  Milestone

                  No milestone

                  Relationships

                  None yet

                  Development

                  No branches or pull requests

                  Issue actions