refactor: remove dead descriptor-driven mechanisms (no remaining consumer)

Drop code whose only consumer was a retired runtime: hostBehaviors readers for
agentFileExtension, localTargetIsProjectRoot, sharedHooksDirName,
skillsManifestPrefix and skipCodexSkillsManifest; the empty
NON_REGISTRY_CONFIG_HOME_DESCRIPTORS array and live-config-guard plumbing; the
empty RUNTIME_NOTE_AUDIENCE_BY_HEADING filter; the unused resolveVersionFrom
export; and the WINDSURF_SESSION_ID workstream session key. Delete tests that
only exercised those mechanisms.
This commit is contained in:
Jakub Zych
2026-10-06 20:49:35 +02:00
parent fe3ed06691
commit 6b0b92674a
25 changed files with 63 additions and 912 deletions

View File

@@ -36,7 +36,7 @@ const READ_SCANNER_HOOK = path.join(__dirname, '..', 'hooks', 'msd-read-injectio
// per-index assertion fails if a pattern is edited past its sample.
// Built from fragments (never a complete phrase in source) so this file itself
// does not trip the CI prompt-injection scanner, which scans the PR diff —
// same technique as tests/shared-hooks-dir-resolution.test.cjs (#3175). The
// same technique as the other injection-pattern tests (#3175). The
// assembled runtime strings are still real payloads both hooks must catch.
const SAMPLES = [
// #4016: index 0 is the single filler-tolerant imperative-override pattern