temporary-id-safe-output

Solid

Add temporary ID support to safe-output jobs end to end.

AI & Automation 4,819 stars 466 forks Updated today MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Adding Temporary ID Support to Safe Output Jobs Use this implementation plan for temporary ID support in safe output jobs. Temporary IDs let agents reference newly created issues in the same run before real issue numbers exist. ## Problem Statement When an agent creates a parent issue and immediately links sub-issues in the same run, it does not know the real issue number until `create_issue` completes. Temporary IDs bridge this gap with placeholders resolved at execution time. ## Temporary ID Format Temporary IDs follow the pattern `aw_[A-Za-z0-9]{3,8}` where: - `aw_` is a fixed prefix identifying agentic workflow temporary IDs - `XXXXXXXX` is a 3-8 character alphanumeric string (A-Za-z0-9) Example: `aw_abc`, `aw_abc123`, `aw_Test123` ## Implementation Components ### 1. Shared Module: `temporary_id.cjs` Location: `pkg/workflow/js/temporary_id.cjs` This module provides shared utilities for temporary ID handling: ```javascript // Core functions generateTemporaryId() // Generate new temporary ID isTemporaryId(value) // Check if value is a temporary ID normalizeTemporaryId(tempId) // Normalize to lowercase for map lookups loadTemporaryIdMap() // Load map from GH_AW_TEMPORARY_ID_MAP env var resolveIssueNumber(value, map) // Resolve value to issue number (supports temp IDs) replaceTemporaryIdReferences(text, map) // Replace #aw_XXX references in text ``` ### 2. Producer Job: `create_issue` The `create_issue` job outputs a tempora...

Details

Author
github
Repository
github/gh-aw
Created
11 months ago
Last Updated
today
Language
Go
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category