Repository navigation
feat(projects): GitHub refs on project tasks — read path, MCP fields, task modal (abilityai/trinity-enterprise#1240) - #4490
Conversation
…task tools (abilityai/trinity-enterprise#1240)
Checkpoint B (platform). GitHubService.get_issue: one GET to
/repos/{o}/{r}/issues/{n} over a bounded client (5 s, one redirect),
GitHubError carries status, reset and rate_limited; network errors never
carry httpx's text. create_project_task gains refs, update_project_task
gains refs_add/refs_remove, and both now forward only the keys they
declare.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ore and docs (abilityai/trinity-enterprise#1240) Checkpoint C (platform). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…yai/trinity-enterprise#1240) C1: GitHubService.issue_client adds a request hook that raises GitHubError (status None -> the refs read records "unreachable") when a redirect hop's scheme, host or port differs from API_BASE's, before that hop is sent, so the platform token never leaves the API host. I2: the Projects GitHub owners setting says removing an owner stops new reads and titles already read stay as last read. Bumps src/backend/enterprise to 6925b6e (C2 + I1). Tests: test_redirect_to_another_origin_is_refused_before_it_is_sent and test_redirect_changing_scheme_or_port_is_refused[x2] — red with the hook removed, green restored. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s 6925b6e, on top of a03a9d3) Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Validation ReportPR: #4490 — feat(projects): GitHub refs on project tasks — read path, MCP fields, task modal Summary
Execution coverage (§5.4)
Mutation (this run): I removed the Cross-surface drift (§5.5)
Issues foundCritical: none. Warnings
Suggestions (non-blocking)
RecommendationAPPROVE. Merge it together with abilityai/trinity-enterprise#1243. Not run here (the chain's evidence sweep already covered them, or they were left to CI on purpose): the full unit island, the pinned-guard suite, and a live GitHub read, which is an operator step.
|
|
Reviewed together with the enterprise half; findings are on abilityai/trinity-enterprise#1243 (review of |
…rnal-links # Conflicts: # src/backend/enterprise # src/frontend/src/stores/projects.js
trinity-ability
left a comment
There was a problem hiding this comment.
Validated (/validate-pr, lane C): Tier 1 + journey-smoke/e2e green after dev merge + pin to ent main 888233b (ent#1243 merged). Follow-ups noted in report.
Conflicts resolved keeping both intents: - src/mcp-server/src/tools/projects.ts: #4490's shared createTaskParams / updateTaskParams + declared() filter now carry every ent#1232 param (todo status, parent, blocked_by, blocked_by_add/remove, for_person, the done-without-claim note); both descriptions carry the ent#1232 rules and REFS_RULE, each under 2048 chars. - projects.test.ts: both describe blocks kept; the ent#1240 "drops undeclared keys" case uses priority (status is declared on create now). - workspace-projects.md: both sections (GitHub issues and PRs before Subtasks, waiting and tasks for people). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fixes abilityai/trinity-enterprise#1240
What
Platform half of abilityai/trinity-enterprise#1240: a project task can show the GitHub issues and pull requests its work lives in. The links are read-only.
GitHubService.get_issue: a generic issue/PR read. It follows one redirect, and only on the API origin. Error text carries the exception type, never a token.refsoncreate_project_task, andrefs_add/refs_removeonupdate_project_task. No new tool. Every description stays under the length guard.ProjectTaskRefs.vue), store and utils, and a read-owners field in Settings (ProjectsGithubReadOwnersSetting.vue).docs/user-docs/sharing-and-access/workspace-projects.md.6925b6e, the tip of abilityai/trinity-enterprise#1243, which builds ona03a9d3.Review + security
ee7a4b5ad), with a test that no second request is sent./cso --diff: nothing at ≥8/10. No dependency, workflow or Dockerfile changes.Tests
test_1240_github_get_issue,test_4165_*,test_4284_exception_text_sites,test_ent1117_s10/s12,test_2107_push_access_probeandtest_ent109_repo_binding. Neighbour order is green too.workspaceProjectsEnt1240.mount.spec.jsandworkspaceProjectsUtils.spec.js, 25 passed.projects.test.ts, 32/32 undernode --test.Before merge
devwas merged in at0ee2d15b0. The tree is unchanged, and the branch is 0 behind.🤖 Generated with Claude Code