Commit 87040f3
committed
test(plugin-auth): satisfy check:test-source-alias on the positions-axis pin
`check:test-source-alias` is the only step making `Lint & Repo Gates` red on
this PR: job 101340631783 fails at step 130 and skips steps 131-148, so the
merge-driver gate that reds other PRs on this seat never runs here. Base-branch
control: the same gate exits 0 on `origin/main` f7db8f4, and the test file is
absent from that ref, so the redness is this PR's.
Both findings are remedied exactly as the gate's own text dictates.
1. `session-positions-security-axis.test.ts:235` paid
`import('@objectstack/core')` inside an `it()` body -- a CLOCKED window, and
`@objectstack/core` is one of the specifiers this package still resolves
through `dist/`. A module-top side-effect import pays that transform during
collection, which vitest clocks against nothing. The dynamic call stays
exactly where it is, and no timeout was widened -- widening relocates the
cliff to the next heavier shard.
2. `@objectstack/formula` was a NEW unaliased artifact import for this package
(`celEngine`, the real CEL engine the pins evaluate `current_user.positions`
with). One anchored entry in the package's `vitest.config.ts` resolves it to
`packages/formula/src/index.ts`, which exists in the checkout.
`KNOWN_UNALIASED_TEST_IMPORTS` is shrink-only, so no registry row was added
or widened; plugin-auth's existing entry is untouched.
Verified: `check:test-source-alias` --self-test and the real run both exit 0,
the real run reporting the same counts as the base-branch control (72 packages
scanned / 61 registered / 49 published subpaths). `pnpm --filter
@objectstack/plugin-auth test` still 102 files / 2142 tests passed, and the
package's full `typecheck` task is green with its test-typecheck ledger
unchanged at 10 file(s) / 94 error(s) / 23 pinned signature(s).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XpTx2tbq3pZRYAdoGt6E6Y1 parent b65fafc commit 87040f3
2 files changed
Lines changed: 21 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
48 | 58 | | |
49 | 59 | | |
50 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
40 | 51 | | |
41 | 52 | | |
42 | 53 | | |
0 commit comments