Skip to content

Include session and user metadata in GitHub issues filed from Ambient sessions #1073

@ambient-code

Description

@ambient-code

Problem

When GitHub issues are created from within an Ambient session (e.g., bug reports, feature requests filed by the AI agent on behalf of the user), the issues contain no traceability metadata. If the team needs additional context or wants to contact the reporter, there's no way to trace the issue back to the session or user.

The GitHub token used by sessions has create-only permissions (no edit, no comment), so metadata cannot be added after the fact.

Examples

Issues #1070 and #1071 were filed from this session but contain no session or user context.

Proposed Solution

When issues are filed from a session, automatically include a metadata footer in the issue body:

---
**Session**: <SESSION_ID>
**Filed by**: <USER_ID> (<USER_EMAIL>)
**Project**: <AGENTIC_SESSION_NAMESPACE>

This could be:

  1. A convention enforced by workflow instructions (agent always appends metadata)
  2. Built into the platform (intercepting GitHub API calls from sessions and injecting metadata)
  3. A helper tool/MCP server that wraps gh issue create with automatic metadata injection

Alternative

If the platform already tracks which session created which GitHub API calls on the backend, this may not be needed — but that tracking mechanism is not visible to session users today.


Session: session-f4a5410f-fb3c-453c-895b-ae66bdce1dbe
Filed by: ometelka (ometelka@redhat.com)
Project: ols

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions