feat(mcp): expose native pull request identities #140

Merged
ClaudiuSchuster merged 2 commits from oss-oo/pr-native-evidence-20261018 into main 2026-10-18 05:32:56 +00:00
Owner

The native get_pull_request tool currently returns branch names without the commit and repository identities already supplied by Forgejo. Add head_sha, base_sha, head_repo_id and base_repo_id so callers can identify the returned state without inferring it from a ref name.

Existing fields and the single upstream request are preserved. Missing, deleted or malformed identities remain null; complete hexadecimal object IDs retain their exact bytes. This is response evidence, not a durable operation receipt or an authenticated upload feature.

Validation: 278 author offline checks and an independent rerun of those checks passed, plus 69 independent projection probes. The native Core fixture definitions were checked at both accepted and candidate Core commits. General isolated E2E passed; it does not directly exercise the four new fields. The focused regression now runs in ordinary and optimized Python modes in CI. Independent review approved the exact final head, and native required PR CI run340/job4503 passed. Candidate stdio MCP reads also matched actual native responses for an open and a closed PR. Production acceptance remains separate.

The native `get_pull_request` tool currently returns branch names without the commit and repository identities already supplied by Forgejo. Add `head_sha`, `base_sha`, `head_repo_id` and `base_repo_id` so callers can identify the returned state without inferring it from a ref name. Existing fields and the single upstream request are preserved. Missing, deleted or malformed identities remain `null`; complete hexadecimal object IDs retain their exact bytes. This is response evidence, not a durable operation receipt or an authenticated upload feature. Validation: 278 author offline checks and an independent rerun of those checks passed, plus 69 independent projection probes. The native Core fixture definitions were checked at both accepted and candidate Core commits. General isolated E2E passed; it does not directly exercise the four new fields. The focused regression now runs in ordinary and optimized Python modes in CI. Independent review approved the exact final head, and native required PR CI run340/job4503 passed. Candidate stdio MCP reads also matched actual native responses for an open and a closed PR. Production acceptance remains separate.
Run native PR evidence contract tests in forge CI
All checks were successful
access-validation-contract / contract (pull_request) Successful in 3m21s
ci / ci (pull_request) Successful in 2m59s
d1523fb6ae
ClaudiuSchuster changed title from WIP: feat(mcp): expose native pull request identities to feat(mcp): expose native pull request identities 2026-10-18 05:32:56 +00:00
ClaudiuSchuster deleted branch oss-oo/pr-native-evidence-20261018 2026-10-18 05:32:57 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
OSS-OO/laboratory!140
No description provided.