You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gitignore architect state files (codev/state/<name>.md) across init/adopt/update/doctor #1192
PR #1136 ships /arch-init, which promotes architect state files (codev/state/<name>.md) from a private convention into a shipped concept: the skill reads them on every identity recovery and offers to create them when missing. But codev takes no stance on their versioning today: they are neither tracked nor gitignored.
Architect state files are inherently per-person. Every team member working the same repo has their own main architect, so a committed main.md collides across members, and each /arch-init would resume from whoever pushed last, adopting another person's open loops and context.
Builder thread files (codev/state/<id>_thread.md) have the opposite lifecycle by design: written in the builder's worktree, shipped with the PR, landing on main at merge. Any fix must preserve that split.
Proposed fix
Add the ignore rule:
codev/state/*.md
!codev/state/*_thread.md
and embed it across the codev CLI surface, not just documentation:
codev init / codev adopt: scaffold the rule into the generated .gitignore so fresh installs get the right split by default.
codev update: backfill the rule for existing installs.
codev doctor: warn when the rule is missing, or when an architect state file is already tracked (pre-existing installs may have committed one before the rule existed).
Both trees (codev/ instance and codev-skeleton/) plus this repo's own .gitignore need the change.
Activity
amrmelsayed commentedon Jul 19, 2026
On it! Working on this with the PIR protocol (plan + dev-approval gates before PR).
[PIR #1192] Plan draft
[PIR #1192] Gitignore architect state files across init/adopt/update,…
[PIR #1192] Repo gitignore rule pair and arch-init versioning note (b…
[PIR #1192] Single-source the state-file gitignore rule pair
[PIR #1192] Review + retrospective
[PIR #1482] chore: move the dev-approval evidence to the project dire…