Repository navigation
feat!: include behavior context by default - #3
Merged
Merged
Conversation
Add an evidence-tracked behavior document for business/domain rules, decisions, state transitions, and expected outcomes. Route deeper topics through project-owned children under context/behavior/ and clarify the boundary with architecture. Advance managed template guidance to revision 2.0.1. Preserve configured add-ons during update and hydration, and support explicit adoption with ctx update followed by ctx add behavior. BREAKING CHANGE: New layout-v2 scaffolds select behavior and glossary by default. Use --without behavior,glossary, or an explicit empty InitOptions.Addons slice, for the fixed core only. Existing scaffolds retain their selected add-ons; after upgrading ctx, run ctx update followed by ctx add behavior to adopt the new document.
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.
Agents need a clear explanation of domain rules and expected outcomes before changing business logic. New scaffolds now include
context/behavior.mdas a default-selected add-on alongside glossary, with INDEX routing and readiness metadata. The template covers concepts, workflows, decisions, transitions, exceptions, and the distinction between implemented behavior and intended changes. Deeper topics live in project-owned documents undercontext/behavior/.Architecture guidance now focuses on components, implementation flows, and technical invariants. Existing scaffolds preserve their configured add-ons during update and fresh-clone hydration. After upgrading ctx, adopt behavior explicitly with:
Use
ctx init --without behaviorto omit behavior, or--without behavior,glossaryfor the fixed core only. Managed guidance advances to template revision2.0.1; layout and schema remain at version 2. Frozen legacy templates are unchanged.Validation passed: