create feature mcp-issue-context & project knowledge search #6

Merged
gitea-admin merged 1 commits from feat/mcp-issue-context into main 2026-09-05 00:34:31 +00:00
Collaborator

Summary

What changed and why?

Change Type

  • Cowork feature
  • Bug fix
  • Core AI contribution
  • Test / hardening
  • Performance
  • Documentation

Related Work

Cowork Task:

Core Repo: http://34.143.229.138/gitea-admin/fsg-ai-core-assets

Core AI Issue:

Core Task:

Related PR:

Scope

What is intentionally included?

What is intentionally NOT included?

Validation

  • Unit tests
  • Integration tests
  • Manual verification
  • Regression check

Commands / evidence:

Security Impact

Permission / credential / network / customer data impact:

Compatibility

  • No breaking change
  • Breaking change documented

Reviewer Notes

Anything Cowork reviewers should pay attention to.

## Summary What changed and why? ## Change Type - [x] Cowork feature - [x] Bug fix - [x] Core AI contribution - [x] Test / hardening - [x] Performance - [x] Documentation ## Related Work Cowork Task: Core Repo: http://34.143.229.138/gitea-admin/fsg-ai-core-assets Core AI Issue: Core Task: Related PR: ## Scope What is intentionally included? What is intentionally NOT included? ## Validation - [ ] Unit tests - [ ] Integration tests - [ ] Manual verification - [ ] Regression check Commands / evidence: ## Security Impact Permission / credential / network / customer data impact: ## Compatibility - [ ] No breaking change - [ ] Breaking change documented ## Reviewer Notes Anything Cowork reviewers should pay attention to.
Owner

Tổng thể làm khá tốt, scope gọn và test rất kỹ, đặc biệt phần permission trước credential resolution, error handling, pagination và không leak token.

Trước khi merge cần bổ sung/chốt thêm mấy điểm:

  1. Phần identity/credential hiện vẫn đang dùng GITEA_TOKEN chung và repo map theo project. Với pilot read-only thì dùng service account được, nhưng cần tách Target Resolver và Credential Resolver ngay từ kiến trúc để sau này chuyển sang on-behalf-of mà không phải sửa lại tool. Target cũng nên tính tới org_unit/customer/project, không chỉ project.

  2. Thêm 1 happy-path test đi xuyên qua ProjectProviderResolver + build_provider thật. Hiện happy path đang inject GiteaIssueProvider trực tiếp nên chưa chứng minh wiring production hoạt động end-to-end.

  3. Bổ sung evidence/test Audit: call thành công/deny phải có correlation/audit record, đồng thời không ghi credential. Nếu shared runtime đã có test này thì link lại test/evidence trong PR là được.

  4. Acceptance Criteria hiện chỉ nhận heading tiếng Anh. Task Core Team sau này chủ yếu dùng tiếng Việt nên support thêm Tiêu chí hoàn thành/Tiêu chí chấp nhận hoặc có cách parse chuẩn hơn, tránh fallback lấy nhầm checklist của section khác.

Ngoài ra check thêm output từ Gitea phải đi qua Untrusted Content Fence của Cowork trước khi đưa vào Agent; nếu đã có ở shared runtime thì ghi rõ evidence/link test trong PR.

Sau các điểm trên PR này đủ tốt để approve cho FSG pilot. 👍

Tổng thể làm khá tốt, scope gọn và test rất kỹ, đặc biệt phần permission trước credential resolution, error handling, pagination và không leak token. Trước khi merge cần bổ sung/chốt thêm mấy điểm: 1. Phần identity/credential hiện vẫn đang dùng `GITEA_TOKEN` chung và repo map theo `project`. Với pilot read-only thì dùng service account được, nhưng cần tách Target Resolver và Credential Resolver ngay từ kiến trúc để sau này chuyển sang on-behalf-of mà không phải sửa lại tool. Target cũng nên tính tới `org_unit/customer/project`, không chỉ `project`. 2. Thêm 1 happy-path test đi xuyên qua `ProjectProviderResolver` + `build_provider` thật. Hiện happy path đang inject `GiteaIssueProvider` trực tiếp nên chưa chứng minh wiring production hoạt động end-to-end. 3. Bổ sung evidence/test Audit: call thành công/deny phải có correlation/audit record, đồng thời không ghi credential. Nếu shared runtime đã có test này thì link lại test/evidence trong PR là được. 4. Acceptance Criteria hiện chỉ nhận heading tiếng Anh. Task Core Team sau này chủ yếu dùng tiếng Việt nên support thêm `Tiêu chí hoàn thành/Tiêu chí chấp nhận` hoặc có cách parse chuẩn hơn, tránh fallback lấy nhầm checklist của section khác. Ngoài ra check thêm output từ Gitea phải đi qua Untrusted Content Fence của Cowork trước khi đưa vào Agent; nếu đã có ở shared runtime thì ghi rõ evidence/link test trong PR. Sau các điểm trên PR này đủ tốt để approve cho FSG pilot. 👍
gitea-admin changed title from create feature mcp-issue-context to create feature mcp-issue-context & project knowledge search 2026-09-04 01:48:34 +00:00
gitea-admin approved these changes 2026-09-05 00:12:28 +00:00
Dismissed
gitea-admin force-pushed feat/mcp-issue-context from e0ab653a61 to 3bd58b4ecb 2026-09-05 00:23:59 +00:00 Compare
gitea-admin added 1 commit 2026-09-05 00:33:48 +00:00
feat(mcp): add project issue context and knowledge search
CI / test (push) Canceled after 0s
CI / test (pull_request) Canceled after 0s
e5fa21ecfd
gitea-admin force-pushed feat/mcp-issue-context from 3bd58b4ecb to e5fa21ecfd 2026-09-05 00:33:48 +00:00 Compare
gitea-admin dismissed gitea-admin's review 2026-09-05 00:33:48 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

gitea-admin merged commit e5fa21ecfd into main 2026-09-05 00:34:31 +00:00
Sign in to join this conversation.