Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .agentignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ Dockerfile

# Separate transports / CI assets, not part of the agent runtime
webhook_bridge/
automation_bridge/
templates/
deck/
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ README.md

# The webhook bridge is a separate deployable (Azure Function), not part of the agent image.
webhook_bridge/
automation_bridge/
36 changes: 23 additions & 13 deletions .github/actions/issuelens/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# IssueLens Action

A reusable composite action for issue-loop, team-memory, and explicit tasks.
It prepares and validates the request, authenticates to an existing IssueLens
agent with Azure OIDC, and invokes it through a shared bounded HTTP/SSE client.
It is a client of the agent, not part of the hosted agent runtime.
It prepares and validates the request. Existing external callers use the
`foundry` transport; the IssueLens repository's pilot uses the `bridge` transport.
The action is a client, not part of the hosted agent runtime.

The hosted invocation profile is public-only: private/internal repository reads
and private wiki destinations are rejected, even when the App has access.
Expand All @@ -12,7 +12,7 @@ authenticated, read-only maintainer chat; no internal report is returned to this
action. Inputs and Actions display modes must be appropriate for the workflow's
audience.

The normal path prepares the request, logs in with the pinned `azure/login`
The direct path prepares the request, logs in with the pinned `azure/login`
action, and submits the request. Coordinated team-memory inputs select a bounded
reconciliation range; source/run validation, ancestry checks, and complete
paginated commit discovery all happen inside preflight before Azure login.
Expand All @@ -21,6 +21,14 @@ owns metadata validation, the caller's task text, bounded HTTP/SSE processing,
and result validation. No inline Python, pip installation, container build, or
GitHub App private key is required.

The [Function bridge pilot](../../../docs/guide.md#issuelens-function-bridge-pilot)
uses GitHub workflow identity for `microsoft/IssueLens` only. It submits typed
metadata after the same preflight, skips Azure login, and polls the job receipt.
The worker authenticates to the existing `/invocations` endpoint using managed
identity and submits the normal `{ "input": "..." }` request.
It has no direct fallback or free-form task path. It does not stream or store
raw agent output; the runner's issue-loop response file is a completion notice.

## Request Types

| `request-type` | Preparation | Result |
Expand All @@ -30,7 +38,7 @@ GitHub App private key is required.
| `task` | Require explicit non-empty `input`, bounded to 64 KiB UTF-8. No issue-loop event metadata or maintainer-command authority is synthesized. | A completed root agent response in the requested format. |

All request types validate the caller repository identity and that the caller
workflow runs from its current default branch before Azure login. Unknown request
workflow runs from its current default branch before authenticating. Unknown request
types, malformed inputs, and an `input` supplied to an event adapter fail closed.
Event adapters prepare context, not a role assignment: the agent owns routing,
command validation, and task-specific write authorization. In particular there
Expand Down Expand Up @@ -156,7 +164,7 @@ claimed because no artifact is used.
Automatic pushes and manual PR requests share the fixed
`issuelens-team-memory-wiki-microsoft-IssueLens` concurrency group, with
`queue: max` and `cancel-in-progress: false`. The slot covers the complete
coordinator run, including discovery, Azure OIDC login, the one agent invocation,
coordinator run, including discovery, bridge admission, the one agent invocation,
and final result validation. GitHub retains up to 100 pending runs; further runs
are canceled when that queue is full. Monitor canceled/failed runs.
Dispatch acknowledgement means GitHub accepted the request, not that
Expand Down Expand Up @@ -367,19 +375,21 @@ identity check is not authorization for any additional repositories named by a t
| `source-run-id` | For coordinated automatic `team-memory` | Positive source push run ID. |
| `source-run-attempt` | With `source-run-id` | Positive originating run attempt. |
| `push-before`, `push-after` | With `source-run-id` | Full nonzero requested ancestor/source-run-head SHAs. Supply all four run/range inputs, never with `pull-request-number`. Before is not an attested original event boundary. |
| `azure-client-id` | Yes | Existing Azure OIDC identity's client ID. |
| `azure-tenant-id` | Yes | Tenant used by Azure login. |
| `azure-subscription-id` | Yes | Subscription used by Azure login. |
| `agent-url` | Yes | Complete HTTPS Foundry invocations endpoint, including its API version query. |
| `agent-scope` | Yes | Entra scope for that endpoint. |
| `transport` | No | `foundry` (default for existing callers) or `bridge` (IssueLens pilot only). |
| `bridge-url` | For `bridge` | Complete approved HTTPS Azure Function jobs endpoint. |
| `azure-client-id` | For `foundry` | Existing Azure OIDC identity's client ID. |
| `azure-tenant-id` | For `foundry` | Tenant used by Azure login. |
| `azure-subscription-id` | For `foundry` | Subscription used by Azure login. |
| `agent-url` | For `foundry` | Complete HTTPS Foundry invocations endpoint, including its API version query. |
| `agent-scope` | For `foundry` | Entra scope for that endpoint. |
| `output-mode` | No | `hybrid` (default): live agent text plus activity; `activity`: statuses only; `quiet`: no live event display. |
| `summary-mode` | No | `full` (default): status/metrics and final answer; `status`: status/metrics only; `none`: do not write a job summary. |

| Output | Meaning |
| --- | --- |
| `status` | `skipped` for ineligible events; `completed` for issue-loop/task streams; `updated`/`no-change` for complete maintenance. Validated push batches also expose `partial`, `needs-review`, or `failed` before failing the step. Unavailable for invalid/ambiguous results. |
| `skip-reason` | Fixed reason for an event skipped before Azure login. |
| `response-path` | Unique runner-local UTF-8 final root answer for `issue-loop`/`task`, or the complete validated push-batch JSON receipt, including incomplete batches. |
| `skip-reason` | Fixed reason for an event skipped before authentication to the invocation transport. |
| `response-path` | Unique runner-local UTF-8 final root answer for direct `issue-loop`/`task`, completion notice for a bridge issue-loop job, or the complete validated push-batch JSON receipt, including incomplete batches. |
| `wiki-repository` | Reported verified wiki identity from a validated maintenance result, when available. Partial does not imply no publication. |
| `wiki-sha` | Full reported tool-confirmed publication or snapshot SHA, when available in the validated maintenance result. |

Expand Down
34 changes: 23 additions & 11 deletions .github/actions/issuelens/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,29 @@ inputs:
description: Full nonzero source run head SHA ending the requested reconciliation range.
required: false
default: ''
transport:
description: Use foundry for direct Azure OIDC (legacy callers) or bridge for authenticated workflow jobs.
required: false
default: foundry
bridge-url:
description: Full HTTPS Azure Function jobs endpoint for the bridge transport.
required: false
default: ''
azure-client-id:
description: Client ID of the existing Azure OIDC identity.
required: true
description: Client ID of the Azure OIDC identity for the foundry transport.
required: false
azure-tenant-id:
description: Azure tenant ID for the OIDC identity.
required: true
description: Azure tenant ID for the foundry transport.
required: false
azure-subscription-id:
description: Azure subscription ID for the OIDC login.
required: true
description: Azure subscription ID for the foundry transport.
required: false
agent-url:
description: Full HTTPS Foundry invocations endpoint.
required: true
description: Full HTTPS Foundry invocations endpoint for the foundry transport.
required: false
agent-scope:
description: Entra scope used to acquire the endpoint access token.
required: true
description: Entra scope used to acquire the foundry transport's endpoint access token.
required: false
output-mode:
description: Live log mode (hybrid includes agent text, activity shows statuses only, quiet disables stream display).
required: false
Expand Down Expand Up @@ -120,12 +128,14 @@ runs:
SOURCE_RUN_ATTEMPT: ${{ inputs.source-run-attempt }}
PUSH_BEFORE: ${{ inputs.push-before }}
PUSH_AFTER: ${{ inputs.push-after }}
TRANSPORT: ${{ inputs.transport }}
BRIDGE_URL: ${{ inputs.bridge-url }}
OUTPUT_MODE: ${{ inputs.output-mode }}
SUMMARY_MODE: ${{ inputs.summary-mode }}
run: python3 -I "$GITHUB_ACTION_PATH/issuelens_action.py" preflight

- name: Azure login (OIDC) for the agent endpoint
if: steps.preflight.outputs.eligible == 'true'
if: steps.preflight.outputs.eligible == 'true' && inputs.transport == 'foundry'
uses: azure/login@7ddb5af1ef8758cf1353cf3b42f940aee27ba21c # v3.0.2
with:
client-id: ${{ inputs.azure-client-id }}
Expand All @@ -139,6 +149,8 @@ runs:
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}
REQUEST_PATH: ${{ steps.preflight.outputs.request-path }}
TRANSPORT: ${{ inputs.transport }}
BRIDGE_URL: ${{ inputs.bridge-url }}
AGENT_URL: ${{ inputs.agent-url }}
AGENT_SCOPE: ${{ inputs.agent-scope }}
OUTPUT_MODE: ${{ inputs.output-mode }}
Expand Down
Loading