Phase 2B — Move Portable Scripts to Root & Update Paths
Status: ⚠️ INCOMPLETE — Requires Phase 2C.X Remediation
Parent: #1461 (Script Organization Architecture)
Related: #1465 (Phase 2C Testing), PR #1493 (Audit Findings)
Issue Summary
Move 117 portable scripts from .github/scripts/ to root-level scripts/ folder while maintaining backward compatibility and updating all references throughout the codebase.
Phase 2B Completion Status
✅ DONE:
- Scripts copied to portable location (
scripts/)
- Validation infrastructure implemented
- Schema paths updated
- All 1,114 unit tests passing
❌ NOT DONE (Blocking Merge):
- ❌ Dual paths not resolved (scripts still in
.github/scripts/)
- ❌ 21 workflow references not updated
- ❌ 28 documentation references not updated
- ❌ Script consolidation incomplete
Critical Issues Found (Phase 2C Audit)
Finding 1: Dual Path Problem 🔴
Status: BLOCKING
Scripts exist in BOTH locations:
.github/scripts/ → 107 files (old location)
scripts/ → 217 files (new location)
- OVERLAP → ~54 files duplicated
Root Cause: Phase 2B copied scripts but didn't remove from source
Impact:
- Maintenance burden (changes in two places)
- Workflow confusion (which path is authoritative?)
- Potential inconsistency if files diverge
Finding 2: Inconsistent Workflow References 🔴
Status: BLOCKING
21 workflows still reference old .github/scripts/ paths:
- documentation.yml
- docs-maintenance.yml
- docs-validation.yml
- labeling.yml
- labeling-governance.yml
- issue-remediation-bulk.yml
- metrics-pipeline.yml
- metrics-reporting.yml
- project-archival.yml
- issues.yml
- reviewer.yml
- release.yml
- meta.yml
- planner.yml
15-21. (and 7 more workflows)
Impact:
- Workflows may fail if files moved
- No clear migration status
- Inconsistent code paths
Finding 3: Documentation References 🟠
Status: HIGH PRIORITY
28 documentation files reference old paths:
- docs/AUTOMATION.md
- docs/LABELING.md
- docs/RELEASE_PROCESS.md
- docs/METRICS.md
- docs/CHANGELOG_AUTOMATION.md
- (and 23 more documentation files)
Phase 2B Execution Status
Stage 1: Inventory & Classification ✅
Stage 2: File Migration ⚠️
Stage 3: Reference Updates 🔴 BLOCKED
Stage 4: Testing & Validation 🟡 PARTIAL
Stage 5: Archive & Closure ⏳ PENDING
Phase 2C Extended Scope: Remediation Required
Phase 2C.X (NEW) addresses Phase 2B incomplete execution
2C.X.1: Resolve Dual Path Problem (2-3 hours)
- Identify all duplicate files
- Determine authoritative location
- Move portable scripts to
scripts/
- Remove from
.github/scripts/
- Keep GitHub-only scripts in
.github/scripts/
2C.X.2: Update Workflow References (3-4 hours)
- Update 21 workflows with old references
- Test each with dry-run
- Verify execution
- Commit with clear messages
2C.X.3: Update Documentation References (1-2 hours)
- Update 28 documentation files
- Verify examples still work
- Ensure consistency
2C.X.4: Path Validation & Testing (1 hour)
- Audit schema path references
- Run npm test (1,114+ tests)
- Run npm validate:all (all validators)
- Verify no regressions
2C.X.5: Archive & Closure (1-2 hours)
- Create follow-up PR
- Review and address feedback
- Merge to develop
- Update issues/epic
Total Effort: 10-13 hours
Documentation & References
All audit findings available in PR #1493:
Key Documents:
- PHASE_2B_EXECUTION_PLAN.md (830 lines)
- SCRIPTS_INVENTORY.md (630 lines)
- 2026-08-04-CRITICAL-AUDIT-SUMMARY.md
- 2026-08-04-phase-2c-script-testing.md
- STATUS.md (updated with findings)
Issue Comments:
Success Criteria (Phase 2B Completion)
Recommendation
Phase 2B cannot be marked complete until Phase 2C.X remediation resolves dual paths and updates all references. The portable script architecture is sound (all tests passing), but execution is incomplete.
Recommended Action:
- Execute Phase 2C.X remediation (10-13 hours)
- Create follow-up PR with all fixes
- Merge to develop and close Phase 2B/2C
Timeline
| Phase |
Status |
Est. Duration |
| 2B |
⚠️ INCOMPLETE |
Original |
| 2C.1-4 |
✅ COMPLETE |
5 hours |
| 2C.X |
🔴 PENDING |
10-13 hours |
| 2C.5 |
⏳ PENDING |
1-2 hours |
Total for completion: ~10-13 hours from start of Phase 2C.X
Last Updated: 2026-08-04 (Phase 2C Audit)
Next Action: Review PR #1493 and plan Phase 2C.X remediation
Phase 2B — Move Portable Scripts to Root & Update Paths
Status:⚠️ INCOMPLETE — Requires Phase 2C.X Remediation
Parent: #1461 (Script Organization Architecture)
Related: #1465 (Phase 2C Testing), PR #1493 (Audit Findings)
Issue Summary
Move 117 portable scripts from
.github/scripts/to root-levelscripts/folder while maintaining backward compatibility and updating all references throughout the codebase.Phase 2B Completion Status
✅ DONE:
scripts/)❌ NOT DONE (Blocking Merge):
.github/scripts/)Critical Issues Found (Phase 2C Audit)
Finding 1: Dual Path Problem 🔴
Status: BLOCKING
Scripts exist in BOTH locations:
.github/scripts/→ 107 files (old location)scripts/→ 217 files (new location)Root Cause: Phase 2B copied scripts but didn't remove from source
Impact:
Finding 2: Inconsistent Workflow References 🔴
Status: BLOCKING
21 workflows still reference old
.github/scripts/paths:15-21. (and 7 more workflows)
Impact:
Finding 3: Documentation References 🟠
Status: HIGH PRIORITY
28 documentation files reference old paths:
Phase 2B Execution Status
Stage 1: Inventory & Classification ✅
Stage 2: File Migration⚠️
scripts/.github/scripts/(dual state)Stage 3: Reference Updates 🔴 BLOCKED
Stage 4: Testing & Validation 🟡 PARTIAL
Stage 5: Archive & Closure ⏳ PENDING
Phase 2C Extended Scope: Remediation Required
Phase 2C.X (NEW) addresses Phase 2B incomplete execution
2C.X.1: Resolve Dual Path Problem (2-3 hours)
scripts/.github/scripts/.github/scripts/2C.X.2: Update Workflow References (3-4 hours)
2C.X.3: Update Documentation References (1-2 hours)
2C.X.4: Path Validation & Testing (1 hour)
2C.X.5: Archive & Closure (1-2 hours)
Total Effort: 10-13 hours
Documentation & References
All audit findings available in PR #1493:
Key Documents:
Issue Comments:
Success Criteria (Phase 2B Completion)
scripts/Recommendation
Phase 2B cannot be marked complete until Phase 2C.X remediation resolves dual paths and updates all references. The portable script architecture is sound (all tests passing), but execution is incomplete.
Recommended Action:
Timeline
Total for completion: ~10-13 hours from start of Phase 2C.X
Last Updated: 2026-08-04 (Phase 2C Audit)
Next Action: Review PR #1493 and plan Phase 2C.X remediation