forked from bchanot/claude
chore(memory): BDR-141, LRN-270/271, TODO, contract and plan — claude.ai skills off
This commit is contained in:
1 parent
07406ce057
commit
dcfa23f3b8
6 files changed
+93
-1
No files matched your search
@@ -1522,3 +1522,10 @@ Supersedes [[BDR-030]].
|
||||
- **Alternatives rejected**: raise cleanupPeriodDays (reverses secret hygiene); cron job (machinery, background claude); labels committed (client names on Gitea); one joint gate (prompt waits on rare tool channel); Stop-hook cited flag (BDR-125).
|
||||
- **Deviations from spec (user-gated 2026-11-07)**: reader in lib/ not mods/ (plugin validate/test scope); miss causes no-overlap|overlap only; labels.tsv without cited; noisy/promotion lines carry repo tag.
|
||||
- **Reference**: feature/memory-feedback 21483dc..b44b19f; contract .claude/tasks/contracts/2026-11-06-memory-feedback-4d-1825.md. See [[BDR-125]], [[BDR-137]], [[BDR-100]].
|
||||
|
||||
## BDR-141 — claude.ai-synced skills off via global skillOverrides, not sync flag or profiles [accepted] (2026-11-09)
|
||||
- **Decision**: claude.ai-synced skills (19: docx, pptx, xlsx, pdf, docs, computer-use, cv-*, veille-emploi…) turned off by top-level `skillOverrides` {name: "off"} in tracked user settings.json. Global so plain `claude` (no profile = full, user rule 2026-11-09) gets it. Project re-enables one: `{"skillOverrides":{"<name>":"on"}}` in `.claude/settings.local.json` (per-key merge proven). Budget stays 50000.
|
||||
- **Why**: measured `/context` full headless 32.2k → 28.5k (Skills 16.2k → 12.5k); budget 50000 paid mostly synced skills (0.5k → 3.7k), our 44 skills keep descriptions even at default budget. Synced skills irrelevant in coding sessions.
|
||||
- **Alternatives rejected**: `syncClaudeAiSkills: false` (moves synced skills to `~/.claude/skills/.trash/`, not reversible per project); skillOverrides in profile fragments (session without profile reads no fragment); lower budget (40000 = 50000 once synced off, no gain).
|
||||
- **Also 2026-11-09**: user removed Higgsfield + unused claude.ai connectors at account level → MCP instr 2.4k → 0.77k on full; profile `deniedMcpServers` now dead (cleanup queued). Full headless 32.2k → 26.9k total.
|
||||
- **Amends** [[BDR-134]] "nothing global": account-level noise cut globally, packs/profiles untouched. Ref: feature/claude-ai-skills-off 47438f4, contract .claude/tasks/contracts/2026-11-09-claude-ai-skills-off-1253.md. See [[BDR-125]].
|
||||
@@ -706,3 +706,6 @@ rules:
|
||||
## 2026-11-08
|
||||
- 2026-11-08: 4d memory feedback built on feature/memory-feedback (8 tasks SDD; plan r1 FATAL(7) → r2 → confirm FATAL(4) → r3; final review I1 locals + I2 per-trigger n; gate 2 hardening x2: checkDir fail-closed, items.json validated, safe repo path). make test green, GATE 0 MET, security PASS 0 findings; live record zenquality cands 11 ms 1408. BDR-140, LRN-267/268. Merged on user signal before GATE 1; live run + verifier after.
|
||||
- 2026-11-08: /hotfix comm warning: uutils sort locale vs comm byte order in memory-commit _partial_stages; LC_ALL=C both, test red-before (sorted order) then 21/21; security PASS; 54bdfeb. LRN-269.
|
||||
|
||||
## 2026-11-09
|
||||
- 2026-11-09: BDR-125 residual measured: 30.2k→40k = Skills +6.2k (budget paid claude.ai-synced skills) + System tools (unattributable). /feat claude-ai-skills-off: global skillOverrides 19 off, 47438f4 + 07406ce; GATE 0 MET, verifier ECARTS(1)→CONFORME, security PASS. User removed claude.ai connectors. BDR-141, LRN-270/271. Merge on signal; next: dead deniedMcpServers cleanup.
|
||||
@@ -1996,3 +1996,13 @@ Rule: when editing a doctrine file under structure locks, grep the test's lock s
|
||||
- **Pattern**: uutils coreutils 0.10.0 (Ubuntu 26.04 default `sort`/`comm`): `sort` collates by locale (en_US.UTF-8: `.claude/tasks/contracts/x` before `.claude/tasks/TODO.md`), `comm` expects byte order → `comm: file N is not in sorted order`, rc 1, common lines can be missed. Fix: `LC_ALL=C` on every link (`LC_ALL=C sort` + `LC_ALL=C comm`/`join`). Test discriminates only with `LC_ALL=en_US.UTF-8`; `LC_ALL=''` makes uutils fall back to byte order (bug hidden).
|
||||
- **Context**: `lib/memory-commit.sh` `_partial_stages`, warning seen on a memory commit; fix 54bdfeb, test in lib/tests/run-deterministic.sh.
|
||||
- **Future use**: any `sort | comm|join|uniq` pipeline in shell libs: pin C locale on both sides; grep `comm -`/`join -` in review.
|
||||
|
||||
## LRN-270 — /context measurement facts CLI 2.1.319: headless free but defers built-ins, MCP deny is a union, skillOverrides merges per key (2026-11-09)
|
||||
- **Pattern**: `/context` measurement facts, CLI 2.1.319: `claude -p "/context" --output-format json` = 0 tokens, ~4 s, loads claude.ai connectors (contradicts phase 5 fact LRN-248 on 2.1.316), BUT defers nearly all built-in tools → headless total ≈ interactive − ~7.7k (System tools row absent). `/context all` lists MCP, agents, skills per item; System tools never per item. `deniedMcpServers` = union across scopes: `--settings` with `[]` or `allowedMcpServers` cannot lift a lower-scope deny. `skillOverrides` reaches claude.ai-synced and built-in skills (not plugin skills), merges per key across scopes (user off + local "on" → 1 back). `ENABLE_TOOL_SEARCH=true` = default (no change); `false` → full 181k (MCP inline).
|
||||
- **Context**: 2026-11-09 BDR-125 residual measure 30.2k → 40k. Tool-search-threshold hypothesis for dev System tools 11.3k vs full 7.7k disproved (true changes nothing interactive; Higgsfield deny on full keeps 7.7k); cause = some pack off, unattributable via /context.
|
||||
- **Future use**: headless `/context` for A/B deltas (free, overlay via `--settings`); interactive for System tools totals; plan control runs must discriminate (count all synced = 1, not just "docx present": wholesale replace would also pass).
|
||||
|
||||
## LRN-271 — gates.sh make test oracle needs GATES_TIMEOUT=600 and bun on PATH (2026-11-09)
|
||||
- **Pattern**: contract CHECK running `make test` here → NOT-MET `timeout=120s` under gates.sh default, and red memory/memory-feedback suites when `bun` not on PATH. Run gate as `GATES_TIMEOUT=600 PATH="$HOME/.bun/bin:$PATH" bash ~/.claude/lib/gates.sh run <contract>`.
|
||||
- **Context**: /feat claude-ai-skills-off 2026-11-09: feater reported criterion 3 red (bun), first GATE 0 NOT-MET on timeout though suite green (rc 0, all suites green).
|
||||
- **Future use**: every contract with a `make test` oracle in this repo: brief executor + gate run with both env vars; consider default timeout per contract.
|
||||
Reference in new issue
Block a user