Skip to content

OP-014: progressive skill disclosure (default-legacy, opt-in via skills.promptMode) - #75871

Closed
aderius wants to merge 2 commits into
openclaw:mainfrom
aderius:op014-progressive-skill-telemetry
Closed

aderius wants to merge 2 commits into
openclaw:mainfrom
aderius:op014-progressive-skill-telemetry

Conversation

@aderius

@aderius aderius commented May 2, 2026

Copy link
Copy Markdown

Summary

Adds progressive skill disclosure as an opt-in overlay on the existing skill loading path, plus prompt-assembly and tool-call telemetry to support safer pilot evaluation.

Two commits:

  • f643ff03 — feat: add progressive skill disclosure
  • 07f4a6bd — chore: add progressive skill telemetry

Behavior

A new global config key skills.promptMode selects the skill-prompt shape and which optional tools are registered. Modes:

Mode Prompt Tools registered
legacy (default) Existing full skill prompt None added
compact Compact name+description index, read-only fallback None added
view Compact index skill_view
search Compact index skill_view, skill_search

Skill eligibility is unchanged: the same prompt-visible resolvedSkills registry is used; only the shape of the prompt and the optional tool surface change.

Important framing

  • Default behavior remains legacy. Merging this PR does not change runtime behavior for any existing config.
  • No live enablement is implied. Pilot/live deployment is a separate decision and remains gated.
  • skills.promptMode is global-only in this phase. Per-agent override is intentionally out of scope for phase 1; pilot governance is operational unless/until a per-agent override is implemented.
  • HTTP / MCP / direct paths are intentionally deferred because those construction paths do not currently carry skillsSnapshot into tool creation. This PR threads skillsSnapshot through OpenClaw tool construction only on the paths that already produce it (attempt path, embedded compact runner). Other paths fall back to legacy mode.
  • Telemetry is included (skills_prompt, skill_view, skill_search) to make pilot evaluation safer. Telemetry does not log raw query text — skill_search records only query length and term count.

What changed

  • New tool implementations: src/agents/tools/skill-view-tool.ts, src/agents/tools/skill-search-tool.ts and tests.
  • New compact index formatter and tests under src/agents/skills/.
  • skills.promptMode added to TS config types and strict zod schema (src/config/zod-schema.ts); config:schema:gen regenerated src/config/schema.base.generated.ts.
  • skillsSnapshot threaded through createOpenClawCodingTools -> createOpenClawTools (src/agents/openclaw-tools.ts, src/agents/pi-tools.ts) and through the embedded compact runner (src/agents/pi-embedded-runner/compact.ts) so progressive prompts only advertise tools the same path actually registers.
  • Telemetry events emitted at prompt assembly and at skill_view / skill_search invocation.

Verification

Run from the source checkout used to produce this branch:

  • pnpm install --frozen-lockfile
  • focused vitest: skill-search-tool.test.ts, skill-view-tool.test.ts, compact-format.test.ts — 5 files / 62 tests passed
  • pnpm tsgo:core ✓
  • pnpm tsgo:core:test ✓
  • pnpm config:schema:check ✓ (after regenerate)
  • pnpm build ✓
  • git diff --check ✓

No live install. No gateway restart. PR/push only.

Operation

OP-014 — Skills Progressive Disclosure. Originated by Sergent-Skills with implementation lanes coordinated by that role; source-maintainer review and PR submission performed by Sapeur per Corps officer boundary.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: L labels May 2, 2026
@clawsweeper

clawsweeper Bot commented May 2, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Keep this PR open, but it is not merge-ready: current main has not implemented the requested progressive skill disclosure, while this branch is conflicting, still wired to moved agent/skills paths, lacks real OpenClaw runtime proof, and adds an undocumented global config surface.

Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

So I’m closing this here because the remaining work is already tracked in the canonical issue.

Review details

Best possible solution:

Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a feature/config PR rather than a bug report with a failing current-main reproduction path.

Is this the best way to solve the issue?

Unclear as submitted: progressive disclosure may be a reasonable pilot, but the branch must be ported to current main and the global config/tool surface needs maintainer-approved docs plus real runtime proof.

Security review:

Security review cleared: No concrete security or supply-chain issue was found in the inspected diff; the new skill file reader is bounded to resolved skill directories and the PR does not change dependencies, workflows, locks, or secrets handling.

AGENTS.md: found and applied where relevant.

What I checked:

  • stale F-rated PR: PR was opened 2026-05-02T00:37:36Z, is older than 30 days, and the latest review rated it F.
  • proof blocker: real behavior proof is missing and proof tier is F, so this branch is not merge-ready without contributor follow-up.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • Peter Steinberger: Recent history on old src/agents/pi-tools.ts and current src/skills/loading/workspace.ts includes repeated agent tool and skill prompt/test performance work near the affected surfaces. (role: recent area contributor; confidence: medium; commits: e7d33b4870f7, 5b2ae4910739, af711f9e9f61; files: src/agents/pi-tools.ts, src/skills/loading/workspace.ts)
  • Vincent Koc: History on old agent tool construction and skills loading includes fixes/refactors in the agent tooling/type surfaces used by the PR's old wiring path. (role: adjacent owner; confidence: medium; commits: f09a4d9ba07d, 74e7b8d47b18, 8ae6d42faabf; files: src/agents/pi-tools.ts, src/skills/loading/workspace.ts)
  • Kim: Kim's merged history unified runtime inclusion and available_skills exposure policy, which is the registry surface this PR wants to compact and expose through new tools. (role: available-skills contract contributor; confidence: medium; commits: fd71bc04ec23; files: src/skills/loading/workspace.ts)

Codex review notes: model internal, reasoning high; reviewed against 66880a5d736c.

@barnacle-openclaw

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@barnacle-openclaw barnacle-openclaw Bot added the stale Marked as stale due to inactivity label May 30, 2026
@clawsweeper clawsweeper Bot added the rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. label May 30, 2026
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. and removed stale Marked as stale due to inactivity labels May 31, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels May 31, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jun 14, 2026
@clawsweeper

clawsweeper Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: L stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant