Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions content/docs/permissions/tenant-audit-census.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ what moved this page's population from 225 to 227; nothing about the two sites
changed, only whether this instrument could see them.

**The expensive failure direction is a keyword.** Sites whose receiver the author
typed `any` have no type to read, and there are 44 of them — just under a fifth
typed `any` have no type to read, and there are 52 of them — just over a fifth
of the population, concentrated in exactly the seed and bootstrap paths this
control exists for. Scoring an unreadable receiver as "not an engine" would have
dropped every one of them silently, with a clean exit and a smaller number that
Expand Down Expand Up @@ -210,7 +210,7 @@ be stated is what this instrument counts, which is written above and re-runnable
at any commit.

Two structural facts do plausibly widen this reading against any hand or regex
one, and both are counted in the generated tables below: the 44 sites reached
one, and both are counted in the generated tables below: the 52 sites reached
through an erased (`any`) receiver, and the 51 that name their object through a
`const` rather than inline. An instrument that read either the way a person does
would report a smaller number and would not say so.
Expand Down Expand Up @@ -249,8 +249,8 @@ cannot read, and they are neither in nor out.

| how the instrument reached the site | count |
| :--- | ---: |
| receiver carried a readable engine type | 193 |
| receiver erased, placed by the object NAME | 34 |
| receiver carried a readable engine type | 185 |
| receiver erased, placed by the object NAME | 42 |
| receiver erased, placed by an `object: string` PARAMETER | 5 |
| receiver erased, placed by an `UNTYPED_RECEIVERS` row | 5 |

Expand Down Expand Up @@ -307,13 +307,13 @@ holds still. They are required to be HERE and to say WHEN they were true;
their values are not compared. The reasoning, and the measurement behind it,
are in `scripts/check-tenant-audit-census.mjs`.

Measured on 2026-10-22 at `75983184c`.
Measured on 2026-10-23 at `5f4a3f088`.

| corpus scale (not enforced) | count |
| :--- | ---: |
| tracked non-test sources scanned | 708 |
| tracked non-test sources scanned | 712 |
| engine-shaped types recognised | 87 |
| declared objects in the registry | 117 |
| same-named calls subtracted as non-engine | 171 |
| same-named calls subtracted as non-engine | 172 |

{/* END GENERATED: tenant-audit-census */}
15 changes: 8 additions & 7 deletions docs/audits/2026-08-tenant-audit-write-call-sites.counts.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ holds still. They are required to be HERE and to say WHEN they were true;
their values are not compared. The reasoning, and the measurement behind it,
are in `scripts/check-tenant-audit-census.mjs`.

Measured on 2026-10-22 at `75983184c`.
Measured on 2026-10-23 at `5f4a3f088`.

| corpus scale (not enforced) | count |
| :--- | ---: |
| tracked non-test sources scanned | 708 |
| tracked non-test sources scanned | 712 |
| engine-shaped types recognised | 87 |
| declared objects in the registry | 117 |
| same-named calls subtracted as non-engine | 171 |
| same-named calls subtracted as non-engine | 172 |

## Every site

Expand Down Expand Up @@ -130,11 +130,12 @@ Measured on 2026-10-22 at `75983184c`.
| `packages/plugins/plugin-auth/src/admin-user-endpoints.ts` | `update` | `sys_user` | enabled | elevated | 1 |
| `packages/plugins/plugin-auth/src/adopt-membership.ts` | `update` | `SystemObjectName.MEMBER` | undecidable | PROVABLY NONE | 1 |
| `packages/plugins/plugin-auth/src/audience-gate-test-support.ts` | `insert` | `sys_invitation` | enabled | elevated | 1 |
| `packages/plugins/plugin-auth/src/auth-manager-password-session-policy.ts` | `update` | `sys_account` | enabled | options unreadable | 1 |
| `packages/plugins/plugin-auth/src/auth-manager-password-session-policy.ts` | `update` | `sys_session` | enabled | options unreadable | 3 |
| `packages/plugins/plugin-auth/src/auth-manager-password-session-policy.ts` | `update` | `sys_two_factor` | enabled | options unreadable | 1 |
| `packages/plugins/plugin-auth/src/auth-manager-password-session-policy.ts` | `update` | `sys_user` | enabled | options unreadable | 3 |
| `packages/plugins/plugin-auth/src/auth-manager-sign-in-lockout.ts` | `update` | `sys_user` | enabled | options unreadable | 3 |
| `packages/plugins/plugin-auth/src/auth-manager.ts` | `update` | `sys_account` | enabled | options unreadable | 1 |
| `packages/plugins/plugin-auth/src/auth-manager.ts` | `update` | `sys_session` | enabled | options unreadable | 3 |
| `packages/plugins/plugin-auth/src/auth-manager.ts` | `update` | `sys_two_factor` | enabled | options unreadable | 1 |
| `packages/plugins/plugin-auth/src/auth-manager.ts` | `update` | `sys_user` | enabled | options unreadable | 5 |
| `packages/plugins/plugin-auth/src/auth-manager.ts` | `update` | `sys_user` | enabled | options unreadable | 2 |
| `packages/plugins/plugin-auth/src/auth-manager.ts` | `insert` | `sys_user_permission_set` | enabled | elevated | 1 |
| `packages/plugins/plugin-auth/src/auth-manager.ts` | `delete` | `sys_verification` | enabled | elevated | 1 |
| `packages/plugins/plugin-auth/src/auth-manager.ts` | `insert` | `sys_verification` | enabled | elevated | 1 |
Expand Down
7 changes: 6 additions & 1 deletion packages/plugins/plugin-auth/src/api-error-code.pin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,12 @@ describe('every new APIError( in plugin-auth/src carries an ADR-0112 code (#2424
// throw does not have to edit this line; only losing them does.
// [#25224] `AuthManager`'s throws are counted over the files its methods'
// bodies live in: `auth-manager.ts` and the bodies moved out of it whole.
const authManagerFiles = ['auth-manager.ts', 'auth-manager-actor-guards.ts', 'auth-manager-sign-in-lockout.ts'];
const authManagerFiles = [
'auth-manager.ts',
'auth-manager-actor-guards.ts',
'auth-manager-sign-in-lockout.ts',
'auth-manager-password-session-policy.ts',
];
expect(sites.length).toBeGreaterThanOrEqual(30);
expect(new Set(sites.map((s) => s.file)).size).toBeGreaterThanOrEqual(4);
expect(perFile.filter((f) => authManagerFiles.includes(f.file)).reduce((n, f) => n + f.sites.length, 0)).toBeGreaterThanOrEqual(24);
Expand Down
Loading
Loading