AI Governance Platform for Responsible Software Development
Getting Started β’ Features β’ Documentation β’ Contributing
Languages: English | EspaΓ±ol
As AI becomes integral to software development, organizations face three converging pressures:
- Regulatory compliance: The EU AI Act becomes mandatory in August 2026. ISO/IEC 42001 is now the international standard for AI governance. Teams need documented evidence.
- Governance gap: No structured way to prove that AI decisions are governed, auditable, and compliant β every undocumented AI change is a liability.
- Operational risk: Who made this change? What alternatives were considered? Was human oversight appropriate? Without answers, AI-assisted development is a black box.
DevTrail is an ISO 42001-aligned AI governance platform that ensures every meaningful change β whether by human or AI β is documented, attributed, and auditable.
"No significant change without a documented trace β and proof of governance."
Teams that adopt DevTrail produce evidence compatible with ISO/IEC 42001 certification, EU AI Act compliance, and NIST AI RMF risk management β while improving development quality and traceability.
Twelve document types covering the full development lifecycle:
| Type | Purpose | Example |
|---|---|---|
| REQ | Requirements | System requirements, user stories |
| ADR | Architecture Decisions | Technology choices, design patterns |
| TES | Test Plans | Test strategies, coverage goals |
| INC | Incident Post-mortems | Root cause analysis, lessons learned |
| TDE | Technical Debt | Identified debt, remediation plans |
| AILOG | AI Action Logs | What AI assistants did and why |
| AIDEC | AI Decisions | Choices made by AI with alternatives |
| ETH | Ethical Reviews | Privacy, bias, responsible AI |
| SEC | Security Assessments | Threat modeling, vulnerability analysis |
| MCARD | Model/System Cards | AI model documentation |
| SBOM | Software Bill of Materials | AI component inventory |
| DPIA | Data Protection Impact Assessment | Privacy impact analysis |
| Standard | DevTrail Integration |
|---|---|
| ISO/IEC 42001:2023 | Vertebral standard β AI Management System governance |
| EU AI Act | Risk classification, incident reporting, transparency |
| NIST AI RMF / 600-1 | 12 GenAI risk categories in ETH/AILOG |
| ISO/IEC 25010:2023 | Software quality model in REQ/ADR |
| ISO/IEC/IEEE 29148:2018 | Requirements engineering in REQ |
| ISO/IEC/IEEE 29119-3:2021 | Test documentation in TES |
| GDPR | Data protection in ETH/DPIA |
| OpenTelemetry | Observability (optional) |
Pre-configured for popular AI coding assistants:
- Claude Code (Anthropic) β
CLAUDE.md - Cursor β
.cursorrules - GitHub Copilot CLI β
.github/copilot-instructions.md - Gemini CLI (Google) β
GEMINI.md
Each configuration instructs the AI to:
- Identify itself in every document
- Declare confidence levels
- Request human review when appropriate
- Follow naming conventions
- Follow Git branching strategy (never commit to
maindirectly)
Built-in safeguards ensure humans stay in control:
- Autonomy levels: Some document types require human approval
- Review triggers: Low confidence or high risk β mandatory review
- Ethical reviews: Privacy and bias concerns flagged for human decision
Built-in CLI tools for governance:
devtrail validateβ 13 validation rules for document correctnessdevtrail complianceβ Regulatory compliance scoring (EU AI Act, ISO 42001, NIST AI RMF)devtrail metricsβ Governance KPIs, review rates, risk distribution, trendsdevtrail auditβ Audit trail reports with timeline, traceability maps, and HTML export- Pre-commit hooks + GitHub Actions for CI/CD validation
Quick install (prebuilt binary):
# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/StrangeDaysTech/devtrail/main/install.sh | sh# Windows (PowerShell)
irm https://raw.githubusercontent.com/StrangeDaysTech/devtrail/main/install.ps1 | iexOr install from source with Cargo:
cargo install devtrail-cliThen initialize in your project:
cd your-project
devtrail init .The CLI downloads the latest DevTrail release, sets up the framework, and configures your AI agent directive files automatically.
DevTrail uses independent version tags for each component:
| Component | Tag prefix | Example | Includes |
|---|---|---|---|
| Framework | fw- |
fw-4.0.0 |
Templates (12 types), governance, directives, scripts |
| CLI | cli- |
cli-2.1.0 |
The devtrail binary |
Check installed versions with devtrail status or devtrail about.
| Command | Description |
|---|---|
devtrail init [path] |
Initialize DevTrail in a project |
devtrail update |
Update both framework and CLI |
devtrail update-framework |
Update only the framework |
devtrail update-cli |
Update the CLI binary |
devtrail remove [--full] |
Remove DevTrail from project |
devtrail status [path] |
Show installation health and doc stats |
devtrail repair [path] |
Restore missing directories and framework files |
devtrail validate [path] |
Validate documents for compliance and correctness |
devtrail compliance [path] |
Check regulatory compliance (EU AI Act, ISO 42001, NIST) |
devtrail metrics [path] |
Show governance metrics and documentation statistics |
devtrail audit [path] |
Generate audit trail reports with timeline and traceability |
devtrail explore [path] |
Browse documentation interactively in a TUI |
devtrail about |
Show version and license info |
See CLI Reference for detailed usage.
# Download the latest framework release ZIP from GitHub
# Go to https://github.com/StrangeDaysTech/devtrail/releases
# and download the latest fw-* release (e.g., fw-4.0.0)
# Extract and copy to your project
unzip devtrail-fw-*.zip -d your-project/
cd your-project
# Commit
git add .devtrail/ DEVTRAIL.md scripts/
git commit -m "chore: adopt DevTrail"π See ADOPTION-GUIDE.md for detailed instructions, migration strategies, and team rollout plans.
DevTrail documentation is organized by audience:
| Track | For | Start here |
|---|---|---|
| Adopters | Teams adopting DevTrail in their projects | ADOPTION-GUIDE.md |
| Contributors | Developers contributing to DevTrail | TRANSLATION-GUIDE.md |
Adopters: Follow the Adoption Guide for step-by-step instructions, the CLI Reference for command details, and the Workflows Guide for daily usage patterns.
Contributors: See CONTRIBUTING.md for development guidelines, and the Translation Guide for adding new languages.
| Document | Description |
|---|---|
| Quick Reference | One-page overview of document types and naming |
| DEVTRAIL.md | Unified governance rules (source of truth) |
| ADOPTION-GUIDE.md | Adoption guide for new/existing projects |
| CLI-REFERENCE.md | Complete CLI command reference |
| WORKFLOWS.md | Recommended daily workflows and team patterns |
Once adopted, DevTrail creates a .devtrail/ directory in your project for development governance:
.devtrail/
βββ 00-governance/ # Policies and rules
βββ 01-requirements/ # REQ documents
βββ 02-design/decisions/ # ADR documents
βββ 03-implementation/ # Implementation guides (incl. Git strategy)
βββ 04-testing/ # TES documents
βββ 05-operations/incidents/ # INC documents
βββ 06-evolution/technical-debt/ # TDE documents
βββ 07-ai-audit/
β βββ agent-logs/ # AILOG documents
β βββ decisions/ # AIDEC documents
β βββ ethical-reviews/ # ETH, DPIA documents
βββ 08-security/ # SEC documents
βββ 09-ai-models/ # MCARD documents
βββ templates/ # Document templates
[TYPE]-[YYYY-MM-DD]-[NNN]-[description].md
Example: ADR-2025-01-27-001-use-postgresql-for-persistence.md
An AI assistant working on your code automatically:
# Creates: .devtrail/07-ai-audit/agent-logs/AILOG-2025-01-27-001-implement-auth.md
---
id: AILOG-2025-01-27-001
title: Implement JWT authentication
agent: claude-code-v1.0
confidence: high
risk_level: high
review_required: true
---High-risk or low-confidence changes are flagged:
π AILOG-2025-01-27-001-implement-auth.md
Agent: claude-code-v1.0
Confidence: high
Risk Level: high β οΈ
Review Required: YES
When choosing between alternatives, decisions are documented:
# Creates: .devtrail/07-ai-audit/decisions/AIDEC-2025-01-27-001-auth-strategy.md
---
id: AIDEC-2025-01-27-001
title: Choose JWT over session-based auth
alternatives_considered:
- JWT tokens (chosen)
- Session cookies
- OAuth only
justification: "Stateless architecture requirement..."
---When AI encounters ethical considerations:
# Creates: .devtrail/07-ai-audit/ethical-reviews/ETH-2025-01-27-001-user-data.md
---
id: ETH-2025-01-27-001
title: User data collection scope
status: draft # Requires human approval
review_required: true
concerns:
- GDPR compliance
- Data minimization
---# Install the pre-commit hook
cp scripts/pre-commit-docs.sh .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit# Linux/Mac
bash scripts/pre-commit-docs.sh
# Windows PowerShell
.\scripts\validate-docs.ps1The included workflow (.github/workflows/docs-validation.yml) automatically validates:
- File naming conventions
- Required metadata fields
- Sensitive information detection
- Markdown formatting
- Internal link integrity
DevTrail includes skills for AI agents that enable active documentation creation.
Binary System: DevTrail uses a passive system (agents auto-document via context instructions) and an active system (users invoke skills to create documentation manually or when the agent missed something).
| Skill | Purpose | Claude | Gemini |
|---|---|---|---|
/devtrail-status |
Check documentation compliance | β | β |
/devtrail-new |
Create any document type (unified) | β | β |
/devtrail-ailog |
Quick AILOG creation | β | β |
/devtrail-aidec |
Quick AIDEC creation | β | β |
/devtrail-adr |
Quick ADR creation | β | β |
/devtrail-sec |
Security Assessment creation | β | β |
/devtrail-mcard |
Model/System Card creation | β | β |
# Check documentation status
/devtrail-status
# Create documentation (agent suggests type)
/devtrail-new
# Force specific document type
/devtrail-new ailog
# Direct shortcuts
/devtrail-ailog
/devtrail-aidec
/devtrail-adrFor users who prefer command-line or use agents without skill support:
# Interactive document creation
./scripts/devtrail-new.sh
# Create specific type directly
./scripts/devtrail-new.sh ailog
# Check documentation status
./scripts/devtrail-status.shAI agents report documentation status at the end of each task:
| Status | Meaning |
|---|---|
DevTrail: Created AILOG-... |
Documentation was created |
DevTrail: No documentation required |
Change was minor |
DevTrail: Documentation pending |
May need manual review |
DevTrail provides native skill support for multiple AI agents through a layered architecture:
your-project/
βββ .agent/workflows/ # π Agnostic (Antigravity, future agents)
β βββ devtrail-new.md
β βββ devtrail-status.md
β βββ ...
βββ .gemini/skills/ # π΅ Gemini CLI (Google)
β βββ devtrail-new/SKILL.md
β βββ ...
βββ .claude/skills/ # π£ Claude Code (Anthropic)
βββ devtrail-new/SKILL.md
βββ ...
| Directory | Agent | Product | Format |
|---|---|---|---|
.agent/workflows/ |
Antigravity, generic | VS Code/Cursor extensions | skill-name.md with YAML frontmatter |
.gemini/skills/ |
Gemini CLI | Google's terminal CLI | skill-name/SKILL.md |
.claude/skills/ |
Claude Code | Anthropic's coding agent | skill-name/SKILL.md |
Note:
.agent/is the vendor-agnostic standard. Agent-specific directories (.gemini/,.claude/) provide compatibility for those platforms while following their native conventions.
All skill implementations are functionally identicalβonly the format differs to match each agent's requirements.
| Platform | Config File | Status |
|---|---|---|
| Claude Code | CLAUDE.md |
β Full support |
| Cursor | .cursorrules |
β Full support |
| GitHub Copilot CLI | .github/copilot-instructions.md |
β Full support |
| Gemini CLI | GEMINI.md |
β Full support |
| OS | Validation Script |
|---|---|
| Linux | scripts/pre-commit-docs.sh |
| macOS | scripts/pre-commit-docs.sh |
| Windows | scripts/validate-docs.ps1 |
| Platform | Support |
|---|---|
| GitHub Actions | β Included workflow |
| GitLab CI | π§ Adaptable from GitHub Actions |
| Azure DevOps | π§ Adaptable from GitHub Actions |
We welcome contributions! See CONTRIBUTING.md for guidelines.
- π Report bugs
- π‘ Suggest features
- π Improve documentation
- π§ Submit pull requests
- π Add translations
This project is licensed under the MIT License - see the LICENSE file for details.
Strange Days Tech builds tools for responsible AI-assisted software development. DevTrail is one of our open-source projects.
DevTrail β AI governance, documented.