refactor: consolidate distribution files under dist/ and update docs#2
Merged
refactor: consolidate distribution files under dist/ and update docs#2
Conversation
Replace inline Code of Conduct standards with a summary linking to CODE_OF_CONDUCT.md, add CLA Assistant requirement section, fix dev setup commands (correct cd path, add pre-commit hook step, add Rust toolchain prerequisite), and sync Spanish translation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Root directive files (CLAUDE.md, GEMINI.md, .cursorrules, copilot-instructions.md) now serve dev-only purposes, with clean distribution templates moved to dist-templates/directives/. Updates release workflow to source copilot-instructions.md from the new location and removes the redundant file entry from dist-manifest.yml. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ed strings
Replace hardcoded injection content in the CLI with a template-driven
approach. The manifest now declares each injection as {target, template,
embed?} and the CLI reads actual template files from the distribution ZIP.
- Add cursorrules and cursor-rules-devtrail.md templates with empty markers
- Restructure dist-manifest.yml injections from object to list format
- New unified `inject_directive()` replaces three separate inject functions
- init.rs reads templates from ZIP into memory, iterates manifest.injections
- update.rs reads templates from extracted source, only updates existing targets
- remove.rs loads local manifest for cleanup with legacy fallback
- Save dist-manifest.yml locally in .devtrail/ for remove operations
- Include dist-templates/ directory in release ZIP
- Update unit tests (11) and integration tests (4)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These files were only serving as distribution examples and contained no project-specific development directives. The canonical templates now live in dist-templates/directives/ and are read by the CLI at runtime. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move .devtrail/, DEVTRAIL.md, dist-manifest.yml, dist-templates/, agent skills (.claude/skills, .gemini/skills, .agent/workflows), scripts/, and docs-validation.yml under dist/ so the repo root stays clean for contributor dev configs. Simplify release workflow to a single `cp -a dist/.` and add root-anchored gitignore rules for AI tool directories. Update all internal doc links accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 tasks
montfort
added a commit
that referenced
this pull request
May 2, 2026
Reframes DevTrail's canonical English surface from "AI Governance Platform" to engineering-discipline-first, with compliance positioned as a side effect. Aligns the README, DEVTRAIL.md, and DOCUMENTATION-POLICY.md with Principle #4 (compliance is a side effect, not the product) and Principle #2 (primary user is the senior engineer orchestrating agents). Spanish and zh-CN translations deferred to a follow-up i18n release. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
dist-templates/dist/so the repo root stays clean for contributor dev configsMotivation
Distribution files (.devtrail/, scripts/, agent skills, dist-templates) were scattered across root directories that overlap with AI tool config dirs (.claude/, .gemini/, .agent/). This caused conflicts for contributors who want their own local AI configs. Moving everything distributable under
dist/cleanly separates "what ships in the ZIP" from "repo development infrastructure."Changes
git mvall distributable content underdist/(.devtrail, DEVTRAIL.md, dist-manifest.yml, dist-templates, agent skills, scripts, docs-validation workflow)release.ymlZIP staging from ~25 lines of selective copies to a singlecp -a dist/..gitignorerules for/.claude/,/.gemini/,/.agent/,/.cursorrules,/.cursor/inject.rsreads directive templates from files indist-templates/instead of hardcoded stringsdist-manifest.ymlupdated withinject_directivesentries andembed_filesupportTest plan
cargo test --manifest-path cli/Cargo.toml— all 20 tests passgit status dist/.claude/— gitignore does not block dist/ subdirscp -a dist/. /tmp/stg/— structure matches expected output🤖 Generated with Claude Code