Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/archpilot-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Archpilot Lint

on:
pull_request:
paths:
- '.specs/**'
- 'rules/**'
- 'templates/**'
push:
branches: [main]
paths:
- '.specs/**'

jobs:
lint:
name: Lint architecture specs (Tier 2)
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'

- name: Install dependencies
run: pip install -r requirements.txt

- name: Run Archpilot linter
run: python archpilot.py lint --dir . --tier 2
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Archpilot generated artifacts — commit intentionally, not by default
.specs/

# Python
__pycache__/
*.py[cod]
*.egg-info/
dist/
build/
.venv/
venv/
.env

# OS
.DS_Store
Thumbs.db
16 changes: 8 additions & 8 deletions rules/29-agentic-ai-governance.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

| Standard | Relationship |
|----------|-------------|
| [27 Spec-Driven Development](./27-spec-driven-development.md) | Specs constrain agent behavior |
| [28 Context Engineering](./28-context-engineering.md) | Context design for agent isolation |
| [07 Security Architecture](./07-security-architecture.md) | Security controls for agents |
| [18 Architecture Governance](./18-architecture-governance.md) | Broader governance framework |
| [27 - Spec-Driven Development](./27-spec-driven-development.md) | Specs constrain agent behavior |
| [28 - Context Engineering](./28-context-engineering.md) | Context design for agent isolation |
| [07 - Security Architecture](./07-security-architecture.md) | Security controls for agents |
| [18 - Architecture Governance](./18-architecture-governance.md) | Broader governance framework |

---

Expand Down Expand Up @@ -63,7 +63,7 @@ Every agent deployment MUST enforce:

- [ ] **Scope boundary:** Agent can ONLY access files/APIs listed in its task context
- [ ] **No-write zones:** Define protected paths/resources agents cannot modify (e.g., `/.env`, migration files, production configs)
- [ ] **Command allowlist:** Shell/CLI commands available to agents are explicitly allowlisted deny by default
- [ ] **Command allowlist:** Shell/CLI commands available to agents are explicitly allowlisted � deny by default
- [ ] **External network isolation:** Agents in dev/test MUST NOT call production APIs
- [ ] **Secret protection:** Agents MUST NOT log, print, or include secrets in any artifact
- [ ] **Cost guardrails:** Max spend per agent run defined and enforced via budget alerts
Expand All @@ -84,7 +84,7 @@ Define checkpoints where human review is mandatory:

### 3.3 Blast Radius Minimization

- Agents MUST operate on feature branches never directly on `main` or `release`
- Agents MUST operate on feature branches � never directly on `main` or `release`
- Each agent task MUST be scoped to the minimum set of files required
- Destructive operations (deletes, truncates, revokes) MUST require explicit human confirmation
- Agent changes MUST be reversible: no irreversible action without a documented rollback
Expand Down Expand Up @@ -147,7 +147,7 @@ Human (highest trust)
```

**Rule:** Sub-agents cannot elevate their own trust level.
**Rule:** Sub-agents cannot directly communicate with each other all routing goes through orchestrator.
**Rule:** Sub-agents cannot directly communicate with each other � all routing goes through orchestrator.
**Rule:** Orchestrator cannot execute code directly; it delegates to specialist agents.

### 5.3 Agent Failure Handling
Expand Down Expand Up @@ -204,5 +204,5 @@ Before merging any agent-generated artifact:

---

*Archpilot Enterprise Architecture Standards Library*
*Archpilot � Enterprise Architecture Standards Library*
*Created by Gaurav Sharma*
2 changes: 1 addition & 1 deletion tools/generate_diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
}

def main():
target_dir = r"d:\_elfor\code\ag-wks\archpilot\diagrams"
target_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "diagrams")
if not os.path.exists(target_dir):
os.makedirs(target_dir)

Expand Down
34 changes: 0 additions & 34 deletions workflows/archpilot-review.yml

This file was deleted.

Loading