[BUG/FEATURE] External issues break Claude triage; add a native agent feedback path
Summary
A new external issue triggered the repository's Claude Issue Triage workflow, but the workflow failed before triage because the Claude GitHub Action could not obtain a writable app token.
This also exposes a broader product gap: Basic Memory is positioned for agent workflows, but agents still need unrelated external channels such as email, GitHub CLI, or a browser to report failures back to the provider.
Reproduction
- Create a new issue as an external repository user.
- Observe the
Claude Issue Triageworkflow run triggered for that issue. - The run initializes correctly, checks out the repository, installs dependencies, obtains an OIDC token, and then fails during app-token exchange.
Observed run:
- Workflow:
Claude Issue Triage - Run ID:
30628401821 - Triggering issue:
#1175 - Commit:
7b4cbed1a0e6bcd95fcc902e218ea6244e1e12ac
Relevant log excerpt:
OIDC token successfully obtained
Exchanging OIDC token for app token...
App token exchange failed: 401 Unauthorized - User does not have write access on this repository
...
Operation failed after 3 attempts
Action failed with error: User does not have write access on this repository
Expected behavior
The triage workflow should be able to analyze and label issues created by external reporters without requiring the issue author to have repository write access.
The workflow already receives a repository-scoped GITHUB_TOKEN with issues: write; triage should use a repository-authorized identity rather than depending on the triggering user's repository permissions.
Actual behavior
The workflow appears to attempt an app-token exchange tied to the triggering user or an authorization context that rejects external contributors.
Result:
external user creates issue
→ triage workflow starts
→ OIDC succeeds
→ app-token exchange returns 401
→ no labels or triage comment are added
Root cause status
INFERENCE, not confirmed: the Claude Code Action's OIDC/app-token exchange is using an authorization path that requires write access from the issue author, rather than a repository-owned GitHub App or workflow identity.
Suggested immediate fix
Please review the authentication configuration for anthropics/claude-code-action@v1 in the issue-triage workflow.
Possible directions:
- use the repository's configured GitHub App installation identity;
- pass an explicit repository-scoped token supported by the action;
- avoid any authorization path derived from the external issue author's permissions;
- add a fallback triage path when Claude authentication fails, so the issue remains visibly queued for human review.
Broader feature request: native agent-to-provider feedback
This failure happened while reporting another connector reliability problem. To deliver that report, the agent required:
- Gmail for support email;
- MarcoPolo plus
ghto create the GitHub issue; - separate memory systems to preserve the report and verify readback.
Basic Memory itself currently exposes no native feedback operations such as:
feedback.prepare
feedback.submit
feedback.status
feedback.append_evidence
That creates an Agent-to-Provider Feedback Gap: the agent can observe, reproduce, and document a failure, but cannot natively submit it to the provider whose tool failed.
A minimal agent-native feedback contract could provide:
-
feedback.prepare- builds a local report package;
- includes exact text, diagnostics, privacy classification, destination, and excluded fields;
- sends nothing yet.
-
Explicit human approval.
-
feedback.submit- returns a durable receipt:
{
"report_id": "BM-2026-1176",
"received": true,
"category": "connector_runtime",
"visibility": "private",
"status": "triage_pending",
"submitted_at": "2026-07-31T16:00:00Z"
}
feedback.statusandfeedback.append_evidence- let the same agent track triage and attach fresh sanitized reproductions to the same report ID.
This should remain permission-controlled. The agent prepares the package; the human sees exactly what will leave the system and approves the submission.
Why this matters
An agent-native memory system should not require several unrelated external connectors just for an agent to report a problem with that memory system.
A public GitHub issue tracker is already a valuable first step. A native feedback capability would close the full loop:
real use
→ observed failure
→ structured feedback
→ triage
→ repair
→ confirmation back to the user and agent
Thank you for keeping the repository and issue tracker public. This report is intended both to help fix the immediate triage workflow and to suggest a small but foundational addition for serious agent use.
@TeaShaman-cyber please stop your agent from submitting issues. We do not allow our agents to run for external submissions for obvious reasons (we pay for them).
Hi Paul,
I’m sorry for the inconvenience.
I want to clarify that the issue was not submitted by an autonomous agent acting on its own. I explicitly asked the agent to prepare and submit it, and I approved that action directly and unambiguously.
The agent was acting as a tool under my instruction, not independently. I understand your request, and I will not use it to submit further issues to this repository.
Thank you for the clarification, and apologies again for the disruption.
пт, 31 июл. 2026 г., 18:21 Paul Hernandez @.***>:
Closed #1176 https://github.com/basicmachines-co/basic-memory/issues/1176 as completed.
— Reply to this email directly, view it on GitHub https://github.com/basicmachines-co/basic-memory/issues/1176?email_source=notifications&email_token=CCX5HHA7L23YRNFYRZJLTXD5HTBQ5A5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTEOBXHA3DMMBVG4ZTFJTSMVQXG33OU5WWK3TUNFXW5JLFOZSW45FMMZXW65DFOJPWG3DJMNVQ#event-28786605732, or unsubscribe https://github.com/notifications/unsubscribe-auth/CCX5HHAJVOMXYUHUONOPWIL5HTBQ5AVCNFSNUABFKJSXA33TNF2G64TZHM4DSNZVHE2TGMRZHNEXG43VMU5TKMBTGEZTEOJSGQ2KC5QC . You are receiving this because you were mentioned.Message ID: @.*** com>