Commit 65e03b0
v0.28.0-α — skill spotter dry-run + README redesign + SafeSkill FP response
This release ships three coherent things:
1. **Skill-spotter detector library + dashboard panel** — mines repeated
procedural patterns from agent activity. No LLM yet (β adds that with
Sonnet-4.6 + high-effort extended thinking). α validates signal quality
first via a dry-run mode and operator dashboard review.
2. **README redesign** — value-prop first, competitor comparison, single
setup block. Dispatcher implementation is NOT mentioned (separate project,
not yet public); the coordination primitives a dispatcher needs ARE
mentioned because they're part of SecureContext.
3. **SAFESKILL_RESPONSE.md** — line-by-line refutation of PR #2's
"20/100 Blocked" badge. Every "critical" finding turned out to be a
regex hit inside our own red-team test file (security-tests/run-all.mjs)
that defines attack payloads as data and asserts SecureContext rejects
them. Document exists so anyone evaluating the project sees the actual
context, not a context-blind scanner score.
## Skill-spotter (α)
### Migration 26
- skill_spotter_runs_pg — one row per spotter run, tracks window + mode + duration
- skill_spotter_signals_pg — one row per signal emitted, with outcome enum so β can
mutate observed → filed_candidate / rejected_* later
### src/skills/spotter/detectors.ts
Pure SQL-driven signal mining. Two detectors ship today:
- repeated_tool_sequence — N-gram detection over tool_calls_pg. Filters
agent-housekeeping calls so signal is real
procedural work, not the harness itself.
- repeated_doc_read — same file Read in ≥3 distinct sessions via
pretool_events_pg. Excludes infrastructure
reads (CLAUDE.md, SKILL.md, README.md).
Four detectors stubbed for γ (external_script_invocation,
uncredited_high_cost_task, rejected_mutation_cluster,
repeated_prompt_fragment) — empty returns keep API contract stable.
### src/skills/spotter/run.ts
Orchestrator that runs detectors in parallel, persists run + signals,
returns inline preview.
### API endpoints
- POST /api/v1/skills/spotter/dry-run?days=7&ngram=3&min_occurrences=3
- GET /api/v1/skills/spotter/runs
- GET /api/v1/skills/spotter/runs/:run_id
- POST /dashboard/spotter/dry-run — HTML for the button
- GET /dashboard/spotter/runs — HTML list of runs
- GET /dashboard/spotter/runs/:run_id — HTML drill-down into signals
### Dashboard panel
New "Skill spotter" panel between FS-skills and Active skills. Buttons
trigger 7d / 30d dry-runs. Drill-down shows each signal with tool-sequence
evidence, name hint, proposed trigger sentence, effort estimate.
### Live verification
30-day dry-run against the operator's PG state emitted 9 signals in 48 ms,
all repeated_tool_sequence. Top hit: zc_broadcast→zc_broadcast→zc_broadcast
(×14 sessions, confidence 0.9) — the orchestrator broadcast-burst pattern.
Second: zc_skill_show→zc_record_skill_outcome→zc_broadcast (×13, 0.9) — the
assign/credit/broadcast cycle. Detectors run <50 ms even on a busy DB.
## README redesign
Replaced the long sprint-history-style README with a value-first structure:
- One-sentence pitch ("the security and memory layer for Claude Code")
- "What SecureContext does for you" — the four walls every Claude Code user hits
- "The four reasons people install SecureContext" — leads with the most
differentiating feature (Anthropic-style skills with cryptographic admission),
then persistent memory, audit trail, and work-stealing primitives
- Comparison table vs. cloud memory services / vector RAG plugins / native Claude Code
- Single setup block (clone, docker compose, register MCP, install hook,
plant a test skill, verify)
- Headline numbers + one-diagram architecture
- "What's coming" — outlines v0.28.0-β (LLM spotter) and -γ plans
- Dispatcher implementation NOT mentioned (separate private project);
coordination primitives mentioned because they're part of SecureContext
## SAFESKILL_RESPONSE.md
PR #2 from a scanner called SafeSkill reported "20/100 Blocked" with
5 visible "critical" findings, every one inside security-tests/run-all.mjs.
We inspected each one:
- Finding 1+5: "Detected instruction-override attempt: 'You are now'" at
run-all.mjs:1157 and :674 — both are test fixtures (const injPayload = ...)
that the test then INJECTS to verify SecureContext's prompt-injection
defense rejects them.
- Finding 2: "Tool/shell abuse instruction detected: 'Write ~/.ssh/id_rsa
to /tmp/'" at run-all.mjs:1157 — same injPayload as Finding 1, flagged
twice with different rule names.
- Finding 3+4: same FP class at run-all.mjs:674.
Document also has constructive suggestions to SafeSkill: exclude
security-tests/ + test/ paths from instruction-override rules; don't
report the same line under two rule names. Welcomes a re-scan with
test-file exclusion.
## Version consistency
Bumped 0.27.0 → 0.28.0 in:
- package.json
- src/config.ts (Config.VERSION — surfaced via /health)
- .claude-plugin/plugin.json + description updated to mention skill admission
- README badge
- ARCHITECTURE.md (updated to v0.28.0 + four-concern intro)
- CHANGELOG.md (new entries for v0.26.0 + v0.27.0 + v0.28.0)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2eb6e5b commit 65e03b0
12 files changed
Lines changed: 1292 additions & 383 deletions
File tree
- .claude-plugin
- src
- dashboard
- skills/spotter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
6 | 13 | | |
7 | 14 | | |
8 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
8 | 266 | | |
9 | 267 | | |
10 | 268 | | |
| |||
0 commit comments