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
@@ -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