Commit graph

129 commits

Author SHA1 Message Date
dan b0fe974831 bd sync: 2026-01-14 19:02:29 2026-01-14 19:02:29 -08:00
dan 48d2737699 refactor(skills): standardize directory structure (assets/ references/)
- Remove redundant 'skills/' subdirectories
- Rename 'templates/' to 'assets/' in worklog, template, review-gate, hq
- Move loose docs to 'references/' in niri-window-capture, spec-review
- Update SKILL.md and README.md paths
2026-01-14 19:02:08 -08:00
dan 2c0db1c911 bd sync: 2026-01-14 11:40:53 2026-01-14 11:40:53 -08:00
dan 33e307daaa bd sync: 2026-01-14 11:40:40 2026-01-14 11:40:40 -08:00
dan 06f5fafd1a bd sync: 2026-01-13 06:51:08 2026-01-13 06:51:08 -08:00
dan e6d777e589 feat: add Codex per-repo skills support
- use-skills.sh: symlink to $CODEX_HOME/skills when CODEX_HOME is set
- docs: update PER-REPO-SKILLS.md and RFC-SKILLS-MANIFEST.md with Codex flow
- hq: add model configuration section (sonnet-4.5, Claude Max)
- hq: update launch commands with explicit --model flag

Closes skills-legi

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 06:50:56 -08:00
dan 2969878553 feat: add Codex support to ai-skills module
- Add codexSkills option for deploying skills to ~/.codex/skills/
- Follows same pattern as claudeCodeSkills and openCodeSkills
- Dotfiles can now configure: services.ai-skills.codexSkills = [ "worklog" "hq" ];

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 05:58:56 -08:00
dan 119c240ad6 Update issue tracking 2026-01-12 21:11:41 -08:00
dan 949250bbe9 bd sync: 2026-01-12 13:52:52 2026-01-12 13:52:52 -08:00
dan 6e81841e8d bd sync: 2026-01-12 10:19:10 2026-01-12 10:19:10 -08:00
dan 62e81b720e bd sync: 2026-01-11 21:23:48 2026-01-11 21:23:48 -08:00
dan 10ae698e7f bd sync: 2026-01-11 15:50:17 2026-01-11 15:50:17 -08:00
dan c5fd9a6be2 bd sync: 2026-01-11 15:38:05 2026-01-11 15:38:05 -08:00
dan fb6da27e96 bd sync: 2026-01-11 15:34:25 2026-01-11 15:34:25 -08:00
dan 61b4d3a37c bd sync: 2026-01-11 14:28:29 2026-01-11 14:28:29 -08:00
dan de84648563 fix: proper exit codes for state transition errors
- Add try/except blocks in worker commands to catch WorkerNotFound,
  InvalidTransition, and StaleState exceptions
- Return ExitInvalidTransition (3) for state transition errors
- Return ExitNotFound (7) for missing workers
- Fix double ROLLBACK bug in state.nim by removing inline ROLLBACKs
  and letting the except block handle transaction cleanup

Closes: skills-lxb9

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 14:28:21 -08:00
dan 7660693717 feat(worker): add test suite and fix worktree DB path
Test infrastructure:
- Add comprehensive test-worker.sh with 59 tests
- Cover spawn, start, done, approve, reject, cancel, fail, heartbeat
- Test status filtering, context files, review-gate integration
- Test invalid state transitions and error cases

Bug fixes:
- Fix agent commands failing when run from worktrees (skills-y3f2)
  - Add getMainRepoBusDbPath() to find DB in main repo
  - Update start, done, fail, heartbeat to use correct path
- Fix review.nim crash when review-gate not installed (OSError)
  - Gracefully return exitCode=-1 instead of crashing

Closes skills-y3f2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 00:26:02 -08:00
dan daec0f3b85 docs: ADR-006 Nim language choice for worker CLI
Documents rationale for using Nim with ORC for the worker coordination
CLI: fast startup, single binary, Python-like syntax, excellent SQLite
support via tiny_sqlite, CLI generation via cligen.

Closes skills-q40

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:27:32 -08:00
dan caff76f618 feat(worker): integrate review-gate with worker CLI
- Add review.nim module for review-gate integration
- spawn: enables review-gate automatically
- status: shows review state column (pending/approved/REJECTED)
- show: displays review status in detailed view
- approve: calls review-gate approve before state transition
- request-changes: calls review-gate reject with comment
- cancel/merge: clean up review state files

Closes skills-byq

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 23:24:33 -08:00
dan f9ac03a8a8 bd sync: 2026-01-10 23:07:31 2026-01-10 23:07:31 -08:00
dan c44f2106ee bd sync: 2026-01-10 20:55:02 2026-01-10 20:55:02 -08:00
dan 7e368a2cde bd sync: 2026-01-10 20:41:42 2026-01-10 20:41:42 -08:00
dan 2f0aad5a25 bd sync: 2026-01-10 20:41:13 2026-01-10 20:41:13 -08:00
dan 5121bbb008 bd sync: 2026-01-10 20:37:34 2026-01-10 20:37:34 -08:00
dan 5550421ae9 bd sync: 2026-01-10 20:32:36 2026-01-10 20:32:36 -08:00
dan 02b7054709 bd sync: 2026-01-10 20:26:28 2026-01-10 20:26:28 -08:00
dan 555dbb8ccd bd sync: 2026-01-10 18:04:40 2026-01-10 18:04:40 -08:00
dan 6dfd373637 bd sync: 2026-01-10 16:08:27 2026-01-10 16:08:27 -08:00
dan 91f324949c bd sync: 2026-01-10 15:56:52 2026-01-10 15:56:53 -08:00
dan f2a5199337 bd sync: 2026-01-10 15:44:21 2026-01-10 15:44:21 -08:00
dan 713a627185 bd sync: 2026-01-10 15:41:05 2026-01-10 15:41:05 -08:00
dan 0fcfbe0624 bd sync: 2026-01-10 15:34:24 2026-01-10 15:34:24 -08:00
dan 1888db7ec0 bd sync: 2026-01-10 15:27:39 2026-01-10 15:27:39 -08:00
dan bc4f2e85cf bd sync: 2026-01-10 15:08:58 2026-01-10 15:08:58 -08:00
dan 83b126719d bd sync: 2026-01-10 15:00:45 2026-01-10 15:00:45 -08:00
dan ed12600df1 bd sync: 2026-01-10 14:37:59 2026-01-10 14:37:59 -08:00
dan 7c6ff10be7 bd sync: 2026-01-10 14:01:28 2026-01-10 14:01:28 -08:00
dan a34da926c2 bd sync: 2026-01-10 13:55:44 2026-01-10 13:55:44 -08:00
dan cc2a727644 bd sync: 2026-01-10 13:34:04 2026-01-10 13:34:04 -08:00
dan 71d8445be4 bd sync: 2026-01-10 13:24:42 2026-01-10 13:24:43 -08:00
dan 7426c1f303 bd sync: 2026-01-10 12:24:11 2026-01-10 12:24:11 -08:00
dan c474b81f51 bd sync: 2026-01-10 12:15:46 2026-01-10 12:15:46 -08:00
dan 91b6c842a2 feat: add review-gate skill for cross-agent quality enforcement
- CLI tool with check/enable/approve/reject/status commands
- Stop hook integration for Claude Code blocking
- Adversarial reviewer prompt template
- Dual-publish structure (SKILL.md + .claude-plugin)
- Session ID auto-detection from env vars or git state

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 20:39:34 -08:00
dan 4d298c1e22 bd sync: 2026-01-09 19:59:51 2026-01-09 19:59:51 -08:00
dan 75c5edb86c docs: cross-agent enforcement architecture design
Comprehensive design covering:
- Abstract layers (message passing, memory, enforcement)
- Four enforcement strategies:
  - Hook-based (Claude/Gemini)
  - Orchestrator-enforced (OpenCode/Codex)
  - Validator sidecar (universal)
  - Proxy-based (API interception)
- Circuit breakers (semantic drift, three-strike, budget)
- Adversarial reviewer pattern
- State flow diagram
- Implementation phases

Based on web research via orch (gemini --websearch).

Addresses: skills-8sj

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:51:09 -08:00
dan 8c033eedd1 docs: add Gemini path fix (includeDirectories setting)
Gemini CLI can access ~/.claude/skills/ via:
  settings.json: { "context": { "includeDirectories": ["~/.claude/skills"] } }
  or CLI: gemini --include-directories ~/.claude/skills

Closes: skills-8nl, skills-bo8

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:35:28 -08:00
dan f7483edcf3 bd sync: 2026-01-09 19:33:03 2026-01-09 19:33:03 -08:00
dan 52fe241734 bd sync: 2026-01-09 19:01:55 2026-01-09 19:01:55 -08:00
dan e367be6cb6 bd sync: 2026-01-09 17:32:23 2026-01-09 17:32:23 -08:00
dan ec2d856c05 docs: add agent capability matrix for cross-agent design
Comprehensive comparison of Claude Code, Gemini CLI, OpenCode, and Codex:
- Hooks/lifecycle events (Claude/Gemini best, OpenCode most comprehensive)
- Subagent spawning (MCP is universal bridge)
- File access (Gemini has path restrictions - skills-bo8)
- Sandboxing (Codex has OS-level, others approval-based)
- State persistence (need external store for cross-agent)

Key finding: Orchestrator pattern works across all agents.
Stop hooks only in Claude/Gemini - others need protocol-based gates.

Closes: skills-fqu

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 17:32:17 -08:00