Skip to content

Gitignore architect state files (codev/state/<name>.md) across init/adopt/update/doctor #1192

Closed

Description

@amrmelsayed

Problem

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.

Context

Raised in the PR #1136 integration review: #1136 (comment)

Activity

  1. added
    area/scaffold
    on Jul 17, 2026
  2. amrmelsayed commented on Jul 19, 2026

    @amrmelsayed
    CollaboratorAuthor

    On it! Working on this with the PIR protocol (plan + dev-approval gates before PR).

  3. added 5 commits that reference this issue on Jul 19, 2026
  4. added a commit that references this issue on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/scaffold

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions