spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Spec-Kit + Codex Re-init Problem After Merging to main

Open braffour opened this issue 11 months ago • 3 comments

Summary

After merging a feature PR into main, the project behaves as if it is not a Spec-Kit project anymore. Spec-Kit asks to run specify init again, which overwrites constitution.md back to the vanilla template.

Expected • Spec-Kit should recognize the project on all branches. • No re-initialization should be required after merges. • Governance files (e.g., constitution.md) must never be reset unless explicitly requested.

Actual • On main after a merge, Spec-Kit warns: • “Project does not seem to be a Spec-Kit project” • “Template files may overwrite existing content” • Running init resets important files.

Likely Cause • Spec-Kit project markers (e.g., hidden metadata files) may not be committed or are lost during merges. • Codex metadata may remain local and not sync with the repo.

Questions for Maintainers 1. Which files define that a repo is a Spec-Kit project? 2. Which of them must be committed? 3. How to prevent constitution.md from being overwritten during normal iteration?

Request

Need guidance on the correct workflow to preserve Spec-Kit initialization across multiple features without losing governance documents.

braffour avatar Dec 02 '25 13:12 braffour

Experienced the same

schriewer avatar Dec 30 '25 16:12 schriewer

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar May 30 '26 01:05 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar Jun 29 '26 01:06 github-actions[bot]