Commit e7dfb1d
`checkOnBoot` was declared on `DatasourceSchema` with `.default(true)` and read
by nothing: `ExternalValidationPlugin.start` hooked `kernel:ready` and called
`runValidation(ctx)` unconditionally. An author who wrote `checkOnBoot: false`
and left `onMismatch` at its default still got the boot sweep, and a measured
mismatch still aborted boot with `ExternalSchemaMismatchError`.
The sweep now resolves each datasource's parsed `checkOnBoot` and drops the
rows of any datasource that set `false` before a verdict is drawn from them:
no `onMismatch` policy, no unreachable-remote warning, not counted in the
all-clear, and one info line naming what was skipped. `true` or absent leaves
the sweep exactly as it was. Uncertainty resolves towards validating — an
absent key, a legacy stored row, or a definition the metadata service could
not read is checked, never inferred to have opted out.
Scope pinned at the maintainer's ruling: the boot step only.
`scheduleDriftChecks()` / `checkIntervalMs` stay independent, stated in an
in-place comment at both read points and held by a test.
Claude-Session: https://claude.ai/code/session_01UjujZN219uFzBhSYfMykCd
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 62e87f1 commit e7dfb1d
3 files changed
Lines changed: 613 additions & 10 deletions
File tree
- .changeset
- packages/runtime/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments