Skip to content

Comments

Sync temporary project ID support to embedded safe_outputs_tools.json#14995

Merged
mnkiefer merged 2 commits intoprompt-instructionsfrom
copilot/sub-pr-14984
Feb 11, 2026
Merged

Sync temporary project ID support to embedded safe_outputs_tools.json#14995
mnkiefer merged 2 commits intoprompt-instructionsfrom
copilot/sub-pr-14984

Conversation

Copy link
Contributor

Copilot AI commented Feb 11, 2026

The embedded schema (pkg/workflow/js/safe_outputs_tools.json) was missing temporary project ID support that exists in the runtime implementation, causing agents to emit valid #aw_... references that fail schema validation.

Changes

  • update_project.project field: Updated pattern to accept temporary IDs (#?aw_[0-9a-f]{12}) in addition to full GitHub project URLs
  • create_project schema: Added missing temporary_id field with pattern ^aw_[0-9a-f]{12}$

Example

Agents can now reference newly-created projects without schema errors:

// Create project with temporary ID
{
  "type": "create_project",
  "title": "Sprint Planning",
  "temporary_id": "aw_abc123def456"
}

// Reference it before the URL is known
{
  "type": "update_project", 
  "project": "#aw_abc123def456",  // Now validates correctly
  "content_url": "https://github.com/org/repo/issues/42"
}

The embedded schema now matches actions/setup/js/safe_outputs_tools.json and the resolution logic in update_project.cjs.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Update update_project.project field pattern to accept temporary IDs (#?aw_[0-9a-f]{12})
- Add temporary_id field to create_project schema
- Aligns embedded schema with runtime implementation in actions/setup/js/
- Fixes schema validation mismatch preventing agents from using temporary project IDs

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on improving project prompt instructions Sync temporary project ID support to embedded safe_outputs_tools.json Feb 11, 2026
Copilot AI requested a review from mnkiefer February 11, 2026 17:59
@mnkiefer mnkiefer marked this pull request as ready for review February 11, 2026 18:00
Copilot AI review requested due to automatic review settings February 11, 2026 18:00
@mnkiefer mnkiefer merged commit 5a5c582 into prompt-instructions Feb 11, 2026
@mnkiefer mnkiefer deleted the copilot/sub-pr-14984 branch February 11, 2026 18:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Synchronizes the embedded safe-outputs tool schema (pkg/workflow/js/safe_outputs_tools.json) with the runtime schema/behavior so agents can reference newly-created Projects via temporary IDs (e.g., #aw_...) without failing schema validation.

Changes:

  • Expanded update_project.project validation to accept temporary project IDs (#?aw_[0-9a-f]{12}) in addition to full project URLs.
  • Added create_project.temporary_id to the embedded schema with the expected aw_[0-9a-f]{12} format.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants