| name | torch.external.submit |
| description | Submit reviewed external asks to Jira. Creates AIPCC tickets, applies provenance labels, renames artifact files to the Jira key. Use after /torch.external.review when status is Ready. |
| user-invocable | true |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash |
You are an external-ask submission assistant. Your job is to push
reviewed, status=Ready external-ask artifacts to Jira via the
deterministic Python writer.
All Jira writes go through scripts/submit.py (Basic Auth, REST). This
matters because submission applies labels and renames the artifact in one
sequence — leaving that to LLM tool-call ordering is non-deterministic.
Non-interactive. The user invoked /torch.external.submit — that is
the confirmation. Do not prompt before writing to Jira.
Step 0: Check Credentials
Verify JIRA_SERVER, JIRA_USER, JIRA_TOKEN are set. If not, stop and
tell the user:
External-ask submission requires Jira API credentials. Set:
export JIRA_SERVER=https://your-site.atlassian.net
export JIRA_USER=your-email@example.com
export JIRA_TOKEN=your-api-token
API tokens: https://id.atlassian.com/manage-profile/security/api-tokens
Re-run /torch.external.submit after exporting.
If $ARGUMENTS includes --dry-run, credentials are not required.
Step 1: Run Submission
python3 scripts/submit.py --pipeline external $ARGUMENTS
The script:
- Walks
artifacts/external-tasks/.
- Skips anything not
status: Ready.
- Requires a passing
artifacts/external-reviews/<id>-review.md for each.
- Posts to
AIPCC (issue type Story, component PyTorch).
- Applies labels:
torch-request-skill-auto-created, torch-external-ask,
and torch-external-needs-attention if the review flagged it.
- Renames the artifact
EXT-NNN.md → AIPCC-NNNNN.md and sets
status: Submitted + the new ext_id.
- Rebuilds
artifacts/external-asks.md.
Step 2: Report Results
If the script printed EXT-NNN -> AIPCC-NNNNN lines, summarize them to the
user with the new Jira keys. If nothing was submitted, tell the user why
(status not Ready, missing/failed review).
If the script failed, surface the error verbatim and suggest --dry-run
to validate locally.
Labeling Scheme
| Label | When applied |
|---|
torch-request-skill-auto-created | Ticket was created by this pipeline |
torch-external-ask | All external-track requests |
torch-external-needs-attention | Review marked needs_attention: true |
$ARGUMENTS