Skip to content

fix(cli): replace hardcoded state lists with dynamic scan#141

Draft
diberry wants to merge 1 commit intodevfrom
squad/863-discoverable-state-manifest
Draft

fix(cli): replace hardcoded state lists with dynamic scan#141
diberry wants to merge 1 commit intodevfrom
squad/863-discoverable-state-manifest

Conversation

@diberry
Copy link
Copy Markdown
Owner

@diberry diberry commented Apr 10, 2026

CI validation for bradygaster#908

- Dynamic listSync() scan replaces static STATE_DIRS/STATE_FILES arrays
- Eliminates silent orphaning when new state artifacts are added
- KEEP_LOCAL protects 5 files read from the working tree by runtime code
  that does not go through external-state resolution:
  config.json, manifest.json, workstreams.json, upstream.json,
  squad-registry.json
- Add 6 tests for runExternalize/runInternalize covering basic ops,
  dynamic scan of unknown entries, config preservation, round-trip,
  config cleanup, and empty .squad/ edge case

Closes bradygaster#863

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant