linkedin-studio/hooks/scripts/__tests__
Kjell Tore Guttormsen 677eab9294 feat(linkedin-studio): N13 — publiserings-slots + vacancy-varsel + WIP-roll-up + slot-default [skip-docs]
A1-10 + D-5. The queue answers "what is scheduled"; nothing answered "is the week
covered, and what is still being written". N13 makes both readable at session start.

- Publishing slots are operator config: profile/publishing-slots.json in the per-user
  data dir, schema + OPT-IN template in config/publishing-slots.template.json. The
  plugin ships no publishing times and writes the grid for nobody; absent config means
  every slot surface stays silent (same never-nag discipline as the trend/brain nudges).
  Data dir rather than the state file, which is machine-written and whose frontmatter
  reader does not parse lists.
- hooks/scripts/slots.mjs (new): one implementation behind four surfaces. Zero-dep (a
  SessionStart hook must not spawn tsx), pure core (dates in as strings, no clock),
  imported by the commands exactly as queue-manager.mjs already is — so session-start's
  vacancy warning and Step 10's slot default cannot drift apart.
- Coverage counts the short-form queue (scheduled/published; cancelled frees the slot)
  AND editions-register rows claiming that date, counted per date, so long-form and
  short-form cannot be double-booked and a two-slot day needs two posts.
- Session start gains "## Editions in Flight" (series, phase, next action, claimed slot,
  days in flight) and "## Publishing Slots" (next open slot, open count in 14 days, and
  how to fill it when the gap is <=3 days). The existing discovery nudge is untouched.
- /linkedin router + /linkedin:calendar surface the same roll-up; calendar documents the
  opt-in copy. /linkedin:newsletter Step 10 defaults to the next open slot (one
  confirmation, not an interview) and writes --slot onto the register row.
- D-5: references/scheduling-strategy.md marked "confidence: low / directional" per the
  algorithm reference's own standard, deferring to the operator's grid and their own
  analytics. Neutral example time replaces the operator-specific one in the N12 docs.

TDD: red proven first (module absent; 5 session-start behaviours failing).
hooks 140 -> 174 · test-runner 184 -> 197 (Section 16t: 13 unconditional greps incl. a
de-niche check that no publishing time is hardcoded in the slot path and no operator grid
is committed, + non-vacuity self-test; anti-erosion floor 166 -> 179).
Suites green: trends 300/0 · brain 134/0 · editions 72/0 · specifics-bank 45/0 ·
tests 35/0 · render 60/0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QxvWAjte7vPcF79QeSRvRJ
2026-07-25 07:28:48 +02:00
..
clipboard-helper.test.mjs fix(linkedin-studio): S29d terminology-scrub — "thought leadership" → neutral (skills/config/assets/hooks-test) 2026-06-20 06:19:10 +02:00
data-root.test.mjs test(linkedin-studio): M0-3 — resolver twin-consistency test (R2) 2026-06-18 11:12:50 +02:00
ical-generator.test.mjs refactor(linkedin)!: rename plugin linkedin-thought-leadership → linkedin-studio (v3.0.0) 2026-05-29 11:32:02 +02:00
linkedin-content-filter.test.mjs refactor(linkedin-studio): M0-10 — content-filter recognizes external drafts (after negatives, before infraDirs) 2026-06-18 11:50:04 +02:00
migrate-data.test.mjs feat(linkedin-studio): SB-S3e — retire dead content-history + read-side brain reconcile [skip-docs] 2026-06-23 22:13:45 +02:00
personalization-score.test.mjs chore(linkedin-studio): M0-13 — 4 D2 templates + scrub leak + scaffold fallback 2026-06-18 12:19:48 +02:00
queue-manager.test.mjs refactor(linkedin-studio): M0-5 — queue-manager.mjs via getDataRoot('drafts') 2026-06-18 11:31:56 +02:00
quick-import.test.mjs refactor(linkedin-studio): M0-6 — quick-import.mjs via getDataRoot + fix printed path 2026-06-18 11:35:14 +02:00
session-start-brain-consolidation.test.mjs feat(linkedin-studio): SB-S2 session-start scaffold-ensure + consolidation nudge [skip-docs] 2026-06-23 17:07:48 +02:00
session-start-morning-brief.test.mjs feat(linkedin-studio): RE-R2b — dated morning-brief artifact + session-start surfacing [skip-docs] 2026-06-24 13:12:54 +02:00
session-start-remember.test.mjs refactor(linkedin-studio): M0-9 — REMEMBER.md materializes external (anti-pattern fix) 2026-06-18 11:48:24 +02:00
session-start-slots.test.mjs feat(linkedin-studio): N13 — publiserings-slots + vacancy-varsel + WIP-roll-up + slot-default [skip-docs] 2026-07-25 07:28:48 +02:00
session-start-trends-staleness.test.mjs feat(linkedin-studio): trend-store staleness nudge — SessionStart B-S3 [skip-docs] 2026-06-23 12:23:53 +02:00
slots.test.mjs feat(linkedin-studio): N13 — publiserings-slots + vacancy-varsel + WIP-roll-up + slot-default [skip-docs] 2026-07-25 07:28:48 +02:00
state-updater.test.mjs fix(linkedin-studio): N1 — prune-regex no-op + dato-uavhengige kalender-fixtures (TDD) [skip-docs] 2026-07-16 20:03:05 +02:00
user-prompt-context.test.mjs refactor(linkedin-studio): M0-8 — voice read via getDataRoot (SC7) 2026-06-18 11:45:14 +02:00
week-rollover.test.mjs feat(ultraplan-local): v1.6.0 — /ultraresearch-local deep research command 2026-04-08 08:58:35 +02:00