Skip to content

Commit a8cfb76

Browse files
committed
docs(permissions): re-anchor the five rest-server.ts census citations after the +44 comment shift
The `?type=` diagnostics comment added 44 lines above every `isSystem` read site in `packages/rest/src/rest-server.ts`, and row 50 of the system-context census anchors that file by line number, so all five citations rotted by exactly 44. Repaired with the gate's own `node scripts/check-system-context-census.mjs --fix`, which REFUSED ZERO files: per-file the page's distinct anchor count still equalled the lines the file offers, so the rewrite is a pure shift, not a guessed mapping. Verified rather than assumed: the full census JSON at the merge-base and at this head differs in exactly five `line` fields, each +44 -- same sites, same order, same receivers, same text counts. No elevation read site arrived or vanished. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N
1 parent d993d6c commit a8cfb76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/docs/permissions/system-context.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ The largest single consumer — **17 of the 106 sites**.
158158
|:--|:---|:---|:---|:---|
159159
| 48 | Object API-exposure gate bypassed (`apiEnabled` / `apiMethods`) | runtime | Get: internal self-writes ignore exposure declarations — these govern **external** exposure, not engine self-writes | `action-execution.ts:138` |
160160
| 49 | Action `requiredPermissions` bypassed | runtime | Get: engine self-invocation runs any action | `action-execution.ts:401` |
161-
| 50 | `manage_metadata` bypassed on metadata writes | runtime, rest | Get: schema writes without the capability | `domains/meta.ts:471`, `:874`, `rest-server.ts:4972`, `:6386`, `:6634`, `:7065`, `:7258` |
161+
| 50 | `manage_metadata` bypassed on metadata writes | runtime, rest | Get: schema writes without the capability | `domains/meta.ts:471`, `:874`, `rest-server.ts:5016`, `:6430`, `:6678`, `:7109`, `:7302` |
162162
| 51 | The shared metadata-write verdict itself returns `allowed` | metadata-core | Get: the one function all of row 50's doors consult answers yes before any capability is examined | `meta-write-capability.ts:134` |
163163
| 52 | Anonymous-deny seam satisfied on the domain dispatchers and the package/federation routes | runtime, rest | Get: passes with no `userId` | `domains/actions.ts:421`, `domains/ai.ts:60`, `domains/automation.ts:989`, `domains/meta.ts:232`, `domains/security.ts:78`, `domains/packages.ts:422`, `external-datasource-routes.ts:302`, `package-routes.ts:97` |
164164
| 53 | MCP principal check satisfied | runtime | Get: MCP surface reachable with no user | `domains/mcp.ts:61` |

0 commit comments

Comments
 (0)