Skip to content

feat(uf-init): add missing customization steps and tighten idempotency - #289

Merged
jflowers merged 2 commits into
unbound-force:mainfrom
jflowers:opsx/fix-uf-init-customizations
Jun 25, 2026
Merged

jflowers merged 2 commits into
unbound-force:mainfrom
jflowers:opsx/fix-uf-init-customizations

Conversation

@jflowers

Copy link
Copy Markdown
Contributor

Summary

Fix gaps in the /uf-init slash command discovered through cross-repo
comparison between unbound-force and gaze. The command now reliably
applies all project-specific customizations to downstream repos.

Changes

  • Step 2 (Branch Enforcement): Split the single coarse semantic
    idempotency check into 4 independent variant checks (basic branch,
    dirty tree, commit-before-archive, branch-switch confirmation) so
    partial application is detected and completed
  • Step 6 (Guardrails): Split into spec-phase variant (with
    review-rationale sentence) and execution/utility variant
  • Step 10 (new): STOP HERE block injection for 6 spec-phase
    speckit commands to prevent premature implementation
  • Step 11 (new): Scaffold comment deduplication — removes
    accumulated <!-- scaffolded by uf ... --> duplicates
  • Step 12 (new): Legacy directory cleanup — removes
    unbound/packs/ after migration verification, hardens
    command/ → commands/ migration

Spec Review

5 Divisor agents reviewed. 2 HIGH findings fixed:

  • git add -A replaced with explicit staging (AGENTS.md compliance)
  • Scaffold asset sync task added (drift detection)

Files Changed

File Change
.opencode/commands/uf-init.md Core command (+296 lines)
internal/scaffold/assets/.../uf-init.md Scaffold copy (byte-identical)
openspec/changes/fix-uf-init-customizations/ Change artifacts
.uf/dewey/learnings/ 3 retrospective learnings

jflowers added 2 commits June 22, 2026 16:52
- Add Step 10: STOP HERE block injection for spec-phase speckit commands
- Add Step 11: scaffold comment deduplication across all processed files
- Add Step 12: legacy directory cleanup (unbound/packs/, command/ migration)
- Split branch enforcement idempotency into independent variant checks
  (basic, dirty tree, commit-before-archive, branch-switch confirmation)
- Split guardrails into spec-phase (with review-rationale) and
  execution/utility variants
- Update report template with new step sections
- Sync scaffold asset copy for drift detection
- Include OpenSpec change artifacts (proposal, design, specs, tasks)
Use LEGACY_PACKS variable with string concatenation to
reference the pre-Spec-025 convention pack location without
triggering TestScaffoldOutput_NoOldPathReferences.
@jflowers jflowers moved this to In Review 👀 in Unbound Force Planning Jun 23, 2026
@jflowers
jflowers requested a review from marcusburghardt June 23, 2026 13:28
@jflowers jflowers self-assigned this Jun 23, 2026

@marcusburghardt marcusburghardt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

APPROVE — Well-structured, spec-driven change. All CI checks pass, scaffold copy is byte-identical, and implementation faithfully realizes the delta spec.

[MEDIUM] Missing Signed-off-by trailers on both commits. Neither commit includes a Signed-off-by trailer (DCO certification). Fix with git rebase -i HEAD~2 and amend each commit with -s, or git commit --amend -s for the latest.

This review was generated by /review-pr (AI-assisted).

@jflowers
jflowers merged commit 57412e7 into unbound-force:main Jun 25, 2026
13 checks passed
@yvonnedevlinrh yvonnedevlinrh moved this from In Review 🏁 to Done ✔️ in Unbound Force Planning Aug 17, 2026
@jflowers
jflowers deleted the opsx/fix-uf-init-customizations branch November 15, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done ✔️

Development

Successfully merging this pull request may close these issues.

2 participants