ms-ai-architect/ms-ai-architect.local.md.example
Kjell Tore Guttormsen 150b20584e feat(ms-ai-architect): Sesjon 21 — C1 Tier 1 opt-in session-forankret deteksjon (ToS-forankret) [skip-docs]
Spor C fase C1 Tier 1. Ny verifisert ToS-analyse avdekket falsk «enten/eller»:
Consumer Terms §3.7 begrenser automatisert tilgang til Claude/Anthropic, IKKE
kjøring av lokale node-scripts. Deteksjon kontakter aldri Claude → utenfor
ToS-flaten; apply (eneste Claude-steg) forblir manuelt/in-session/gated.

- lib/detection-schedule.mjs (ren): opt-in config (default AV) + shouldRunDetection
  gate + DETECTION_STEPS allow-liste + summarizeSkillLifecycle. Zero-dep parser.
- run-detection.mjs: Claude-FRITT entrypoint — kjører kun `node` på de
  allow-listede deteksjons-scriptene; kan ikke invokere claude (guard-testet).
- session-start-context.mjs: ubetinget bakgrunns-spawn → opt-in (default AV
  spawner ingenting) + surfacer skill-signaler read-only.
- commands/kb-update.md: opt-in-seksjon + ToS-note; ms-ai-architect.local.md.example.

TDD: ny test-detection-schedule.test.mjs (16). kb-update 139→155.
Suiter uendret: validate 239 · kb-eval 100 · kb-integrity 192/192.
0 skills/-mutasjon. Tier 2 (lokal OS-timer, deteksjon-only) = neste økt.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 22:54:18 +02:00

20 lines
1.1 KiB
Text

---
# Opt-in scheduled detection (Spor C / C1). Copy this file to
# `ms-ai-architect.local.md` (gitignored) and flip enabled:true to turn it on.
#
# Detection (poll → report → discovery → skill-lifecycle) is pure node and NEVER
# contacts Claude/Anthropic — it only writes JSON reports under data/. Apply
# (the one Claude step) always stays manual + in-session + gated. The schedule
# is therefore outside the Anthropic ToS surface (Consumer Terms §3.7 restricts
# automated access to "our Services", not local non-Claude scripts).
scheduled_detection:
enabled: false # default OFF — nothing runs until this is true
interval_days: 7 # re-run detection when >= N days since last poll
include_skill_lifecycle: true # include skill-lifecycle detection (overlap/gap/bloat)
---
# ms-ai-architect — local settings
This file holds per-checkout plugin settings. The real file (`ms-ai-architect.local.md`)
is gitignored; this `.example` is the tracked template. See
`commands/kb-update.md` → "Scheduled deteksjon (opt-in)" for details.