Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat: per-check editorial severity override (#1596)
[._.]/ Adam Eivy892d33ff27ef
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 9196740304..88c790597a 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -51,6 +51,8 @@## Editorial checks+- **[issue-1596] Override any editorial check's severity to match a series' house style — without touching code.** Every check ships a fixed default severity (e.g. `prose.adverb-density` defaults to `low`), but a literary-fiction series may want adverb density flagged `high` while an action series wants it `low`. Each check in the catalog now has a **Severity** selector: leave it on **Default** to use the registry value, or pin it to `high` / `medium` / `low`. The chosen level is what the runner stamps onto that check's findings (deterministic checks that *escalate* from their base — name-similarity, lettering density, representation balance — escalate from your override too), and it feeds the editorial-health score and any severity-based autopilot gating exactly like a built-in level. The override is backward-compatible and additive (absent → the check's `severityDefault`), and the catalog badge shows the effective level with a `*` marker when it's been overridden. (`server/lib/editorial/checkRegistry.js`, `server/routes/pipeline/editorial.js`, `server/services/pipeline/editorial/checkRunner.js`, `server/lib/validation.js`, `client/src/components/pipeline/editorial/EditorialCheckCard.jsx`, `client/src/pages/PipelineEditorialChecks.jsx`)+- **[issue-1593] The passive-voice check now ignores intentional passive — predicate-adjective states and weather/setting mood images — so it flags far fewer false positives.** `prose.passive-voice` is a cheap be-verb + past-participle heuristic, and the heuristic alone can't tell weak agentive passive ("the door was opened") from passive constructions writers use on purpose: a predicate-adjective state of being ("she was exhausted", "he was determined") isn't an action done to the subject at all, and a setting/weather mood image ("the sky was streaked with red", "the room was bathed in light") is deliberate atmosphere, not flabby prose. Both used to inflate the per-1000-word passive rate and push otherwise-clean sections over the threshold. A context-tuning pass now classifies each candidate `weak` / `stative` / `mood` and, by default, counts only genuine weak passive toward the density score — an explicit "by <agent>" ("she was exhausted *by the climb*") still always counts as weak. The cheap heuristic stays the base tier: a new **Suppress intentional passive** toggle (on by default) can be turned off per series to fall back to counting every be-verb + participle. (`server/lib/editorial/proseTics.js`, `server/lib/editorial/checkRegistry.js`)- **[issue-1581] A new editorial check catches timeline and canon contradictions — a dead character who reappears alive, an age that contradicts the bible, an impossible chronology.** PortOS had no editorial check for internal contradictions against canon and the story's own timeline, so a character killed in issue 3 who walks back in alive in issue 6, an age the prose contradicts (the bible says 16, the page says "in her 30s"), or a journey that takes eight days but is dated to day two could slip through to the reader — the kind of mistake that's nearly impossible to catch by eye once an arc spans months of drafting. The new **Timeline / canon contradiction** check (`continuity.timeline-contradiction`) reconciles the stitched manuscript against the **continuity-bible facts ledger** (the ground-truth ages, dates & elapsed time, locations, and world rules already extracted by the continuity bible), the canon character facts (age, role, status, description), the reverse-outline scene ordering (for chronology), and the authored per-character arcs — flagging each contradiction with the two facts that conflict and a verbatim anchor. It runs across the whole manuscript — carrying each character's last-known state (alive/dead, age, location) forward between chunks so a death-then-resurrection that spans chapters is actually visible — and degrades to a prose-only scan when no canon or outline exists. It's a default-on series check that surfaces in the existing editorial-review UI and Series Autopilot like every other check, marking plot-breaking contradictions high-severity per finding. Its findings go stale (and re-run) when any source it reads drifts — including the continuity-bible ledger — via the new `continuityBible` editorial source. (`server/lib/editorial/checkRegistry.js`, `server/services/pipeline/editorial/checkRunner.js`, `data.reference/prompts/stages/pipeline-editorial-timeline-contradiction.md`, `scripts/migrations/129-editorial-timeline-contradiction-stage.js`)diff --git a/client/src/components/pipeline/editorial/EditorialCheckCard.jsx b/client/src/components/pipeline/editorial/EditorialCheckCard.jsxindex d467ff4df1..adebda51e6 100644--- a/client/src/components/pipeline/editorial/EditorialCheckCard.jsx+++ b/client/src/components/pipeline/editorial/EditorialCheckCard.jsx@@ -6,6 +6,10 @@* Presentational — all persistence is lifted to PipelineEditorialChecks:* onToggle(checkId, nextEnabled) → optimistic enable/disable PATCH* onConfigSave(checkId, nextConfig) → PATCH the global config blob (Promise)+ * onSeveritySave(checkId, severity|null) → PATCH the per-check severity override+ * (#1596); `null` clears it back to the+ * registry default. Optional — the+ * selector only renders when wired.* onSeriesConfigSave(checkId, patch) → merge a PARTIAL per-series override* ({ [key]: value }) for this check (#1591);* pass `null` to clear the whole override.@@ -29,6 +33,7 @@ const SEVERITY_BADGE = {medium: 'bg-amber-500/15 text-amber-300',low: 'bg-gray-500/15 text-gray-300',};+const SEVERITY_LEVELS = ['high', 'medium', 'low'];function ConfigField({ checkId, field, value, disabled, onCommit, resetNonce = 0 }) {const inputId = `cfg-${checkId}-${field.key}`;@@ -88,7 +93,7 @@ function ConfigField({ checkId, field, value, disabled, onCommit, resetNonce = 0}function EditorialCheckCard({- check, saving = false, onToggle, onConfigSave, onEdit, onDelete,+ check, saving = false, onToggle, onConfigSave, onSeveritySave, onEdit, onDelete,seriesId = '', seriesConfig = null, seriesSaving = false, seriesResetNonce = 0, onSeriesConfigSave,}) {const [expanded, setExpanded] = useState(false);@@ -96,6 +101,11 @@ function EditorialCheckCard({const [confirmDelete, setConfirmDelete] = useState(false);const hasConfig = Array.isArray(check.configFields) && check.configFields.length > 0;const isCustom = !!check.isCustom;+ // Effective severity (#1596): the stored override or the registry default.+ // `severityOverride` is the raw stored level (null when defaulting), so the+ // selector can show "Default" distinctly from a level pinned to that value.+ const effectiveSeverity = check.severity || check.severityDefault;+ const canSetSeverity = typeof onSeveritySave === 'function';// A per-series override panel is only meaningful when a series is selected, the// check is tunable, and the parent wired a save handler (#1591).const canOverride = hasConfig && !!seriesId && typeof onSeriesConfigSave === 'function';@@ -110,8 +120,11 @@ function EditorialCheckCard({<span className={`text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded border ${KIND_BADGE[check.kind] || KIND_BADGE.deterministic}`}>{check.kind === 'llm' ? 'LLM' : 'rule'}</span>- <span className={`text-[10px] px-1.5 py-0.5 rounded ${SEVERITY_BADGE[check.severityDefault] || SEVERITY_BADGE.low}`}>- {check.severityDefault}+ <span+ className={`text-[10px] px-1.5 py-0.5 rounded ${SEVERITY_BADGE[effectiveSeverity] || SEVERITY_BADGE.low}`}+ title={check.severityOverride ? `Overridden — default is ${check.severityDefault}` : 'Default severity'}+ >+ {effectiveSeverity}{check.severityOverride ? '*' : ''}</span>{isCustom ? (<span className="text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded border border-emerald-500/30 bg-emerald-500/15 text-emerald-300">@@ -132,6 +145,25 @@ function EditorialCheckCard({</div></div>+ {canSetSeverity ? (+ <div className="flex items-center gap-2">+ <label htmlFor={`sev-${check.id}`} className="text-[11px] text-gray-400">Severity</label>+ <select+ id={`sev-${check.id}`}+ value={check.severityOverride || ''}+ disabled={saving}+ aria-label={`Severity for ${check.label}`}+ onChange={(e) => onSeveritySave(check.id, e.target.value || null)}+ className="rounded border border-port-border bg-port-bg px-1.5 py-0.5 text-[11px] text-gray-100 focus:border-port-accent focus:outline-none disabled:opacity-50"+ >+ <option value="">Default ({check.severityDefault})</option>+ {SEVERITY_LEVELS.map((level) => (+ <option key={level} value={level}>{level}</option>+ ))}+ </select>+ </div>+ ) : null}+{hasConfig ? (<div className="border-t border-port-border/60 pt-2"><buttondiff --git a/client/src/components/pipeline/editorial/EditorialCheckCard.test.jsx b/client/src/components/pipeline/editorial/EditorialCheckCard.test.jsxindex b85a67ae3c..bc64408a7f 100644--- a/client/src/components/pipeline/editorial/EditorialCheckCard.test.jsx+++ b/client/src/components/pipeline/editorial/EditorialCheckCard.test.jsx@@ -43,6 +43,32 @@ describe('EditorialCheckCard', () => {expect(onConfigSave).not.toHaveBeenCalled();});+ describe('per-check severity override (#1596)', () => {+ it('does not render the severity selector when onSeveritySave is absent', () => {+ render(<EditorialCheckCard check={check} onToggle={vi.fn()} onConfigSave={vi.fn()} />);+ expect(screen.queryByRole('combobox', { name: /severity for/i })).toBeNull();+ });++ it('defaults the selector to "Default" and commits a chosen level via onSeveritySave', () => {+ const onSeveritySave = vi.fn();+ render(<EditorialCheckCard check={check} onToggle={vi.fn()} onConfigSave={vi.fn()} onSeveritySave={onSeveritySave} />);+ const select = screen.getByRole('combobox', { name: /severity for/i });+ expect(select.value).toBe(''); // no stored override → "Default"+ fireEvent.change(select, { target: { value: 'high' } });+ expect(onSeveritySave).toHaveBeenCalledWith('naming.dissimilar-names', 'high');+ });++ it('seeds from a stored override and clears it (null) when "Default" is chosen', () => {+ const onSeveritySave = vi.fn();+ const overridden = { ...check, severity: 'high', severityOverride: 'high' };+ render(<EditorialCheckCard check={overridden} onToggle={vi.fn()} onConfigSave={vi.fn()} onSeveritySave={onSeveritySave} />);+ const select = screen.getByRole('combobox', { name: /severity for/i });+ expect(select.value).toBe('high'); // seeded from the override+ fireEvent.change(select, { target: { value: '' } });+ expect(onSeveritySave).toHaveBeenCalledWith('naming.dissimilar-names', null);+ });+ });+describe('per-series override (#1591)', () => {it('hides the override panel when no series is selected', () => {render(<EditorialCheckCard check={check} onToggle={vi.fn()} onConfigSave={vi.fn()} onSeriesConfigSave={vi.fn()} />);diff --git a/client/src/pages/PipelineEditorialChecks.jsx b/client/src/pages/PipelineEditorialChecks.jsxindex a23b4c18ed..1d6267aaba 100644--- a/client/src/pages/PipelineEditorialChecks.jsx+++ b/client/src/pages/PipelineEditorialChecks.jsx@@ -206,6 +206,17 @@ export default function PipelineEditorialChecks() {.finally(() => setSavingIds((s) => { const n = new Set(s); n.delete(checkId); return n; }));}, []);+ // Per-check severity override (#1596). Like config saves it reads server+ // settings, so it joins savingIds to gate the run buttons; `severity === null`+ // clears the override back to the registry default.+ const handleSeveritySave = useCallback((checkId, severity) => {+ setSavingIds((s) => new Set(s).add(checkId));+ patchEditorialCheck(checkId, { severity }, { silent: true })+ .then((row) => { if (row) setChecks((rows) => rows.map((r) => (r.id === checkId ? row : r))); })+ .catch((err) => toast.error(err.message || 'Failed to save severity'))+ .finally(() => setSavingIds((s) => { const n = new Set(s); n.delete(checkId); return n; }));+ }, []);+// ---- Per-series config override (#1591). The override map lives on the SERIES// record (`editorialCheckConfig`); a save PATCHes the series and the runner// overlays it on the global config. Saves are NON-optimistic (mirrors@@ -502,6 +513,7 @@ export default function PipelineEditorialChecks() {saving={savingIds.has(check.id)}onToggle={handleToggle}onConfigSave={handleConfigSave}+ onSeveritySave={handleSeveritySave}seriesId={seriesId}seriesConfig={seriesOverrides?.[check.id] || null}seriesSaving={savingSeriesIds.has(check.id)}diff --git a/server/lib/editorial/checkRegistry.js b/server/lib/editorial/checkRegistry.jsindex b91025b271..e3172c4c19 100644--- a/server/lib/editorial/checkRegistry.js+++ b/server/lib/editorial/checkRegistry.js@@ -6265,13 +6265,20 @@ export const readReadinessGate = (settings) => {return typeof gate === 'string' && gate ? gate : null;};+// Resolve a check's EFFECTIVE severity from its persisted per-check row: a valid+// stored `severity` override (#1596) wins, otherwise the registry default. Kept+// pure + tiny so resolveCheckState and the runner agree on the same fallback.+export const resolveCheckSeverity = (check, row) =>+ (SEVERITIES.includes(row?.severity) ? row.severity : check.severityDefault);+/*** Merge the static registry with persisted per-check state from settings.* Returns one row per registered check:* { id, label, description, scope, kind, category, severityDefault,- * enabled, config, configFields }+ * severity, enabled, config, configFields }* `enabled` falls back to the check's `defaultEnabled`; `config` is validated- * through the check's schema (with defaults); `configFields` is the wire-safe+ * through the check's schema (with defaults); `severity` is the EFFECTIVE level+ * (a valid stored override or `severityDefault`); `configFields` is the wire-safe* render descriptor the UI builds its config form from (empty array when the* check declares none).*/@@ -6290,7 +6297,14 @@ export function resolveCheckState(settings) {scope: check.scope,kind: check.kind,category: check.category,+ // `severityDefault` is the registry baseline (what the override resets to);+ // `severity` (#1596) is the effective level the runner stamps onto findings;+ // `severityOverride` is the raw stored override (or null when falling+ // through to the default), so the catalog can show "Default" distinctly+ // from a level pinned to the same value as the default.severityDefault: check.severityDefault,+ severity: resolveCheckSeverity(check, row),+ severityOverride: SEVERITIES.includes(row.severity) ? row.severity : null,enabled,config: resolveCheckConfig(check, row.config),configFields: Array.isArray(check.configFields) ? check.configFields : [],@@ -6312,14 +6326,17 @@ export function getEnabledCheckRows(settings, subsetIds = null) {/*** The checks that should actually run for a given settings + optional subset.- * Returns `{ check, config }` pairs (the live registry entry + its resolved- * config) for every enabled check, narrowed to `subsetIds` when provided.+ * Returns `{ check, config, severity }` pairs (the live registry entry, its+ * resolved config, and its EFFECTIVE severity — the stored override or the+ * registry default, #1596) for every enabled check, narrowed to `subsetIds`+ * when provided. The runner stamps `severity` (not `check.severityDefault`)+ * onto findings, so a per-check override is honored at run time.*/export function getEnabledChecks(settings, subsetIds = null) {// Resolve against built-ins + custom checks (getCheck only knows built-ins).const byId = new Map(getAllChecks(settings).map((c) => [c.id, c]));return getEnabledCheckRows(settings, subsetIds)- .map((row) => ({ check: byId.get(row.id), config: row.config }))+ .map((row) => ({ check: byId.get(row.id), config: row.config, severity: row.severity })).filter((x) => x.check);}@@ -6333,11 +6350,13 @@ export function getEnabledChecks(settings, subsetIds = null) {* parse the global config is kept unchanged (NOT reset to schema defaults).** Pure + side-effect-free. Returns the input array unchanged when `seriesOverrides`- * is absent/non-object, so a series that tunes nothing pays no allocation.+ * is absent/non-object, so a series that tunes nothing pays no allocation. The+ * effective `severity` carried by each pair (#1596) is preserved verbatim — the+ * per-series override layer only tunes `config`, not severity.*- * @param {Array<{check: object, config: object}>} enabled pairs from getEnabledChecks+ * @param {Array<{check: object, config: object, severity?: string}>} enabled pairs from getEnabledChecks* @param {Record<string, object>|null|undefined} seriesOverrides series.editorialCheckConfig- * @returns {Array<{check: object, config: object}>}+ * @returns {Array<{check: object, config: object, severity?: string}>}*/export function applySeriesCheckConfig(enabled, seriesOverrides) {if (!Array.isArray(enabled)) return [];@@ -6345,11 +6364,14 @@ export function applySeriesCheckConfig(enabled, seriesOverrides) {|| Object.keys(seriesOverrides).length === 0) {return enabled;}- return enabled.map(({ check, config }) => {+ return enabled.map((pair) => {+ const { check, config } = pair;const override = seriesOverrides[check.id];- if (!override || typeof override !== 'object' || Array.isArray(override)) return { check, config };+ if (!override || typeof override !== 'object' || Array.isArray(override)) return pair;const parsed = check.configSchema.safeParse({ ...config, ...override });- return { check, config: parsed.success ? parsed.data : config };+ // Spread `pair` so the effective `severity` (and any future per-pair field)+ // rides through unchanged; only `config` is overlaid.+ return { ...pair, config: parsed.success ? parsed.data : config };});}diff --git a/server/lib/editorial/checkRegistry.test.js b/server/lib/editorial/checkRegistry.test.jsindex df9bad5767..ad0e510ebb 100644--- a/server/lib/editorial/checkRegistry.test.js+++ b/server/lib/editorial/checkRegistry.test.js@@ -10,6 +10,7 @@ import {assertValidChecks,resolveCheckConfig,resolveCheckState,+ resolveCheckSeverity,getEnabledChecks,applySeriesCheckConfig,buildCustomCheck,@@ -296,6 +297,55 @@ describe('applySeriesCheckConfig — per-series config overrides (#1591)', () =>});});+describe('per-check severity override (#1596)', () => {+ const LETTERING = 'comic.lettering-density';+ const checksSettings = (id, severity) => ({ pipelineEditorialChecks: { checks: { [id]: { severity } } } });+ // The opposite of a check's default so an override is observably different.+ const flip = (id) => (getCheck(id).severityDefault === 'high' ? 'low' : 'high');++ it('falls through to the registry default when no override is stored', () => {+ const row = resolveCheckState({}).find((r) => r.id === NAMING);+ expect(row.severity).toBe(getCheck(NAMING).severityDefault);+ expect(row.severityOverride).toBeNull();+ });++ it('applies a valid stored override as the effective severity (baseline preserved)', () => {+ const target = flip(NAMING);+ const row = resolveCheckState(checksSettings(NAMING, target)).find((r) => r.id === NAMING);+ expect(row.severity).toBe(target);+ expect(row.severityOverride).toBe(target);+ expect(row.severityDefault).toBe(getCheck(NAMING).severityDefault);+ });++ it('ignores an invalid stored override (falls back to the default, no phantom override)', () => {+ const row = resolveCheckState(checksSettings(NAMING, 'critical')).find((r) => r.id === NAMING);+ expect(row.severity).toBe(getCheck(NAMING).severityDefault);+ expect(row.severityOverride).toBeNull();+ });++ it('resolveCheckSeverity is the shared fallback helper', () => {+ const check = getCheck(NAMING);+ expect(resolveCheckSeverity(check, { severity: 'medium' })).toBe('medium');+ expect(resolveCheckSeverity(check, { severity: 'nope' })).toBe(check.severityDefault);+ expect(resolveCheckSeverity(check, {})).toBe(check.severityDefault);+ expect(resolveCheckSeverity(check, undefined)).toBe(check.severityDefault);+ });++ it('getEnabledChecks threads the effective severity for the runner', () => {+ const target = flip(NAMING);+ expect(getEnabledChecks(checksSettings(NAMING, target), [NAMING])[0].severity).toBe(target);+ expect(getEnabledChecks({}, [NAMING])[0].severity).toBe(getCheck(NAMING).severityDefault);+ });++ it('applySeriesCheckConfig preserves the effective severity through a config overlay', () => {+ const target = flip(LETTERING);+ const enabled = getEnabledChecks(checksSettings(LETTERING, target), [LETTERING]);+ const out = applySeriesCheckConfig(enabled, { [LETTERING]: { maxWordsPerBalloon: 12 } });+ expect(out[0].severity).toBe(target); // severity rides through untouched+ expect(out[0].config.maxWordsPerBalloon).toBe(12); // config still overlaid+ });+});+describe('prose.info-dumping — LLM check', () => {// Default ctx: the runner-injected chunker resolves to a single whole-corpus// chunk (the common "provider fits the book" case). Tests that exercisediff --git a/server/lib/validation.js b/server/lib/validation.jsindex bf4172b3fb..2bf4fe078d 100644--- a/server/lib/validation.js+++ b/server/lib/validation.js@@ -1026,6 +1026,12 @@ export const writersRoomLiveRenderPreviewSchema = z.object({}).strict();export const editorialCheckConfigSchema = z.object({enabled: z.boolean().optional(),config: z.record(z.unknown()).optional(),+ // Optional per-check severity override (#1596). Absent falls through to the+ // check's registry `severityDefault`; an explicit `null` CLEARS a previously+ // stored override (so the catalog "Default" option resets to the registry+ // value rather than pinning a level). Bounded to the registry's own severity+ // enum so the wire gate can't drift from resolveCheckState.+ severity: z.enum([...CHECK_SEVERITIES]).nullable().optional(),}).strict();// POST .../editorial/checks/run — run all enabled checks, or a named subset.diff --git a/server/routes/pipeline/editorial.js b/server/routes/pipeline/editorial.jsindex a276d638e4..0ed31ca27f 100644--- a/server/routes/pipeline/editorial.js+++ b/server/routes/pipeline/editorial.js@@ -152,6 +152,12 @@ router.patch('/editorial/checks/:id', asyncHandler(async (req, res) => {const nextEntry = { ...prev };if (body.enabled !== undefined) nextEntry.enabled = body.enabled;if (body.config !== undefined) nextEntry.config = body.config;+ // Per-check severity override (#1596): a level pins it, `null` clears the+ // stored override so the check falls back to its registry severityDefault.+ if (body.severity !== undefined) {+ if (body.severity === null) delete nextEntry.severity;+ else nextEntry.severity = body.severity;+ }return { ...current, pipelineEditorialChecks: { ...slice, checks: { ...checks, [check.id]: nextEntry } } };});res.json(resolveCheckState(updated).find((r) => r.id === check.id));diff --git a/server/routes/pipeline/editorial.test.js b/server/routes/pipeline/editorial.test.jsindex fb8cb70754..ff6cc98b61 100644--- a/server/routes/pipeline/editorial.test.js+++ b/server/routes/pipeline/editorial.test.js@@ -97,6 +97,34 @@ describe('PATCH /api/pipeline/editorial/checks/:id', () => {const res = await request(app).patch('/api/pipeline/editorial/checks/nope.nope').send({ enabled: true });expect(res.status).toBe(404);});++ it('persists a severity override and surfaces it on the resolved row (#1596)', async () => {+ const res = await request(app)+ .patch('/api/pipeline/editorial/checks/naming.dissimilar-names')+ .send({ severity: 'high' });+ expect(res.status).toBe(200);+ expect(res.body.severity).toBe('high');+ expect(res.body.severityOverride).toBe('high');+ expect(settingsStore.pipelineEditorialChecks.checks['naming.dissimilar-names'].severity).toBe('high');+ });++ it('clears a severity override on null (falls back to the registry default)', async () => {+ await request(app).patch('/api/pipeline/editorial/checks/naming.dissimilar-names').send({ severity: 'high' });+ const res = await request(app)+ .patch('/api/pipeline/editorial/checks/naming.dissimilar-names')+ .send({ severity: null });+ expect(res.status).toBe(200);+ expect(res.body.severityOverride).toBeNull();+ expect(res.body.severity).toBe(res.body.severityDefault);+ expect(settingsStore.pipelineEditorialChecks.checks['naming.dissimilar-names'].severity).toBeUndefined();+ });++ it('rejects an out-of-enum severity (400)', async () => {+ const res = await request(app)+ .patch('/api/pipeline/editorial/checks/naming.dissimilar-names')+ .send({ severity: 'critical' });+ expect(res.status).toBe(400);+ });});describe('POST /api/pipeline/series/:id/editorial/checks/run', () => {diff --git a/server/services/pipeline/editorial/checkRunner.js b/server/services/pipeline/editorial/checkRunner.jsindex 11035293f3..60c42a79af 100644--- a/server/services/pipeline/editorial/checkRunner.js+++ b/server/services/pipeline/editorial/checkRunner.js@@ -552,10 +552,13 @@ export async function runEditorialChecks(seriesId, options = {}) {// must dismiss their now-stale prior open comments.const deterministicRanIds = new Set();let canceled = false;- for (const { check, config } of enabledResolved) {+ for (const { check, config, severity } of enabledResolved) {if (signal?.aborted) { canceled = true; break; }onProgress?.({ type: 'check:start', checkId: check.id, label: check.label });- const ctx = { ...baseCtx, config, severityDefault: check.severityDefault };+ // `severity` is the effective per-check level (#1596): the user's stored+ // override or the registry default. Fall back to the registry default if a+ // pair somehow arrives without one (defensive for older getEnabledChecks).+ const ctx = { ...baseCtx, config, severityDefault: severity || check.severityDefault };// Boundary try/catch: a check's run() calls into arbitrary logic / LLM// providers — one bad check must not abort the whole pass (mirrors the// per-comment fix guard in seriesAutopilot.runEditorial).