[SC-16731] Rename constitution to charter everywhere#57
Merged
Conversation
|
This pull request has been linked to Shortcut Story #16731: Unify language. |
Contributor
|
The db test needs to be updated |
Contributor
|
grep still shows |
Renames all uses of "constitution"/"constitution_field_key" to "charter"/"charter_field_key" across the Atryum codebase: - DB migration 021: renames agents.constitution → agents.charter and agent_sync_settings.constitution_field_key → agent_sync_settings.charter_field_key - Go backend: structs, interfaces, SQL queries, JSON tags, log messages - TypeScript/TSX UI: API types, state vars, form labels (Settings, Agents) - Invocations page: removes "User pattern" field from rule scope UI - Docs: README, atryum.example.toml, docs/testing/ai-evaluation.md - Skill: renames .agents/skills/populate-constitution → populate-charter Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
The field was never exposed in the UI (always hardcoded to "*") and agent_cuids already handles agent-specific rule targeting. Remove the column via migration 022, strip it from Go structs/queries/matching logic and TypeScript types, and clean up the integration test seed script. Co-authored-by: Cursor <cursoragent@cursor.com>
798e141 to
da6d8cd
Compare
mdeyell-valid-mind
approved these changes
Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why?
Renames the term "constitution" to "charter" consistently across the entire Atryum codebase — Go backend, TypeScript/TSX UI, database schema, docs, and skill files.
Also removes the "User pattern" field from the rule scope UI in the Invocations page (it was always
*/ not useful).Before:
constitution,constitution_field_keythroughout code, DB columns, API JSON, and UI labels.After:
charter,charter_field_keythroughout — a cleaner, more intuitive term for the agent governance document.How to test
021_rename_constitution_to_chartershould apply cleanly on a fresh or existing DB.What needs special review?
ALTER TABLE ... RENAME COLUMN— works on SQLite 3.25+ and all supported Postgres versions.SyncSettingsProviderinterface method renamed fromConstitutionFieldKeytoCharterFieldKey— all implementations updated.constitution_field_key→charter_field_key) — requires the companion backend PR to land together.Dependencies, breaking changes, and deployment notes
Companion backend PR required: The VM backend
POST /atryum/evaluateendpoint must be updated to readcharter_field_keyinstead ofconstitution_field_key. See companion PR invalidmind/backend.Breaking change for any external callers of the Atryum API that pass
constitutionorconstitution_field_keyfields — those must be updated tocharter/charter_field_key.Release notes
Renames the agent governance document from "constitution" to "charter" throughout the Atryum UI and API.
Checklist
Made with Cursor