Skip to content

Commit 6fa971f

Browse files
committed
docs(spec): the census and inventory counts include the body door schemas and writer
Clause-②: no Metadata-protocol: none Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwV8gsjrvCXCqKoaiG
1 parent 1bb3c35 commit 6fa971f

3 files changed

Lines changed: 33 additions & 32 deletions

File tree

‎content/docs/permissions/tenant-audit-census.mdx‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ are reported as `undecidable` rather than assumed either way.
132132

133133
The same holds twice over for the context. An options argument spelled as a
134134
literal can be read; one spelled `options`, `{ ...opts }`, or handed through a
135-
forwarding shim cannot, and **58 of the 308 sites are spelled that way**. A
135+
forwarding shim cannot, and **59 of the 309 sites are spelled that way**. A
136136
context resolved from an inline literal or a local `const` can be tested for
137137
`isSystem`; one arriving from a helper call cannot.
138138

@@ -160,8 +160,8 @@ now **0**: nothing on this surface threads a context that provably lacks the fla
160160

161161
**"No tenant context" counted sites it had not read.** An options argument the
162162
walker could not parse was folded into the same bucket as one it had read and
163-
found empty. That published **70 sites "carrying no tenant context at all"**
164-
when 12 said so and 58 were simply unread — an over-claim in the *alarming*
163+
found empty. That published **71 sites "carrying no tenant context at all"**
164+
when 12 said so and 59 were simply unread — an over-claim in the *alarming*
165165
direction, on the very figure this page tells other cards to cite. `carries` is
166166
now three-valued, and an unreadable argument can never contribute to the
167167
provable count.
@@ -197,10 +197,10 @@ reproduce them. Where it disagrees, it disagrees on the page:
197197

198198
| carried figure | where it survives | this census |
199199
| :--- | :--- | ---: |
200-
| 175 write call sites | quoted in the merged changeset | **308** |
201-
| 24 carrying no tenant context | quoted in the merged changeset | **3** provable and tenancy-enabled; **31** more whose options argument is unreadable |
202-
| 127 of 175 statically decidable, 48 runtime-parameter-name sites | restated on the `isSystem`-scoping card | **214 of 308** decidable, **94** undecidable |
203-
| 135 (77%) silenced by the `isSystem` guard before the posture gate | the lost issue body — **no surviving corroboration** | **not reproduced**: 173 decidably elevated, 0 decidably not, 123 undecidable |
200+
| 175 write call sites | quoted in the merged changeset | **309** |
201+
| 24 carrying no tenant context | quoted in the merged changeset | **3** provable and tenancy-enabled; **32** more whose options argument is unreadable |
202+
| 127 of 175 statically decidable, 48 runtime-parameter-name sites | restated on the `isSystem`-scoping card | **215 of 309** decidable, **94** undecidable |
203+
| 135 (77%) silenced by the `isSystem` guard before the posture gate | the lost issue body — **no surviving corroboration** | **not reproduced**: 173 decidably elevated, 0 decidably not, 124 undecidable |
204204
| 141 and 132, two independent re-derivations | the card that filed this work | — |
205205

206206
**The differences are not reconciled, and deliberately so.** The old census's
@@ -217,14 +217,14 @@ would report a smaller number and would not say so.
217217

218218
The fourth row is the one worth flagging to anyone citing it. **The 135 / 77%
219219
figure has no surviving corroboration anywhere in the tree.** This census reads
220-
173 of 308 (56%) as decidably elevated, with 123 more whose elevation is a
220+
173 of 309 (56%) as decidably elevated, with 124 more whose elevation is a
221221
run-time fact — so the claim is neither confirmed nor refuted, and the honest
222222
answer is that a static reading cannot settle it.
223223

224-
⇒ **Cite `3 / 308`, and say what it is**: the sites whose options argument was
224+
⇒ **Cite `3 / 309`, and say what it is**: the sites whose options argument was
225225
READ and holds no tenant context, against a decidably tenancy-enabled object.
226226
That is the control's provable yield surface. ⛔ Do not cite it as "the sites
227-
without tenant context" — **31 further sites** have an options argument this
227+
without tenant context" — **32 further sites** have an options argument this
228228
cannot read, and they are neither in nor out.
229229

230230
{/* BEGIN GENERATED: tenant-audit-census (scripts/tenant-audit-census.mjs) — DO NOT EDIT */}
@@ -233,28 +233,28 @@ cannot read, and they are neither in nor out.
233233

234234
| what | count |
235235
| :--- | ---: |
236-
| write call sites on the application surface | **308** |
237-
| …whose object name is statically decidable | 214 |
236+
| write call sites on the application surface | **309** |
237+
| …whose object name is statically decidable | 215 |
238238
| …whose object name is chosen at run time | 94 |
239-
| …against an object with tenancy ENABLED | 207 |
239+
| …against an object with tenancy ENABLED | 208 |
240240
| …against an object that declares tenancy off | 7 |
241241
| threading a tenant context | 238 |
242242
| PROVABLY carrying none (options read, no context key) | **12** |
243243
| …of those, against a decidably tenancy-enabled object | **3** |
244-
| options argument UNREADABLE — may or may not carry one | 58 |
245-
| …of those, against a decidably tenancy-enabled object | 31 |
244+
| options argument UNREADABLE — may or may not carry one | 59 |
245+
| …of those, against a decidably tenancy-enabled object | 32 |
246246
| threading a decidably ELEVATED (`isSystem`) context | 173 |
247247
| threading a context that is decidably NOT elevated | 0 |
248-
| threading a context whose elevation is a run-time fact | 123 |
248+
| threading a context whose elevation is a run-time fact | 124 |
249249

250250
| how the instrument reached the site | count |
251251
| :--- | ---: |
252-
| receiver carried a readable engine type | 246 |
252+
| receiver carried a readable engine type | 247 |
253253
| receiver erased, placed by the object NAME | 52 |
254254
| receiver erased, placed by an `object: string` PARAMETER | 5 |
255255
| receiver erased, placed by an `UNTYPED_RECEIVERS` row | 5 |
256256

257-
| object name spelled inline | 129 |
257+
| object name spelled inline | 130 |
258258
| object name spelled through a `const` | 85 |
259259
| object name is an `object: string` parameter | 10 |
260260
| object name is some other run-time expression | 84 |
@@ -307,13 +307,13 @@ holds still. They are required to be HERE and to say WHEN they were true;
307307
their values are not compared. The reasoning, and the measurement behind it,
308308
are in `scripts/check-tenant-audit-census.mjs`.
309309

310-
Measured on 2026-11-12 at `0e97e095f`.
310+
Measured on 2026-11-13 at `1bb3c359e`.
311311

312312
| corpus scale (not enforced) | count |
313313
| :--- | ---: |
314-
| tracked non-test sources scanned | 1139 |
314+
| tracked non-test sources scanned | 1144 |
315315
| engine-shaped types recognised | 134 |
316316
| declared objects in the registry | 137 |
317-
| same-named calls subtracted as non-engine | 291 |
317+
| same-named calls subtracted as non-engine | 292 |
318318

319319
{/* END GENERATED: tenant-audit-census */}

‎docs/audits/2026-08-tenant-audit-write-call-sites.counts.md‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ silent, and `node scripts/tenant-audit-census.mjs --write` is the resolution.
3333

3434
| Measure | Value |
3535
|---|---:|
36-
| Write call sites | 308 |
37-
| Object name statically decidable | 214 |
36+
| Write call sites | 309 |
37+
| Object name statically decidable | 215 |
3838
| Object name chosen at run time | 94 |
39-
| Against a tenancy-enabled object | 207 |
39+
| Against a tenancy-enabled object | 208 |
4040
| Against an object declaring tenancy off | 7 |
4141
| Threading a tenant context | 238 |
4242
| Provably carrying none | 12 |
4343
| …and decidably tenancy-enabled | 3 |
44-
| Options argument unreadable | 58 |
45-
| …and decidably tenancy-enabled | 31 |
44+
| Options argument unreadable | 59 |
45+
| …and decidably tenancy-enabled | 32 |
4646
| Threading a decidably elevated context | 173 |
4747
| Threading a decidably non-elevated context | 0 |
48-
| Threading a context of undecidable elevation | 123 |
48+
| Threading a context of undecidable elevation | 124 |
4949

5050
## Subtractions the census could NOT defend — enforced
5151

@@ -90,14 +90,14 @@ holds still. They are required to be HERE and to say WHEN they were true;
9090
their values are not compared. The reasoning, and the measurement behind it,
9191
are in `scripts/check-tenant-audit-census.mjs`.
9292

93-
Measured on 2026-11-12 at `0e97e095f`.
93+
Measured on 2026-11-13 at `1bb3c359e`.
9494

9595
| corpus scale (not enforced) | count |
9696
| :--- | ---: |
97-
| tracked non-test sources scanned | 1139 |
97+
| tracked non-test sources scanned | 1144 |
9898
| engine-shaped types recognised | 134 |
9999
| declared objects in the registry | 137 |
100-
| same-named calls subtracted as non-engine | 291 |
100+
| same-named calls subtracted as non-engine | 292 |
101101

102102
## Every site
103103

@@ -119,6 +119,7 @@ Measured on 2026-11-12 at `0e97e095f`.
119119
| `packages/plugins/plugin-approvals/src/stored-process-package-backfill.ts` | `update` | `sys_approval_request` | enabled | elevated | 1 |
120120
| `packages/plugins/plugin-audit/src/action-invocation-audit.ts` | `insert` | `sys_audit_log` | enabled | elevated | 1 |
121121
| `packages/plugins/plugin-audit/src/activity-changed-fields-backfill.ts` | `update` | `sys_activity` | enabled | elevated | 1 |
122+
| `packages/plugins/plugin-audit/src/app-activity-door.ts` | `insert` | `sys_activity` | enabled | options unreadable | 1 |
122123
| `packages/plugins/plugin-audit/src/audit-seal/amendment-writer.ts` | `insert` | `AUDIT_AMENDMENT_OBJECT` | undecidable | elevated | 1 |
123124
| `packages/plugins/plugin-audit/src/audit-seal/sealer.ts` | `insert` | `AUDIT_CHECKPOINT_OBJECT` | undecidable | elevated | 1 |
124125
| `packages/plugins/plugin-audit/src/audit-seal/signer.ts` | `insert` | `AUDIT_SIGNING_KEY_OBJECT` | undecidable | elevated | 1 |

‎packages/spec/llms.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const query = {
7777

7878
---
7979

80-
## 3. Schema Inventory by Domain (225 schemas)
80+
## 3. Schema Inventory by Domain (226 schemas)
8181

8282
Counted as `*.zod.ts` modules under `packages/spec/src/<domain>/` — the sources
8383
that ship in this tarball (`files` includes `src/**/*.zod.ts`), so every number
@@ -87,7 +87,7 @@ here is verifiable from the installed package.
8787
|--------|-------|-------------|
8888
| system | 40 | Auth, Cache, Demo Staff, Dev Login, Email / SMS / Push Config, Push Device, Encryption, Fate Supplement (organization ownership), HTTP Server, License, Logging, Metrics, Restriction Profile |
8989
| kernel | 31 | Plugin, Manifest, Events (6 sub-modules), Feature, Context, Package Registry, Override Declaration |
90-
| data | 35 | Object, Field, Picklist, Query, Filter, Driver (SQL/NoSQL/Memory/Mongo/Postgres/Oracle/SQL Server), Cube, Seed, Recycle Bin |
90+
| data | 36 | Object, Field, Picklist, Query, Filter, Driver (SQL/NoSQL/Memory/Mongo/Postgres/Oracle/SQL Server), Cube, Seed, Recycle Bin |
9191
| api | 35 | Endpoint, REST Server, Discovery, OData, Batch, WebSocket, Response Envelope, Package Lifecycle, Package API (assembled stage), Record Page, App Metadata Bundle, Push Delivery, Push Relay |
9292
| ui | 18 | View, App, Action, Dashboard, Page, Chart, Component, Animation |
9393
| automation | 16 | Flow, Approval, Assignment Rule, BPMN Interop, Control Flow, Webhook, Schedule Organization |

0 commit comments

Comments
 (0)