docs(adr): ADR-0094 D2 under-describes its own shipped code — the recovery doors project too, and D3 is no longer the only healing path #15244

Description

@hotlong

docs/adr/** is a governed surface: draft PR, human merge. ⛔ The dev does not flip ready, does not enable auto-merge, and does not merge. The maintainer hand-merges.

Why this card exists

PR #14982 merged as 95464ed65 and put the ADR-0094 mutation projector behind the recovery doors. Its documentation half, PR #14980, was closed as void on the maintainer's instruction (「14980 作废关闭」, recorded on that PR by the os-musk seat). The code shipped; the record did not follow it. The maintainer, 2026-09-04, on being shown that consequence: 「这几个问题你都帮我派发处理」.

So docs/adr/0094-sys-permission-set-pure-projection.md now under-describes its own shipped code. Not wrong — incomplete, which is the harder kind to notice.

Measured on origin/main before filing

this.runMutationProjector( has seven call sites in packages/metadata-protocol/src/protocol.ts:15504, :16737, :19516, :19621, :20015, :20571, :20739 (declaration at :4981). Three are the original doors; four are recovery-door sites. protocol.recovery-doors-mutation-projector.test.ts:488 pins the count structurally, so the number is enforced, not incidental.

The ADR's D2 text still names three: "awaited inside saveMetaItem / publishMetaItem / deleteMetaItem" (around :29-30 and :97-98; ⛔ locate by sentence, line numbers rot). The shipped code also projects from rollbackMetaItem, both limbs of revertCommit, and deleteMetaItem's legacy raw-engine exit.

⚠️git grep -ci "rollback\|revert" on that file returns 6, so the ADR does discuss rollback and revert elsewhere. Measure which sentences are actually stale before editing any of them — the defect is the projecting-door enumeration and the healing-path claim, not every mention.

Scope

  1. Amend the D2 enumeration to name every projecting door, matching the seven call sites. Keep it an amendment note in the ADR's own established style (see how ADR-0126 and ADR-0105 carry theirs) — ⛔ do not rewrite the decision, and ⛔ do not restate the original text as if it had always said this.
  2. Correct the claim that D3 boot reconciliation is the only healing path. It is not, since the recovery doors project too.
  3. Add one forward pointer: ADR-0131 D3 (merged docs(adr): ADR-0131 — organization ownership is total: no NULL organization_id; declared metadata stays in code; rows only when an organization authored them (Refs #13564) #14976) retires sys_permission_set and this projector in v18 via refactor(plugin-security,platform-objects,spec): retire the catalog seeders, the per-organization catalog machinery and the four catalog objects; Setup creation is an environment write under single and refused under a wall (ADR-0131 D2/D3/D5/D13) #15204 (C3) — so this amendment describes a mechanism with one major to live. That sentence exists to stop the next reader from building on it.
  4. ⛔ Out of scope: content/docs/releases/**; any code change; any change to D1 (which stands); reopening PR docs(adr): ADR-0094 D2 amendment — the recovery doors project too #14980 or its branch.

Acceptance

The ADR's projecting-door enumeration matches the seven call sites on the tree, with a re-check command in the PR body that a reviewer can run (git grep -c "this.runMutationProjector(" -- packages/metadata-protocol/src/protocol.ts, plus the structural pin's own name). The amendment carries its date and names ADR-0131's retirement. check-adr-links, check-adr-anchors and check-adr-symbol-anchors green — the last one refuses file.ts:NNN anchors, so cite line numbers as bare prose numbers or not at all.

Changeset: none — docs-only. Apply the skip-changeset label; ⛔ an empty-frontmatter changeset is rejected by the gate (#4898).

Refs: ADR-0094 · PR #14982 (95464ed65) · PR #14980 (closed void) · #14415 · ADR-0131 D3 · #15204 (C3).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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 \u003cpre\u003e\u003ccode\u003e 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

      docs(adr): ADR-0094 D2 under-describes its own shipped code — the recovery doors project too, and D3 is no longer the only healing path #15244

      Description

      @hotlong

      docs/adr/** is a governed surface: draft PR, human merge. ⛔ The dev does not flip ready, does not enable auto-merge, and does not merge. The maintainer hand-merges.

      Why this card exists

      PR #14982 merged as 95464ed65 and put the ADR-0094 mutation projector behind the recovery doors. Its documentation half, PR #14980, was closed as void on the maintainer's instruction (「14980 作废关闭」, recorded on that PR by the os-musk seat). The code shipped; the record did not follow it. The maintainer, 2026-09-04, on being shown that consequence: 「这几个问题你都帮我派发处理」.

      So docs/adr/0094-sys-permission-set-pure-projection.md now under-describes its own shipped code. Not wrong — incomplete, which is the harder kind to notice.

      Measured on origin/main before filing

      this.runMutationProjector( has seven call sites in packages/metadata-protocol/src/protocol.ts:15504, :16737, :19516, :19621, :20015, :20571, :20739 (declaration at :4981). Three are the original doors; four are recovery-door sites. protocol.recovery-doors-mutation-projector.test.ts:488 pins the count structurally, so the number is enforced, not incidental.

      The ADR's D2 text still names three: "awaited inside saveMetaItem / publishMetaItem / deleteMetaItem" (around :29-30 and :97-98; ⛔ locate by sentence, line numbers rot). The shipped code also projects from rollbackMetaItem, both limbs of revertCommit, and deleteMetaItem's legacy raw-engine exit.

      ⚠️git grep -ci "rollback\|revert" on that file returns 6, so the ADR does discuss rollback and revert elsewhere. Measure which sentences are actually stale before editing any of them — the defect is the projecting-door enumeration and the healing-path claim, not every mention.

      Scope

      1. Amend the D2 enumeration to name every projecting door, matching the seven call sites. Keep it an amendment note in the ADR's own established style (see how ADR-0126 and ADR-0105 carry theirs) — ⛔ do not rewrite the decision, and ⛔ do not restate the original text as if it had always said this.
      2. Correct the claim that D3 boot reconciliation is the only healing path. It is not, since the recovery doors project too.
      3. Add one forward pointer: ADR-0131 D3 (merged docs(adr): ADR-0131 — organization ownership is total: no NULL organization_id; declared metadata stays in code; rows only when an organization authored them (Refs #13564) #14976) retires sys_permission_set and this projector in v18 via refactor(plugin-security,platform-objects,spec): retire the catalog seeders, the per-organization catalog machinery and the four catalog objects; Setup creation is an environment write under single and refused under a wall (ADR-0131 D2/D3/D5/D13) #15204 (C3) — so this amendment describes a mechanism with one major to live. That sentence exists to stop the next reader from building on it.
      4. ⛔ Out of scope: content/docs/releases/**; any code change; any change to D1 (which stands); reopening PR docs(adr): ADR-0094 D2 amendment — the recovery doors project too #14980 or its branch.

      Acceptance

      The ADR's projecting-door enumeration matches the seven call sites on the tree, with a re-check command in the PR body that a reviewer can run (git grep -c "this.runMutationProjector(" -- packages/metadata-protocol/src/protocol.ts, plus the structural pin's own name). The amendment carries its date and names ADR-0131's retirement. check-adr-links, check-adr-anchors and check-adr-symbol-anchors green — the last one refuses file.ts:NNN anchors, so cite line numbers as bare prose numbers or not at all.

      Changeset: none — docs-only. Apply the skip-changeset label; ⛔ an empty-frontmatter changeset is rejected by the gate (#4898).

      Refs: ADR-0094 · PR #14982 (95464ed65) · PR #14980 (closed void) · #14415 · ADR-0131 D3 · #15204 (C3).

      Activity

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

      Metadata

      Metadata

      Assignees

      No one assigned

        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

          docs(adr): ADR-0094 D2 under-describes its own shipped code — the recovery doors project too, and D3 is no longer the only healing path #15244

          Description

          @hotlong

          docs/adr/** is a governed surface: draft PR, human merge. ⛔ The dev does not flip ready, does not enable auto-merge, and does not merge. The maintainer hand-merges.

          Why this card exists

          PR #14982 merged as 95464ed65 and put the ADR-0094 mutation projector behind the recovery doors. Its documentation half, PR #14980, was closed as void on the maintainer's instruction (「14980 作废关闭」, recorded on that PR by the os-musk seat). The code shipped; the record did not follow it. The maintainer, 2026-09-04, on being shown that consequence: 「这几个问题你都帮我派发处理」.

          So docs/adr/0094-sys-permission-set-pure-projection.md now under-describes its own shipped code. Not wrong — incomplete, which is the harder kind to notice.

          Measured on origin/main before filing

          this.runMutationProjector( has seven call sites in packages/metadata-protocol/src/protocol.ts:15504, :16737, :19516, :19621, :20015, :20571, :20739 (declaration at :4981). Three are the original doors; four are recovery-door sites. protocol.recovery-doors-mutation-projector.test.ts:488 pins the count structurally, so the number is enforced, not incidental.

          The ADR's D2 text still names three: "awaited inside saveMetaItem / publishMetaItem / deleteMetaItem" (around :29-30 and :97-98; ⛔ locate by sentence, line numbers rot). The shipped code also projects from rollbackMetaItem, both limbs of revertCommit, and deleteMetaItem's legacy raw-engine exit.

          ⚠️git grep -ci "rollback\|revert" on that file returns 6, so the ADR does discuss rollback and revert elsewhere. Measure which sentences are actually stale before editing any of them — the defect is the projecting-door enumeration and the healing-path claim, not every mention.

          Scope

          1. Amend the D2 enumeration to name every projecting door, matching the seven call sites. Keep it an amendment note in the ADR's own established style (see how ADR-0126 and ADR-0105 carry theirs) — ⛔ do not rewrite the decision, and ⛔ do not restate the original text as if it had always said this.
          2. Correct the claim that D3 boot reconciliation is the only healing path. It is not, since the recovery doors project too.
          3. Add one forward pointer: ADR-0131 D3 (merged docs(adr): ADR-0131 — organization ownership is total: no NULL organization_id; declared metadata stays in code; rows only when an organization authored them (Refs #13564) #14976) retires sys_permission_set and this projector in v18 via refactor(plugin-security,platform-objects,spec): retire the catalog seeders, the per-organization catalog machinery and the four catalog objects; Setup creation is an environment write under single and refused under a wall (ADR-0131 D2/D3/D5/D13) #15204 (C3) — so this amendment describes a mechanism with one major to live. That sentence exists to stop the next reader from building on it.
          4. ⛔ Out of scope: content/docs/releases/**; any code change; any change to D1 (which stands); reopening PR docs(adr): ADR-0094 D2 amendment — the recovery doors project too #14980 or its branch.

          Acceptance

          The ADR's projecting-door enumeration matches the seven call sites on the tree, with a re-check command in the PR body that a reviewer can run (git grep -c "this.runMutationProjector(" -- packages/metadata-protocol/src/protocol.ts, plus the structural pin's own name). The amendment carries its date and names ADR-0131's retirement. check-adr-links, check-adr-anchors and check-adr-symbol-anchors green — the last one refuses file.ts:NNN anchors, so cite line numbers as bare prose numbers or not at all.

          Changeset: none — docs-only. Apply the skip-changeset label; ⛔ an empty-frontmatter changeset is rejected by the gate (#4898).

          Refs: ADR-0094 · PR #14982 (95464ed65) · PR #14980 (closed void) · #14415 · ADR-0131 D3 · #15204 (C3).

          Activity

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

          Metadata

          Metadata

          Assignees

          No one assigned

            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 \u003e 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

              docs(adr): ADR-0094 D2 under-describes its own shipped code — the recovery doors project too, and D3 is no longer the only healing path #15244

              Description

              @hotlong

              docs/adr/** is a governed surface: draft PR, human merge. ⛔ The dev does not flip ready, does not enable auto-merge, and does not merge. The maintainer hand-merges.

              Why this card exists

              PR #14982 merged as 95464ed65 and put the ADR-0094 mutation projector behind the recovery doors. Its documentation half, PR #14980, was closed as void on the maintainer's instruction (「14980 作废关闭」, recorded on that PR by the os-musk seat). The code shipped; the record did not follow it. The maintainer, 2026-09-04, on being shown that consequence: 「这几个问题你都帮我派发处理」.

              So docs/adr/0094-sys-permission-set-pure-projection.md now under-describes its own shipped code. Not wrong — incomplete, which is the harder kind to notice.

              Measured on origin/main before filing

              this.runMutationProjector( has seven call sites in packages/metadata-protocol/src/protocol.ts:15504, :16737, :19516, :19621, :20015, :20571, :20739 (declaration at :4981). Three are the original doors; four are recovery-door sites. protocol.recovery-doors-mutation-projector.test.ts:488 pins the count structurally, so the number is enforced, not incidental.

              The ADR's D2 text still names three: "awaited inside saveMetaItem / publishMetaItem / deleteMetaItem" (around :29-30 and :97-98; ⛔ locate by sentence, line numbers rot). The shipped code also projects from rollbackMetaItem, both limbs of revertCommit, and deleteMetaItem's legacy raw-engine exit.

              ⚠️git grep -ci "rollback\|revert" on that file returns 6, so the ADR does discuss rollback and revert elsewhere. Measure which sentences are actually stale before editing any of them — the defect is the projecting-door enumeration and the healing-path claim, not every mention.

              Scope

              1. Amend the D2 enumeration to name every projecting door, matching the seven call sites. Keep it an amendment note in the ADR's own established style (see how ADR-0126 and ADR-0105 carry theirs) — ⛔ do not rewrite the decision, and ⛔ do not restate the original text as if it had always said this.
              2. Correct the claim that D3 boot reconciliation is the only healing path. It is not, since the recovery doors project too.
              3. Add one forward pointer: ADR-0131 D3 (merged docs(adr): ADR-0131 — organization ownership is total: no NULL organization_id; declared metadata stays in code; rows only when an organization authored them (Refs #13564) #14976) retires sys_permission_set and this projector in v18 via refactor(plugin-security,platform-objects,spec): retire the catalog seeders, the per-organization catalog machinery and the four catalog objects; Setup creation is an environment write under single and refused under a wall (ADR-0131 D2/D3/D5/D13) #15204 (C3) — so this amendment describes a mechanism with one major to live. That sentence exists to stop the next reader from building on it.
              4. ⛔ Out of scope: content/docs/releases/**; any code change; any change to D1 (which stands); reopening PR docs(adr): ADR-0094 D2 amendment — the recovery doors project too #14980 or its branch.

              Acceptance

              The ADR's projecting-door enumeration matches the seven call sites on the tree, with a re-check command in the PR body that a reviewer can run (git grep -c "this.runMutationProjector(" -- packages/metadata-protocol/src/protocol.ts, plus the structural pin's own name). The amendment carries its date and names ADR-0131's retirement. check-adr-links, check-adr-anchors and check-adr-symbol-anchors green — the last one refuses file.ts:NNN anchors, so cite line numbers as bare prose numbers or not at all.

              Changeset: none — docs-only. Apply the skip-changeset label; ⛔ an empty-frontmatter changeset is rejected by the gate (#4898).

              Refs: ADR-0094 · PR #14982 (95464ed65) · PR #14980 (closed void) · #14415 · ADR-0131 D3 · #15204 (C3).

              Activity

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

              Metadata

              Metadata

              Assignees

              No one assigned

                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

                  docs(adr): ADR-0094 D2 under-describes its own shipped code — the recovery doors project too, and D3 is no longer the only healing path #15244

                  Description

                  @hotlong

                  docs/adr/** is a governed surface: draft PR, human merge. ⛔ The dev does not flip ready, does not enable auto-merge, and does not merge. The maintainer hand-merges.

                  Why this card exists

                  PR #14982 merged as 95464ed65 and put the ADR-0094 mutation projector behind the recovery doors. Its documentation half, PR #14980, was closed as void on the maintainer's instruction (「14980 作废关闭」, recorded on that PR by the os-musk seat). The code shipped; the record did not follow it. The maintainer, 2026-09-04, on being shown that consequence: 「这几个问题你都帮我派发处理」.

                  So docs/adr/0094-sys-permission-set-pure-projection.md now under-describes its own shipped code. Not wrong — incomplete, which is the harder kind to notice.

                  Measured on origin/main before filing

                  this.runMutationProjector( has seven call sites in packages/metadata-protocol/src/protocol.ts:15504, :16737, :19516, :19621, :20015, :20571, :20739 (declaration at :4981). Three are the original doors; four are recovery-door sites. protocol.recovery-doors-mutation-projector.test.ts:488 pins the count structurally, so the number is enforced, not incidental.

                  The ADR's D2 text still names three: "awaited inside saveMetaItem / publishMetaItem / deleteMetaItem" (around :29-30 and :97-98; ⛔ locate by sentence, line numbers rot). The shipped code also projects from rollbackMetaItem, both limbs of revertCommit, and deleteMetaItem's legacy raw-engine exit.

                  ⚠️git grep -ci "rollback\|revert" on that file returns 6, so the ADR does discuss rollback and revert elsewhere. Measure which sentences are actually stale before editing any of them — the defect is the projecting-door enumeration and the healing-path claim, not every mention.

                  Scope

                  1. Amend the D2 enumeration to name every projecting door, matching the seven call sites. Keep it an amendment note in the ADR's own established style (see how ADR-0126 and ADR-0105 carry theirs) — ⛔ do not rewrite the decision, and ⛔ do not restate the original text as if it had always said this.
                  2. Correct the claim that D3 boot reconciliation is the only healing path. It is not, since the recovery doors project too.
                  3. Add one forward pointer: ADR-0131 D3 (merged docs(adr): ADR-0131 — organization ownership is total: no NULL organization_id; declared metadata stays in code; rows only when an organization authored them (Refs #13564) #14976) retires sys_permission_set and this projector in v18 via refactor(plugin-security,platform-objects,spec): retire the catalog seeders, the per-organization catalog machinery and the four catalog objects; Setup creation is an environment write under single and refused under a wall (ADR-0131 D2/D3/D5/D13) #15204 (C3) — so this amendment describes a mechanism with one major to live. That sentence exists to stop the next reader from building on it.
                  4. ⛔ Out of scope: content/docs/releases/**; any code change; any change to D1 (which stands); reopening PR docs(adr): ADR-0094 D2 amendment — the recovery doors project too #14980 or its branch.

                  Acceptance

                  The ADR's projecting-door enumeration matches the seven call sites on the tree, with a re-check command in the PR body that a reviewer can run (git grep -c "this.runMutationProjector(" -- packages/metadata-protocol/src/protocol.ts, plus the structural pin's own name). The amendment carries its date and names ADR-0131's retirement. check-adr-links, check-adr-anchors and check-adr-symbol-anchors green — the last one refuses file.ts:NNN anchors, so cite line numbers as bare prose numbers or not at all.

                  Changeset: none — docs-only. Apply the skip-changeset label; ⛔ an empty-frontmatter changeset is rejected by the gate (#4898).

                  Refs: ADR-0094 · PR #14982 (95464ed65) · PR #14980 (closed void) · #14415 · ADR-0131 D3 · #15204 (C3).

                  Activity

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

                  Metadata

                  Metadata

                  Assignees

                  No one assigned

                    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

                      docs(adr): ADR-0094 D2 under-describes its own shipped code — the recovery doors project too, and D3 is no longer the only healing path #15244

                      Description

                      @hotlong

                      docs/adr/** is a governed surface: draft PR, human merge. ⛔ The dev does not flip ready, does not enable auto-merge, and does not merge. The maintainer hand-merges.

                      Why this card exists

                      PR #14982 merged as 95464ed65 and put the ADR-0094 mutation projector behind the recovery doors. Its documentation half, PR #14980, was closed as void on the maintainer's instruction (「14980 作废关闭」, recorded on that PR by the os-musk seat). The code shipped; the record did not follow it. The maintainer, 2026-09-04, on being shown that consequence: 「这几个问题你都帮我派发处理」.

                      So docs/adr/0094-sys-permission-set-pure-projection.md now under-describes its own shipped code. Not wrong — incomplete, which is the harder kind to notice.

                      Measured on origin/main before filing

                      this.runMutationProjector( has seven call sites in packages/metadata-protocol/src/protocol.ts:15504, :16737, :19516, :19621, :20015, :20571, :20739 (declaration at :4981). Three are the original doors; four are recovery-door sites. protocol.recovery-doors-mutation-projector.test.ts:488 pins the count structurally, so the number is enforced, not incidental.

                      The ADR's D2 text still names three: "awaited inside saveMetaItem / publishMetaItem / deleteMetaItem" (around :29-30 and :97-98; ⛔ locate by sentence, line numbers rot). The shipped code also projects from rollbackMetaItem, both limbs of revertCommit, and deleteMetaItem's legacy raw-engine exit.

                      ⚠️git grep -ci "rollback\|revert" on that file returns 6, so the ADR does discuss rollback and revert elsewhere. Measure which sentences are actually stale before editing any of them — the defect is the projecting-door enumeration and the healing-path claim, not every mention.

                      Scope

                      1. Amend the D2 enumeration to name every projecting door, matching the seven call sites. Keep it an amendment note in the ADR's own established style (see how ADR-0126 and ADR-0105 carry theirs) — ⛔ do not rewrite the decision, and ⛔ do not restate the original text as if it had always said this.
                      2. Correct the claim that D3 boot reconciliation is the only healing path. It is not, since the recovery doors project too.
                      3. Add one forward pointer: ADR-0131 D3 (merged docs(adr): ADR-0131 — organization ownership is total: no NULL organization_id; declared metadata stays in code; rows only when an organization authored them (Refs #13564) #14976) retires sys_permission_set and this projector in v18 via refactor(plugin-security,platform-objects,spec): retire the catalog seeders, the per-organization catalog machinery and the four catalog objects; Setup creation is an environment write under single and refused under a wall (ADR-0131 D2/D3/D5/D13) #15204 (C3) — so this amendment describes a mechanism with one major to live. That sentence exists to stop the next reader from building on it.
                      4. ⛔ Out of scope: content/docs/releases/**; any code change; any change to D1 (which stands); reopening PR docs(adr): ADR-0094 D2 amendment — the recovery doors project too #14980 or its branch.

                      Acceptance

                      The ADR's projecting-door enumeration matches the seven call sites on the tree, with a re-check command in the PR body that a reviewer can run (git grep -c "this.runMutationProjector(" -- packages/metadata-protocol/src/protocol.ts, plus the structural pin's own name). The amendment carries its date and names ADR-0131's retirement. check-adr-links, check-adr-anchors and check-adr-symbol-anchors green — the last one refuses file.ts:NNN anchors, so cite line numbers as bare prose numbers or not at all.

                      Changeset: none — docs-only. Apply the skip-changeset label; ⛔ an empty-frontmatter changeset is rejected by the gate (#4898).

                      Refs: ADR-0094 · PR #14982 (95464ed65) · PR #14980 (closed void) · #14415 · ADR-0131 D3 · #15204 (C3).

                      Activity

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

                      Metadata

                      Metadata

                      Assignees

                      No one assigned

                        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

                          docs(adr): ADR-0094 D2 under-describes its own shipped code — the recovery doors project too, and D3 is no longer the only healing path #15244

                          Description

                          @hotlong

                          docs/adr/** is a governed surface: draft PR, human merge. ⛔ The dev does not flip ready, does not enable auto-merge, and does not merge. The maintainer hand-merges.

                          Why this card exists

                          PR #14982 merged as 95464ed65 and put the ADR-0094 mutation projector behind the recovery doors. Its documentation half, PR #14980, was closed as void on the maintainer's instruction (「14980 作废关闭」, recorded on that PR by the os-musk seat). The code shipped; the record did not follow it. The maintainer, 2026-09-04, on being shown that consequence: 「这几个问题你都帮我派发处理」.

                          So docs/adr/0094-sys-permission-set-pure-projection.md now under-describes its own shipped code. Not wrong — incomplete, which is the harder kind to notice.

                          Measured on origin/main before filing

                          this.runMutationProjector( has seven call sites in packages/metadata-protocol/src/protocol.ts:15504, :16737, :19516, :19621, :20015, :20571, :20739 (declaration at :4981). Three are the original doors; four are recovery-door sites. protocol.recovery-doors-mutation-projector.test.ts:488 pins the count structurally, so the number is enforced, not incidental.

                          The ADR's D2 text still names three: "awaited inside saveMetaItem / publishMetaItem / deleteMetaItem" (around :29-30 and :97-98; ⛔ locate by sentence, line numbers rot). The shipped code also projects from rollbackMetaItem, both limbs of revertCommit, and deleteMetaItem's legacy raw-engine exit.

                          ⚠️git grep -ci "rollback\|revert" on that file returns 6, so the ADR does discuss rollback and revert elsewhere. Measure which sentences are actually stale before editing any of them — the defect is the projecting-door enumeration and the healing-path claim, not every mention.

                          Scope

                          1. Amend the D2 enumeration to name every projecting door, matching the seven call sites. Keep it an amendment note in the ADR's own established style (see how ADR-0126 and ADR-0105 carry theirs) — ⛔ do not rewrite the decision, and ⛔ do not restate the original text as if it had always said this.
                          2. Correct the claim that D3 boot reconciliation is the only healing path. It is not, since the recovery doors project too.
                          3. Add one forward pointer: ADR-0131 D3 (merged docs(adr): ADR-0131 — organization ownership is total: no NULL organization_id; declared metadata stays in code; rows only when an organization authored them (Refs #13564) #14976) retires sys_permission_set and this projector in v18 via refactor(plugin-security,platform-objects,spec): retire the catalog seeders, the per-organization catalog machinery and the four catalog objects; Setup creation is an environment write under single and refused under a wall (ADR-0131 D2/D3/D5/D13) #15204 (C3) — so this amendment describes a mechanism with one major to live. That sentence exists to stop the next reader from building on it.
                          4. ⛔ Out of scope: content/docs/releases/**; any code change; any change to D1 (which stands); reopening PR docs(adr): ADR-0094 D2 amendment — the recovery doors project too #14980 or its branch.

                          Acceptance

                          The ADR's projecting-door enumeration matches the seven call sites on the tree, with a re-check command in the PR body that a reviewer can run (git grep -c "this.runMutationProjector(" -- packages/metadata-protocol/src/protocol.ts, plus the structural pin's own name). The amendment carries its date and names ADR-0131's retirement. check-adr-links, check-adr-anchors and check-adr-symbol-anchors green — the last one refuses file.ts:NNN anchors, so cite line numbers as bare prose numbers or not at all.

                          Changeset: none — docs-only. Apply the skip-changeset label; ⛔ an empty-frontmatter changeset is rejected by the gate (#4898).

                          Refs: ADR-0094 · PR #14982 (95464ed65) · PR #14980 (closed void) · #14415 · ADR-0131 D3 · #15204 (C3).

                          Activity

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

                          Metadata

                          Metadata

                          Assignees

                          No one assigned

                            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

                              docs(adr): ADR-0094 D2 under-describes its own shipped code — the recovery doors project too, and D3 is no longer the only healing path #15244

                              Description

                              @hotlong

                              docs/adr/** is a governed surface: draft PR, human merge. ⛔ The dev does not flip ready, does not enable auto-merge, and does not merge. The maintainer hand-merges.

                              Why this card exists

                              PR #14982 merged as 95464ed65 and put the ADR-0094 mutation projector behind the recovery doors. Its documentation half, PR #14980, was closed as void on the maintainer's instruction (「14980 作废关闭」, recorded on that PR by the os-musk seat). The code shipped; the record did not follow it. The maintainer, 2026-09-04, on being shown that consequence: 「这几个问题你都帮我派发处理」.

                              So docs/adr/0094-sys-permission-set-pure-projection.md now under-describes its own shipped code. Not wrong — incomplete, which is the harder kind to notice.

                              Measured on origin/main before filing

                              this.runMutationProjector( has seven call sites in packages/metadata-protocol/src/protocol.ts:15504, :16737, :19516, :19621, :20015, :20571, :20739 (declaration at :4981). Three are the original doors; four are recovery-door sites. protocol.recovery-doors-mutation-projector.test.ts:488 pins the count structurally, so the number is enforced, not incidental.

                              The ADR's D2 text still names three: "awaited inside saveMetaItem / publishMetaItem / deleteMetaItem" (around :29-30 and :97-98; ⛔ locate by sentence, line numbers rot). The shipped code also projects from rollbackMetaItem, both limbs of revertCommit, and deleteMetaItem's legacy raw-engine exit.

                              ⚠️git grep -ci "rollback\|revert" on that file returns 6, so the ADR does discuss rollback and revert elsewhere. Measure which sentences are actually stale before editing any of them — the defect is the projecting-door enumeration and the healing-path claim, not every mention.

                              Scope

                              1. Amend the D2 enumeration to name every projecting door, matching the seven call sites. Keep it an amendment note in the ADR's own established style (see how ADR-0126 and ADR-0105 carry theirs) — ⛔ do not rewrite the decision, and ⛔ do not restate the original text as if it had always said this.
                              2. Correct the claim that D3 boot reconciliation is the only healing path. It is not, since the recovery doors project too.
                              3. Add one forward pointer: ADR-0131 D3 (merged docs(adr): ADR-0131 — organization ownership is total: no NULL organization_id; declared metadata stays in code; rows only when an organization authored them (Refs #13564) #14976) retires sys_permission_set and this projector in v18 via refactor(plugin-security,platform-objects,spec): retire the catalog seeders, the per-organization catalog machinery and the four catalog objects; Setup creation is an environment write under single and refused under a wall (ADR-0131 D2/D3/D5/D13) #15204 (C3) — so this amendment describes a mechanism with one major to live. That sentence exists to stop the next reader from building on it.
                              4. ⛔ Out of scope: content/docs/releases/**; any code change; any change to D1 (which stands); reopening PR docs(adr): ADR-0094 D2 amendment — the recovery doors project too #14980 or its branch.

                              Acceptance

                              The ADR's projecting-door enumeration matches the seven call sites on the tree, with a re-check command in the PR body that a reviewer can run (git grep -c "this.runMutationProjector(" -- packages/metadata-protocol/src/protocol.ts, plus the structural pin's own name). The amendment carries its date and names ADR-0131's retirement. check-adr-links, check-adr-anchors and check-adr-symbol-anchors green — the last one refuses file.ts:NNN anchors, so cite line numbers as bare prose numbers or not at all.

                              Changeset: none — docs-only. Apply the skip-changeset label; ⛔ an empty-frontmatter changeset is rejected by the gate (#4898).

                              Refs: ADR-0094 · PR #14982 (95464ed65) · PR #14980 (closed void) · #14415 · ADR-0131 D3 · #15204 (C3).

                              Activity

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

                              Metadata

                              Metadata

                              Assignees

                              No one assigned

                                Type

                                No type

                                Projects

                                No projects

                                  Milestone

                                  No milestone

                                  Relationships

                                  None yet

                                  Development

                                  No branches or pull requests

                                  Issue actions