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
bootstrap rewrites .mcp.json formatting and overwrites a hand-edited charter-governance.yml with no backup #374
Found in the #373 review (#369/#370). Two overwrite paths in charter bootstrap, both already on main, still write files with no backup:
.mcp.json reformatting. When .mcp.json exists but has no mcpServers.charter entry, ensureProjectMcpConfig adds the entry and re-serializes the whole file with JSON.stringify(root, null, 2). The data is kept, but comments are not (JSONC isn't parsed at all, so that case fails earlier), and neither is key order, indentation or trailing formatting. No backup is written.
bootstrap --ci github always overwrites .github/workflows/charter-governance.yml (applyManagedFile(..., true)), even when someone has edited it by hand. No backup, and the only output is an "Updated" line.
For .mcp.json, insert the entry without reformatting the rest of the file, or back it up to .charter/.backup/ before rewriting.
For the workflow, overwrite it only when it still matches a known Charter template (or carries a managed marker); otherwise keep it with a warning, and replace it under --force with a backup.
Both change what a released flag does, so they need a CHANGELOG note.
Activity
fix: --yes never overwrites .charter/ or .mcp.json; adf init --force …
fix(bootstrap,setup): never silently widen CI permissions on a workfl…
fix(bootstrap,setup): static workflow refresh descriptions; no YAML d…
fix(bootstrap,setup): name a package-manager switch on --force upgrad…