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
36 changes: 36 additions & 0 deletions .agentskills/skills/conventional-commits/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: conventional-commits
description: Conventional Commits specification for structured commit messages
---

# Conventional Commits

## Format

```
<type>[optional scope]: <description>

[optional body]

[optional footer(s)]
```

## Types

- `feat`: A new feature (correlates with MINOR in SemVer)
- `fix`: A bug fix (correlates with PATCH in SemVer)
- `docs`: Documentation only changes
- `style`: Changes that do not affect the meaning of the code
- `refactor`: A code change that neither fixes a bug nor adds a feature
- `perf`: A code change that improves performance
- `test`: Adding missing tests or correcting existing tests
- `chore`: Changes to the build process or auxiliary tools

## Rules

- Subject line must not exceed 72 characters
- Use imperative mood in the subject line ("add" not "added")
- Do not end the subject line with a period
- Separate subject from body with a blank line
- Use the body to explain what and why, not how
- `BREAKING CHANGE:` footer or `!` after type/scope for breaking changes
6 changes: 6 additions & 0 deletions .beads/issues.jsonl
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,9 @@
{"id":"ade-3.3","title":"Fix","description":"Implement the solution based on your analysis: - If exists: Follow the design from it - Otherwise: Elaborate design options and present them to the user Before implementing, assess the approach: - How critical is this system? What is the blast radius if the fix causes issues? - Should this be a minimal fix or a more comprehensive solution? Make targeted changes that address the root cause without introducing new issues. Be careful to maintain existing functionality while fixing the bug.","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-18T16:29:10.265074+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-18T16:29:10.265074+01:00","dependencies":[{"issue_id":"ade-3.3","depends_on_id":"ade-3","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-3.3","depends_on_id":"ade-3.2","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-3.4","title":"Verify","description":"Test the fix thoroughly to ensure the original bug is resolved and no new issues were introduced. Run existing tests, create new ones if needed, and verify the solution is robust.","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-18T16:29:10.449967+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-18T16:29:10.449967+01:00","dependencies":[{"issue_id":"ade-3.4","depends_on_id":"ade-3","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-3.4","depends_on_id":"ade-3.3","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-3.5","title":"Finalize","description":"Ensure code quality and documentation accuracy through systematic cleanup and review. **STEP 1: Code Cleanup** Systematically clean up development artifacts: - Remove all temporary debug output statements used during bug investigation (console logging, print statements, debug output functions) - Address each TODO/FIXME comment by either implementing the solution or documenting why it's deferred - Remove completed TODOs and convert remaining ones to proper issue tracking if needed - Remove temporary debugging code, test code blocks, and commented-out code - Ensure proper error handling replaces temporary debug logging **STEP 2: Documentation Review** Review and update documentation to reflect the bug fix: - If exists, update it if design details were refined or changed during the fix - Compare documentation against the actual bug fix implementation - Update only the documentation sections that have functional changes - Remove references to investigation iterations, progress notes, and temporary decisions - Ensure documentation describes the final fixed state, not the debugging process - Ask the user to review document updates **STEP 3: Final Validation** - Run existing tests to ensure cleanup didn't break functionality - Verify documentation accuracy with a final review - Ensure bug fix is ready for production - Update task progress and mark completed work as you finalize the bug fix","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-18T16:29:10.642935+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-18T16:29:10.642935+01:00","dependencies":[{"issue_id":"ade-3.5","depends_on_id":"ade-3","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-3.5","depends_on_id":"ade-3.4","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-4","title":"ade: bugfix (development-plan-fix-no-git.md)","description":"Responsible vibe engineering session using bugfix workflow for ade","status":"open","priority":2,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T10:33:06.662828+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T10:33:06.662828+01:00"}
{"id":"ade-4.1","title":"Reproduce","description":"Gather specific information to reliably reproduce the reported bug: - What are the exact OS, browser/runtime versions, and hardware specs? - What is the precise sequence of actions that trigger the bug? - What error messages, logs, or stack traces are available? - Does this happen every time or intermittently? - How many users are affected and what is the business impact? Create test cases that demonstrate the problem. Document your findings and create tasks as needed.","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T10:33:06.80022+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T10:33:06.80022+01:00","dependencies":[{"issue_id":"ade-4.1","depends_on_id":"ade-4","type":"parent-child","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-4.2","title":"Analyze","description":"Examine the code paths involved in the bug, identify the root cause, and understand why the issue occurs. Use debugging tools, add logging, and trace through the problematic code. Document your analysis and create tasks as needed.","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T10:33:06.939399+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T10:33:06.939399+01:00","dependencies":[{"issue_id":"ade-4.2","depends_on_id":"ade-4","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-4.2","depends_on_id":"ade-4.1","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-4.3","title":"Fix","description":"Implement the solution based on your analysis: - If exists: Follow the design from it - Otherwise: Elaborate design options and present them to the user Before implementing, assess the approach: - How critical is this system? What is the blast radius if the fix causes issues? - Should this be a minimal fix or a more comprehensive solution? Make targeted changes that address the root cause without introducing new issues. Be careful to maintain existing functionality while fixing the bug.","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T10:33:07.076548+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T10:33:07.076548+01:00","dependencies":[{"issue_id":"ade-4.3","depends_on_id":"ade-4","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-4.3","depends_on_id":"ade-4.2","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-4.4","title":"Verify","description":"Test the fix thoroughly to ensure the original bug is resolved and no new issues were introduced. Run existing tests, create new ones if needed, and verify the solution is robust.","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T10:33:07.222264+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T10:33:07.222264+01:00","dependencies":[{"issue_id":"ade-4.4","depends_on_id":"ade-4","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-4.4","depends_on_id":"ade-4.3","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-4.5","title":"Finalize","description":"Ensure code quality and documentation accuracy through systematic cleanup and review. **STEP 1: Code Cleanup** Systematically clean up development artifacts: - Remove all temporary debug output statements used during bug investigation (console logging, print statements, debug output functions) - Address each TODO/FIXME comment by either implementing the solution or documenting why it's deferred - Remove completed TODOs and convert remaining ones to proper issue tracking if needed - Remove temporary debugging code, test code blocks, and commented-out code - Ensure proper error handling replaces temporary debug logging **STEP 2: Documentation Review** Review and update documentation to reflect the bug fix: - If exists, update it if design details were refined or changed during the fix - Compare documentation against the actual bug fix implementation - Update only the documentation sections that have functional changes - Remove references to investigation iterations, progress notes, and temporary decisions - Ensure documentation describes the final fixed state, not the debugging process - Ask the user to review document updates **STEP 3: Final Validation** - Run existing tests to ensure cleanup didn't break functionality - Verify documentation accuracy with a final review - Ensure bug fix is ready for production - Update task progress and mark completed work as you finalize the bug fix","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T10:33:07.356694+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T10:33:07.356694+01:00","dependencies":[{"issue_id":"ade-4.5","depends_on_id":"ade-4","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-4.5","depends_on_id":"ade-4.4","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
2 changes: 1 addition & 1 deletion .beads/last-touched
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ade-3.5
ade-4.5
11 changes: 9 additions & 2 deletions .kiro/agents/ade.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
"autoApprove": ["*"]
}
},
"tools": ["read", "write", "spec", "@workflows/*", "@agentskills/*", "shell"],
"allowedTools": ["read", "write", "spec", "@workflows/*", "@agentskills/*"],
"tools": ["read", "write", "shell", "spec", "@workflows/*", "@agentskills/*"],
"allowedTools": [
"read",
"write",
"shell",
"spec",
"@workflows/*",
"@agentskills/*"
],
"useLegacyMcpJson": true
}
27 changes: 9 additions & 18 deletions .opencode/agents/ade.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ permission:
"*.env": "deny"
"*.env.*": "deny"
"*.env.example": "allow"
edit: "allow"
skill: "deny"
todoread: "deny"
todowrite: "deny"
task: "deny"
lsp: "allow"
glob: "allow"
grep: "allow"
list: "allow"
lsp: "allow"
task: "allow"
todoread: "deny"
todowrite: "deny"
skill: "deny"
external_directory: "ask"
edit: "allow"
webfetch: "ask"
websearch: "ask"
codesearch: "ask"
bash:
"*": "deny"
"*": "ask"
"grep *": "allow"
"rg *": "allow"
"find *": "allow"
"fd *": "allow"
ls: "allow"
"ls *": "allow"
"cat *": "allow"
"head *": "allow"
Expand Down Expand Up @@ -60,14 +60,7 @@ permission:
"yq *": "allow"
"mkdir *": "allow"
"touch *": "allow"
"cp *": "ask"
"mv *": "ask"
"ln *": "ask"
"npm *": "ask"
"node *": "ask"
"pip *": "ask"
"python *": "ask"
"python3 *": "ask"
"kill *": "ask"
"rm *": "deny"
"rmdir *": "deny"
"curl *": "deny"
Expand All @@ -88,7 +81,6 @@ permission:
"mkfs *": "deny"
"mount *": "deny"
"umount *": "deny"
"kill *": "deny"
"killall *": "deny"
"pkill *": "deny"
"nc *": "deny"
Expand All @@ -107,7 +99,6 @@ permission:
"useradd *": "deny"
"userdel *": "deny"
"iptables *": "deny"
external_directory: "deny"
doom_loop: "deny"
---

Expand Down
34 changes: 34 additions & 0 deletions .vibe/beads-state-ade-fix-no-git-k396xs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"conversationId": "ade-fix-no-git-k396xs",
"projectPath": "/Users/oliverjaegle/projects/privat/codemcp/ade",
"epicId": "ade-4",
"phaseTasks": [
{
"phaseId": "reproduce",
"phaseName": "Reproduce",
"taskId": "ade-4.1"
},
{
"phaseId": "analyze",
"phaseName": "Analyze",
"taskId": "ade-4.2"
},
{
"phaseId": "fix",
"phaseName": "Fix",
"taskId": "ade-4.3"
},
{
"phaseId": "verify",
"phaseName": "Verify",
"taskId": "ade-4.4"
},
{
"phaseId": "finalize",
"phaseName": "Finalize",
"taskId": "ade-4.5"
}
],
"createdAt": "2026-03-19T09:33:07.866Z",
"updatedAt": "2026-03-19T09:33:07.866Z"
}
76 changes: 76 additions & 0 deletions .vibe/development-plan-fix-no-git.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Development Plan: ade (fix-no-git branch)

*Generated on 2026-03-19 by Vibe Feature MCP*
*Workflow: [bugfix](https://mrsimpson.github.io/responsible-vibe-mcp/workflows/bugfix)*

## Goal
Fix `writeGitHooks` crashing with ENOENT when run in a non-git directory. Instead of throwing, it should detect the absence of `.git` and emit a warning, then skip gracefully (Option B).

## Reproduce
<!-- beads-phase-id: ade-4.1 -->
### Bug Description
When `ade setup` is run in a non-git directory and pre-commit hooks are configured, `writeGitHooks` tries to open `.git/hooks/pre-commit` for writing. Since `.git` doesn't exist, Node throws `ENOENT` and the whole process crashes.

### Error
```
Error: ENOENT: no such file or directory, open '/private/tmp/manual-test/.git/hooks/pre-commit'
```

### Root Cause (already identified via code reading)
`packages/harnesses/src/util.ts` → `writeGitHooks()` writes directly to `.git/hooks/<phase>` without checking if `.git` exists.

### Tasks

## Analyze
<!-- beads-phase-id: ade-4.2 -->
### Phase Entrance Criteria
- [x] Bug is reproducible and root cause is identified.
- [x] Affected code location is known (`writeGitHooks` in `packages/harnesses/src/util.ts`).

### Analysis
- `writeGitHooks` is a shared utility called by every harness writer (universal, cursor, copilot, cline, claude-code, roo-code, opencode, kiro, windsurf).
- The fix belongs in `writeGitHooks` itself — one place, all callers benefit.
- Chosen approach: **Option B** — check for `.git` existence; if absent, emit a `clack.log.warn(...)` and return early. This keeps the user informed (backpressure) without crashing.
- `clack` is already used throughout the codebase; it is available in `util.ts`.

### Tasks

## Fix
<!-- beads-phase-id: ade-4.3 -->
### Phase Entrance Criteria
- [x] Root cause is confirmed to be in `writeGitHooks`.
- [x] Fix strategy (Option B: warn + skip) is agreed upon.

### Tasks
- [ ] In `writeGitHooks`: use `fs/promises.access` to check for `.git` directory existence before writing hooks.
- [ ] If `.git` is absent, call `clack.log.warn(...)` with a clear message and return.
- [ ] Also ensure `.git/hooks` directory is created if `.git` exists but `hooks` subdir is missing (use `mkdir` with `recursive: true`).
- [ ] Add / update unit tests in `install.spec.ts` or `util.spec.ts` to cover the non-git-repo case.

## Verify
<!-- beads-phase-id: ade-4.4 -->
### Phase Entrance Criteria
- [ ] `writeGitHooks` checks for `.git` existence and warns instead of crashing.
- [ ] `.git/hooks` dir is created when `.git` exists but `hooks` subdir is missing.
- [ ] Unit tests cover the new behavior.

### Tasks
- [ ] Run existing test suite and confirm no regressions.
- [ ] Manually verify the warning message is shown when run outside a git repo.

## Finalize
<!-- beads-phase-id: ade-4.5 -->
### Phase Entrance Criteria
- [ ] All tests pass.
- [ ] Warning behavior verified.

### Tasks
- [ ] Squash WIP commits: `git reset --soft <first commit of this branch>`. Then, create a conventional commit. In the message, first summarize the intentions and key decisions from the development plan. Then, add a brief summary of the key changes and their side effects and dependencies.

## Key Decisions
- **Option B (warn + skip)** chosen over silent skip so users receive feedback that hooks were not installed — this preserves backpressure (user knows something was skipped).
- Fix is centralised in `writeGitHooks` utility; no changes needed in individual harness writers.

## Notes
- `clack` import must be added to `util.ts` if not already present.
- All harness writers already import `writeGitHooks` from `../util.js` — no call-site changes needed.
27 changes: 27 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# AGENTS

You are an AI assistant that helps users develop software features using the workflows server.
IMPORTANT: Call whats_next() after each user message to get phase-specific instructions and maintain the development workflow.
Each tool call returns a JSON response with an "instructions" field. Follow these instructions immediately after you receive them.
Use the development plan which you will retrieve via whats_next() to record important insights and decisions as per the structure of the plan.
Do not use your own task management tools.

## Autonomy

Universal harness limitation: `AGENTS.md` + `.mcp.json` provide documentation and server registration only; there is no enforceable harness-level permission schema here.

Treat this autonomy profile as documentation-only guidance for built-in/basic operations.

Profile: `sensible-defaults`

Built-in/basic capability guidance:

- `read`: allow
- `edit_write`: allow
- `search_list`: allow
- `bash_safe`: allow
- `bash_unsafe`: ask
- `web`: ask
- `task_agent`: allow

MCP permissions are not re-modeled by autonomy here; any MCP approvals must come from provisioning-aware consuming harnesses rather than the Universal writer.
42 changes: 33 additions & 9 deletions config.lock.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
version: 1
generated_at: 2026-03-18T11:52:51.718Z
generated_at: 2026-03-19T09:28:46.177Z
choices:
process: codemcp-workflows
practices:
- adr-nygard
- conventional-commits
autonomy: sensible-defaults
harnesses:
- universal
Expand Down Expand Up @@ -104,15 +105,38 @@ logical_config:

- Title should be a short noun phrase (e.g. "Use PostgreSQL for
persistence")
- name: conventional-commits
description: Conventional Commits specification for structured commit messages
body: |-
# Conventional Commits

## Format
```
<type>[optional scope]: <description>

[optional body]

[optional footer(s)]
```

## Types
- `feat`: A new feature (correlates with MINOR in SemVer)
- `fix`: A bug fix (correlates with PATCH in SemVer)
- `docs`: Documentation only changes
- `style`: Changes that do not affect the meaning of the code
- `refactor`: A code change that neither fixes a bug nor adds a feature
- `perf`: A code change that improves performance
- `test`: Adding missing tests or correcting existing tests
- `chore`: Changes to the build process or auxiliary tools

## Rules
- Subject line must not exceed 72 characters
- Use imperative mood in the subject line ("add" not "added")
- Do not end the subject line with a period
- Separate subject from body with a blank line
- Use the body to explain what and why, not how
- `BREAKING CHANGE:` footer or `!` after type/scope for breaking changes
git_hooks: []
setup_notes: []
permission_policy:
profile: sensible-defaults
capabilities:
read: allow
edit_write: allow
search_list: allow
bash_safe: allow
bash_unsafe: ask
web: ask
task_agent: allow
3 changes: 3 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ choices:
process: codemcp-workflows
practices:
- adr-nygard
- conventional-commits
autonomy: sensible-defaults
excluded_docsets:
- conventional-commits-spec
harnesses:
- universal
- opencode
Expand Down
8 changes: 7 additions & 1 deletion packages/cli/src/commands/conventions.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ vi.mock("@clack/prompts", () => ({
outro: vi.fn(),
select: vi.fn(),
multiselect: vi.fn(),
confirm: vi.fn(),
confirm: vi.fn().mockResolvedValue(true),
isCancel: vi.fn().mockReturnValue(false),
cancel: vi.fn(),
log: {
info: vi.fn(),
warn: vi.fn(),
error: vi.fn(),
success: vi.fn()
},
spinner: vi.fn().mockReturnValue({ start: vi.fn(), stop: vi.fn() })
}));

Expand Down
Loading