Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Avoid parsing skill metadata rejected by effective policy

Đang mở
#237 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
cli, performance

Hướng nghiên cứu

Bắt đầu với packages/intent/src/core/source-policy.ts tại scanForPolicedIntents và packages/intent/src/discovery/register.ts ở khu vực đăng ký. Tái hiện các phép đo từ synthetic fixture cho việc đọc package, đọc tệp skill, output và thời gian đã trôi qua, sau đó lần theo quá trình phân giải policy và duyệt bắc cầu. Được xem là hoàn thành khi các tệp skill bị từ chối không được parse, các kết quả và diagnostics được cho phép vẫn không thay đổi, và mức giảm đo được được ghi lại bằng tests hoặc fixtures.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

Policy-controlled discovery scans skill metadata before applying permission and exclusion rules, doing work for content that will never be exposed.

Evidence

With intent.skills: [] and 100 installed skill packages, listIntentSkills returned zero skills but reported 101 package manifest reads. scanForPolicedIntents calls the raw scanner before policy resolution, and registration discovers skills before filtering.

Sources: scan ordering, registration.

Verified against main at 206e987 (@tanstack/intent 0.3.8), Node v24.12.0 on macOS arm64. Tests used installed dependencies and synthetic local fixtures.

Acceptance criteria

  • Measure package reads, skill-file reads, output, and elapsed time before and after on the same fixtures.
  • Resolve and validate policy before policy-controlled metadata parsing.
  • Agent-visible discovery does not parse denied skill files.
  • Preserve traversal needed to locate permitted transitive packages through unlisted parents.
  • Preserve human review of hidden candidates and current policy diagnostics through an explicit appropriate discovery path.
  • Show identical permitted results and a measured reduction in denied-content work, with no weakening of path or policy checks.

Scope and priority

Priority: Medium. Type: performance.

Follow-up optimization after policy correctness fixes. No persistent cache, broad scanner rewrite, or new dependency solely to optimize this path.

Ngôn ngữ chính
TypeScript
Star
331
Fork
22
Merge trung bình
12 giờ 17 phút
Pull request đã merge (30 ngày)
51

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TanStack/intent

Tất cả issue của TanStack/intent

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.