Skip to content

chore(sync): merge upstream github-mcp-server main (Go 1.27.3) - #21

Merged
ctennis merged 55 commits into
sequoiafrom
sync/upstream-2026-11-16
Nov 16, 2026
Merged

ctennis merged 55 commits into
sequoiafrom
sync/upstream-2026-11-16

Conversation

@ctennis

@ctennis ctennis commented Nov 16, 2026

Copy link
Copy Markdown

Merges github/github-mcp-server main into sequoia (54 upstream commits).

Notable upstream changes

Resolution

  • go.mod: upstream's v2 module and go 1.27.3; kept our golang.org/x/net v0.62.0 (upstream has v0.61.0). go mod tidy.
  • Our installation-routing code (internal/githubapp/multi*.go, pkg/github/installation_routing*.go) moved to the v2 import path. No logic changes.
  • ui/package.json: upstream's dependencies, plus vite ^8.3.5 and zod ^4.6.7 so neither drops below our earlier Dependabot merges. Upstream's lock had zod below the 4.6.6 fix, which npm audit flagged as high.

New regression test: TestToolHandlerMiddlewareWrapsEveryRegisteredTool

  • Installation routing is installed as a server-level ToolHandlerMiddleware, and upstream's typed-tool refactor added a second registration path. If any tool skipped that chain, it would run without routing.
  • The test builds the real server with every toolset, calls each advertised tool, and requires the middleware to see all of them: 132/132.
  • Checked that it fails when the middleware isn't passed to RegisterAll.

Tool surface (for the gateway's deny-by-default mapping): none removed. 8 added and hidden until classified:

  • hide_issue_comment / unhide_issue_comment
  • hide_pull_request_review / unhide_pull_request_review
  • hide_pull_request_review_comment / unhide_pull_request_review_comment
  • issue_artifact_write
  • issue_artifact_read

All are writes except issue_artifact_read.

Checks

  • go build, go vet, go test ./... all pass on Go 1.27.3; gofmt clean.
  • UI npm run build passes. npm audit --omit=dev leaves only the known low deepmerge/@primer/react item, which has no fix.
  • Not exercised against GitHub with real App installations.

🤖 Generated with Claude Code

jidicula and others added 30 commits September 30, 2026 23:01
…#3323)

* Identify STDIO API clients across MCP protocols

Preserve release identities, resolve actual source revisions, and attach upstream client metadata per request without mutating shared transports.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6dde41da-ec25-4370-b26c-b036d0a53b3c

* Escape MCP client metadata and preserve revision provenance

Encode upstream client comments as valid HTTP header data, keep explicit build revisions independent of embedded dirty state, and reject null source hashes. Cover protocol wire behaviour and document the version-source contract.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 6dde41da-ec25-4370-b26c-b036d0a53b3c

* Preserve STDIO startup without usable version metadata

Skip invalid build metadata while retaining release and revision precedence. Fall back to dev with a stderr warning rather than preventing startup, and cover the compatibility contract in tests and documentation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6dde41da-ec25-4370-b26c-b036d0a53b3c

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6dde41da-ec25-4370-b26c-b036d0a53b3c
…b#3348)

* Always enable MCP Apps UI; remove remote_mcp_ui_apps flag gate

The remote_mcp_ui_apps flag is fully rolled out on the hosted server, but
the OSS server still defaulted it off. Make MCP Apps unconditional:

- _meta.ui is always emitted, stripped only when the client explicitly
  does not advertise the io.modelcontextprotocol/ui capability
- ui_get is always registered
- write tools defer to MCP App forms by default (still opt-out via
  mcp_apps_disable_form_deferral)
- remove MCPAppsFeatureFlag and its AllowedFeatureFlags/InsidersFeatureFlags
  entries
- update tests and regenerate docs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Remove unused Inventory.checkFeatureFlag

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Omit app-only tools for clients without MCP Apps support

When a client does not advertise io.modelcontextprotocol/ui, stripping
_meta.ui from ui_get turned it into an ordinary model-visible tool,
violating its app-only contract. Now that ui_get is no longer feature
gated, omit tools whose ui.visibility excludes "model" instead.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Only tag builds should supply a release version. Other Docker builds use the existing linked-commit fallback instead of treating a branch or pull-request ref name as a release.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6dde41da-ec25-4370-b26c-b036d0a53b3c
…nts and PR reviews (github#3350)

* Add hide_comment and unhide_comment granular issue tools

Add two tools behind the issues_granular feature flag that hide
(minimize) and unhide (unminimize) comments via the GraphQL
minimizeComment/unminimizeComment mutations.

They support issue and pull request conversation comments, pull
request review comments, and pull request review bodies. Callers
pass the numeric REST ID plus a comment_type; the tool resolves the
GraphQL node ID via the matching REST endpoint before mutating.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Rename comment_type enum values to pull_request_review(_comment)

Use `pull_request_review` and `pull_request_review_comment` instead of
`review` and `review_comment` so the comment_type values are explicit
about which object they refer to.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Use realistic minimizedReason values in hide_comment test mocks

GitHub returns minimizedReason in lowercase, hyphenated form (e.g.
"off-topic") rather than echoing the classifier enum, as confirmed by
an end-to-end run against the live API.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Split hide/unhide comment tools per object type

Replace hide_comment/unhide_comment, which took a comment_type
argument, with a granular pair per object type:

- hide_issue_comment / unhide_issue_comment (issues_granular):
  issue comments and pull request conversation comments
- hide_pull_request_review_comment / unhide_pull_request_review_comment
  (pull_requests_granular): inline pull request review comments
- hide_pull_request_review / unhide_pull_request_review
  (pull_requests_granular): pull request review bodies

Every argument is now unconditionally required, so the schemas no
longer need prose explaining which arguments apply to which type. The
six tools are built from one shared helper, parameterised by a
commentVisibilityTarget that describes each object type and how to
resolve its GraphQL node ID.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Validate classifier and IDs before calling the GitHub API

JSON schema constraints (enum, minimum) aren't enforced when tool
arguments are unmarshalled, so an invalid classifier or a negative ID
previously reached GitHub and surfaced as a confusing 404 or GraphQL
error. Reject them up front with a clear argument error instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…to work when the authenticated actor is a Copilot bot (github#3355)
…ub#3370)

* ci(deps): refresh workflow dependencies and align lint Go version

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* build(deps): refresh safe dependencies and Dependabot coverage

Remediate all nine open npm alerts, update compatible Go and UI dependencies, refresh pinned Actions and the Go image, and backport the Cosign verification fix. Add weekly npm updates and regenerate third-party notices.

Raise the minimum supported Go version to 1.26.8 for the latest x/net dependency and align CI linting with that toolchain.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* ci: preserve Docker tag ordering and remove trailing whitespace

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* chore: regenerate license files

Auto-generated by license-check workflow

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Resolve new modernization findings and document narrow false-positive suppressions. Verify Go 1.26.8 and 1.27.1 support and remove obsolete export-data compatibility guidance. Refresh cached linter binaries when the repository pin changes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Migrate all go-github imports and issue comment requests while preserving MCP schemas and payloads. Let v92 escape ruleset branch names exactly once. Refresh dependency license reports and narrowly retain the supported Ptr helper for compatibility with the pinned linter.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
)

Read the CI Node version from UI engines and match Docker and Node types.\nDocument the native compiler workflow without changing UI dependencies.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* feat(ui): migrate MCP Apps SDK to v2

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: migrate go-github Ptr calls for Go 1.26 lint

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* ci: migrate cosign to v3 with legacy signature compatibility

Keep legacy image payloads, .sig tags, and Rekor v1 service defaults. Document exact cosign v2/v3 image verification and unchanged release archive attestations.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* ci: dual-publish legacy and native cosign image signatures

Sign the same immutable digest in separate fail-fast steps. Retain legacy signatures and publish native bundles with v3 service defaults. Remove the verification documentation introduced by this PR as requested; keep compatibility evidence and rollout plans in the PR description.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* build(ui): migrate to React 19 and Primer React 38

Replace removed Box and sx APIs with native styles and CSS Modules, load Primer CSS tokens, use the CSS-based theme provider and Banner, and scope custom-element JSX types to the React runtime.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(ui): use CSS token for reviewer label backgrounds

Replace leftover canvas.inset theme paths with the CSS custom property in PR creation and editing. Keep the reviewed native gaps unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* perf: cache encoded tools/list schemas

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test: verify encoded schema cache lifecycle

Document immutable shared schema definitions and verify bounded reuse across HTTP inventories and repeated server registration.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Michael Recachinas <mrecachinas@github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
)

* feat(inventory): add typed MCP tool registration foundation

Use the MCP SDK's generic registration for concrete input/output types, with protocol-gated output schemas and structured results. Keep raw handlers compatible and apply shared middleware on both paths.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test: cover legacy typed CSV results

Exercise the typed array and object paths through an initialized 2025-11-25 MCP session. Verify CSV text is returned once without structured output or the SDK JSON fallback.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(inventory): normalize legacy typed arguments

Add a raw JSON input normalizer that runs before SDK schema validation so migrated tools can retain legacy input coercions without widening their published schemas. Test case-folded issue states, numeric string IDs, validation failures and replacement registrations.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test(inventory): preserve typed input optionality

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): stabilize typed schema compatibility

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(inventory): cover protocol isolation across clients

Exercise simultaneous legacy and modern sessions against one typed tool, plus stateless HTTP requests with modern, legacy, and absent protocol headers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): harden typed schema registration contracts

Cache immutable schema variants and enum overrides, preserve runtime input compatibility and request-era output behavior, and normalize dynamic scope challenges before dispatch.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): cache warm schemas and guard typed preflight

Avoid repeated canonical schema serialization and header annotation for cache-owned immutable pointers while retaining content-based lookup for caller-owned schemas. Run typed authorization and availability middleware before preflight and preserve tool-result error semantics.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): preserve schema metadata isolation

Advertise the SDK-compatible object schema for typed any input and deep-clone mutable JSON Schema metadata before caching or deriving runtime variants. Add legacy/modern registration and mutation isolation coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): detach numeric schema bounds and dedupe default traversal

Two Copilot findings on 431b7a2:

- CloneSchemas only deep-copies subschema nodes, so pointer-valued
  numeric validation keywords (Minimum, Maximum, MinLength, MinItems,
  etc.) remained aliased with the caller-owned schema after
  CloneSchema/CachedSchema. A caller mutating one of those pointers
  after caching could race with concurrent cached-schema
  serialization or silently change the cached validation bounds.
  Clone every *int/*float64 keyword explicitly alongside the existing
  collection/metadata cloning.

- CloneSchemaWithoutDefaults's removeSchemaDefaults visited every
  map/pointer child twice: once via two literal child-collection
  loops, and again via schemaChildren, which already covers the same
  fields. This doubled traversal at every nested level, making
  default removal exponential for deeply nested object/array schemas.
  Traverse only the single comprehensive schemaChildren list.

Add regression coverage across CloneSchema, CachedSchema, schema
inference option cloning, and CloneSchemaWithoutDefaults: every
*int/*float64 keyword is isolated from caller mutation (including
under concurrent marshaling), and a 48-level deep chain is used for
every schema-child field kind to confirm linear, non-exponential
default removal.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): gate typed output on supported protocol range

Select modern typed output for SDK-supported ISO-date protocol versions from 2026-07-28 onward. Missing, malformed, and unsupported future versions retain legacy behavior. Cover a later supported version through the selector list seam and verify the public path against the SDK supported set.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): unwrap pointer inputs before schema inference

Match SDK input inference by unwrapping one pointer level before the cached input key and inference. Preserve nullable output pointer schemas. Cover both public constructors with actual modern and legacy discovery and calls, including structured null output.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): reuse encoded schema cache for typed tools

Key output encodings by their source definitions while preserving the SDK-registered schema guard. Keep header routing metadata available for legacy and unknown protocol clients.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat(context): add typed tool schemas and outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve legacy input acceptance

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(context): preserve input schema roots and optionality

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): validate direct team member calls

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(context): pin structured output and legacy text fixtures

Describe profile timestamps and validate null and empty team outputs against modern schemas while retaining exact legacy text.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): emit structured empty team collections

Keep legacy null text while returning nonnil typed slices so modern clients receive structured content for empty successful results.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve legacy team input schemas

Keep empty identifier rejection in the handler without tightening the published input schema. Pin modern text to structured output and preserve the legacy formatter fixtures.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve advertised input schema compatibility

Keep legacy-visible schemas byte-compatible while applying unknown-field acceptance only to the cached runtime validation schema. Verify modern DTO text parity and preserve legacy formatted text.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): reject explicit null team user arguments

Preserve the legacy optional user type error before typed decoding, without changing omitted or empty user fallback.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve exact routing argument keys

Ignore case-variant routing aliases before typed decoding while retaining canonical fields and unrelated unknown arguments. Cover direct handlers and legacy/modern registered calls, authenticated fallback, canonical null rejection, and missing identifiers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…3384)

* feat(comments): add typed visibility tool inputs and outputs

Preserve legacy argument normalization and text responses while exposing protocol-gated structured results for six hide/unhide tools.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* chore: regenerate license files

Auto-generated by license-check workflow

* test(comments): pin protocol output parity and reason metadata

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(comments): reuse cached visibility output schema

Clarify supported negotiated protocol versions without expanding runtime support.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat(search): add typed projected result outputs

* fix(search): preserve field_values presence and add nested schema fixtures

Address review findings on the typed search/list projected-output
tools (search_code, search_issues, search_pull_requests, list_issues,
list_pull_requests, list_branches, list_tags):

- issues.go/pullrequests.go: change FieldValues to a pointer-to-slice
  (*[]MinimalFieldValue) so a successful-but-empty [] is preserved in
  structuredContent, matching legacy text output instead of being
  dropped by omitempty.
- search.go: related adjustments to keep typed search outputs aligned
  with the field_values presence fix.
- typed_search_outputs_test.go: add representative nested/non-empty
  projected item fixtures so schema-conformance tests actually
  exercise item shapes instead of only validating empty collections.
- Add/update toolsnaps for list_branches, list_issues,
  list_pull_requests, list_tags, search_code, search_issues, and
  search_pull_requests to reflect the schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test: bound encoded schema parity registration work

Reuse each immutable HTTP server across pagination requests and share the SDK schema cache across parity variants without changing wire comparisons.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* feat(security): add typed alert outputs

Add typed protocol-gated outputs for code quality, code and secret scanning, Dependabot, and security advisories while preserving existing text responses.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(security): preserve compatibility with compact typed outputs

Keep advertised input defaults while disabling runtime default injection for security filters. Normalize null CWE filters, compact findings, and verify modern wire outputs alongside exact legacy formatting.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* feat: type discussion and notification tool outputs

Migrate all eleven tools to typed registration and compact output DTOs. Preserve legacy text, parameter compatibility, pagination, and mutation validation while publishing honest modern output unions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: tighten discussion and notification output contracts

Trim notification hypermedia, preserve useful HTML links, and record all modern schemas in canonical snapshots. Preserve source presence during discussion read normalization and cover the Copilot review regression alongside empty/null outputs, IFC labels, sanitization, and output enums.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test: cover empty-object discussion read requests and modern-text==DTO expectations

Add an explicit {} (fully-empty args) case to
TestDiscussionReadRequiredArguments proving the normalizer never
synthesizes placeholder owner/repo/discussionNumber values that would
let an empty request satisfy SDK required-schema validation and reach
GraphQL; verified both protocols reject it pre-handler with zero
GraphQL calls (addresses readiness-audit re-flag of already-fixed
Copilot review comment 4171698931 in 578e9929).

Also record the pending modern-text==structuredContent DTO contract
(2026-07-28 protocol) in test expectations; these assertions are
intentionally red pending the coordinator's central once-marshal
wrapper in pkg/inventory/typed_output.go, which this branch does not
yet have.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(notifications): preserve plain status output content

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* feat(repos): add typed commit tool outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(repos): restore commit pagination defaults

Normalize omitted and explicit zero pagination to page 1 and perPage 30 for get_commit and list_commits. Cover legacy and modern wire calls and direct handlers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(repos): return typed projected commit lists

Use an optional-field commit DTO for full and projected modern outputs while retaining exact legacy text. Cover SHA and nested commit projections, empty lists, and output schema conformance.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test(repos): snapshot modern commit tools and strengthen wire coverage

Capture canonical modern schemas, exercise null lists and error suppression with IFC labels, and drop unrelated generated Linux license drift noted by Copilot review.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(repos): distinguish legacy and modern commit text

Keep exact-main byte assertions for the legacy protocol and verify modern text represents the same typed DTO as structured content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(repos): sync commit snapshots with parent DTO metadata

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…thub#3391)

* feat(issues): add typed metadata comment and dependency outputs

Preserve legacy text and argument coercions while exposing protocol-gated structured issue outputs. Add modern, legacy, unknown-version, union-schema and API-error contracts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* chore: regenerate license files

Auto-generated by license-check workflow

* fix(issues): preserve zero pagination for duplicate search

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(issues): preserve compact typed output contracts

Cache DTO schema inference, retain byte-exact handler text, and cover protocol, pagination and schema contracts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): bound encoded schema parity registration work

Reuse immutable HTTP comparison servers and the SDK schema cache across the full parity matrix. Refresh inherited user timestamp descriptions in issue snapshots.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat(repos): complete typed repository tool outputs

Migrate the remaining 17 repository tools to concrete inputs and outputs. Preserve existing content, mutations, scopes, filtering, and protocol gating; add wire and schema conformance coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore(repos): exclude unrelated snapshot formatting drift

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(repos): compact typed repository outputs

Replace raw REST output schemas with compact repository DTOs, retain one canonical snapshot per tool, and align modern JSON text with structured output while pinning legacy content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ub#3393)

* feat(repos): complete typed repository tool outputs

Migrate the remaining 17 repository tools to concrete inputs and outputs. Preserve existing content, mutations, scopes, filtering, and protocol gating; add wire and schema conformance coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore(repos): exclude unrelated snapshot formatting drift

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(repos): compact typed repository outputs

Replace raw REST output schemas with compact repository DTOs, retain one canonical snapshot per tool, and align modern JSON text with structured output while pinning legacy content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(issues): add typed consolidated issue tool contracts

Preserve raw helper APIs and exact legacy text while exposing concrete output unions for modern protocols. Retain explicit awaiting statuses and real null responses without exposing SDK-generated error fallbacks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize consolidated typed outputs

Project compact method-discriminated DTOs from API responses while preserving the separate legacy text formatter and explicit app-awaiting status. Cache strict schemas and keep only canonical snapshots. Strengthen null-member presence, schema size, and lockdown projection regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): keep union property schemas portable

Preserve forbidden variant properties as annotated schema objects rather than boolean schemas emitted by jsonschema-go. Cover Inspector's input paths and IFC labels on every issue-read method across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): cover strict sub-issue output variants

Reject unknown methods, states, field types, opaque values and API URL properties while covering nullable and empty method data.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): pin compact comment user redaction

Pin unchanged legacy profile/avatar fields separately from compact modern user projections and assert identical lockdown filtering and sanitization across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore main-identical advertised input schema

Remove added custom-field union constraints and sentinel enums from the advertised issue-write input. Preserve runtime exactly-one validation and private strict-schema tests. All three scoped input schemas compare exactly equal to main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore protocol output parity

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat(repos): complete typed repository tool outputs

Migrate the remaining 17 repository tools to concrete inputs and outputs. Preserve existing content, mutations, scopes, filtering, and protocol gating; add wire and schema conformance coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore(repos): exclude unrelated snapshot formatting drift

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(repos): compact typed repository outputs

Replace raw REST output schemas with compact repository DTOs, retain one canonical snapshot per tool, and align modern JSON text with structured output while pinning legacy content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(issues): add typed consolidated issue tool contracts

Preserve raw helper APIs and exact legacy text while exposing concrete output unions for modern protocols. Retain explicit awaiting statuses and real null responses without exposing SDK-generated error fallbacks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize consolidated typed outputs

Project compact method-discriminated DTOs from API responses while preserving the separate legacy text formatter and explicit app-awaiting status. Cache strict schemas and keep only canonical snapshots. Strengthen null-member presence, schema size, and lockdown projection regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): keep union property schemas portable

Preserve forbidden variant properties as annotated schema objects rather than boolean schemas emitted by jsonschema-go. Cover Inspector's input paths and IFC labels on every issue-read method across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): cover strict sub-issue output variants

Reject unknown methods, states, field types, opaque values and API URL properties while covering nullable and empty method data.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): pin compact comment user redaction

Pin unchanged legacy profile/avatar fields separately from compact modern user projections and assert identical lockdown filtering and sanitization across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore main-identical advertised input schema

Remove added custom-field union constraints and sentinel enums from the advertised issue-write input. Preserve runtime exactly-one validation and private strict-schema tests. All three scoped input schemas compare exactly equal to main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore protocol output parity

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize granular structured outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	pkg/github/__toolsnaps__/add_sub_issue.snap
#	pkg/github/__toolsnaps__/remove_sub_issue.snap
#	pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	pkg/github/granular_issue_types.go
#	pkg/github/issues_granular.go
#	pkg/github/typed_granular_issue_outputs_test.go

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# interactive rebase in progress; onto 1973eee
# Last command done (1 command done):
#    pick 5b8f9d19 # refactor(issues): minimize granular structured outputs
# No commands remaining.
# You are currently rebasing.
#
# Changes to be committed:
#	modified:   pkg/github/__toolsnaps__/add_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/create_issue.snap
#	modified:   pkg/github/__toolsnaps__/hide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/set_issue_fields.snap
#	modified:   pkg/github/__toolsnaps__/unhide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_assignees.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_body.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_labels.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_milestone.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_state.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_title.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_type.snap
#	modified:   pkg/github/comment_minimize_test.go
#	new file:   pkg/github/granular_issue_types.go
#	modified:   pkg/github/granular_tools_test.go
#	modified:   pkg/github/issues_granular.go
#	new file:   pkg/github/typed_granular_issue_outputs_test.go
#

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ithub#3395)

* feat(repos): complete typed repository tool outputs

Migrate the remaining 17 repository tools to concrete inputs and outputs. Preserve existing content, mutations, scopes, filtering, and protocol gating; add wire and schema conformance coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore(repos): exclude unrelated snapshot formatting drift

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(repos): compact typed repository outputs

Replace raw REST output schemas with compact repository DTOs, retain one canonical snapshot per tool, and align modern JSON text with structured output while pinning legacy content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(issues): add typed consolidated issue tool contracts

Preserve raw helper APIs and exact legacy text while exposing concrete output unions for modern protocols. Retain explicit awaiting statuses and real null responses without exposing SDK-generated error fallbacks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize consolidated typed outputs

Project compact method-discriminated DTOs from API responses while preserving the separate legacy text formatter and explicit app-awaiting status. Cache strict schemas and keep only canonical snapshots. Strengthen null-member presence, schema size, and lockdown projection regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): keep union property schemas portable

Preserve forbidden variant properties as annotated schema objects rather than boolean schemas emitted by jsonschema-go. Cover Inspector's input paths and IFC labels on every issue-read method across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): cover strict sub-issue output variants

Reject unknown methods, states, field types, opaque values and API URL properties while covering nullable and empty method data.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): pin compact comment user redaction

Pin unchanged legacy profile/avatar fields separately from compact modern user projections and assert identical lockdown filtering and sanitization across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore main-identical advertised input schema

Remove added custom-field union constraints and sentinel enums from the advertised issue-write input. Preserve runtime exactly-one validation and private strict-schema tests. All three scoped input schemas compare exactly equal to main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore protocol output parity

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize granular structured outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	pkg/github/__toolsnaps__/add_sub_issue.snap
#	pkg/github/__toolsnaps__/remove_sub_issue.snap
#	pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	pkg/github/granular_issue_types.go
#	pkg/github/issues_granular.go
#	pkg/github/typed_granular_issue_outputs_test.go

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# interactive rebase in progress; onto 1973eee
# Last command done (1 command done):
#    pick 5b8f9d19 # refactor(issues): minimize granular structured outputs
# No commands remaining.
# You are currently rebasing.
#
# Changes to be committed:
#	modified:   pkg/github/__toolsnaps__/add_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/create_issue.snap
#	modified:   pkg/github/__toolsnaps__/hide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/set_issue_fields.snap
#	modified:   pkg/github/__toolsnaps__/unhide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_assignees.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_body.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_labels.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_milestone.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_state.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_title.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_type.snap
#	modified:   pkg/github/comment_minimize_test.go
#	new file:   pkg/github/granular_issue_types.go
#	modified:   pkg/github/granular_tools_test.go
#	modified:   pkg/github/issues_granular.go
#	new file:   pkg/github/typed_granular_issue_outputs_test.go
#

* refactor(search): use typed account repository and commit tools

Preserve legacy text and search semantics while publishing protocol-gated concrete structured outputs. Cover modern, legacy, and unknown clients, full repository JSON unions, defaults, IFC labels, and errors.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): compact typed repository search output

Replace the full REST repository mirror with MinimalRepository-based
structured items plus purpose-built full-mode details. Legacy text remains
unchanged, and canonical snapshots now hold the modern output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): expose repository visibility enum

Remove the derivable node_id from compact full repository search output and
publish the visibility enum in the static output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(search): align snapshots with protocol wrapper

Keep the modern text assertion aligned with structured content after the shared output wrapper change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…s and outputs (github#3396)

* feat(repos): complete typed repository tool outputs

Migrate the remaining 17 repository tools to concrete inputs and outputs. Preserve existing content, mutations, scopes, filtering, and protocol gating; add wire and schema conformance coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore(repos): exclude unrelated snapshot formatting drift

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(repos): compact typed repository outputs

Replace raw REST output schemas with compact repository DTOs, retain one canonical snapshot per tool, and align modern JSON text with structured output while pinning legacy content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(issues): add typed consolidated issue tool contracts

Preserve raw helper APIs and exact legacy text while exposing concrete output unions for modern protocols. Retain explicit awaiting statuses and real null responses without exposing SDK-generated error fallbacks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize consolidated typed outputs

Project compact method-discriminated DTOs from API responses while preserving the separate legacy text formatter and explicit app-awaiting status. Cache strict schemas and keep only canonical snapshots. Strengthen null-member presence, schema size, and lockdown projection regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): keep union property schemas portable

Preserve forbidden variant properties as annotated schema objects rather than boolean schemas emitted by jsonschema-go. Cover Inspector's input paths and IFC labels on every issue-read method across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): cover strict sub-issue output variants

Reject unknown methods, states, field types, opaque values and API URL properties while covering nullable and empty method data.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): pin compact comment user redaction

Pin unchanged legacy profile/avatar fields separately from compact modern user projections and assert identical lockdown filtering and sanitization across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore main-identical advertised input schema

Remove added custom-field union constraints and sentinel enums from the advertised issue-write input. Preserve runtime exactly-one validation and private strict-schema tests. All three scoped input schemas compare exactly equal to main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore protocol output parity

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize granular structured outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	pkg/github/__toolsnaps__/add_sub_issue.snap
#	pkg/github/__toolsnaps__/remove_sub_issue.snap
#	pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	pkg/github/granular_issue_types.go
#	pkg/github/issues_granular.go
#	pkg/github/typed_granular_issue_outputs_test.go

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# interactive rebase in progress; onto 1973eee
# Last command done (1 command done):
#    pick 5b8f9d19 # refactor(issues): minimize granular structured outputs
# No commands remaining.
# You are currently rebasing.
#
# Changes to be committed:
#	modified:   pkg/github/__toolsnaps__/add_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/create_issue.snap
#	modified:   pkg/github/__toolsnaps__/hide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/set_issue_fields.snap
#	modified:   pkg/github/__toolsnaps__/unhide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_assignees.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_body.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_labels.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_milestone.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_state.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_title.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_type.snap
#	modified:   pkg/github/comment_minimize_test.go
#	new file:   pkg/github/granular_issue_types.go
#	modified:   pkg/github/granular_tools_test.go
#	modified:   pkg/github/issues_granular.go
#	new file:   pkg/github/typed_granular_issue_outputs_test.go
#

* refactor(search): use typed account repository and commit tools

Preserve legacy text and search semantics while publishing protocol-gated concrete structured outputs. Cover modern, legacy, and unknown clients, full repository JSON unions, defaults, IFC labels, and errors.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): compact typed repository search output

Replace the full REST repository mirror with MinimalRepository-based
structured items plus purpose-built full-mode details. Legacy text remains
unchanged, and canonical snapshots now hold the modern output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): expose repository visibility enum

Remove the derivable node_id from compact full repository search output and
publish the visibility enum in the static output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(search): align snapshots with protocol wrapper

Keep the modern text assertion aligned with structured content after the shared output wrapper change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): migrate consolidated PR tools to typed inputs and outputs

Convert pull_request_read, create_pull_request, update_pull_request,
merge_pull_request, update_pull_request_branch, pull_request_review_write
(both feature variants), add_comment_to_pending_review and
add_reply_to_pull_request_comment to NewTool with concrete inputs and
output DTOs. Input normalizers replay legacy handler checks so legacy
coercions and error text are preserved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): align modern text with typed outputs

Use curated output DTOs for modern JSON text while preserving legacy serialization. Cover successful null responses, empty check runs, and Link-header page traversal.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): preserve legacy validation order

Replay parameter checks in handler order and scope cursor validation to review-thread reads. Keep commit message schema descriptions distinct from operation messages.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): simplify compatibility validation

Remove normalization and test assertions that only pinned which invalid argument wins. Keep per-field validation, accepted coercions, and response-shape behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat(inventory): add typed MCP tool registration foundation

Use the MCP SDK's generic registration for concrete input/output types, with protocol-gated output schemas and structured results. Keep raw handlers compatible and apply shared middleware on both paths.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test: cover legacy typed CSV results

Exercise the typed array and object paths through an initialized 2025-11-25 MCP session. Verify CSV text is returned once without structured output or the SDK JSON fallback.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(inventory): normalize legacy typed arguments

Add a raw JSON input normalizer that runs before SDK schema validation so migrated tools can retain legacy input coercions without widening their published schemas. Test case-folded issue states, numeric string IDs, validation failures and replacement registrations.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test(inventory): preserve typed input optionality

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): stabilize typed schema compatibility

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(inventory): cover protocol isolation across clients

Exercise simultaneous legacy and modern sessions against one typed tool, plus stateless HTTP requests with modern, legacy, and absent protocol headers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): harden typed schema registration contracts

Cache immutable schema variants and enum overrides, preserve runtime input compatibility and request-era output behavior, and normalize dynamic scope challenges before dispatch.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): cache warm schemas and guard typed preflight

Avoid repeated canonical schema serialization and header annotation for cache-owned immutable pointers while retaining content-based lookup for caller-owned schemas. Run typed authorization and availability middleware before preflight and preserve tool-result error semantics.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): preserve schema metadata isolation

Advertise the SDK-compatible object schema for typed any input and deep-clone mutable JSON Schema metadata before caching or deriving runtime variants. Add legacy/modern registration and mutation isolation coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): detach numeric schema bounds and dedupe default traversal

Two Copilot findings on 431b7a2:

- CloneSchemas only deep-copies subschema nodes, so pointer-valued
  numeric validation keywords (Minimum, Maximum, MinLength, MinItems,
  etc.) remained aliased with the caller-owned schema after
  CloneSchema/CachedSchema. A caller mutating one of those pointers
  after caching could race with concurrent cached-schema
  serialization or silently change the cached validation bounds.
  Clone every *int/*float64 keyword explicitly alongside the existing
  collection/metadata cloning.

- CloneSchemaWithoutDefaults's removeSchemaDefaults visited every
  map/pointer child twice: once via two literal child-collection
  loops, and again via schemaChildren, which already covers the same
  fields. This doubled traversal at every nested level, making
  default removal exponential for deeply nested object/array schemas.
  Traverse only the single comprehensive schemaChildren list.

Add regression coverage across CloneSchema, CachedSchema, schema
inference option cloning, and CloneSchemaWithoutDefaults: every
*int/*float64 keyword is isolated from caller mutation (including
under concurrent marshaling), and a 48-level deep chain is used for
every schema-child field kind to confirm linear, non-exponential
default removal.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): gate typed output on supported protocol range

Select modern typed output for SDK-supported ISO-date protocol versions from 2026-07-28 onward. Missing, malformed, and unsupported future versions retain legacy behavior. Cover a later supported version through the selector list seam and verify the public path against the SDK supported set.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): unwrap pointer inputs before schema inference

Match SDK input inference by unwrapping one pointer level before the cached input key and inference. Preserve nullable output pointer schemas. Cover both public constructors with actual modern and legacy discovery and calls, including structured null output.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): reuse encoded schema cache for typed tools

Key output encodings by their source definitions while preserving the SDK-registered schema guard. Keep header routing metadata available for legacy and unknown protocol clients.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(context): add typed tool schemas and outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve legacy input acceptance

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(context): preserve input schema roots and optionality

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): validate direct team member calls

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(context): pin structured output and legacy text fixtures

Describe profile timestamps and validate null and empty team outputs against modern schemas while retaining exact legacy text.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): emit structured empty team collections

Keep legacy null text while returning nonnil typed slices so modern clients receive structured content for empty successful results.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve legacy team input schemas

Keep empty identifier rejection in the handler without tightening the published input schema. Pin modern text to structured output and preserve the legacy formatter fixtures.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve advertised input schema compatibility

Keep legacy-visible schemas byte-compatible while applying unknown-field acceptance only to the cached runtime validation schema. Verify modern DTO text parity and preserve legacy formatted text.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): reject explicit null team user arguments

Preserve the legacy optional user type error before typed decoding, without changing omitted or empty user fallback.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve exact routing argument keys

Ignore case-variant routing aliases before typed decoding while retaining canonical fields and unrelated unknown arguments. Cover direct handlers and legacy/modern registered calls, authenticated fallback, canonical null rejection, and missing identifiers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(comments): add typed visibility tool inputs and outputs

Preserve legacy argument normalization and text responses while exposing protocol-gated structured results for six hide/unhide tools.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* chore: regenerate license files

Auto-generated by license-check workflow

* test(comments): pin protocol output parity and reason metadata

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(comments): reuse cached visibility output schema

Clarify supported negotiated protocol versions without expanding runtime support.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(search): add typed projected result outputs

* fix(search): preserve field_values presence and add nested schema fixtures

Address review findings on the typed search/list projected-output
tools (search_code, search_issues, search_pull_requests, list_issues,
list_pull_requests, list_branches, list_tags):

- issues.go/pullrequests.go: change FieldValues to a pointer-to-slice
  (*[]MinimalFieldValue) so a successful-but-empty [] is preserved in
  structuredContent, matching legacy text output instead of being
  dropped by omitempty.
- search.go: related adjustments to keep typed search outputs aligned
  with the field_values presence fix.
- typed_search_outputs_test.go: add representative nested/non-empty
  projected item fixtures so schema-conformance tests actually
  exercise item shapes instead of only validating empty collections.
- Add/update toolsnaps for list_branches, list_issues,
  list_pull_requests, list_tags, search_code, search_issues, and
  search_pull_requests to reflect the schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test: bound encoded schema parity registration work

Reuse each immutable HTTP server across pagination requests and share the SDK schema cache across parity variants without changing wire comparisons.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(security): add typed alert outputs

Add typed protocol-gated outputs for code quality, code and secret scanning, Dependabot, and security advisories while preserving existing text responses.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(security): preserve compatibility with compact typed outputs

Keep advertised input defaults while disabling runtime default injection for security filters. Normalize null CWE filters, compact findings, and verify modern wire outputs alongside exact legacy formatting.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat: type discussion and notification tool outputs

Migrate all eleven tools to typed registration and compact output DTOs. Preserve legacy text, parameter compatibility, pagination, and mutation validation while publishing honest modern output unions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: tighten discussion and notification output contracts

Trim notification hypermedia, preserve useful HTML links, and record all modern schemas in canonical snapshots. Preserve source presence during discussion read normalization and cover the Copilot review regression alongside empty/null outputs, IFC labels, sanitization, and output enums.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test: cover empty-object discussion read requests and modern-text==DTO expectations

Add an explicit {} (fully-empty args) case to
TestDiscussionReadRequiredArguments proving the normalizer never
synthesizes placeholder owner/repo/discussionNumber values that would
let an empty request satisfy SDK required-schema validation and reach
GraphQL; verified both protocols reject it pre-handler with zero
GraphQL calls (addresses readiness-audit re-flag of already-fixed
Copilot review comment 4171698931 in 578e9929).

Also record the pending modern-text==structuredContent DTO contract
(2026-07-28 protocol) in test expectations; these assertions are
intentionally red pending the coordinator's central once-marshal
wrapper in pkg/inventory/typed_output.go, which this branch does not
yet have.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(notifications): preserve plain status output content

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(repos): add typed commit tool outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(repos): restore commit pagination defaults

Normalize omitted and explicit zero pagination to page 1 and perPage 30 for get_commit and list_commits. Cover legacy and modern wire calls and direct handlers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(repos): return typed projected commit lists

Use an optional-field commit DTO for full and projected modern outputs while retaining exact legacy text. Cover SHA and nested commit projections, empty lists, and output schema conformance.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test(repos): snapshot modern commit tools and strengthen wire coverage

Capture canonical modern schemas, exercise null lists and error suppression with IFC labels, and drop unrelated generated Linux license drift noted by Copilot review.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(repos): distinguish legacy and modern commit text

Keep exact-main byte assertions for the legacy protocol and verify modern text represents the same typed DTO as structured content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(repos): sync commit snapshots with parent DTO metadata

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(issues): add typed metadata comment and dependency outputs

Preserve legacy text and argument coercions while exposing protocol-gated structured issue outputs. Add modern, legacy, unknown-version, union-schema and API-error contracts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* chore: regenerate license files

Auto-generated by license-check workflow

* fix(issues): preserve zero pagination for duplicate search

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(issues): preserve compact typed output contracts

Cache DTO schema inference, retain byte-exact handler text, and cover protocol, pagination and schema contracts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): bound encoded schema parity registration work

Reuse immutable HTTP comparison servers and the SDK schema cache across the full parity matrix. Refresh inherited user timestamp descriptions in issue snapshots.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(repos): complete typed repository tool outputs

Migrate the remaining 17 repository tools to concrete inputs and outputs. Preserve existing content, mutations, scopes, filtering, and protocol gating; add wire and schema conformance coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore(repos): exclude unrelated snapshot formatting drift

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(repos): compact typed repository outputs

Replace raw REST output schemas with compact repository DTOs, retain one canonical snapshot per tool, and align modern JSON text with structured output while pinning legacy content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(issues): add typed consolidated issue tool contracts

Preserve raw helper APIs and exact legacy text while exposing concrete output unions for modern protocols. Retain explicit awaiting statuses and real null responses without exposing SDK-generated error fallbacks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize consolidated typed outputs

Project compact method-discriminated DTOs from API responses while preserving the separate legacy text formatter and explicit app-awaiting status. Cache strict schemas and keep only canonical snapshots. Strengthen null-member presence, schema size, and lockdown projection regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): keep union property schemas portable

Preserve forbidden variant properties as annotated schema objects rather than boolean schemas emitted by jsonschema-go. Cover Inspector's input paths and IFC labels on every issue-read method across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): cover strict sub-issue output variants

Reject unknown methods, states, field types, opaque values and API URL properties while covering nullable and empty method data.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): pin compact comment user redaction

Pin unchanged legacy profile/avatar fields separately from compact modern user projections and assert identical lockdown filtering and sanitization across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore main-identical advertised input schema

Remove added custom-field union constraints and sentinel enums from the advertised issue-write input. Preserve runtime exactly-one validation and private strict-schema tests. All three scoped input schemas compare exactly equal to main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore protocol output parity

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize granular structured outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	pkg/github/__toolsnaps__/add_sub_issue.snap
#	pkg/github/__toolsnaps__/remove_sub_issue.snap
#	pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	pkg/github/granular_issue_types.go
#	pkg/github/issues_granular.go
#	pkg/github/typed_granular_issue_outputs_test.go

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# interactive rebase in progress; onto 1973eee
# Last command done (1 command done):
#    pick 5b8f9d19 # refactor(issues): minimize granular structured outputs
# No commands remaining.
# You are currently rebasing.
#
# Changes to be committed:
#	modified:   pkg/github/__toolsnaps__/add_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/create_issue.snap
#	modified:   pkg/github/__toolsnaps__/hide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/set_issue_fields.snap
#	modified:   pkg/github/__toolsnaps__/unhide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_assignees.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_body.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_labels.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_milestone.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_state.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_title.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_type.snap
#	modified:   pkg/github/comment_minimize_test.go
#	new file:   pkg/github/granular_issue_types.go
#	modified:   pkg/github/granular_tools_test.go
#	modified:   pkg/github/issues_granular.go
#	new file:   pkg/github/typed_granular_issue_outputs_test.go
#

* refactor(search): use typed account repository and commit tools

Preserve legacy text and search semantics while publishing protocol-gated concrete structured outputs. Cover modern, legacy, and unknown clients, full repository JSON unions, defaults, IFC labels, and errors.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): compact typed repository search output

Replace the full REST repository mirror with MinimalRepository-based
structured items plus purpose-built full-mode details. Legacy text remains
unchanged, and canonical snapshots now hold the modern output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): expose repository visibility enum

Remove the derivable node_id from compact full repository search output and
publish the visibility enum in the static output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(search): align snapshots with protocol wrapper

Keep the modern text assertion aligned with structured content after the shared output wrapper change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): migrate consolidated PR tools to typed inputs and outputs

Convert pull_request_read, create_pull_request, update_pull_request,
merge_pull_request, update_pull_request_branch, pull_request_review_write
(both feature variants), add_comment_to_pending_review and
add_reply_to_pull_request_comment to NewTool with concrete inputs and
output DTOs. Input normalizers replay legacy handler checks so legacy
coercions and error text are preserved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): align modern text with typed outputs

Use curated output DTOs for modern JSON text while preserving legacy serialization. Cover successful null responses, empty check runs, and Link-header page traversal.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): preserve legacy validation order

Replay parameter checks in handler order and scope cursor validation to review-thread reads. Keep commit message schema descriptions distinct from operation messages.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): simplify compatibility validation

Remove normalization and test assertions that only pinned which invalid argument wins. Keep per-field validation, accepted coercions, and response-shape behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): type granular MCP tools

Preserve exact legacy validation and response text while advertising concrete protocol-gated outputs for all granular PR mutations and both thread-resolution variants.

Make the inherited overflow assertion architecture-independent.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* fix(pull-requests): preserve granular tool compatibility

Keep advertised schemas exact while applying legacy-compatible runtime validation, and verify protocol-era output parity.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test(pull-requests): compare schema sets semantically

Treat required properties and enum values as unordered sets in the schema audit.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): retain granular schema descriptions

Keep the original enum guidance in input descriptions while preserving actual JSON Schema enum constraints.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(repos): complete typed repository tool outputs

Migrate the remaining 17 repository tools to concrete inputs and outputs. Preserve existing content, mutations, scopes, filtering, and protocol gating; add wire and schema conformance coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore(repos): exclude unrelated snapshot formatting drift

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(repos): compact typed repository outputs

Replace raw REST output schemas with compact repository DTOs, retain one canonical snapshot per tool, and align modern JSON text with structured output while pinning legacy content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(issues): add typed consolidated issue tool contracts

Preserve raw helper APIs and exact legacy text while exposing concrete output unions for modern protocols. Retain explicit awaiting statuses and real null responses without exposing SDK-generated error fallbacks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize consolidated typed outputs

Project compact method-discriminated DTOs from API responses while preserving the separate legacy text formatter and explicit app-awaiting status. Cache strict schemas and keep only canonical snapshots. Strengthen null-member presence, schema size, and lockdown projection regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): keep union property schemas portable

Preserve forbidden variant properties as annotated schema objects rather than boolean schemas emitted by jsonschema-go. Cover Inspector's input paths and IFC labels on every issue-read method across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): cover strict sub-issue output variants

Reject unknown methods, states, field types, opaque values and API URL properties while covering nullable and empty method data.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): pin compact comment user redaction

Pin unchanged legacy profile/avatar fields separately from compact modern user projections and assert identical lockdown filtering and sanitization across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore main-identical advertised input schema

Remove added custom-field union constraints and sentinel enums from the advertised issue-write input. Preserve runtime exactly-one validation and private strict-schema tests. All three scoped input schemas compare exactly equal to main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore protocol output parity

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize granular structured outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	pkg/github/__toolsnaps__/add_sub_issue.snap
#	pkg/github/__toolsnaps__/remove_sub_issue.snap
#	pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	pkg/github/granular_issue_types.go
#	pkg/github/issues_granular.go
#	pkg/github/typed_granular_issue_outputs_test.go

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# interactive rebase in progress; onto 1973eee
# Last command done (1 command done):
#    pick 5b8f9d19 # refactor(issues): minimize granular structured outputs
# No commands remaining.
# You are currently rebasing.
#
# Changes to be committed:
#	modified:   pkg/github/__toolsnaps__/add_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/create_issue.snap
#	modified:   pkg/github/__toolsnaps__/hide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/set_issue_fields.snap
#	modified:   pkg/github/__toolsnaps__/unhide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_assignees.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_body.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_labels.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_milestone.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_state.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_title.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_type.snap
#	modified:   pkg/github/comment_minimize_test.go
#	new file:   pkg/github/granular_issue_types.go
#	modified:   pkg/github/granular_tools_test.go
#	modified:   pkg/github/issues_granular.go
#	new file:   pkg/github/typed_granular_issue_outputs_test.go
#

* refactor(search): use typed account repository and commit tools

Preserve legacy text and search semantics while publishing protocol-gated concrete structured outputs. Cover modern, legacy, and unknown clients, full repository JSON unions, defaults, IFC labels, and errors.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): compact typed repository search output

Replace the full REST repository mirror with MinimalRepository-based
structured items plus purpose-built full-mode details. Legacy text remains
unchanged, and canonical snapshots now hold the modern output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): expose repository visibility enum

Remove the derivable node_id from compact full repository search output and
publish the visibility enum in the static output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(search): align snapshots with protocol wrapper

Keep the modern text assertion aligned with structured content after the shared output wrapper change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): migrate consolidated PR tools to typed inputs and outputs

Convert pull_request_read, create_pull_request, update_pull_request,
merge_pull_request, update_pull_request_branch, pull_request_review_write
(both feature variants), add_comment_to_pending_review and
add_reply_to_pull_request_comment to NewTool with concrete inputs and
output DTOs. Input normalizers replay legacy handler checks so legacy
coercions and error text are preserved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): align modern text with typed outputs

Use curated output DTOs for modern JSON text while preserving legacy serialization. Cover successful null responses, empty check runs, and Link-header page traversal.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): preserve legacy validation order

Replay parameter checks in handler order and scope cursor validation to review-thread reads. Keep commit message schema descriptions distinct from operation messages.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): simplify compatibility validation

Remove normalization and test assertions that only pinned which invalid argument wins. Keep per-field validation, accepted coercions, and response-shape behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): type granular MCP tools

Preserve exact legacy validation and response text while advertising concrete protocol-gated outputs for all granular PR mutations and both thread-resolution variants.

Make the inherited overflow assertion architecture-independent.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* fix(pull-requests): preserve granular tool compatibility

Keep advertised schemas exact while applying legacy-compatible runtime validation, and verify protocol-era output parity.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test(pull-requests): compare schema sets semantically

Treat required properties and enum values as unordered sets in the schema audit.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): retain granular schema descriptions

Keep the original enum guidance in input descriptions while preserving actual JSON Schema enum constraints.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat(inventory): add typed MCP tool registration foundation

Use the MCP SDK's generic registration for concrete input/output types, with protocol-gated output schemas and structured results. Keep raw handlers compatible and apply shared middleware on both paths.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test: cover legacy typed CSV results

Exercise the typed array and object paths through an initialized 2025-11-25 MCP session. Verify CSV text is returned once without structured output or the SDK JSON fallback.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(inventory): normalize legacy typed arguments

Add a raw JSON input normalizer that runs before SDK schema validation so migrated tools can retain legacy input coercions without widening their published schemas. Test case-folded issue states, numeric string IDs, validation failures and replacement registrations.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test(inventory): preserve typed input optionality

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): stabilize typed schema compatibility

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(inventory): cover protocol isolation across clients

Exercise simultaneous legacy and modern sessions against one typed tool, plus stateless HTTP requests with modern, legacy, and absent protocol headers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): harden typed schema registration contracts

Cache immutable schema variants and enum overrides, preserve runtime input compatibility and request-era output behavior, and normalize dynamic scope challenges before dispatch.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): cache warm schemas and guard typed preflight

Avoid repeated canonical schema serialization and header annotation for cache-owned immutable pointers while retaining content-based lookup for caller-owned schemas. Run typed authorization and availability middleware before preflight and preserve tool-result error semantics.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): preserve schema metadata isolation

Advertise the SDK-compatible object schema for typed any input and deep-clone mutable JSON Schema metadata before caching or deriving runtime variants. Add legacy/modern registration and mutation isolation coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): detach numeric schema bounds and dedupe default traversal

Two Copilot findings on 431b7a2:

- CloneSchemas only deep-copies subschema nodes, so pointer-valued
  numeric validation keywords (Minimum, Maximum, MinLength, MinItems,
  etc.) remained aliased with the caller-owned schema after
  CloneSchema/CachedSchema. A caller mutating one of those pointers
  after caching could race with concurrent cached-schema
  serialization or silently change the cached validation bounds.
  Clone every *int/*float64 keyword explicitly alongside the existing
  collection/metadata cloning.

- CloneSchemaWithoutDefaults's removeSchemaDefaults visited every
  map/pointer child twice: once via two literal child-collection
  loops, and again via schemaChildren, which already covers the same
  fields. This doubled traversal at every nested level, making
  default removal exponential for deeply nested object/array schemas.
  Traverse only the single comprehensive schemaChildren list.

Add regression coverage across CloneSchema, CachedSchema, schema
inference option cloning, and CloneSchemaWithoutDefaults: every
*int/*float64 keyword is isolated from caller mutation (including
under concurrent marshaling), and a 48-level deep chain is used for
every schema-child field kind to confirm linear, non-exponential
default removal.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): gate typed output on supported protocol range

Select modern typed output for SDK-supported ISO-date protocol versions from 2026-07-28 onward. Missing, malformed, and unsupported future versions retain legacy behavior. Cover a later supported version through the selector list seam and verify the public path against the SDK supported set.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): unwrap pointer inputs before schema inference

Match SDK input inference by unwrapping one pointer level before the cached input key and inference. Preserve nullable output pointer schemas. Cover both public constructors with actual modern and legacy discovery and calls, including structured null output.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(inventory): reuse encoded schema cache for typed tools

Key output encodings by their source definitions while preserving the SDK-registered schema guard. Keep header routing metadata available for legacy and unknown protocol clients.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(context): add typed tool schemas and outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve legacy input acceptance

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(context): preserve input schema roots and optionality

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): validate direct team member calls

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(context): pin structured output and legacy text fixtures

Describe profile timestamps and validate null and empty team outputs against modern schemas while retaining exact legacy text.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): emit structured empty team collections

Keep legacy null text while returning nonnil typed slices so modern clients receive structured content for empty successful results.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve legacy team input schemas

Keep empty identifier rejection in the handler without tightening the published input schema. Pin modern text to structured output and preserve the legacy formatter fixtures.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve advertised input schema compatibility

Keep legacy-visible schemas byte-compatible while applying unknown-field acceptance only to the cached runtime validation schema. Verify modern DTO text parity and preserve legacy formatted text.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): reject explicit null team user arguments

Preserve the legacy optional user type error before typed decoding, without changing omitted or empty user fallback.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(context): preserve exact routing argument keys

Ignore case-variant routing aliases before typed decoding while retaining canonical fields and unrelated unknown arguments. Cover direct handlers and legacy/modern registered calls, authenticated fallback, canonical null rejection, and missing identifiers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(comments): add typed visibility tool inputs and outputs

Preserve legacy argument normalization and text responses while exposing protocol-gated structured results for six hide/unhide tools.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* chore: regenerate license files

Auto-generated by license-check workflow

* test(comments): pin protocol output parity and reason metadata

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(comments): reuse cached visibility output schema

Clarify supported negotiated protocol versions without expanding runtime support.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(search): add typed projected result outputs

* fix(search): preserve field_values presence and add nested schema fixtures

Address review findings on the typed search/list projected-output
tools (search_code, search_issues, search_pull_requests, list_issues,
list_pull_requests, list_branches, list_tags):

- issues.go/pullrequests.go: change FieldValues to a pointer-to-slice
  (*[]MinimalFieldValue) so a successful-but-empty [] is preserved in
  structuredContent, matching legacy text output instead of being
  dropped by omitempty.
- search.go: related adjustments to keep typed search outputs aligned
  with the field_values presence fix.
- typed_search_outputs_test.go: add representative nested/non-empty
  projected item fixtures so schema-conformance tests actually
  exercise item shapes instead of only validating empty collections.
- Add/update toolsnaps for list_branches, list_issues,
  list_pull_requests, list_tags, search_code, search_issues, and
  search_pull_requests to reflect the schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test: bound encoded schema parity registration work

Reuse each immutable HTTP server across pagination requests and share the SDK schema cache across parity variants without changing wire comparisons.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(security): add typed alert outputs

Add typed protocol-gated outputs for code quality, code and secret scanning, Dependabot, and security advisories while preserving existing text responses.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(security): preserve compatibility with compact typed outputs

Keep advertised input defaults while disabling runtime default injection for security filters. Normalize null CWE filters, compact findings, and verify modern wire outputs alongside exact legacy formatting.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat: type discussion and notification tool outputs

Migrate all eleven tools to typed registration and compact output DTOs. Preserve legacy text, parameter compatibility, pagination, and mutation validation while publishing honest modern output unions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: tighten discussion and notification output contracts

Trim notification hypermedia, preserve useful HTML links, and record all modern schemas in canonical snapshots. Preserve source presence during discussion read normalization and cover the Copilot review regression alongside empty/null outputs, IFC labels, sanitization, and output enums.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test: cover empty-object discussion read requests and modern-text==DTO expectations

Add an explicit {} (fully-empty args) case to
TestDiscussionReadRequiredArguments proving the normalizer never
synthesizes placeholder owner/repo/discussionNumber values that would
let an empty request satisfy SDK required-schema validation and reach
GraphQL; verified both protocols reject it pre-handler with zero
GraphQL calls (addresses readiness-audit re-flag of already-fixed
Copilot review comment 4171698931 in 578e9929).

Also record the pending modern-text==structuredContent DTO contract
(2026-07-28 protocol) in test expectations; these assertions are
intentionally red pending the coordinator's central once-marshal
wrapper in pkg/inventory/typed_output.go, which this branch does not
yet have.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(notifications): preserve plain status output content

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(repos): add typed commit tool outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(repos): restore commit pagination defaults

Normalize omitted and explicit zero pagination to page 1 and perPage 30 for get_commit and list_commits. Cover legacy and modern wire calls and direct handlers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(repos): return typed projected commit lists

Use an optional-field commit DTO for full and projected modern outputs while retaining exact legacy text. Cover SHA and nested commit projections, empty lists, and output schema conformance.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test(repos): snapshot modern commit tools and strengthen wire coverage

Capture canonical modern schemas, exercise null lists and error suppression with IFC labels, and drop unrelated generated Linux license drift noted by Copilot review.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(repos): distinguish legacy and modern commit text

Keep exact-main byte assertions for the legacy protocol and verify modern text represents the same typed DTO as structured content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(repos): sync commit snapshots with parent DTO metadata

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(issues): add typed metadata comment and dependency outputs

Preserve legacy text and argument coercions while exposing protocol-gated structured issue outputs. Add modern, legacy, unknown-version, union-schema and API-error contracts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* chore: regenerate license files

Auto-generated by license-check workflow

* fix(issues): preserve zero pagination for duplicate search

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(issues): preserve compact typed output contracts

Cache DTO schema inference, retain byte-exact handler text, and cover protocol, pagination and schema contracts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): bound encoded schema parity registration work

Reuse immutable HTTP comparison servers and the SDK schema cache across the full parity matrix. Refresh inherited user timestamp descriptions in issue snapshots.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(repos): complete typed repository tool outputs

Migrate the remaining 17 repository tools to concrete inputs and outputs. Preserve existing content, mutations, scopes, filtering, and protocol gating; add wire and schema conformance coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore(repos): exclude unrelated snapshot formatting drift

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(repos): compact typed repository outputs

Replace raw REST output schemas with compact repository DTOs, retain one canonical snapshot per tool, and align modern JSON text with structured output while pinning legacy content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(issues): add typed consolidated issue tool contracts

Preserve raw helper APIs and exact legacy text while exposing concrete output unions for modern protocols. Retain explicit awaiting statuses and real null responses without exposing SDK-generated error fallbacks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize consolidated typed outputs

Project compact method-discriminated DTOs from API responses while preserving the separate legacy text formatter and explicit app-awaiting status. Cache strict schemas and keep only canonical snapshots. Strengthen null-member presence, schema size, and lockdown projection regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): keep union property schemas portable

Preserve forbidden variant properties as annotated schema objects rather than boolean schemas emitted by jsonschema-go. Cover Inspector's input paths and IFC labels on every issue-read method across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): cover strict sub-issue output variants

Reject unknown methods, states, field types, opaque values and API URL properties while covering nullable and empty method data.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): pin compact comment user redaction

Pin unchanged legacy profile/avatar fields separately from compact modern user projections and assert identical lockdown filtering and sanitization across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore main-identical advertised input schema

Remove added custom-field union constraints and sentinel enums from the advertised issue-write input. Preserve runtime exactly-one validation and private strict-schema tests. All three scoped input schemas compare exactly equal to main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore protocol output parity

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize granular structured outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	pkg/github/__toolsnaps__/add_sub_issue.snap
#	pkg/github/__toolsnaps__/remove_sub_issue.snap
#	pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	pkg/github/granular_issue_types.go
#	pkg/github/issues_granular.go
#	pkg/github/typed_granular_issue_outputs_test.go

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# interactive rebase in progress; onto 1973eee
# Last command done (1 command done):
#    pick 5b8f9d19 # refactor(issues): minimize granular structured outputs
# No commands remaining.
# You are currently rebasing.
#
# Changes to be committed:
#	modified:   pkg/github/__toolsnaps__/add_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/create_issue.snap
#	modified:   pkg/github/__toolsnaps__/hide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/set_issue_fields.snap
#	modified:   pkg/github/__toolsnaps__/unhide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_assignees.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_body.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_labels.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_milestone.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_state.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_title.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_type.snap
#	modified:   pkg/github/comment_minimize_test.go
#	new file:   pkg/github/granular_issue_types.go
#	modified:   pkg/github/granular_tools_test.go
#	modified:   pkg/github/issues_granular.go
#	new file:   pkg/github/typed_granular_issue_outputs_test.go
#

* refactor(search): use typed account repository and commit tools

Preserve legacy text and search semantics while publishing protocol-gated concrete structured outputs. Cover modern, legacy, and unknown clients, full repository JSON unions, defaults, IFC labels, and errors.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): compact typed repository search output

Replace the full REST repository mirror with MinimalRepository-based
structured items plus purpose-built full-mode details. Legacy text remains
unchanged, and canonical snapshots now hold the modern output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): expose repository visibility enum

Remove the derivable node_id from compact full repository search output and
publish the visibility enum in the static output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(search): align snapshots with protocol wrapper

Keep the modern text assertion aligned with structured content after the shared output wrapper change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): migrate consolidated PR tools to typed inputs and outputs

Convert pull_request_read, create_pull_request, update_pull_request,
merge_pull_request, update_pull_request_branch, pull_request_review_write
(both feature variants), add_comment_to_pending_review and
add_reply_to_pull_request_comment to NewTool with concrete inputs and
output DTOs. Input normalizers replay legacy handler checks so legacy
coercions and error text are preserved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): align modern text with typed outputs

Use curated output DTOs for modern JSON text while preserving legacy serialization. Cover successful null responses, empty check runs, and Link-header page traversal.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): preserve legacy validation order

Replay parameter checks in handler order and scope cursor validation to review-thread reads. Keep commit message schema descriptions distinct from operation messages.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): simplify compatibility validation

Remove normalization and test assertions that only pinned which invalid argument wins. Keep per-field validation, accepted coercions, and response-shape behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): type granular MCP tools

Preserve exact legacy validation and response text while advertising concrete protocol-gated outputs for all granular PR mutations and both thread-resolution variants.

Make the inherited overflow assertion architecture-independent.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* fix(pull-requests): preserve granular tool compatibility

Keep advertised schemas exact while applying legacy-compatible runtime validation, and verify protocol-era output parity.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test(pull-requests): compare schema sets semantically

Treat required properties and enum values as unordered sets in the schema audit.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): retain granular schema descriptions

Keep the original enum guidance in input descriptions while preserving actual JSON Schema enum constraints.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(actions): type consolidated MCP tools

Preserve legacy Actions payloads, validation ordering, coercions, IFC labels, and scope annotations while exposing concrete method-specific output unions to supported clients.

Reject unrecognized versions in the shared structured-output capability gate without changing tool availability rules.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(actions): add typed Actions tool outputs

Expose compact method-discriminated outputs for Actions tools while preserving legacy behavior, input coercions, and pagination forwarding.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(repos): complete typed repository tool outputs

Migrate the remaining 17 repository tools to concrete inputs and outputs. Preserve existing content, mutations, scopes, filtering, and protocol gating; add wire and schema conformance coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore(repos): exclude unrelated snapshot formatting drift

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(repos): compact typed repository outputs

Replace raw REST output schemas with compact repository DTOs, retain one canonical snapshot per tool, and align modern JSON text with structured output while pinning legacy content.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(issues): add typed consolidated issue tool contracts

Preserve raw helper APIs and exact legacy text while exposing concrete output unions for modern protocols. Retain explicit awaiting statuses and real null responses without exposing SDK-generated error fallbacks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize consolidated typed outputs

Project compact method-discriminated DTOs from API responses while preserving the separate legacy text formatter and explicit app-awaiting status. Cache strict schemas and keep only canonical snapshots. Strengthen null-member presence, schema size, and lockdown projection regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): keep union property schemas portable

Preserve forbidden variant properties as annotated schema objects rather than boolean schemas emitted by jsonschema-go. Cover Inspector's input paths and IFC labels on every issue-read method across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): cover strict sub-issue output variants

Reject unknown methods, states, field types, opaque values and API URL properties while covering nullable and empty method data.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(issues): pin compact comment user redaction

Pin unchanged legacy profile/avatar fields separately from compact modern user projections and assert identical lockdown filtering and sanitization across protocols.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore main-identical advertised input schema

Remove added custom-field union constraints and sentinel enums from the advertised issue-write input. Preserve runtime exactly-one validation and private strict-schema tests. All three scoped input schemas compare exactly equal to main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(issues): restore protocol output parity

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* refactor(issues): minimize granular structured outputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	pkg/github/__toolsnaps__/add_sub_issue.snap
#	pkg/github/__toolsnaps__/remove_sub_issue.snap
#	pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	pkg/github/granular_issue_types.go
#	pkg/github/issues_granular.go
#	pkg/github/typed_granular_issue_outputs_test.go

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# interactive rebase in progress; onto 1973eee
# Last command done (1 command done):
#    pick 5b8f9d19 # refactor(issues): minimize granular structured outputs
# No commands remaining.
# You are currently rebasing.
#
# Changes to be committed:
#	modified:   pkg/github/__toolsnaps__/add_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/add_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/create_issue.snap
#	modified:   pkg/github/__toolsnaps__/hide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_comment_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_issue_reaction.snap
#	modified:   pkg/github/__toolsnaps__/remove_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/reprioritize_sub_issue.snap
#	modified:   pkg/github/__toolsnaps__/set_issue_fields.snap
#	modified:   pkg/github/__toolsnaps__/unhide_issue_comment.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_assignees.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_body.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_labels.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_milestone.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_state.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_title.snap
#	modified:   pkg/github/__toolsnaps__/update_issue_type.snap
#	modified:   pkg/github/comment_minimize_test.go
#	new file:   pkg/github/granular_issue_types.go
#	modified:   pkg/github/granular_tools_test.go
#	modified:   pkg/github/issues_granular.go
#	new file:   pkg/github/typed_granular_issue_outputs_test.go
#

* refactor(search): use typed account repository and commit tools

Preserve legacy text and search semantics while publishing protocol-gated concrete structured outputs. Cover modern, legacy, and unknown clients, full repository JSON unions, defaults, IFC labels, and errors.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): compact typed repository search output

Replace the full REST repository mirror with MinimalRepository-based
structured items plus purpose-built full-mode details. Legacy text remains
unchanged, and canonical snapshots now hold the modern output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(search): expose repository visibility enum

Remove the derivable node_id from compact full repository search output and
publish the visibility enum in the static output schema.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(search): align snapshots with protocol wrapper

Keep the modern text assertion aligned with structured content after the shared output wrapper change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): migrate consolidated PR tools to typed inputs and outputs

Convert pull_request_read, create_pull_request, update_pull_request,
merge_pull_request, update_pull_request_branch, pull_request_review_write
(both feature variants), add_comment_to_pending_review and
add_reply_to_pull_request_comment to NewTool with concrete inputs and
output DTOs. Input normalizers replay legacy handler checks so legacy
coercions and error text are preserved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): align modern text with typed outputs

Use curated output DTOs for modern JSON text while preserving legacy serialization. Cover successful null responses, empty check runs, and Link-header page traversal.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): preserve legacy validation order

Replay parameter checks in handler order and scope cursor validation to review-thread reads. Keep commit message schema descriptions distinct from operation messages.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): simplify compatibility validation

Remove normalization and test assertions that only pinned which invalid argument wins. Keep per-field validation, accepted coercions, and response-shape behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(pull-requests): type granular MCP tools

Preserve exact legacy validation and response text while advertising concrete protocol-gated outputs for all granular PR mutations and both thread-resolution variants.

Make the inherited overflow assertion architecture-independent.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* fix(pull-requests): preserve granular tool compatibility

Keep advertised schemas exact while applying legacy-compatible runtime validation, and verify protocol-era output parity.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* test(pull-requests): compare schema sets semantically

Treat required properties and enum values as unordered sets in the schema audit.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(pull-requests): retain granular schema descriptions

Keep the original enum guidance in input descriptions while preserving actual JSON Schema enum constraints.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(actions): type consolidated MCP tools

Preserve legacy Actions payloads, validation ordering, coercions, IFC labels, and scope annotations while exposing concrete method-specific output unions to supported clients.

Reject unrecognized versions in the shared structured-output capability gate without changing tool availability rules.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(actions): add typed Actions tool outputs

Expose compact method-discriminated outputs for Actions tools while preserving legacy behavior, input coercions, and pagination forwarding.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* preserve typed tool compatibility

* retain typed output fidelity

* tighten typed output contracts
SamMorrowDrums and others added 25 commits October 7, 2026 01:40
github#3440)

The streamable-http job started the server with `go run` and relied on
mcp-server-diff's fixed http_startup_wait_ms sleep. On the baseline
worktree (.mcp-diff-base) nothing is cached, and since the typed tool
refactors compile+link exceeds 5s, so every baseline probe hit
ECONNREFUSED ("fetch failed"). The action treats a one-sided startup
failure as a non-fatal "config-missing" and diffs against an empty
baseline, so fail_on_error never triggered and the job stayed green.

Build the binary in install_command (which completes on both sides
before the server starts) and start it directly, and add a step that
fails the job if any configuration did not start on either side.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Migrate internal imports, build linker symbols, installation docs, and generated license attribution to the /v2 module path.

BREAKING CHANGE: Go consumers must import github.com/github/github-mcp-server/v2.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve advertised parameter header bindings in the SDK registration schema so Streamable HTTP rejects header/body mismatches before receiving middleware. Keep full body validation and defaults behind tool guards, with unchanged advertised schemas and OAuth finalization.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Bumps [@modelcontextprotocol/client](https://github.com/modelcontextprotocol/typescript-sdk) from 2.2.0 to 2.3.1.
- [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
- [Commits](https://github.com/modelcontextprotocol/typescript-sdk/compare/@modelcontextprotocol/client@2.2.0...@modelcontextprotocol/client@2.3.1)

---
updated-dependencies:
- dependency-name: "@modelcontextprotocol/client"
  dependency-version: 2.3.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…github#3461)

Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 6.1.1 to 6.1.2.
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@6.1.2/packages/plugin-react)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
  dependency-version: 6.1.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Iryna Kulakova <52420926+IrynaKulakova@users.noreply.github.com>
…ntents (github#3419)

The Contents API returns files over 1 MB with an empty content field and encoding "none". Since the symlink read checks, get_file_contents tried to decode that content and failed with "unsupported content encoding: none" before reaching the large-file branch. Treat that response as content not available so the tool returns the resource link again.

Co-authored-by: Iryna Kulakova <52420926+IrynaKulakova@users.noreply.github.com>
* Return every label from list_label instead of the first 100

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d8a9000c-ebe8-4118-ae89-a942861e4166

* Page list_label with cursors instead of fetching every label

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d8a9000c-ebe8-4118-ae89-a942861e4166

* Match list_issues wording in the list_label description

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d8a9000c-ebe8-4118-ae89-a942861e4166

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d8a9000c-ebe8-4118-ae89-a942861e4166
* upgrade to Go 1.27.3 for compromised CA mitigation

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3c4f7224-1f03-44c2-ab67-db76f7c8eceb

* isolate HTTP transports in parallel tests

Use the existing per-test transport helper so httptest server cleanup cannot close another test's shared default connections.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3c4f7224-1f03-44c2-ab67-db76f7c8eceb

* remove unused CodeQL environment resolution

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3c4f7224-1f03-44c2-ab67-db76f7c8eceb

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3c4f7224-1f03-44c2-ab67-db76f7c8eceb
…b#3516)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 26.6.4 to 26.6.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.6.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Iryna Kulakova <52420926+IrynaKulakova@users.noreply.github.com>
The previous link pointed to a 404 page.
Updated to the current SDKs documentation page.

Fixes github#3589
…ui (github#3515)

Bumps [@primer/octicons-react](https://github.com/primer/octicons) from 19.38.0 to 19.40.0.
- [Release notes](https://github.com/primer/octicons/releases)
- [Changelog](https://github.com/primer/octicons/blob/main/CHANGELOG.md)
- [Commits](https://github.com/primer/octicons/compare/@primer/octicons-react@19.38.0...@primer/octicons-react@19.40.0)

---
updated-dependencies:
- dependency-name: "@primer/octicons-react"
  dependency-version: 19.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
…ui (github#3551)

Bumps [vite-plugin-singlefile](https://github.com/richardtallent/vite-plugin-singlefile) from 2.3.3 to 2.3.4.
- [Changelog](https://github.com/richardtallent/vite-plugin-singlefile/blob/main/CHANGELOG.md)
- [Commits](https://github.com/richardtallent/vite-plugin-singlefile/commits)

---
updated-dependencies:
- dependency-name: vite-plugin-singlefile
  dependency-version: 2.3.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
* build(deps): bump golang.org/x/net from 0.59.0 to 0.61.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.59.0 to 0.61.0.
- [Commits](golang/net@v0.59.0...v0.61.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.61.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
…b#3508)

* build(deps): bump github.com/go-chi/chi/v5 from 5.3.2 to 5.4.0

Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.3.2 to 5.4.0.
- [Release notes](https://github.com/go-chi/chi/releases)
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md)
- [Commits](go-chi/chi@v5.3.2...v5.4.0)

---
updated-dependencies:
- dependency-name: github.com/go-chi/chi/v5
  dependency-version: 5.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
…9.0 (github#3553)

Bumps [github/codeql-action/start-proxy](https://github.com/github/codeql-action) from 4.38.2 to 4.39.0.
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@2892aa5...6f2ac81)

---
updated-dependencies:
- dependency-name: github/codeql-action/start-proxy
  dependency-version: 4.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Iryna Kulakova <52420926+IrynaKulakova@users.noreply.github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
…tifacts attached (github#3554)

* adding an initial draft of the MCP tooling

* Fixing flacky test

* Fixing flaky testss

* Added all five required snapshots in toolsnaps.

* Fixing wording

* chaning to add 2 actions and methods

* fix: align issue artifact tools with REST API types

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: reject integer parameters at or above 2^63

math.MaxInt64 is not representable as a float64 and rounds up to 2^63, so
range checks against it let 2^63 through to an implementation-defined
float-to-int conversion (MinInt on amd64, MaxInt on arm64).

Add inSignedIntRange, which compares against the exact power-of-two bound
before converting, and use it in toInt, toInt64 and the security and
typed-read argument normalizers.

Fixes github#3489

* Remove inSignedIntRange doc comment
)

* Remove triage workflows that depend on GitHub Models

GitHub Models was retired on 2026-07-30. models.github.ai now returns a
plain 200 OK for every request, so the issue assessment and AI moderator
workflows fail silently while their runs report success. The moderator
action is also archived.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add agentic issue triage

Triage new and reopened issues with GitHub Agentic Workflows. The agent
checks whether the issue template was filled in, posts one assessment
comment, and can only add bug, enhancement, waiting-for-reply, invalid
or spam. Safe outputs start staged, so runs only preview their output.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add agentic pull request triage

Fork pull request runs can't use Copilot in a public repository, so an
hourly job starts one triage run per new pull request from an external
contributor, at most 20 a day. Each run can only label and comment on
its own pull request. Safe outputs start staged.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Triage pull requests when a draft is marked ready

Pull requests opened as drafts and marked ready more than seven days
later were never triaged. Find pull requests by when they became ready
instead of when they were created, and only count triage runs started
since then, so a pull request marked ready again is triaged again.

Only consider fork pull requests. Members with private org membership
can look external to the workflow token, which would have dispatched
triage for internal pull requests.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Base triage decisions on objective checks

Issue and pull request content can try to steer the agent. Decide from
template structure, placeholder text, and other observable signals,
ignore instructions in the content, and post fixed comment text that
never repeats it. Pull request triage only acts when a check fails, and
no longer flags spam, which needs reading the content's meaning.

The agents also lose shell access and are limited to the GitHub tools
they need: issue_read and search_issues, or pull_request_read.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Check pull requests in code instead of in the agent

The template checks no longer need judgment, so a job now runs them in
code and passes only the result and the failed section names to the
agent. The agent never reads pull request content and has no GitHub
tools, and it only runs when a check fails.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Limit issue triage to fixed labels and comments

The agent now reads only the issue's title and body, adds at most one of
waiting-for-reply, invalid or spam, and posts one of three fixed comments
word for word. It no longer adds type labels, which the templates already
apply, or searches for duplicates, which fed it other issues' content.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Check issues in code instead of in the agent

The issue triage rules relied on the agent following instructions, and
sent issue content, including anything sensitive, to the model. A job
now compares the issue with the templates in code, and the agent only
posts the result. Issues that partly use a template, or don't use one
and have a body, are left alone.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Ignore fence lines when checking pull request descriptions

Fence lines counted as section content, so a section with only an empty
code block passed, and any fence line toggled code mode. Skip fence
lines and only close a fence with a matching one.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Treat links to GitHub-owned domains as internal in issue triage

Only github.com and www.github.com were exempt, so an unfilled issue
that linked to gist.github.com, docs.github.com or the remote server at
api.githubcopilot.com was labeled spam. Exempt github.com,
githubcopilot.com, ghe.com and githubusercontent.com, including their
subdomains, while lookalike hosts still count as external.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Keep nested headings in their template section

Every heading started a new section, so an answer written under a
subheading, such as a ### under ## Summary or a #### under a ### issue
template section, left its template section empty and the submission
was flagged as missing details. A heading deeper than the current
template section's heading now stays part of that section, unless it's
a template heading itself.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: return non-nil empty completion results

Return an empty values array for prompt and non-resource completions to prevent nil result finalization panics. Add regression coverage for serialization, resource routing, and errors.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix: normalize empty resource completions

Ensure successful repository resource completion responses serialize empty values as an array when a resolver has no matches.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ithub#3685)

* feat(skills): replace server instructions with filtered MCP skills

Port the skills protocol and bundled workflows, align beta cache envelopes, and enable skills explicitly or through insiders. Filter all skill surfaces against configured tools without publishing tool associations.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* chore: regenerate license files

Auto-generated by license-check workflow

* docs(skills): harden read-then-act workflow guidance

Treat retrieved content as untrusted, pin reviews to the inspected head, avoid duplicate feedback replies, and bound issue searches.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* fix(skills): address protocol and catalog review feedback

Protect request-filtered resource cache scope, bound manifest sizes, compare numeric frontmatter across JSON and YAML, enforce nested manifests and URI containment, and correct catalog tool guidance.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(docker): include bundled skills in build context

Keep skill Markdown available for go:embed without including unrelated documentation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: regenerate license files

Auto-generated by license-check workflow

* chore: regenerate license files

Auto-generated by license-check workflow

* fix(skills): harden resource publishing invariants

Escape resource path segments, reject non-JSON numbers and URI collisions, and isolate stored file data from caller mutation. Require and validate content for listed skills before installing their publisher.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(skills): add catalog upkeep guardrails

Require every registered tool to be covered by a skill or a reasoned exemption. Snapshot instructions that skills mode suppresses, generate the README catalog, and document the upkeep workflow.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ashwin Mohan <ashwinmohan@ashwins-macbook-pro.octoca.ts.net>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Brings in 54 upstream commits, including:
- Go 1.27.3 (compromised CA mitigation, github#3540) in go.mod and the
  Dockerfile build image.
- Typed tool inputs/outputs across most toolsets, the v2 module path
  (github.com/github/github-mcp-server/v2), and go-github v92.
- Fixes: integer parameters at or above 2^63 rejected (github#3650), overflow
  in validation error capacity (github#3772), UTF-8 repository resource URIs,
  get_file_contents resource links for files over 1 MB.
- Optional secret hiding for secret scanning alert tools (github#3838).
- UI on React 19 / Primer React 38 / TypeScript 7 and the MCP Apps v2
  client.

Conflicts and follow-up:
- go.mod: upstream's v2 module and go 1.27.3; kept our golang.org/x/net
  v0.62.0 (upstream is on v0.61.0). go.sum tidied.
- Our installation-routing files (internal/githubapp/multi*.go,
  pkg/github/installation_routing*.go) moved to the v2 import path.
- ui/package.json: upstream's dependencies with vite ^8.3.5 and zod
  ^4.6.7, so neither drops below our earlier Dependabot merges (upstream's
  lock had zod below the 4.6.6 fix).

Adds TestToolHandlerMiddlewareWrapsEveryRegisteredTool: builds the real
server with every toolset and requires the configured ToolHandlerMiddleware
to see each advertised tool. Installation routing is installed through
that middleware, and the typed-tool refactor added a second registration
path; the test fails if any tool, typed or legacy, bypasses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ctennis
ctennis merged commit 8cb31f3 into sequoia Nov 16, 2026
8 checks passed
@ctennis
ctennis deleted the sync/upstream-2026-11-16 branch November 16, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.