1.3 KiB
1.3 KiB
Tasks
- Widen
RequestContext.tenanttoTenantContext | nullinpackages/api-stack/api/api-types/src/plugin-context/plugin-context.types.ts. - Widen
RequestContext.tenantIdtoTenantId | nullat the same site. - Add nullability rationale to the
RequestContextTSDoc block — pointer to gap-5 + handler null-check guidance. - Strip
as neverfromtenantandtenantIdassignments inpackages/api-stack/api/api-host/src/request-pipeline/request-pipeline-helpers.ts. - Replace
capabilities/instrumentsas nevercasts with explicitas RequestContext["capabilities"]/as RequestContext["instruments"]plus a multi-line comment explaining the generic-erasure boundary. - Audit handler-side consumers (apps/demo, apps/testbed,
e2e/foundation-stack, api-plugin-*); confirm none dereference
ctx.tenant.Xwithout?.and no code change needed. bunx turbo lint typecheck test build --filter=@suaveplan/api-types --filter=@suaveplan/api-hostgreen.bunx turbo test:coverage --filter=@suaveplan/api-host --filter=@suaveplan/api-typesgreen.cd e2e/foundation-stack && bunx playwright test— 11/11 green.- Fold MODIFIED delta into
openspec/specs/api-types/spec.md. - Archive change folder under
openspec/archive/2026-05-26-foundation-fix-gap-5-cleanup/.