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
Merge remote-tracking branch 'origin/main' into claim/issue-1596
[._.]/ Adam Eivy0a71cfc1373c
diff --cc .changelog/NEXT.mdindex 690f0a4334,8b3f61642b..0d6d93cc51--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -51,8 -57,18 +57,20 @@@## 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`. A pin is **authoritative** — every finding that check raises is stamped with the chosen level, consistently across deterministic *and* LLM checks (a pin overrides both a check's escalation-from-default and an LLM's own per-finding severity, so "pin this check to low" actually means low everywhere). On the next run the pin also re-grades the check's *existing* open findings — even ones a sampled LLM pass doesn't re-surface — so the editorial-health score and any severity-based autopilot gating reflect the pinned level immediately rather than lagging on stale severities. Leaving a check on **Default** preserves its native per-finding nuance untouched. 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-1602] You can now mute a noisy check straight from the findings triage — no round-trip to the catalog.** When a check is generating false-positive spam, silencing it used to mean leaving the triage view, scrolling the catalog to find the check, toggling it off, and coming back. Each finding group now carries a **Disable** action: one click turns the check off (so it's skipped on future runs) and immediately hides its findings group, with an **undo** toast if you change your mind. It's only offered for currently-enabled checks (an already-disabled check has nothing to mute), and disabling never deletes existing findings — it's a sync-safe enabled-flag flip, so re-enabling (via undo, or from the catalog) brings the group back. A hidden group's findings also drop out of the bulk-action selection so nothing gets accepted/dismissed unseen, and the count line + empty-state copy reflect the muted groups. (`client/src/components/pipeline/editorial/EditorialFindingsTriage.jsx`, `client/src/pages/PipelineEditorialChecks.jsx`)++ - **[issue-1601] Opening an editorial finding now scrolls the manuscript to the flagged passage and flashes it, instead of leaving you to hunt for the text.** A finding anchors to manuscript text by a verbatim quote, but opening it (from the findings triage deep-link, the sidebar index, a pin chip, or stepping prev/next through a triage pass) only ever scrolled the note *card* into view — the offending words themselves weren't called out, so on a long scene you still re-read paragraphs to find what the note was about. The editor now scrolls the anchored text to center and plays a brief tint **flash** over the exact words on open and on every prev/next step, in both view modes: **Review** mode reveals + flashes the highlighted span, and **Live** mode reveals + flashes the underlined text (and keeps it tinted while its card stays open). When the anchor quote isn't found verbatim in the current draft (the section was edited since the review), it falls back gracefully to the previous behavior of scrolling the note card into view — no jump, no flash. The scroll-and-flash is a small reusable hook (`useAnchorReveal`) and honors `prefers-reduced-motion`. (`client/src/hooks/useAnchorReveal.js`, `client/src/components/pipeline/manuscript/ManuscriptHighlightedProse.jsx`, `client/src/components/pipeline/manuscript/ManuscriptLiveSection.jsx`, `client/src/components/pipeline/manuscript/AnnotatedManuscriptSection.jsx`, `client/src/index.css`)++ - **[issue-1600] The findings triage list now has filter, search, and sort controls so a large batch can be triaged strategically instead of scrolling a flat list.** Past ~50 findings the per-check list grew unwieldy with no way to focus on, say, just the high-severity open findings from one problematic check. A new toolbar above the list filters by **severity**, **status** (open / accepted / dismissed), **category** (check scope), **check**, and **issue**, plus a free-text **search** over each finding's problem/location and a **sort** order (scope & check, severity, issue, or status — sorting both the findings within each group and the groups themselves). The toolbar only ever offers facets that actually exist in the current findings (a single-value facet is hidden), each surviving group's open/total + severity counts are recomputed so the headers never lie about what's shown, and an empty result shows a clear-filters affordance. Every selection persists in the page URL query (`?fsev=`, `?fstatus=`, `?fscope=`, `?fcheck=`, `?fissue=`, `?fq=`, `?fsort=`), so a filtered view — "high-severity open findings on Issue 5, sorted by severity" — is deep-linkable per the repo's linkable-routes convention. The filter/sort logic lives in pure, unit-tested helpers (`deriveFindingFacets` / `applyFindingsView` in `editorialChecks.js`). (`client/src/components/pipeline/editorial/EditorialFindingsTriage.jsx`, `client/src/lib/editorialChecks.js`)++ - **[issue-1599] The findings triage list now does bulk accept / dismiss — select findings across checks and resolve the whole batch in one action.** The inline accept/dismiss flow (#1598) still resolved one finding at a time, so clearing a noisy run meant clicking through dozens of rows individually. Every open finding now carries a **checkbox**, each check group has a **select-all** header checkbox (with a tri-state "some selected" look), and once anything is selected a **sticky action bar** replaces the count line with **Accept N** / **Dismiss N** / **Clear**. *Accept* applies only the selected findings that carry an applicable fix (the count reflects that subset); *Dismiss* resolves the entire selection. The batch runs sequentially so the accept endpoint's manuscript-section writes don't race on the shared file, each result updates the list + health panel reactively per the repo's optimistic-UI convention, and resolved findings drop out of the selection automatically. A per-finding failure is counted and surfaced in one summary toast (open those in the editor) rather than aborting the rest of the batch. (`client/src/components/pipeline/editorial/EditorialFindingsTriage.jsx`)++ - **[issue-1598] The findings triage list now previews, accepts, and dismisses a check finding inline — no deep-link into the manuscript editor per finding.** The Editorial Checks findings list only ever showed a finding's problem statement; to see (let alone apply) its suggested fix you had to open the manuscript editor one finding at a time, which made batch review impractical — 50 findings meant 50 context switches. Each open finding with a suggested fix now expands a **collapsed before/after diff** right in the triage row (reusing the manuscript card's `InlineDiff` and edit helpers, so the preview matches exactly what the editor would apply), with inline **Accept** and **Dismiss** buttons that apply or resolve the finding without leaving the page and update the list + health panel reactively. Heavier edits — rewriting the replacement text, cherry-picking individual edits within a multi-edit fix — still deep-link into the editor via an "Open in the editor" link. (`client/src/components/pipeline/editorial/EditorialFindingsTriage.jsx`, `client/src/pages/PipelineEditorialChecks.jsx`)++ - **[issue-1597] The editorial health panel now tracks each *check* over time, not just the overall score — a per-check finding-count sparkline that shows whether a given check is improving or regressing run-over-run.** The revision-trend ledger already snapshotted the open-finding counts by severity and category after every editorial-checks / completeness run, so the panel could draw an overall score sparkline and flag categories that regressed — but there was no way to see, say, whether the filter-word count is dropping draft-over-draft or whether name-similarity findings are creeping up as you add characters. Each trend snapshot now also records the open-finding count **per check**, and the Editorial Health panel renders an **Open by check** breakdown: every check with open findings, its current count, a magnitude sparkline of that check's count across the recorded revisions (normalized to its own peak), and a regression flag (`1→4`) when a check got worse since the previous revision. Check ids resolve to their human catalog labels (falling back to the raw id for a since-deleted custom check), and the list caps at the eight worst checks with a "+N more" note so a noisy run can't blow out the panel. Per-check counts are additive, install-local telemetry — snapshots recorded before this shipped simply start accumulating per-check history from the first run after upgrade. (`server/services/pipeline/editorialScore.js`, `client/src/lib/editorialHealth.js`, `client/src/components/pipeline/editorial/EditorialHealthPanel.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`)