gm-o9t8.15: formalize .gemba/constitution.md schema (v1.0.0) - #12
Merged
Merged
Conversation
- JSON Schema: lock down properties, additionalProperties: false, add required schema_version (semver), examples, full descriptions. - New version.go: CurrentVersion="1.0.0" + MigrateConstitution that idempotently injects schema_version into frontmatter or '## Config'. - Parser: read top-level YAML frontmatter in addition to '## Config', surface SchemaVersion + UnknownKeys; Load returns ErrUnknownConstitutionKey for unrecognized top-level keys. - Lint: new ScanConstitution emits constitution-version-mismatch (warn) and constitution-unknown-key (error); wired into 'gemba constitution lint'. - Template: frontmatter at the top with schema_version + permissive defaults for every catalogued key. - Whitepaper: new §10 "Constitution Schema (Reference)" listing the catalog and pointing at the JSON Schema. Existing constitutions without schema_version still load (migration auto-injects); strict rejection is reserved for unknown keys.
3 tasks done
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.
Summary
Constitution schema formalization with explicit versioning, additionalProperties: false enforcement, and a migration path for future keys.
Key set
`spec_strict`, `spec_strict_no_tasks_md`, `asdd_mode`, `require_decision_parent`, `forbid_orphan_beads`, `min_ac_count`, `require_priority`.
Test plan
Closes gm-o9t8.15.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com