@olives/devos 2.1.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/AGENTS.md +59 -0
- package/.agents/agents/dba.md +1 -0
- package/.agents/agents/developer.md +1 -0
- package/.agents/agents/eval-engineer.md +26 -0
- package/.agents/agents/executive-proxy.md +60 -0
- package/.agents/agents/orchestrator.md +30 -5
- package/.agents/agents/qa.md +9 -4
- package/.agents/agents/release-manager.md +5 -0
- package/.agents/agents/telemetry.md +36 -0
- package/.agents/agents/tester.md +3 -0
- package/.agents/agents/ui-designer.md +46 -0
- package/.agents/commands/auto.md +18 -0
- package/.agents/commands/design.md +15 -0
- package/.agents/commands/humanize.md +19 -0
- package/.agents/commands/task.md +16 -0
- package/.agents/commands/telemetry.md +14 -0
- package/.agents/hooks/pre-tool-use.sh +93 -0
- package/.agents/hooks/session-end.sh +28 -0
- package/.agents/hooks/session-start.sh +30 -0
- package/.agents/manifest.json +20 -0
- package/.agents/memory/context.json +7 -0
- package/.agents/memory/decisions/ADR-000-template.md +34 -0
- package/.agents/memory/handoffs/handoff-template.md +27 -0
- package/.agents/packs.json +118 -0
- package/.agents/scripts/humanize-check.sh +86 -0
- package/.agents/skills/autonomous-sdlc/SKILL.md +102 -0
- package/.agents/skills/humanizer/SKILL.md +135 -0
- package/.agents/skills/shared-memory/SKILL.md +38 -0
- package/.agents/skills/task-board/SKILL.md +26 -0
- package/.agents/skills/telemetry/SKILL.md +81 -0
- package/.agents/skills/testing-guide/SKILL.md +105 -0
- package/.agents/telemetry/.gitkeep +0 -0
- package/VERSION +1 -1
- package/bin/devos.js +1048 -74
- package/docs/2026-09-03-devos-ecc-gap-analysis.md +187 -0
- package/docs/2026-09-12-devos-v4-roadmap-research.md +314 -0
- package/docs/ARCHITECTURE.md +88 -6
- package/docs/CHANGELOG.md +13 -0
- package/docs/CURRENT_STATE.md +29 -23
- package/docs/PLAN_RUNTIME_HARNESS_PACKS.md +71 -0
- package/docs/SLASH_COMMANDS.md +35 -0
- package/docs/TASK_BOARD.md +50 -0
- package/docs/TUTORIAL.md +1 -1
- package/package.json +4 -1
- package/scripts/smoke-test.js +103 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# Dev-OS Gap Analysis vs ECC (+ DeepSeek Harness & Other Agentic Workflow Patterns)
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
This document compares current Dev-OS capabilities to patterns found in:
|
|
5
|
+
- ECC (`affaan-m/ecc`)
|
|
6
|
+
- DeepSeek Harness (`deepseek-ai/deepseek-harness`)
|
|
7
|
+
- Broader agentic orchestration references (LangGraph, AutoGen, CrewAI, repository-harness)
|
|
8
|
+
|
|
9
|
+
Goal: identify concrete upgrade opportunities for Dev-OS in agents, skills, hooks, memory, and graph-style orchestration.
|
|
10
|
+
|
|
11
|
+
## Executive Summary
|
|
12
|
+
Dev-OS has strong foundational workflow discipline (clear role separation, staged quality gates, human approval). Its biggest opportunity is to evolve from a mostly **linear workflow policy** into a **stateful graph-orchestrated runtime** with:
|
|
13
|
+
1. richer agent specialization,
|
|
14
|
+
2. evented hooks beyond commit time,
|
|
15
|
+
3. shared durable memory for collaborative agents,
|
|
16
|
+
4. installable capability packs and profile-driven setup,
|
|
17
|
+
5. measurable reliability/eval loops.
|
|
18
|
+
|
|
19
|
+
## Current Dev-OS Baseline (Observed)
|
|
20
|
+
- Agent personas: **11** (`.agents/agents/*.md`)
|
|
21
|
+
- Skills: **60** (`.agents/skills/*`)
|
|
22
|
+
- Slash commands: **10** (`.agents/commands/*.md`)
|
|
23
|
+
- Hook/enforcement model today: pre-commit gate via `.agents/scripts/install-hooks.sh` + `.agents/scripts/commit.sh`
|
|
24
|
+
- Generated integration model: `.agents/commands` + `.agents/agents` compiled to `.claude/commands` and `.claude/agents` via `devos init`.
|
|
25
|
+
|
|
26
|
+
## ECC / DeepSeek Signals Relevant to Dev-OS
|
|
27
|
+
|
|
28
|
+
### ECC patterns worth extracting
|
|
29
|
+
- Large specialization surface (declared: **68 agents, 286 skills, 94 commands**) with harness-specific adapters and shared core behaviors.
|
|
30
|
+
- Runtime hook graph with lifecycle events (`PreToolUse`, `PostToolUse`, `SessionStart`, `PreCompact`, `Stop`, `SessionEnd`) and profile-based control (`minimal/standard/strict`).
|
|
31
|
+
- Explicit memory persistence lifecycle and a dedicated **unified-memory** skill for cross-harness handoffs.
|
|
32
|
+
- Install/runtime manifests (`.claude/ecc-tools.json`) including dependency graph + managed file ownership for safer upgrades and uninstall behavior.
|
|
33
|
+
- Multi-agent coordination patterns (`dmux-workflows`, codex multi-agent role configs).
|
|
34
|
+
|
|
35
|
+
### DeepSeek Harness patterns worth extracting
|
|
36
|
+
- “Everything is a plugin” capability seams and composition by profile/bundle rather than hardcoded monolith behavior.
|
|
37
|
+
- Event-centric architecture and durable session event logs as a system of record.
|
|
38
|
+
- Clear extension-point taxonomy for tools, agents, sessions, workflows, and providers.
|
|
39
|
+
- Experimental team coordination seam (task board + mailbox concept) as a graph-like collaboration primitive.
|
|
40
|
+
|
|
41
|
+
### Broader agentic workflow ecosystem signals
|
|
42
|
+
- LangGraph emphasis: durable execution, stateful agents, long/short memory, human-in-the-loop checkpoints.
|
|
43
|
+
- AutoGen/CrewAI emphasis: orchestrated multi-agent teams, event-driven flows, observability/tracing.
|
|
44
|
+
- repository-harness emphasis: repository-as-source-of-truth, explicit authority boundaries, proof-driven completion.
|
|
45
|
+
|
|
46
|
+
## Gap Matrix: Dev-OS vs Upgrade Opportunities
|
|
47
|
+
|
|
48
|
+
| Area | Dev-OS today | Gap | Upgrade direction |
|
|
49
|
+
|---|---|---|---|
|
|
50
|
+
| Agent specialization | 11 general team roles | Missing domain micro-agents and execution modes | Add tiered role catalog (core + optional domain packs) |
|
|
51
|
+
| Skills architecture | Rich but mostly static skills | No package/dependency model for skills | Introduce installable skill packs with dependency graph |
|
|
52
|
+
| Hooks | Commit gate + secret scan at commit-time | Missing session/tool lifecycle hooks | Add runtime hook pipeline (pre/post tool, session lifecycle, compaction) |
|
|
53
|
+
| Orchestration model | Workflow docs define linear steps | No runtime DAG/state machine of tasks | Introduce graph execution engine with explicit node states and transitions |
|
|
54
|
+
| Memory | `CURRENT_STATE.md` + `LESSONS.md` | No structured shared memory ledger across agents/sessions | Add durable memory vault (project/team/user scopes, typed entries, handoff protocol) |
|
|
55
|
+
| Multi-agent collaboration | Conceptual routing via Orchestrator | No shared task board/mailbox state | Add agent collaboration primitives (task queue, mailbox, ownership locks) |
|
|
56
|
+
| Eval/reliability | QA/Tester/Security flow exists | No formal pass@k/eval harness | Add eval-driven workflow + regression suites + run scorecards |
|
|
57
|
+
| Observability | Minimal workflow visibility | No execution trace graph/metrics | Add event logs, step traces, failure taxonomy, token/cost telemetry |
|
|
58
|
+
| Install/update lifecycle | `devos init` copies templates | No ownership manifest/conflict-safe updater | Add managed-files manifest + guided update/migrate flow |
|
|
59
|
+
| Cross-harness parity | Claude generation exists | Limited first-class Codex/other harness ergonomics | Add harness adapters + parity matrix + capability flags |
|
|
60
|
+
|
|
61
|
+
## Recommended Feature Upgrades for Dev-OS
|
|
62
|
+
|
|
63
|
+
## 1) Graph Engineering Core (highest impact)
|
|
64
|
+
Build a graph-based orchestration layer where every task is a DAG:
|
|
65
|
+
- nodes: planner, researcher, implementer, reviewer, tester, security, deploy-check,
|
|
66
|
+
- edges: dependency, approval, retry,
|
|
67
|
+
- node states: queued/running/blocked/failed/passed,
|
|
68
|
+
- policies: retry budgets, circuit breaker, escalation.
|
|
69
|
+
|
|
70
|
+
Expected outcome: less manual orchestration overhead, clearer parallelism, deterministic resumability.
|
|
71
|
+
|
|
72
|
+
## 2) Shared Memory Vault + Handoff Protocol
|
|
73
|
+
Add a structured memory subsystem that supports:
|
|
74
|
+
- scoped memory (`project`, `team`, optional `user`),
|
|
75
|
+
- typed documents (`context`, `decision`, `handoff`, `lesson`, `risk`),
|
|
76
|
+
- provenance metadata (author agent, source files, confidence, timestamp),
|
|
77
|
+
- search/read/write/doctor commands.
|
|
78
|
+
|
|
79
|
+
Expected outcome: collaborating agents can inherit context safely without overloading prompt windows.
|
|
80
|
+
|
|
81
|
+
## 3) Runtime Hook Framework (beyond pre-commit)
|
|
82
|
+
Introduce event hooks inspired by ECC lifecycle:
|
|
83
|
+
- `SessionStart`, `PreToolUse`, `PostToolUse`, `PreCompact`, `Stop`, `SessionEnd`.
|
|
84
|
+
- profile controls: `minimal`, `standard`, `strict`.
|
|
85
|
+
- hook registry for local scripts with safe defaults and explicit opt-ins.
|
|
86
|
+
|
|
87
|
+
Expected outcome: proactive enforcement and automation throughout the session, not only at commit time.
|
|
88
|
+
|
|
89
|
+
## 4) Capability Pack System for Skills/Agents
|
|
90
|
+
Move from static template copy toward composable packs:
|
|
91
|
+
- pack manifest (`id`, `version`, `dependsOn`, `files`, `conflictsWith`),
|
|
92
|
+
- optional packs (security-hardening, eval, data-science, mobile, enterprise-governance),
|
|
93
|
+
- install/update/remove with ownership tracking.
|
|
94
|
+
|
|
95
|
+
Expected outcome: lean default install, scalable specialization, safer updates.
|
|
96
|
+
|
|
97
|
+
## 5) Reliability and Eval Layer
|
|
98
|
+
Create a first-class eval workflow:
|
|
99
|
+
- define capability evals + regression evals per major feature change,
|
|
100
|
+
- pass@k tracking for agent workflows,
|
|
101
|
+
- gating rules (“cannot mark complete if required eval suite regresses”),
|
|
102
|
+
- longitudinal scorecards per agent role/workflow.
|
|
103
|
+
|
|
104
|
+
Expected outcome: quantifiable confidence in autonomous execution quality.
|
|
105
|
+
|
|
106
|
+
## 6) Multi-Agent Collaboration Primitives
|
|
107
|
+
Add shared operational state:
|
|
108
|
+
- task board (who owns what, status, blockers),
|
|
109
|
+
- mailbox/events for cross-agent requests,
|
|
110
|
+
- artifact contracts (what output format each handoff requires),
|
|
111
|
+
- conflict prevention (file locks/intents or explicit ownership claims).
|
|
112
|
+
|
|
113
|
+
Expected outcome: better parallel execution with fewer duplicate/conflicting edits.
|
|
114
|
+
|
|
115
|
+
## 7) Harness Parity Strategy
|
|
116
|
+
Define first-class harness adapters (Claude, Codex, Cursor, others) with:
|
|
117
|
+
- support matrix by capability (agents, skills, hooks, memory, MCP),
|
|
118
|
+
- adapter-specific constraints and generated outputs,
|
|
119
|
+
- compatibility tests for generated surfaces.
|
|
120
|
+
|
|
121
|
+
Expected outcome: Dev-OS behaves predictably across environments, not only Claude-first.
|
|
122
|
+
|
|
123
|
+
## Suggested New/Expanded Dev-OS Agent Set
|
|
124
|
+
Keep current core, add optional packs:
|
|
125
|
+
- **Planning/Control**: graph-orchestrator, dependency-manager, loop-operator
|
|
126
|
+
- **Quality**: eval-engineer, regression-guardian, benchmark-analyst
|
|
127
|
+
- **Memory/Knowledge**: memory-curator, handoff-auditor, decision-librarian
|
|
128
|
+
- **Security/Governance**: policy-enforcer, secret-hygiene-auditor, compliance-reviewer
|
|
129
|
+
- **Domain packs**: language/framework reviewers (Go, Python, Java, Rust, Laravel, mobile)
|
|
130
|
+
|
|
131
|
+
## Suggested New Skill Families
|
|
132
|
+
- graph-workflow-design
|
|
133
|
+
- workflow-runtime-observability
|
|
134
|
+
- shared-memory-operations
|
|
135
|
+
- handoff-contracts
|
|
136
|
+
- eval-driven-development
|
|
137
|
+
- postmortem-pattern-extraction
|
|
138
|
+
- harness-parity-testing
|
|
139
|
+
- pack-authoring-and-versioning
|
|
140
|
+
|
|
141
|
+
## Suggested Hook Profiles
|
|
142
|
+
- **minimal**: commit gate + secret scan + session summary
|
|
143
|
+
- **standard**: minimal + post-edit quality checks + compact reminders + activity tracking
|
|
144
|
+
- **strict**: standard + stronger tool-use blocking rules + expanded policy checks
|
|
145
|
+
|
|
146
|
+
## Implementation Phasing (for future work)
|
|
147
|
+
|
|
148
|
+
### Phase 1 — Foundation
|
|
149
|
+
- Define graph execution schema and state model
|
|
150
|
+
- Define memory document schema + storage locations
|
|
151
|
+
- Add runtime hook loader with profile support
|
|
152
|
+
|
|
153
|
+
### Phase 2 — Core Runtime
|
|
154
|
+
- Wire orchestrator to graph runtime
|
|
155
|
+
- Add task board/mailbox primitives
|
|
156
|
+
- Add lifecycle hooks and memory ingestion at session boundaries
|
|
157
|
+
|
|
158
|
+
### Phase 3 — Reliability + Ecosystem
|
|
159
|
+
- Add eval framework and scorecards
|
|
160
|
+
- Add capability-pack installer/updater with ownership manifests
|
|
161
|
+
- Add harness parity matrix + compatibility tests
|
|
162
|
+
|
|
163
|
+
## Risks / Trade-offs
|
|
164
|
+
- More runtime machinery increases complexity; must keep zero-dependency CLI constraints where required.
|
|
165
|
+
- Over-automation can weaken human governance if escalation policies are not explicit.
|
|
166
|
+
- Shared memory can become noisy without strict schemas and pruning/doctor tooling.
|
|
167
|
+
- Harness fragmentation risk if parity tests are not automated.
|
|
168
|
+
|
|
169
|
+
## Success Metrics for “Dev-OS better than today”
|
|
170
|
+
- Reduced manual intervention per feature delivery cycle.
|
|
171
|
+
- Higher first-pass completion rate of delegated tasks.
|
|
172
|
+
- Lower rework loops across Developer↔QA↔Tester.
|
|
173
|
+
- Faster cross-session recovery time (from interruption to productive resume).
|
|
174
|
+
- Measurable eval pass@k improvement and reduced escaped defects.
|
|
175
|
+
|
|
176
|
+
## Suggested Immediate Next Decisions
|
|
177
|
+
1. Choose memory scope model (`project/team/user`) and governance policy.
|
|
178
|
+
2. Decide graph engine location (CLI-native module vs skill runtime extension).
|
|
179
|
+
3. Decide initial hook event set and default profile.
|
|
180
|
+
4. Decide minimum viable capability-pack manifest schema.
|
|
181
|
+
5. Pick 3 pilot workflows to graphify first (feature delivery, bugfix, dependency update).
|
|
182
|
+
|
|
183
|
+
## References Analyzed
|
|
184
|
+
- Dev-OS local repository (`.agents/AGENTS.md`, `docs/ARCHITECTURE.md`, `docs/SLASH_COMMANDS.md`, `.agents/scripts/*`, `bin/devos.js`)
|
|
185
|
+
- ECC (`AGENTS.md`, `README.md`, `hooks/README.md`, `hooks/hooks.json`, `hooks/memory-persistence/*`, `.claude/ecc-tools.json`, `.codex/config.toml`, selected skills)
|
|
186
|
+
- DeepSeek Harness (`README.md`, `AGENTS.md`, `docs/architecture.md`, selected `.agents/skills/*`)
|
|
187
|
+
- Additional references: `langchain-ai/langgraph`, `microsoft/autogen`, `crewAIInc/crewAI`, `hoangnb24/repository-harness`
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
# Dev-OS v4.0 Research & Architectural Roadmap
|
|
2
|
+
|
|
3
|
+
**Document ID:** DEVOS-RES-2026-09-12
|
|
4
|
+
**Author:** Antigravity & Olives Technologies Engineering OS
|
|
5
|
+
**Status:** PROPOSED & UNDER RESEARCH
|
|
6
|
+
**Scope:** Building upon the ECC/DeepSeek Gap Analysis (`docs/2026-09-03-devos-ecc-gap-analysis.md`) and addressing real-world field experience from production usage.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1. Executive Summary
|
|
11
|
+
|
|
12
|
+
Dev-OS v3.0.0 successfully laid the foundation for enterprise multi-agent workflows:
|
|
13
|
+
- **F1:** Runtime Lifecycle Hooks (`.agents/hooks/`, `.claude/hooks.json`).
|
|
14
|
+
- **F2:** Composable Capability Packs (`.agents/packs.json`, lean installs).
|
|
15
|
+
- **F3:** Structured Shared Memory Vault (`.agents/memory/`, ADRs, handoffs).
|
|
16
|
+
- **F4:** Deterministic Task Board DAG State (`docs/TASK_BOARD.md`, `/task`).
|
|
17
|
+
- **F5:** Multi-Platform Harness Expansion (Claude, Google Antigravity/Gemini, OpenCode, Cursor, Codex) with user-selectable targeting.
|
|
18
|
+
|
|
19
|
+
However, real-world development experience and analysis of the remaining items in the ECC/DeepSeek gap analysis reveal **five critical systemic problems** that currently hinder full autonomous leverage:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
23
|
+
│ CURRENT REAL-WORLD PAIN POINTS │
|
|
24
|
+
├─────────────────────────────────────────────────────────────────────────────┤
|
|
25
|
+
│ 1. ORCHESTRATOR AMNESIA: Agents and skills are not mechanically enforced. │
|
|
26
|
+
│ The model forgets to route tasks to specialists (Dev, QA, Tester, DBA) │
|
|
27
|
+
│ and bypasses installed skills, collapsing into a single monolithic chat. │
|
|
28
|
+
│ │
|
|
29
|
+
│ 2. UNGOVERNED UI CODE: Developers jump straight into frontend code without │
|
|
30
|
+
│ an established design system, resulting in generic "AI aesthetic" styling│
|
|
31
|
+
│ despite `ui-ux-pro-max` being installed. DESIGN.md is created manually. │
|
|
32
|
+
│ │
|
|
33
|
+
│ 3. LACK OF FULL HANDS-OFF SDLC: No autonomous mode where an idea can be │
|
|
34
|
+
│ given to the team, and an executive proxy oversees the full SDLC │
|
|
35
|
+
│ (Inception → Design → Architecture/DB → Code → Test → QA → Security). │
|
|
36
|
+
│ │
|
|
37
|
+
│ 4. SYNTHETIC AI CONTENT: Generated docs, marketing copy, and PRDs suffer │
|
|
38
|
+
│ from robotic AI tells (forced triads, not-X-but-Y, hyperbolic fluff). │
|
|
39
|
+
│ │
|
|
40
|
+
│ 5. STATIC ECOSYSTEM & LOST FEEDBACK: Skills/agents are frozen on disk with │
|
|
41
|
+
│ no auto-update checks; failures and rule regressions are lost locally │
|
|
42
|
+
│ instead of feeding improvements back to the Dev-OS core repository. │
|
|
43
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This research document defines the architecture, mechanical enforcement mechanisms, and implementation roadmap for **Dev-OS v4.0**.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 2. Gap Analysis vs Field Experience Matrix
|
|
51
|
+
|
|
52
|
+
| Gap Analysis Recommendation | Field Problem Observed | Proposed v4.0 Solution |
|
|
53
|
+
|---|---|---|
|
|
54
|
+
| **Graph Engineering Core** | Orchestrator forgets to delegate; acts as a solo agent | **Mechanical Routing Enforcement Engine (MREE)** via `PreToolUse` hook + Task Board State Machine |
|
|
55
|
+
| **Handoff Contracts** | UI code created without design spec; missing seed data | **Mandatory Design Gate (`docs/DESIGN.md`)** & **Database Seed Protocol** |
|
|
56
|
+
| **Autonomous Workflows** | Human must micromanage every intermediate agent handoff | **Dev-OS Autonomous Executive Mode (`devos run` / `/auto`)** with dynamic subagent spawning |
|
|
57
|
+
| **Quality & Voice Standards** | Documentation and copy read like generic LLM prose | **Mechanical Humanizer Gate (`blader/humanizer`)** on all markdown prose |
|
|
58
|
+
| **Dynamic Capability Packs** | Skills are static; no sync with upstream repos | **Dynamic Skill & Upstream Registry Updater (`devos update --skills`)** |
|
|
59
|
+
| **Observability & Telemetry** | When Dev-OS breaks or loops, insights are trapped locally | **Autonomous Telemetry, RCA Engine & Auto-PR Feedback Loop** |
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 3. Pillar 1: Mechanical Agent & Skill Enforcement Engine
|
|
64
|
+
|
|
65
|
+
### 3.1 The Root Cause of "Orchestrator Amnesia"
|
|
66
|
+
Large Language Models naturally gravitate toward the path of least resistance: answering everything in a single generation. While the commit gate succeeded because `.git/hooks/pre-commit` and `.agents/scripts/commit.sh` are **hard binary shell scripts**, agent delegation and skill invocations have historically relied on **prompt instructions**. Prompt instructions can be bypassed or forgotten during high-context reasoning.
|
|
67
|
+
|
|
68
|
+
### 3.2 The Mechanical Enforcement Architecture
|
|
69
|
+
To guarantee agents and skills are used without human micromanagement, enforcement must move from *advisory text* to *runtime hook validation*:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
User Prompt / Goal
|
|
73
|
+
│
|
|
74
|
+
▼
|
|
75
|
+
[Task Board DAG Check] ──► Is active task queued in docs/TASK_BOARD.md?
|
|
76
|
+
│ If NO: Block tool calls until task is declared.
|
|
77
|
+
▼
|
|
78
|
+
[Role Authority Check] ──► Is tool caller acting as the assigned specialist?
|
|
79
|
+
│ - Developer cannot edit docs/DESIGN.md
|
|
80
|
+
│ - QA cannot author production code
|
|
81
|
+
│ - Architect cannot author migration SQL
|
|
82
|
+
▼
|
|
83
|
+
[Skill Invocation Check]─► Did the task declare a mandatory skill?
|
|
84
|
+
│ - UI Task: requires `ui-ux-pro-max`
|
|
85
|
+
│ - Documentation Task: requires `humanizer`
|
|
86
|
+
│ - Database Task: requires `supabase-postgres-best-practices`
|
|
87
|
+
▼
|
|
88
|
+
[PreToolUse Hook] ───────► PASS: Execute tool | FAIL: Reject with exact remediation instruction
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### 3.3 Hook Implementation Specification
|
|
92
|
+
In `.agents/hooks/pre-tool-use.sh`:
|
|
93
|
+
1. **Target Inspection:** Inspect files touched by `edit_file`, `write_to_file`, or bash commands.
|
|
94
|
+
2. **Task State Verification:**
|
|
95
|
+
- Verify `docs/TASK_BOARD.md` contains an active task in `[IN_PROGRESS]`.
|
|
96
|
+
- If a UI file (`*.tsx`, `*.jsx`, `*.vue`, `*.svelte`, `*.html`, `*.css`) is modified:
|
|
97
|
+
- Check whether `docs/DESIGN.md` exists and is marked `[APPROVED]`.
|
|
98
|
+
- If missing, halt execution: `"FAIL: Cannot modify frontend components without an approved docs/DESIGN.md. Delegate to UI Designer using skill ui-ux-pro-max first."`
|
|
99
|
+
3. **Audit Token Enforcement:** Tools pass through only when the executing subagent or persona matches the required role in the task contract.
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## 4. Pillar 2: Mandatory Design Gate (`docs/DESIGN.md`) & `ui-ux-pro-max`
|
|
104
|
+
|
|
105
|
+
### 4.1 The Problem
|
|
106
|
+
Even with `ui-ux-pro-max` installed in `.agents/skills/ui-ux-pro-max/`, AI developers often generate standard grey/blue dashboard components with generic typography and arbitrary spacing. The human is forced to intervene repeatedly to define aesthetics.
|
|
107
|
+
|
|
108
|
+
### 4.2 The Solution: The Design Gate Contract
|
|
109
|
+
Before **any** frontend code or component may be implemented:
|
|
110
|
+
1. The **UI Designer** agent is invoked.
|
|
111
|
+
2. The UI Designer executes the `ui-ux-pro-max` query engine against the project type (e.g. B2B SaaS, developer tool, fin-tech, landing page):
|
|
112
|
+
```bash
|
|
113
|
+
python3 .agents/skills/ui-ux-pro-max/scripts/search.py "SaaS dashboard minimalist typography" --domain style,typography,color
|
|
114
|
+
```
|
|
115
|
+
3. The UI Designer generates a formal specification: `docs/DESIGN.md`.
|
|
116
|
+
4. The QA Agent must audit `docs/DESIGN.md` before implementation begins.
|
|
117
|
+
|
|
118
|
+
### 4.3 Specification: `docs/DESIGN.md` Schema
|
|
119
|
+
Every project requiring visual presentation must have a locked `docs/DESIGN.md` specifying:
|
|
120
|
+
- **Design Archetype:** (e.g., *Technical Minimalist*, *Cyberpunk/Terminal*, *Warm Editorial*, *Bento Modern*).
|
|
121
|
+
- **Color Palette:** Primary, Secondary, Background, Surface, Border, and Semantic tokens (Success, Warning, Error) with exact WCAG 4.5:1 contrast verified.
|
|
122
|
+
- **Typography System:** Primary Display font, Body font, and Monospace font with modular type scale (e.g., 12px, 14px, 16px, 20px, 24px, 32px).
|
|
123
|
+
- **Layout & Grid:** Container max-widths, column grid, responsive breakpoints (`sm`, `md`, `lg`, `xl`), and spacing scale (4px/8px increments).
|
|
124
|
+
- **Component Signatures:** Border radius scale (e.g., sharp 2px vs rounded 12px), button interaction states, shadow elevation levels.
|
|
125
|
+
- **Iconography & Asset Rules:** SVG icon set (e.g., Lucide, Heroicons; strictly NO emojis as functional icons).
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 5. Pillar 3: Professional Autonomous SDLC Mode ("DevOS Mode")
|
|
130
|
+
|
|
131
|
+
### 5.1 Hands-Off Concept
|
|
132
|
+
The user submits a high-level product idea (e.g., *"Build an offline-first markdown notes app with full-text search and tag filtering"*).
|
|
133
|
+
In **Autonomous Mode** (`devos run` or `/devos-mode`):
|
|
134
|
+
- A virtual **Executive Director / Tech Lead Proxy** assumes the human lead's oversight responsibilities.
|
|
135
|
+
- The user can step away; the system executes the professional SDLC sequentially with strict gates:
|
|
136
|
+
|
|
137
|
+
```mermaid
|
|
138
|
+
flowchart TD
|
|
139
|
+
Idea["User Idea / Prompt"] --> Stage1["Stage 1: Architect (grill-me) -> docs/PROJECT_REQUIREMENTS.md"]
|
|
140
|
+
Stage1 --> Stage2["Stage 2: UI Designer (ui-ux-pro-max) -> docs/DESIGN.md"]
|
|
141
|
+
Stage2 --> Stage3["Stage 3: DBA Agent -> Schema Migrations + Seed Fixtures"]
|
|
142
|
+
Stage3 --> Stage4["Stage 4: Orchestrator -> docs/TASK_BOARD.md DAG"]
|
|
143
|
+
Stage4 --> Stage5["Stage 5: Developer -> Implementation (Dynamic Subagents)"]
|
|
144
|
+
Stage5 --> Stage6["Stage 6: Tester -> Unit, Integration & Seed Data E2E"]
|
|
145
|
+
Stage6 --> Stage7["Stage 7: QA Agent -> Code Standards & Design Compliance"]
|
|
146
|
+
Stage7 --> Stage8["Stage 8: Security Agent -> OWASP, Auth & Secret Scan"]
|
|
147
|
+
Stage8 --> Stage9["Stage 9: Humanizer -> Scrub AI Clichés from Docs & PRD"]
|
|
148
|
+
Stage9 --> Complete["Stage 10: Human Checkpoint -> Review Final Staged PR"]
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### 5.2 Dynamic Subagent Spawning
|
|
152
|
+
During Stage 4 & 5, agents have explicit authority to spawn subagents dynamically:
|
|
153
|
+
- Developer spawns `research` subagent to check documentation or inspect package versions.
|
|
154
|
+
- Tester spawns subagents to run isolated mock environments.
|
|
155
|
+
- DBA spawns seed-generation tasks to populate realistic databases (e.g. faker scripts, edge-case test users, stress datasets).
|
|
156
|
+
|
|
157
|
+
### 5.3 Database & Seed Data Protocol
|
|
158
|
+
In modern professional engineering, untestable software stems from empty databases.
|
|
159
|
+
The **DBA Agent** is assigned a mandatory sub-deliverable in Stage 3:
|
|
160
|
+
1. `migrations/`: Schema definition with foreign keys, constraints, and indexes.
|
|
161
|
+
2. `seeds/`: Realistic, domain-specific seed fixtures (`dev-seed.sql` or `seed.ts`) covering:
|
|
162
|
+
- 10+ standard records.
|
|
163
|
+
- 3+ boundary/edge cases (special characters, unicode, max-length inputs).
|
|
164
|
+
- Test user credentials for development authentication.
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## 6. Pillar 4: Humanizer Skill Integration & Documentation Gate
|
|
169
|
+
|
|
170
|
+
### 6.1 The AI-Writing Dilemma
|
|
171
|
+
Modern AI assistants write in a predictable cadence:
|
|
172
|
+
- Forced triads (`"fast, reliable, and scalable"`).
|
|
173
|
+
- Not-X-but-Y formulas (`"It is not just a tool, but a revolution"`).
|
|
174
|
+
- Dramatic one-line closers (`"Let that sink in."` / `"That is the real win."`).
|
|
175
|
+
- Superlative padding (`"pivotal"`, `"crucial"`, `"testament"`, `"seamless"`).
|
|
176
|
+
|
|
177
|
+
When Dev-OS generates documentation, customer-facing content, copywriting, or PR summaries, these tells immediately signal unverified robotic output.
|
|
178
|
+
|
|
179
|
+
### 6.2 Architectural Solution: First-Party Humanizer
|
|
180
|
+
1. **Skill Integration:** Integrate `https://github.com/blader/humanizer` directly into `.agents/skills/humanizer/SKILL.md`.
|
|
181
|
+
2. **Release & QA Gate:**
|
|
182
|
+
- The QA Agent and Release Manager run the `humanizer` pattern scanner over any newly generated `.md` files in `docs/`, `README.md`, marketing materials, or PR descriptions.
|
|
183
|
+
- Any unedited structural tells (§1–§5) trigger a `CHANGES REQUESTED` verdict with automated de-fluffing.
|
|
184
|
+
3. **Upstream Sync:** Track `blader/humanizer` upstream releases to incorporate emerging pattern detections as foundation models evolve.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## 7. Pillar 5: Dynamic Upstream Skill & Agent Registry
|
|
189
|
+
|
|
190
|
+
### 7.1 Beyond Static File Copies
|
|
191
|
+
In Dev-OS v3.0.0, `devos init` copies skills and agents into `.agents/skills/` and `.agents/agents/`. Once copied, they become static snapshot files that miss bug fixes, new security rules, or updated style databases.
|
|
192
|
+
|
|
193
|
+
### 7.2 Dynamic Registry Architecture
|
|
194
|
+
```
|
|
195
|
+
DEV-OS CENTRAL REGISTRY
|
|
196
|
+
(or GitHub Repositories: blader/humanizer,
|
|
197
|
+
nextlevelbuilder/ui-ux-pro-max-skill)
|
|
198
|
+
│
|
|
199
|
+
▼
|
|
200
|
+
`devos update --check`
|
|
201
|
+
│
|
|
202
|
+
┌─────────────────┴─────────────────┐
|
|
203
|
+
▼ ▼
|
|
204
|
+
[CLI Foreground Update] [SessionStart Hook Check]
|
|
205
|
+
$ devos update --skills "Update available for ui-ux-pro-max
|
|
206
|
+
Safely pulls latest commits (v2.4 -> v3.0). Run devos update."
|
|
207
|
+
into .agents/skills/
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### 7.3 CLI Operations
|
|
211
|
+
- `devos update --skills`: Pulls upstream updates for installed capability packs and specialist skills while preserving local overrides.
|
|
212
|
+
- `devos skill add <repo|name>`: Dynamically installs external agent skills (e.g. `devos skill add blader/humanizer`).
|
|
213
|
+
- `devos skill list`: Displays installed skills, versions, and update statuses.
|
|
214
|
+
- **Session-Start Background Ping:** In `.agents/hooks/session-start.sh`, run a 500ms non-blocking check against the npm registry or GitHub release tag, printing a non-intrusive alert when updates are available.
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## 8. Pillar 6: Autonomous Telemetry, Failure RCA & Auto-PR Feedback Loop
|
|
219
|
+
|
|
220
|
+
### 8.1 The Feedback Problem
|
|
221
|
+
When Dev-OS users encounter:
|
|
222
|
+
- An agent hallucinating a broken command,
|
|
223
|
+
- A pre-commit hook regex failing on edge-case paths,
|
|
224
|
+
- A circuit breaker triggering after 3 failed QA loops,
|
|
225
|
+
- The Orchestrator forgetting a protocol,
|
|
226
|
+
...these incidents are currently trapped on the user's machine. The core Dev-OS project never learns from these field failures.
|
|
227
|
+
|
|
228
|
+
### 8.2 Autonomous Self-Improvement Architecture
|
|
229
|
+
```
|
|
230
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
231
|
+
│ LOCAL DEV-OS RUNTIME RUNNER │
|
|
232
|
+
│ │
|
|
233
|
+
│ [Hook / Runtime Event] ──► Error, Crash, or Circuit Breaker Trip │
|
|
234
|
+
│ │ │
|
|
235
|
+
│ ▼ │
|
|
236
|
+
│ [.agents/telemetry/events.jsonl] ──► Anonymized Local Event Buffer │
|
|
237
|
+
│ │ │
|
|
238
|
+
│ ▼ │
|
|
239
|
+
│ [Meta / Telemetry Agent] ──────────► Performs Root Cause Analysis (RCA) │
|
|
240
|
+
│ │ │
|
|
241
|
+
│ ▼ │
|
|
242
|
+
│ [Sanitization & Privacy Gate] ─────► Strips code, secrets, IP, file paths │
|
|
243
|
+
│ │ │
|
|
244
|
+
│ ▼ │
|
|
245
|
+
│ [Automated Feedback PR Engine] ────► Generates GitHub Issue or Pull Request│
|
|
246
|
+
│ to `olitech1010/dev-os` with the fix! │
|
|
247
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### 8.3 Security & Privacy First Principles
|
|
251
|
+
Telemetry and automated feedback MUST adhere to strict privacy rules:
|
|
252
|
+
1. **Opt-In / Opt-Out Transparency:** Configured in `.agents/manifest.json` (`telemetry: "anonymized"` or `telemetry: "off"`).
|
|
253
|
+
2. **Strict Anonymization:**
|
|
254
|
+
- Never send proprietary business logic, project code, or git commit history.
|
|
255
|
+
- Never send API keys, passwords, or tokens (verified via Gitleaks scanner before transmission).
|
|
256
|
+
- Only transmit: Dev-OS version, Node runtime, target AI harness, failure error signature, tool name, and RCA diagnosis.
|
|
257
|
+
3. **Automated PR Dispatch:**
|
|
258
|
+
- When a clear fix is synthesized (e.g., a regex fix in `pre-tool-use.sh` or a clarifying line in `developer.md`), the agent drafts a pull request formatted as `fix(engine): resolve edge case in hook verification`.
|
|
259
|
+
- Uses `gh pr create` targeting `olitech1010/dev-os` from an anonymous/forked branch, allowing the core team to review and merge improvements from the community continuously.
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## 9. Phased Implementation Roadmap
|
|
264
|
+
|
|
265
|
+
### Phase 4A: Mechanical Enforcement & Gate Hardening (Immediate Next Step)
|
|
266
|
+
- **4A.1: PreToolUse Mechanical Enforcement:** Implement active task and role verification in `.agents/hooks/pre-tool-use.sh`.
|
|
267
|
+
- **4A.2: Mandatory Design Gate:** Add `docs/DESIGN.md` schema, block frontend modifications if missing, and integrate `ui-ux-pro-max` query automation.
|
|
268
|
+
- **4A.3: Humanizer Skill Integration:** Add `blader/humanizer` to `.agents/skills/humanizer/` and wire into documentation/PR review workflows.
|
|
269
|
+
|
|
270
|
+
### Phase 4B: Autonomous Executive Mode & Upstream Registry
|
|
271
|
+
- **4B.1: Autonomous Executive SDLC Runner:** Implement `devos run` / `/auto` mode with full stage sequencing (Inception → Design → Architecture/DB → Code → Test → QA → Security → Docs).
|
|
272
|
+
- **4B.2: Database & Seed Protocol:** Standardize DBA deliverable with automated test seed generation.
|
|
273
|
+
- **4B.3: Dynamic Skill Updater:** Implement `devos update --skills` and non-blocking session-start update alerts.
|
|
274
|
+
|
|
275
|
+
### Phase 4C: Observability, RCA & Auto-PR Feedback Loop
|
|
276
|
+
- **4C.1: Local Telemetry Buffer:** Implement `.agents/telemetry/events.jsonl` tracking circuit breaker trips and rule violations.
|
|
277
|
+
- **4C.2: Meta / RCA Telemetry Agent:** Create dedicated analysis agent persona (`.agents/agents/telemetry.md`).
|
|
278
|
+
- **4C.3: Anonymized Feedback PR Engine:** Automated issue/PR synthesis to `olitech1010/dev-os`.
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## 10. User-Approved Architectural Decisions & Ratification
|
|
283
|
+
|
|
284
|
+
Following review by the Engineering Lead, the following core architecture decisions are ratified for implementation in Dev-OS v4.0:
|
|
285
|
+
|
|
286
|
+
1. **Mechanical Design Gate (Hard Block):**
|
|
287
|
+
- `.agents/hooks/pre-tool-use.sh` hard-blocks frontend file creation and editing (`*.tsx`, `*.jsx`, `*.vue`, `*.svelte`, `*.html`, `*.css` in source directories) if `docs/DESIGN.md` does not exist.
|
|
288
|
+
- The UI Designer agent must first extract design tokens and patterns from `ui-ux-pro-max`, generate `docs/DESIGN.md`, and obtain QA approval before developers write frontend components.
|
|
289
|
+
|
|
290
|
+
2. **Standardized Execution Modes:**
|
|
291
|
+
- `interactive` (Default): Standard pair-programming with orchestrator, staged reviews, and human approval before commits.
|
|
292
|
+
- `guided`: Step-by-step confirmation checkpoints for each SDLC stage with explicit confirmation prompts.
|
|
293
|
+
- `auto` (`devos run` / `/auto`): Hands-off autonomous mode tailored for non-technical startup founders, CEOs, and MVP builders. An Executive Proxy / Product Lead orchestrates the complete SDLC from idea to functional MVP.
|
|
294
|
+
- `audit`: Read-only evaluation and diagnostic mode for analyzing code quality, security posture, and standards compliance.
|
|
295
|
+
|
|
296
|
+
3. **Interactive Human Tester Guide (`/docs/TESTING_GUIDE.md`):**
|
|
297
|
+
- In `auto` mode, the testing stage produces a dedicated deliverable: `/docs/TESTING_GUIDE.md`.
|
|
298
|
+
- This document provides a step-by-step interactive walkthrough for non-technical founders and QA testers.
|
|
299
|
+
- Includes seed data records, test accounts (`user@example.com`, `admin@example.com`), and simple test passwords: **`devos123` universally throughout for all users**.
|
|
300
|
+
|
|
301
|
+
4. **Default Telemetry (`telemetry: on (recommended)`):**
|
|
302
|
+
- During installation and manifest initialization, telemetry is enabled by default to capture anonymized failure events, error codes, and RCA reports locally in `.agents/telemetry/events.jsonl`.
|
|
303
|
+
- Generates automated feedback pull requests or reports back to `olitech1010/dev-os` to continually harden Dev-OS.
|
|
304
|
+
- Users can explicitly opt out via `--no-telemetry` or `devos telemetry disable`.
|
|
305
|
+
|
|
306
|
+
5. **Mechanical Humanizer Integration:**
|
|
307
|
+
- `blader/humanizer` is integrated into `.agents/skills/humanizer/SKILL.md` and added to the `core` capability pack.
|
|
308
|
+
- QA and Release Manager agents enforce the humanizer checklist across all generated documentation in `/docs/`, PR summaries, and PRDs.
|
|
309
|
+
- Pre-commit and pre-tool hooks provide automated scanning via `.agents/scripts/humanize-check.sh`.
|
|
310
|
+
|
|
311
|
+
6. **Expanded Agent & Skill Catalog:**
|
|
312
|
+
- Incorporates agent roles and skills from ECC (`affaan-m/ecc`), Claude Code, and DeepSeek Harness into composable capability packs.
|
|
313
|
+
- Includes UI Designer (`ui-designer.md`), Telemetry Agent (`telemetry.md`), Executive Proxy (`executive-proxy.md`), and Eval Engineer (`eval-engineer.md`).
|
|
314
|
+
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -103,12 +103,94 @@ flowchart LR
|
|
|
103
103
|
Target --> Workflow[Execute Workflow / Prompt]
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
+
### Runtime Lifecycle Hooks Flow (F1)
|
|
107
|
+
|
|
108
|
+
```mermaid
|
|
109
|
+
flowchart TD
|
|
110
|
+
SessionStart[SessionStart Hook] --> Fetch[git fetch --all --prune]
|
|
111
|
+
Fetch --> Digest[Display Hard Rules Digest]
|
|
112
|
+
|
|
113
|
+
ToolInvocation[Tool Execution / Bash] --> PreToolUse{PreToolUse Hook}
|
|
114
|
+
PreToolUse -- Destructive Command Blocked --> Abort[Abort & Require Dry-Run Plan]
|
|
115
|
+
PreToolUse -- Raw git commit Blocked --> GateMsg[Redirect to commit.sh]
|
|
116
|
+
PreToolUse -- Valid Command --> Execute[Execute Tool]
|
|
117
|
+
|
|
118
|
+
SessionClose[SessionEnd Hook] --> StateCheck{CURRENT_STATE.md Updated?}
|
|
119
|
+
StateCheck -- No & Code Modified --> Warn[Display Rule #13 Reminder]
|
|
120
|
+
StateCheck -- Yes --> End[Clean Exit]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Deterministic Task Board & DAG State (F4)
|
|
124
|
+
|
|
125
|
+
```mermaid
|
|
126
|
+
flowchart LR
|
|
127
|
+
Backlog[BACKLOG] --> Queued[QUEUED]
|
|
128
|
+
Queued --> InProgress[IN_PROGRESS]
|
|
129
|
+
InProgress --> ParallelGate[PARALLEL_GATE]
|
|
130
|
+
ParallelGate --> HumanCheck[HUMAN_CHECKPOINT]
|
|
131
|
+
HumanCheck --> Done[DONE]
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Multi-Harness Engine (F5)
|
|
135
|
+
|
|
136
|
+
```mermaid
|
|
137
|
+
flowchart TD
|
|
138
|
+
Core[Dev-OS Core: .agents/] --> Compiler[devos init / update]
|
|
139
|
+
Compiler --> Claude[Claude Code: .claude/ + CLAUDE.md + hooks.json]
|
|
140
|
+
Compiler --> Cursor[Cursor: .cursor/rules/devos.mdc + .cursorrules]
|
|
141
|
+
Compiler --> OpenCode[OpenCode: OPENCODE.md + .opencode/rules/]
|
|
142
|
+
Compiler --> Gemini[Gemini / Antigravity: GEMINI.md]
|
|
143
|
+
Compiler --> Codex[Codex / Windsurf: .codex/ + .windsurfrules]
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Autonomous SDLC & Mandatory Design Gate (v4.0)
|
|
147
|
+
|
|
148
|
+
```mermaid
|
|
149
|
+
flowchart TD
|
|
150
|
+
Idea["Product Idea / MVP Goal"] --> Stage1["1. Inception: Architect (grill-me) -> docs/PROJECT_REQUIREMENTS.md"]
|
|
151
|
+
Stage1 --> Stage2["2. Design Gate: UI Designer (ui-ux-pro-max) -> docs/DESIGN.md"]
|
|
152
|
+
Stage2 --> Stage3["3. Schema & Seeds: DBA -> Migrations + Fixtures (devos123)"]
|
|
153
|
+
Stage3 --> Stage4["4. Task DAG: Orchestrator -> docs/TASK_BOARD.md"]
|
|
154
|
+
Stage4 --> Stage5["5. Implementation: Developer -> Code authoring"]
|
|
155
|
+
Stage5 --> Stage6["6. Test Suite: Tester -> Unit/E2E Tests"]
|
|
156
|
+
Stage6 --> Stage7["7. Testing Guide: Tester -> docs/TESTING_GUIDE.md"]
|
|
157
|
+
Stage7 --> Stage8["8. QA Gate: QA -> Lint, Types & Design Gate Audit"]
|
|
158
|
+
Stage8 --> Stage9["9. Security Gate: Security -> OWASP & Secrets Scan"]
|
|
159
|
+
Stage9 --> Stage10["10. Humanizer: Release Manager -> humanize-check.sh"]
|
|
160
|
+
Stage10 --> FinalReview["Founder Delivery Briefing"]
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Telemetry & Root Cause Analysis (RCA) Feedback Loop
|
|
164
|
+
|
|
165
|
+
```mermaid
|
|
166
|
+
flowchart LR
|
|
167
|
+
HookErr[Hook Failure / Circuit Breaker Trip] --> LocalLog[Local Buffer: .agents/telemetry/events.jsonl]
|
|
168
|
+
LocalLog --> TelemetryAgent[Telemetry Agent: RCA Diagnosis]
|
|
169
|
+
TelemetryAgent --> Sanitize[Sanitization & Privacy Gate: Strip Code & Secrets]
|
|
170
|
+
Sanitize --> UpstreamPR[Automated Bug Report / PR to olitech1010/dev-os]
|
|
171
|
+
```
|
|
172
|
+
|
|
106
173
|
## Directory Structure
|
|
107
174
|
|
|
108
175
|
- `.agents/`: The core logic of the OS.
|
|
109
|
-
- `agents/`: System prompts for each agent.
|
|
110
|
-
- `commands/`: Slash commands.
|
|
111
|
-
- `skills/`:
|
|
112
|
-
- `
|
|
113
|
-
- `
|
|
114
|
-
- `
|
|
176
|
+
- `agents/`: System prompts for each agent persona (Orchestrator, Developer, QA, Tester, DBA, DevOps, Architect, Researcher, Memory Manager, Release Manager, UI Designer, Executive Proxy, Telemetry, Eval Engineer).
|
|
177
|
+
- `commands/`: Slash commands (YAML frontmatter + instructions: `task.md`, `auto.md`, `design.md`, `humanize.md`, `telemetry.md`, etc.).
|
|
178
|
+
- `skills/`: Specialist engineering skills (`humanizer/`, `testing-guide/`, `autonomous-sdlc/`, `telemetry/`, etc.).
|
|
179
|
+
- `hooks/`: Runtime lifecycle hooks (`session-start.sh`, `pre-tool-use.sh`, `session-end.sh`).
|
|
180
|
+
- `memory/`: Shared memory vault (`decisions/ADRs`, `handoffs/`, `context.json`).
|
|
181
|
+
- `telemetry/`: Local failure event buffer (`events.jsonl`).
|
|
182
|
+
- `scripts/`: Tooling (`commit.sh`, `install-hooks.sh`, `humanize-check.sh`).
|
|
183
|
+
- `packs.json`: Composable capability pack definitions.
|
|
184
|
+
- `manifest.json`: Installed pack tracking, execution mode, telemetry configuration, and version metadata.
|
|
185
|
+
- `docs/`: Project documentation.
|
|
186
|
+
- `DESIGN.md`: Mandatory design system specification extracted from `ui-ux-pro-max`.
|
|
187
|
+
- `TESTING_GUIDE.md`: Interactive human walkthrough guide with seed accounts and universal password `devos123`.
|
|
188
|
+
- `TASK_BOARD.md`: Deterministic DAG task board state machine.
|
|
189
|
+
- `CURRENT_STATE.md`: Single source of truth for active tasks and blockers.
|
|
190
|
+
- `LESSONS.md`: Episodic memory and incident learnings.
|
|
191
|
+
- Multi-Harness Outputs:
|
|
192
|
+
- `.claude/`: Claude Code commands, agents, and lifecycle hooks.
|
|
193
|
+
- `.cursor/rules/`: Cursor MDC rule definition.
|
|
194
|
+
- `.opencode/`: OpenCode configuration and rules.
|
|
195
|
+
- `CLAUDE.md`, `OPENCODE.md`, `GEMINI.md`: Root harness guidance.
|
|
196
|
+
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to Dev-OS are documented in this file.
|
|
4
4
|
This project follows [Semantic Versioning](https://semver.org/).
|
|
5
5
|
|
|
6
|
+
## [3.0.0] — 2026-09-11
|
|
7
|
+
|
|
8
|
+
### Major Features & Upgrades
|
|
9
|
+
- **Runtime Lifecycle Hook Framework (F1)**: Introduced `.agents/hooks/` (`session-start.sh`, `pre-tool-use.sh`, `session-end.sh`) and `.claude/hooks.json` mapping `SessionStart`, `PreToolUse`, and `SessionEnd`. Mechanically enforces Hard Rule #1 (blocks destructive actions), Hard Rule #8 (blocks raw git commit), Hard Rule #13 (session-end state obligation), and Hard Rule #14 (freshness check).
|
|
10
|
+
- **Composable Capability Packs (F2)**: Added pack registry (`.agents/packs.json`) and project manifest (`.agents/manifest.json`). `devos init` now installs lean stack-tailored packs (`core` + target stack), reducing initial token context by 60–75%. Added `devos pack list` and `devos pack add <name>` CLI commands.
|
|
11
|
+
- **Structured Shared Memory Vault (F3)**: Added `.agents/memory/` containing Architecture Decision Records (`decisions/ADR-000-template.md`), session handoffs (`handoffs/handoff-template.md`), and `context.json`. Added `devos memory list`, `devos memory handoff`, and `devos memory doctor` CLI commands, along with `.agents/skills/shared-memory/SKILL.md`.
|
|
12
|
+
- **Deterministic Task Board & DAG Workflow State (F4)**: Added `docs/TASK_BOARD.md` state machine (`[BACKLOG]`, `[QUEUED]`, `[IN_PROGRESS]`, `[PARALLEL_GATE]`, `[HUMAN_CHECKPOINT]`, `[DONE]`), `/task` slash command (`.agents/commands/task.md`), and `.agents/skills/task-board/SKILL.md`.
|
|
13
|
+
- **Multi-Harness Expansion + OpenCode (F5)**: Expanded compilation engine to natively generate rules and configuration across major AI IDEs: **Claude Code** (`.claude/`), **Cursor** (`.cursor/rules/devos.mdc`, `.cursorrules`), **OpenCode** (`OPENCODE.md`, `.opencode/rules/devos-rules.md`, `.opencode/opencode.json`), **Google Antigravity & Gemini** (`ANTIGRAVITY.md`, `GEMINI.md`), and **Codex & Windsurf** (`.codex/instructions.md`, `.windsurfrules`). Added interactive platform selector (Step 3 in `devos init`) and CLI flags (`-p, --platform <name>`, `--harness <list>`) so developers can tailor their workspace for specific tools or generate universal configurations.
|
|
14
|
+
|
|
15
|
+
## [2.1.1] — 2026-09-10
|
|
16
|
+
|
|
17
|
+
- **Official npm Scope Release**: Successfully published to npm under `@olives/devos` as public package.
|
|
18
|
+
|
|
6
19
|
## [2.1.0] — 2026-09-03
|
|
7
20
|
|
|
8
21
|
- **Official npm Package Scope (`@olives/devos`)**: Formally registered under the official Olives organization on npm as `@olives/devos` (executable CLI binaries remain `devos`, `olives-devos`, and `devos-init`).
|