-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Localdev #1475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Localdev #1475
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,5 +1,4 @@ | ||||||
| --- | ||||||
| description: Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync. | ||||||
| description: Create or update the project constitution from interactive or provided principle inputs, ensuring it aligns with the higher-level enterprise constitution and all dependent templates stay in sync. | ||||||
| handoffs: | ||||||
| - label: Build Specification | ||||||
| agent: speckit.specify | ||||||
|
|
@@ -18,13 +17,25 @@ You **MUST** consider the user input before proceeding (if not empty). | |||||
|
|
||||||
| You are updating the project constitution at `/memory/constitution.md`. This file is a TEMPLATE containing placeholder tokens in square brackets (e.g. `[PROJECT_NAME]`, `[PRINCIPLE_1_NAME]`). Your job is to (a) collect/derive concrete values, (b) fill the template precisely, and (c) propagate any amendments across dependent artifacts. | ||||||
|
|
||||||
| This project-level constitution is **subordinate to the higher-level enterprise constitution**, which is maintained in a **separate, canonical repository** (for example, an organization-wide governance repo). In this project, `/memory/enterprise-constitution.md` is treated as a **cached mirror** of that source of truth. | ||||||
|
|
||||||
| The project constitution MUST NOT contradict the enterprise constitution. When in doubt, prefer the higher-level rules and explicitly call out any potential tensions or conflicts. | ||||||
|
|
||||||
| Follow this execution flow: | ||||||
|
|
||||||
| 1. Load the existing constitution template at `/memory/constitution.md`. | ||||||
| 1. Retrieve the higher-level enterprise constitution from its canonical repository. | ||||||
| - Use user input first if it specifies where the enterprise constitution lives (e.g., Git repo URL + file path, or a direct HTTP/HTTPS URL to the Markdown file). | ||||||
| - Otherwise, infer the location from existing documentation (e.g., organization docs, onboarding guides, or configuration files in the repo) and propose a best-guess location; if uncertain, ask the user to confirm. | ||||||
| - Fetch the latest version of the enterprise constitution from that remote source. You MAY use tools such as raw file URLs, GitHub/GitLab web UIs, or a local checkout of the canonical repo if available in the workspace. | ||||||
| - After retrieval, you MAY write or update `/memory/enterprise-constitution.md` as a **read-only cached copy** for this project, including a brief HTML comment at the top with the source repository, path, and commit/last-updated reference if known. | ||||||
| - Understand the enterprise constitution's overarching principles, constraints, and non-negotiable rules. | ||||||
| - If remote retrieval is not possible in this run, but the user input clearly describes enterprise-wide principles, treat those as effective higher-level rules for this run and propose creating or updating the central enterprise constitution in its own repository as a follow-up TODO. In this case, only create `/memory/enterprise-constitution.md` as a clearly marked temporary mirror, if at all. | ||||||
|
|
||||||
| 2. Load the existing project constitution template at `/memory/constitution.md`. | ||||||
| - Identify every placeholder token of the form `[ALL_CAPS_IDENTIFIER]`. | ||||||
| **IMPORTANT**: The user might require less or more principles than the ones used in the template. If a number is specified, respect that - follow the general template. You will update the doc accordingly. | ||||||
|
|
||||||
| 2. Collect/derive values for placeholders: | ||||||
| 3. Collect/derive values for placeholders: | ||||||
| - If user input (conversation) supplies a value, use it. | ||||||
| - Otherwise infer from existing repo context (README, docs, prior constitution versions if embedded). | ||||||
| - For governance dates: `RATIFICATION_DATE` is the original adoption date (if unknown ask or mark TODO), `LAST_AMENDED_DATE` is today if changes are made, otherwise keep previous. | ||||||
|
|
@@ -33,37 +44,47 @@ Follow this execution flow: | |||||
| - MINOR: New principle/section added or materially expanded guidance. | ||||||
| - PATCH: Clarifications, wording, typo fixes, non-semantic refinements. | ||||||
| - If version bump type ambiguous, propose reasoning before finalizing. | ||||||
| - Ensure every project-level principle and governance rule you propose is checked against the enterprise constitution: | ||||||
| - If fully compatible, proceed. | ||||||
| - If it narrows or strengthens an enterprise rule, explicitly document that narrowing or strengthening in the project constitution text. | ||||||
| - If it appears to conflict, either adjust the project rule to comply or insert a `TODO(CONFLICT_<ID>): explanation` marker and list it in the Sync Impact Report. | ||||||
|
|
||||||
| 3. Draft the updated constitution content: | ||||||
| 4. Draft the updated constitution content: | ||||||
| - Replace every placeholder with concrete text (no bracketed tokens left except intentionally retained template slots that the project has chosen not to define yet—explicitly justify any left). | ||||||
| - Preserve heading hierarchy and comments can be removed once replaced unless they still add clarifying guidance. | ||||||
| - Ensure each Principle section: succinct name line, paragraph (or bullet list) capturing non‑negotiable rules, explicit rationale if not obvious. | ||||||
| - Ensure Governance section lists amendment procedure, versioning policy, and compliance review expectations. | ||||||
|
|
||||||
| 4. Consistency propagation checklist (convert prior checklist into active validations): | ||||||
| 5. Consistency propagation checklist (convert prior checklist into active validations): | ||||||
| - Read `/templates/plan-template.md` and ensure any "Constitution Check" or rules align with updated principles. | ||||||
| - Read `/templates/spec-template.md` for scope/requirements alignment—update if constitution adds/removes mandatory sections or constraints. | ||||||
| - Read `/templates/tasks-template.md` and ensure task categorization reflects new or removed principle-driven task types (e.g., observability, versioning, testing discipline). | ||||||
| - Read each command file in `/templates/commands/*.md` (including this one) to verify no outdated references (agent-specific names like CLAUDE only) remain when generic guidance is required. | ||||||
| - Read any runtime guidance docs (e.g., `README.md`, `docs/quickstart.md`, or agent-specific guidance files if present). Update references to principles changed. | ||||||
| - If `/memory/enterprise-constitution.md` exists and has been updated outside this command, ensure that any project-level references to enterprise principles still point to valid sections or concepts. | ||||||
|
||||||
| - If `/memory/enterprise-constitution.md` exists and has been updated outside this command, ensure that any project-level references to enterprise principles still point to valid sections or concepts. | |
| - If `/memory/enterprise-constitution.md` exists and has been updated outside this command, ensure that any project-level references to enterprise principles still point to valid sections or concepts. |
Copilot
AI
Jan 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent indentation in the bullet list. Line 73 has 8 spaces of indentation while the sibling bullet on line 74 has 6 spaces. This creates visual inconsistency and may affect Markdown rendering.
| - Whether the enterprise constitution was successfully retrieved from its canonical repository and whether `/memory/enterprise-constitution.md` was present/updated as a cache. | |
| - Whether the enterprise constitution was successfully retrieved from its canonical repository and whether `/memory/enterprise-constitution.md` was present/updated as a cache. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The YAML frontmatter is missing its opening delimiter. Markdown files with YAML frontmatter require both opening and closing
---delimiters. The opening---should precede thedescription:field.