Avoid parsing skill metadata rejected by effective policy
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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TanStack/intent
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Tất cả issue của TanStack/intent
Issue tương tự
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100