Skip to content

docs(skills): the description cap is spent by neighbours, not by its author - #700

Merged
athvin merged 1 commit into
mainfrom
fix/ducklake-perf-followups
Nov 6, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/ducklake-perf-followups

Conversation

@athvin

@athvin athvin commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Follow-up to #683. That PR added three routing tails to three neighbours'
descriptions; a dozen sibling skill audits merged the same day did the same, and
the collection arrived at the cap:

  3  frontend-data-ui
  8  ci-and-supply-chain
 12  aws-account-operations
 14  ducklake-lakehouse

characters of headroom against the 1,024 gated maximum. ducklake-lakehouse
took appended clauses from three different sessions in one day, and one of them
had already been compressed to fit by the time the third arrived.

The standard documented the cap and the both-ways routing obligation separately
and never connected them, so nothing told an author that the field they are
appending to is shared and nearly full. The failure mode is not the gate — the
gate fails honestly at 1,025. It is the author who, finding no room, silently
drops the routing clause instead, because the cap is visible and the overlap it
was closing is not. That trades a loud failure for a mis-selected skill at
runtime.

So: state the coupling where the description rules live, give the one-liner
that prints per-skill headroom, and say which clause to sacrifice when there is
no room — the "what", never the trigger vocabulary, since the body carries the
former and only this field carries the latter.

Verified: snippet run verbatim against the tree (output above is its own);
make skills-check green, generated references current — the edit sits outside
the skill-inventory block.

Not fixed here, deliberately: frontend-data-ui at 3 characters needs its own
description shortened, which is a judgement about which of its clauses earns the
space and belongs to an audit of that skill rather than to this one.


Follow-ups from #683, and what became of each

Item Outcome
Prove the main loop closed (my merge SHA's rust run was cancelled) verified, no change — 9 of 15 post-merge runs were cancelled by the burst, but 6cd96071, 20a77159 and tip 08622516 each concluded green and each contains ca401b8a. The 20a77159 run includes agent skills (lint + drift), both e2e tiers, entities and the 50k scale golden
#685's collision on ducklake-lakehouse's description verified, no change — both clauses survived the rebase; that line is now 1010/1024, which is what this PR is about
Finding 9 — trim the generic sort guidance in ducklake-performance/references/tuning.md skipped, I disagree with it now. See below
Post-merge consistency sweep one real finding, not mine to fix. See below

Finding 9: declined

My own audit ranked it LOW and asked for a second opinion before any deletion. Re-reading references/tuning.md:58-70, the apparently-generic lines each attach to a decision the skill exists to make: "multiple sort columns primarily favour predicates on the leading key" is precisely what makes a two-column order_by proposal wrong when the selective predicate is on the second column, and the one genuinely contentless line ("an ORDER BY aligned with the filters queries actually use may help") is the positive setup for its paired negative about broad joins. Deleting one to three lines from a 142-line reference is churn with a real chance of removing a guard. Declining is the honest resolution of a finding that asked to be confirmed.

Sweep finding: security cites a harness that was never written

Not from this merge, and not fixed here. .claude/skills/security/SKILL.md:119 locks the prompt-injection / PII→LLM class to:

frontend/tests/unit/assistant-tools.test.ts + functional spec

Neither file exists, and git log --all for that path is empty — they were never added, not deleted. Meanwhile the surface is live: frontend/src/lib/assistant/tools.ts, frontend/src/components/assistant/assistant-chat.tsx, and an internet-reachable route at frontend/src/app/api/orgs/[org]/datasets/[ds]/assistant/route.ts.

This is worse than a stale path. That skill's stated purpose is "the exact existing test harness that locks each one", so the row reads as covered to a reviewer and to a /pentest run deciding where a regression test belongs. Ten other test files do mention the assistant surface (agent-actions.test.ts, ai-resolve.test.ts, component/action-card.test.tsx), so a correct harness may well exist under another name — but whether any of them locks cross-org tool calls needs them read, which is /skill-audit security (or /pentest scoped to that category), not a path substitution. Guessing a filename here would be the exact error my audit protocol calls "inventing a finding from a filename".

Checked and benign, so nobody re-reports them: rust/target and rust/.claude/skills/ (build output and symposium-generated), .claude/settings.local.json (gitignored), docs/security/ (the pentest playbook says to create it), docs/postmortem-template.md (inside a fenced example template in skill-writer), and frontend-bff's scripts/check-bff-*.mjs (correct relative to frontend/, where pnpm authz:check runs). No routing tail names a skill that does not exist.

🤖 Generated with Claude Code

…author

Follow-up to #683. That PR added three routing tails to three neighbours'
descriptions; a dozen sibling skill audits merged the same day did the same, and
the collection arrived at the cap:

      3  frontend-data-ui
      8  ci-and-supply-chain
     12  aws-account-operations
     14  ducklake-lakehouse

characters of headroom against the 1,024 gated maximum. `ducklake-lakehouse`
took appended clauses from three different sessions in one day, and one of them
had already been compressed to fit by the time the third arrived.

The standard documented the cap and the both-ways routing obligation separately
and never connected them, so nothing told an author that the field they are
appending to is shared and nearly full. The failure mode is not the gate — the
gate fails honestly at 1,025. It is the author who, finding no room, silently
drops the routing clause instead, because the cap is visible and the overlap it
was closing is not. That trades a loud failure for a mis-selected skill at
runtime.

So: state the coupling where the `description` rules live, give the one-liner
that prints per-skill headroom, and say which clause to sacrifice when there is
no room — the "what", never the trigger vocabulary, since the body carries the
former and only this field carries the latter.

Verified: snippet run verbatim against the tree (output above is its own);
`make skills-check` green, generated references current — the edit sits outside
the skill-inventory block.

Not fixed here, deliberately: `frontend-data-ui` at 3 characters needs its own
description shortened, which is a judgement about which of its clauses earns the
space and belongs to an audit of that skill rather than to this one.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@athvin
athvin merged commit 5d79a89 into main Nov 6, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants