Commit ad35745
docs(runtime): correct the app-flip read comment falsified by the read gate (#15063)
`packages/runtime/src/domains/packages.ts` justified the publish-drafts app
list read with "left org-aware on purpose — a layered read is a superset,
never a loss". Since `getMetaItems` began resolving `organizationIdForMetaRead`
on `request.type` itself, that read is env-wide for `app`: the registry
declares `app` `allowOrgOverride: false`, so the predicate answers `undefined`
and the `organizationId` this route still passes is dropped at the gate.
The behaviour is correct and unchanged here — an org-scoped `app` row is an
unhydratable phantom that `loadMetaFromDb` walks past, so dropping the
organization is the repair. Only the justification was wrong, and it was wrong
in the direction that invites the next reader to restore the organization and
resurrect those rows. Comment only: the read, the gate and
`organizationIdForMetaWrite` are untouched.
Claude-Session: https://claude.ai/code/session_016yfqQh2dBgPAymYd7xipza
Co-authored-by: Claude <noreply@anthropic.com>1 parent 8af8c2e commit ad35745
1 file changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
595 | | - | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
596 | 612 | | |
597 | 613 | | |
598 | 614 | | |
| |||
0 commit comments