Repository navigation
feat(triage): kit doctor deep-skill-scanner detection + record --deep in triage log (increment 2) - #329
Merged
Conversation
… in triage log (increment 2) Second increment of the triage-skill delegate (design note: kit-research pillar-triage-skill-delegate-5.0.md). - skillspector-delegate: skillspectorStatus() detects the optional delegate (installed? version?) probed with the SAME scrubbed env as a scan, so detection can never touch a provider either. - kit doctor: new "deep skill scanner" row — pass (installed → deep static skill triage available) / skip (not installed → --deep uses built-in checks). Optional delegate, so absence is a skip, never a failure. States plainly that kit never runs SkillSpector's LLM stage. - triage log: record `deep` on the triage entry so a future pre-commit gate can require a deep scan for skills. 6 → 8 delegate tests (+ status-when-absent) and a doctor deep-row test. Full suite 2796/2796. Public surface unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbF4MFePXWNCd4dxBQvqH2
|
✅ Docker image built successfully
|
This was referenced Jul 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Increment 2 of the SkillSpector delegate (
kit triage skill --deep, landed in #327). This wires the delegate into two places so its presence and use are observable — closing the loop between "the deep scanner exists" and "the operator can see whether it ran."Type of Change
Related Issues
Changes Made
kit doctordeep-skill-scanner row (src/doctor.ts):checkDeepSkillScanner()reportspasswhen theskillspectorbinary is installed andskipwhen it's absent (it's an optional deep-scan delegate, not a required tool — never afail). Wired intoallChecksahead of the control-plane row.skillspectorStatus()(src/skillspector-delegate.ts): probes the delegate (mise-first, then PATH) and its--versionusing the same scrubbed env as a scan, so detection itself can never touch a provider or activate Stage 2.deepflag (src/commands/triage.ts):TriageLogEntry.deep?: boolean;recordTriageRun(type, target, sandbox, deep=false)records whether a run used the deep delegate, so the audit trail distinguishes built-in-only triage from delegate-backed triage.Testing
Zero-LLM / no-egress invariant stays enforced and tested:
scrubbedEnvstrips everySKILLSPECTOR_*and provider-key var,stage1Argsnever carries an LLM/provider flag, and an absent binary yields a fail-closedunavailable/skip(never a silent deep-clean).Test Coverage
Added new tests (
skillspectorStatusabsent-binary case; doctor row)All tests pass (
npm test)npx tsc --noEmit— cleannpx eslint src— 0 errors (pre-existing warnings only)npm run build— cleannode scripts/test.mjs— 2796/2796 passPublic surface unchanged (help-text only; no new subcommands) — no
public-surface.jsonregen neededManual Testing
kit doctorwithskillspectorabsent → deep-skill-scanner row showsskip(optional).skillspector, re-run → row showspasswith version.kit triage skill --deep <target>→ triage log entry carriesdeep: true.Breaking Changes
None / N/A
Checklist
npm test)Performance Impact
Reviewer Notes
Fail-closed throughout: the delegate is an optional deep pass.
kit doctordegrades honestly (skip, notfail) when it's absent, and the triage log'sdeepflag makes it auditable whether any given run was delegate-backed or built-in-only.🤖 Generated with Claude Code
Generated by Claude Code