aios-core 4.2.13 → 4.2.14
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/.aios-core/core/code-intel/helpers/dev-helper.js +206 -0
- package/.aios-core/core/registry/registry-schema.json +166 -166
- package/.aios-core/core/synapse/diagnostics/collectors/hook-collector.js +3 -3
- package/.aios-core/data/entity-registry.yaml +27 -0
- package/.aios-core/development/scripts/approval-workflow.js +642 -642
- package/.aios-core/development/scripts/backup-manager.js +606 -606
- package/.aios-core/development/scripts/branch-manager.js +389 -389
- package/.aios-core/development/scripts/code-quality-improver.js +1311 -1311
- package/.aios-core/development/scripts/commit-message-generator.js +849 -849
- package/.aios-core/development/scripts/conflict-resolver.js +674 -674
- package/.aios-core/development/scripts/dependency-analyzer.js +637 -637
- package/.aios-core/development/scripts/diff-generator.js +351 -351
- package/.aios-core/development/scripts/elicitation-engine.js +384 -384
- package/.aios-core/development/scripts/elicitation-session-manager.js +299 -299
- package/.aios-core/development/scripts/git-wrapper.js +461 -461
- package/.aios-core/development/scripts/manifest-preview.js +244 -244
- package/.aios-core/development/scripts/metrics-tracker.js +775 -775
- package/.aios-core/development/scripts/modification-validator.js +554 -554
- package/.aios-core/development/scripts/pattern-learner.js +1224 -1224
- package/.aios-core/development/scripts/performance-analyzer.js +757 -757
- package/.aios-core/development/scripts/refactoring-suggester.js +1138 -1138
- package/.aios-core/development/scripts/rollback-handler.js +530 -530
- package/.aios-core/development/scripts/security-checker.js +358 -358
- package/.aios-core/development/scripts/template-engine.js +239 -239
- package/.aios-core/development/scripts/template-validator.js +278 -278
- package/.aios-core/development/scripts/test-generator.js +843 -843
- package/.aios-core/development/scripts/transaction-manager.js +589 -589
- package/.aios-core/development/scripts/usage-tracker.js +673 -673
- package/.aios-core/development/scripts/validate-filenames.js +226 -226
- package/.aios-core/development/scripts/version-tracker.js +526 -526
- package/.aios-core/development/scripts/yaml-validator.js +396 -396
- package/.aios-core/development/tasks/build-autonomous.md +10 -4
- package/.aios-core/development/tasks/create-service.md +23 -0
- package/.aios-core/development/tasks/dev-develop-story.md +12 -6
- package/.aios-core/development/tasks/dev-suggest-refactoring.md +7 -1
- package/.aios-core/development/tasks/publish-npm.md +3 -3
- package/.aios-core/hooks/unified/README.md +1 -1
- package/.aios-core/install-manifest.yaml +65 -61
- package/.aios-core/manifests/schema/manifest-schema.json +190 -190
- package/.aios-core/product/templates/component-react-tmpl.tsx +98 -98
- package/.aios-core/product/templates/engine/schemas/adr.schema.json +102 -102
- package/.aios-core/product/templates/engine/schemas/dbdr.schema.json +205 -205
- package/.aios-core/product/templates/engine/schemas/epic.schema.json +175 -175
- package/.aios-core/product/templates/engine/schemas/pmdr.schema.json +175 -175
- package/.aios-core/product/templates/engine/schemas/prd-v2.schema.json +300 -300
- package/.aios-core/product/templates/engine/schemas/prd.schema.json +152 -152
- package/.aios-core/product/templates/engine/schemas/story.schema.json +222 -222
- package/.aios-core/product/templates/engine/schemas/task.schema.json +154 -154
- package/.aios-core/product/templates/eslintrc-security.json +32 -32
- package/.aios-core/product/templates/github-actions-cd.yml +212 -212
- package/.aios-core/product/templates/github-actions-ci.yml +172 -172
- package/.aios-core/product/templates/shock-report-tmpl.html +502 -502
- package/.aios-core/product/templates/token-exports-css-tmpl.css +240 -240
- package/.aios-core/quality/schemas/quality-metrics.schema.json +233 -233
- package/.aios-core/scripts/migrate-framework-docs.sh +300 -300
- package/README.en.md +747 -0
- package/README.md +4 -2
- package/bin/aios.js +7 -4
- package/package.json +1 -1
- package/packages/aios-pro-cli/src/recover.js +1 -1
- package/packages/installer/src/wizard/ide-config-generator.js +6 -6
- package/packages/installer/src/wizard/pro-setup.js +3 -3
- package/scripts/package-synapse.js +5 -5
- package/scripts/validate-package-completeness.js +3 -3
- package/.aios-core/.session/current-session.json +0 -14
- package/.aios-core/data/registry-update-log.jsonl +0 -191
- package/.aios-core/docs/SHARD-TRANSLATION-GUIDE.md +0 -335
- package/.aios-core/docs/component-creation-guide.md +0 -458
- package/.aios-core/docs/session-update-pattern.md +0 -307
- package/.aios-core/docs/standards/AIOS-FRAMEWORK-MASTER.md +0 -1963
- package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1-SUMMARY.md +0 -1190
- package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1.md +0 -439
- package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO.md +0 -5398
- package/.aios-core/docs/standards/V3-ARCHITECTURAL-DECISIONS.md +0 -523
- package/.aios-core/docs/template-syntax.md +0 -267
- package/.aios-core/docs/troubleshooting-guide.md +0 -625
- package/.aios-core/infrastructure/tests/utilities-audit-results.json +0 -501
- package/.aios-core/manifests/agents.csv +0 -29
- package/.aios-core/manifests/tasks.csv +0 -198
- package/.aios-core/manifests/workers.csv +0 -204
- package/.claude/rules/agent-authority.md +0 -105
- package/.claude/rules/coderabbit-integration.md +0 -93
- package/.claude/rules/ids-principles.md +0 -112
- package/.claude/rules/story-lifecycle.md +0 -139
- package/.claude/rules/workflow-execution.md +0 -150
- package/pro/README.md +0 -66
- package/pro/license/degradation.js +0 -220
- package/pro/license/errors.js +0 -450
- package/pro/license/feature-gate.js +0 -354
- package/pro/license/index.js +0 -181
- package/pro/license/license-api.js +0 -651
- package/pro/license/license-cache.js +0 -523
- package/pro/license/license-crypto.js +0 -303
- package/scripts/glue/README.md +0 -355
- package/scripts/glue/compose-agent-prompt.cjs +0 -362
- /package/.claude/hooks/{precompact-session-digest.js → precompact-session-digest.cjs} +0 -0
- /package/.claude/hooks/{synapse-engine.js → synapse-engine.cjs} +0 -0
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# CodeRabbit Integration — Detailed Rules
|
|
2
|
-
|
|
3
|
-
## Self-Healing Configuration
|
|
4
|
-
|
|
5
|
-
### Dev Phase (@dev — Story Development Cycle Phase 3)
|
|
6
|
-
|
|
7
|
-
```yaml
|
|
8
|
-
mode: light
|
|
9
|
-
max_iterations: 2
|
|
10
|
-
timeout_minutes: 30
|
|
11
|
-
severity_filter: [CRITICAL, HIGH]
|
|
12
|
-
behavior:
|
|
13
|
-
CRITICAL: auto_fix
|
|
14
|
-
HIGH: auto_fix (iteration < 2) else document_as_debt
|
|
15
|
-
MEDIUM: document_as_debt
|
|
16
|
-
LOW: ignore
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
**Flow:**
|
|
20
|
-
```
|
|
21
|
-
RUN CodeRabbit → CRITICAL found?
|
|
22
|
-
YES → auto-fix (iteration < 2) → Re-run
|
|
23
|
-
NO → Document HIGH as debt, proceed
|
|
24
|
-
After 2 iterations with CRITICAL → HALT, manual intervention
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### QA Phase (@qa — QA Loop Pre-Review)
|
|
28
|
-
|
|
29
|
-
```yaml
|
|
30
|
-
mode: full
|
|
31
|
-
max_iterations: 3
|
|
32
|
-
timeout_minutes: 30
|
|
33
|
-
severity_filter: [CRITICAL, HIGH]
|
|
34
|
-
behavior:
|
|
35
|
-
CRITICAL: auto_fix
|
|
36
|
-
HIGH: auto_fix
|
|
37
|
-
MEDIUM: document_as_debt
|
|
38
|
-
LOW: ignore
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
**Flow:**
|
|
42
|
-
1. Pre-commit review scan
|
|
43
|
-
2. Self-healing loop (max 3 iterations)
|
|
44
|
-
3. Manual QA analysis (architectural, traceability, NFR)
|
|
45
|
-
4. Gate decision (verdict)
|
|
46
|
-
|
|
47
|
-
## Severity Handling Summary
|
|
48
|
-
|
|
49
|
-
| Severity | Dev Phase | QA Phase |
|
|
50
|
-
|----------|-----------|----------|
|
|
51
|
-
| CRITICAL | auto_fix, block if persists | auto_fix, block if persists |
|
|
52
|
-
| HIGH | auto_fix, document if fails | auto_fix, document if fails |
|
|
53
|
-
| MEDIUM | document_as_tech_debt | document_as_tech_debt |
|
|
54
|
-
| LOW | ignore | ignore |
|
|
55
|
-
|
|
56
|
-
## WSL Execution (Windows)
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
# Self-healing mode (automatic in dev tasks)
|
|
60
|
-
wsl bash -c 'cd /mnt/c/.../aios-core && ~/.local/bin/coderabbit --severity CRITICAL,HIGH --auto-fix'
|
|
61
|
-
|
|
62
|
-
# Manual review
|
|
63
|
-
wsl bash -c 'cd /mnt/c/.../aios-core && ~/.local/bin/coderabbit -t uncommitted'
|
|
64
|
-
|
|
65
|
-
# Prompt-only mode
|
|
66
|
-
wsl bash -c 'cd /mnt/c/.../aios-core && ~/.local/bin/coderabbit --prompt-only -t uncommitted'
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Integration Points
|
|
70
|
-
|
|
71
|
-
| Workflow | Phase | Trigger | Agent |
|
|
72
|
-
|----------|-------|---------|-------|
|
|
73
|
-
| Story Development Cycle | 3 (Implement) | After task completion | @dev |
|
|
74
|
-
| QA Loop | 1 (Review) | At review start | @qa |
|
|
75
|
-
| Standalone | Any | `*coderabbit-review` command | Any |
|
|
76
|
-
|
|
77
|
-
## Focus Areas by Story Type
|
|
78
|
-
|
|
79
|
-
| Story Type | Primary Focus |
|
|
80
|
-
|-----------|--------------|
|
|
81
|
-
| Feature | Code patterns, test coverage, API design |
|
|
82
|
-
| Bug Fix | Regression risk, root cause coverage |
|
|
83
|
-
| Refactor | Breaking changes, interface stability |
|
|
84
|
-
| Documentation | Markdown quality, reference validity |
|
|
85
|
-
| Database | SQL injection, RLS coverage, migration safety |
|
|
86
|
-
|
|
87
|
-
## Report Location
|
|
88
|
-
|
|
89
|
-
CodeRabbit reports saved to: `docs/qa/coderabbit-reports/`
|
|
90
|
-
|
|
91
|
-
## Configuration Reference
|
|
92
|
-
|
|
93
|
-
Full config in `.aios-core/core-config.yaml` under `coderabbit_integration` section.
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
# IDS Principles — Detailed Rules
|
|
2
|
-
|
|
3
|
-
> Status: Planned (IDS epic is Draft — principles apply as aspirational guidance)
|
|
4
|
-
|
|
5
|
-
## Decision Hierarchy: REUSE > ADAPT > CREATE
|
|
6
|
-
|
|
7
|
-
### REUSE (Relevance >= 90%)
|
|
8
|
-
- Use existing artifact directly without modification
|
|
9
|
-
- Import/reference existing entity
|
|
10
|
-
- No justification needed beyond confirming match
|
|
11
|
-
|
|
12
|
-
### ADAPT (Relevance 60-89%)
|
|
13
|
-
- Adaptability score >= 0.6
|
|
14
|
-
- Changes MUST NOT exceed 30% of original artifact
|
|
15
|
-
- Changes MUST NOT break existing consumers (check usedBy list)
|
|
16
|
-
- Document changes in artifact's change log
|
|
17
|
-
- Update registry relationships
|
|
18
|
-
- Impact analysis required
|
|
19
|
-
|
|
20
|
-
### CREATE (No suitable match)
|
|
21
|
-
Required justification:
|
|
22
|
-
- `evaluated_patterns`: Existing entities you considered
|
|
23
|
-
- `rejection_reasons`: Why each was rejected (technical reasons)
|
|
24
|
-
- `new_capability`: What unique capability this provides
|
|
25
|
-
- Register in Entity Registry within 24 hours
|
|
26
|
-
- Establish relationships with existing entities
|
|
27
|
-
- Define adaptability constraints for future reuse
|
|
28
|
-
|
|
29
|
-
## Verification Gates G1-G6
|
|
30
|
-
|
|
31
|
-
### G1: Epic Creation (@pm)
|
|
32
|
-
- **Type:** Human-in-loop, Advisory
|
|
33
|
-
- **Trigger:** `*create-epic` workflow
|
|
34
|
-
- **Action:** Query registry for related entities, display potentially reusable artifacts
|
|
35
|
-
- **Latency:** < 24h (async)
|
|
36
|
-
- **Blocking:** No
|
|
37
|
-
|
|
38
|
-
### G2: Story Creation (@sm)
|
|
39
|
-
- **Type:** Human-in-loop, Advisory
|
|
40
|
-
- **Trigger:** `*draft` workflow
|
|
41
|
-
- **Action:** Check existing tasks/templates matching story work
|
|
42
|
-
- **Latency:** < 24h (async)
|
|
43
|
-
- **Blocking:** No
|
|
44
|
-
|
|
45
|
-
### G3: Story Validation (@po)
|
|
46
|
-
- **Type:** Human-in-loop, Soft Block
|
|
47
|
-
- **Trigger:** `*validate-story-draft` workflow
|
|
48
|
-
- **Action:** Verify referenced artifacts exist, detect potential duplication
|
|
49
|
-
- **Latency:** < 4h (async)
|
|
50
|
-
- **Blocking:** Soft (can override with reason)
|
|
51
|
-
|
|
52
|
-
### G4: Dev Context (@dev)
|
|
53
|
-
- **Type:** Automated, Informational
|
|
54
|
-
- **Trigger:** Story assignment / `*develop` start
|
|
55
|
-
- **Action:** Display matching patterns as reminder
|
|
56
|
-
- **Latency:** < 2s
|
|
57
|
-
- **Blocking:** NO (logged only for metrics)
|
|
58
|
-
|
|
59
|
-
### G5: QA Review (@qa)
|
|
60
|
-
- **Type:** Automated, Blocks Merge
|
|
61
|
-
- **Trigger:** PR/merge request
|
|
62
|
-
- **Action:** Check if new artifacts could have reused existing
|
|
63
|
-
- **Latency:** < 30s
|
|
64
|
-
- **Blocking:** YES if new entity without registry entry or justification
|
|
65
|
-
|
|
66
|
-
### G6: CI/CD (@devops)
|
|
67
|
-
- **Type:** Automated, Blocks Merge
|
|
68
|
-
- **Trigger:** CI pipeline
|
|
69
|
-
- **Action:** Registry integrity check + sync
|
|
70
|
-
- **Latency:** < 60s
|
|
71
|
-
- **Blocking:** YES on CRITICAL, WARN on MEDIUM/LOW
|
|
72
|
-
|
|
73
|
-
## Override Policy
|
|
74
|
-
|
|
75
|
-
**Command:** `--override-ids --override-reason "explanation"`
|
|
76
|
-
|
|
77
|
-
**Permitted when:**
|
|
78
|
-
- Time-critical fix requires immediate creation
|
|
79
|
-
- Adaptation would introduce unacceptable risk
|
|
80
|
-
- Existing artifact is deprecated/frozen
|
|
81
|
-
|
|
82
|
-
**Requirements:**
|
|
83
|
-
- Logged for audit trail
|
|
84
|
-
- Reviewed within 7 days
|
|
85
|
-
- Include override reason in gate verification log
|
|
86
|
-
|
|
87
|
-
## Graceful Degradation
|
|
88
|
-
|
|
89
|
-
All gates implement circuit breaker:
|
|
90
|
-
- **Timeout:** 2s default
|
|
91
|
-
- **On timeout:** warn-and-proceed
|
|
92
|
-
- **On error:** log-and-proceed
|
|
93
|
-
- **Key principle:** Development NEVER blocked by IDS failures
|
|
94
|
-
|
|
95
|
-
```yaml
|
|
96
|
-
circuit_breaker:
|
|
97
|
-
failure_threshold: 5
|
|
98
|
-
success_threshold: 3
|
|
99
|
-
reset_timeout_ms: 60000
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## Article IV-A: Incremental Development (Constitution Amendment)
|
|
103
|
-
|
|
104
|
-
**Severity:** MUST
|
|
105
|
-
|
|
106
|
-
**Four Core Rules:**
|
|
107
|
-
1. **Registry Consultation Required** — Query before creating
|
|
108
|
-
2. **Decision Hierarchy** — REUSE > ADAPT > CREATE strictly
|
|
109
|
-
3. **Adaptation Limits** — Changes < 30%, don't break consumers
|
|
110
|
-
4. **Creation Requirements** — Full justification, register within 24h
|
|
111
|
-
|
|
112
|
-
**Reference:** `docs/stories/epics/epic-ids-incremental-development/`
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
# Story Lifecycle — Detailed Rules
|
|
2
|
-
|
|
3
|
-
## Status Progression
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
Draft → Ready → InProgress → InReview → Done
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
| Status | Trigger | Agent | Action |
|
|
10
|
-
|--------|---------|-------|--------|
|
|
11
|
-
| Draft | @sm creates story | @sm | Story file created |
|
|
12
|
-
| Ready | @po validates (GO) | @po | **MUST update status field in story file from Draft → Ready** |
|
|
13
|
-
| InProgress | @dev starts implementation | @dev | Update status field |
|
|
14
|
-
| InReview | @dev completes, @qa reviews | @qa | Update status field |
|
|
15
|
-
| Done | @qa PASS, @devops pushes | @devops | Update status field |
|
|
16
|
-
|
|
17
|
-
**CRITICAL:** The `Draft → Ready` transition is the responsibility of @po during `*validate-story-draft`. When verdict is GO (including conditional GO after fixes are applied), @po MUST update the story's Status field to `Ready` and log the transition in the Change Log. A story left in `Draft` after a GO verdict is a process violation.
|
|
18
|
-
|
|
19
|
-
## Phase 1: Create (@sm)
|
|
20
|
-
|
|
21
|
-
**Task:** `create-next-story.md`
|
|
22
|
-
**Inputs:** PRD sharded, epic context
|
|
23
|
-
**Output:** `{epicNum}.{storyNum}.story.md`
|
|
24
|
-
|
|
25
|
-
## Phase 2: Validate (@po)
|
|
26
|
-
|
|
27
|
-
**Task:** `validate-next-story.md`
|
|
28
|
-
|
|
29
|
-
### 10-Point Validation Checklist
|
|
30
|
-
|
|
31
|
-
1. Clear and objective title
|
|
32
|
-
2. Complete description (problem/need explained)
|
|
33
|
-
3. Testable acceptance criteria (Given/When/Then preferred)
|
|
34
|
-
4. Well-defined scope (IN and OUT clearly listed)
|
|
35
|
-
5. Dependencies mapped (prerequisite stories/resources)
|
|
36
|
-
6. Complexity estimate (points or T-shirt sizing)
|
|
37
|
-
7. Business value (benefit to user/business clear)
|
|
38
|
-
8. Risks documented (potential problems identified)
|
|
39
|
-
9. Criteria of Done (clear definition of complete)
|
|
40
|
-
10. Alignment with PRD/Epic (consistency with source docs)
|
|
41
|
-
|
|
42
|
-
**Decision:** GO (≥7/10) or NO-GO (<7/10 with required fixes)
|
|
43
|
-
|
|
44
|
-
## Phase 3: Implement (@dev)
|
|
45
|
-
|
|
46
|
-
**Task:** `dev-develop-story.md`
|
|
47
|
-
|
|
48
|
-
### Execution Modes
|
|
49
|
-
|
|
50
|
-
**YOLO (autonomous):**
|
|
51
|
-
- 0-1 prompts
|
|
52
|
-
- Decisions logged in `decision-log-{story-id}.md`
|
|
53
|
-
- Best for: simple, deterministic tasks
|
|
54
|
-
|
|
55
|
-
**Interactive (default):**
|
|
56
|
-
- 5-10 prompts with educational checkpoints
|
|
57
|
-
- Confirmations at key decision points
|
|
58
|
-
- Best for: learning, complex decisions
|
|
59
|
-
|
|
60
|
-
**Pre-Flight (plan-first):**
|
|
61
|
-
- All questions upfront (10-15 prompts)
|
|
62
|
-
- Generates execution plan
|
|
63
|
-
- Then zero-ambiguity execution
|
|
64
|
-
- Best for: ambiguous requirements, critical work
|
|
65
|
-
|
|
66
|
-
### CodeRabbit Self-Healing in Dev Phase
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
iteration = 0
|
|
70
|
-
while CRITICAL issues found AND iteration < 2:
|
|
71
|
-
auto-fix CRITICAL/HIGH
|
|
72
|
-
iteration++
|
|
73
|
-
if CRITICAL persist after 2 iterations:
|
|
74
|
-
HALT — manual intervention required
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## Phase 4: QA Gate (@qa)
|
|
78
|
-
|
|
79
|
-
**Task:** `qa-gate.md`
|
|
80
|
-
|
|
81
|
-
### 7 Quality Checks
|
|
82
|
-
|
|
83
|
-
1. **Code review** — patterns, readability, maintainability
|
|
84
|
-
2. **Unit tests** — adequate coverage, all passing
|
|
85
|
-
3. **Acceptance criteria** — all met per story AC
|
|
86
|
-
4. **No regressions** — existing functionality preserved
|
|
87
|
-
5. **Performance** — within acceptable limits
|
|
88
|
-
6. **Security** — OWASP basics verified
|
|
89
|
-
7. **Documentation** — updated if necessary
|
|
90
|
-
|
|
91
|
-
### Gate Decisions
|
|
92
|
-
|
|
93
|
-
| Decision | Score | Action |
|
|
94
|
-
|----------|-------|--------|
|
|
95
|
-
| PASS | All checks OK | Approve, proceed to @devops push |
|
|
96
|
-
| CONCERNS | Minor issues | Approve with observations documented |
|
|
97
|
-
| FAIL | HIGH/CRITICAL issues | Return to @dev with feedback |
|
|
98
|
-
| WAIVED | Issues accepted | Approve with waiver documented (rare) |
|
|
99
|
-
|
|
100
|
-
### Gate File Structure
|
|
101
|
-
|
|
102
|
-
```yaml
|
|
103
|
-
storyId: STORY-42
|
|
104
|
-
verdict: PASS | CONCERNS | FAIL | WAIVED
|
|
105
|
-
issues:
|
|
106
|
-
- severity: low | medium | high
|
|
107
|
-
category: code | tests | requirements | performance | security | docs
|
|
108
|
-
description: "..."
|
|
109
|
-
recommendation: "..."
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
## QA Loop (Iterative Review-Fix)
|
|
113
|
-
|
|
114
|
-
```
|
|
115
|
-
@qa review → verdict → @dev fixes → re-review (max 5 iterations)
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
**Commands:**
|
|
119
|
-
- `*qa-loop {storyId}` — Start full loop
|
|
120
|
-
- `*stop-qa-loop` — Pause and save state
|
|
121
|
-
- `*resume-qa-loop` — Resume from saved state
|
|
122
|
-
- `*escalate-qa-loop` — Force manual escalation
|
|
123
|
-
|
|
124
|
-
**Escalation triggers:**
|
|
125
|
-
- max_iterations_reached (default: 5)
|
|
126
|
-
- verdict_blocked
|
|
127
|
-
- fix_failure (after retries)
|
|
128
|
-
- manual_escalate (user command)
|
|
129
|
-
|
|
130
|
-
**Status:** Tracked in `qa/loop-status.json`
|
|
131
|
-
|
|
132
|
-
## Story File Update Rules
|
|
133
|
-
|
|
134
|
-
| Section | Who Can Edit |
|
|
135
|
-
|---------|-------------|
|
|
136
|
-
| Title, Description, AC, Scope | @po only |
|
|
137
|
-
| File List, Dev Notes, checkboxes | @dev |
|
|
138
|
-
| QA Results | @qa only |
|
|
139
|
-
| Change Log | Any agent (append only) |
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
# Workflow Execution — Detailed Rules
|
|
2
|
-
|
|
3
|
-
## Task-First Principle
|
|
4
|
-
|
|
5
|
-
**Workflows são compostos por tasks conectadas, não por agentes conectados.** Cada task define seus inputs, outputs, pre/post-conditions e execution modes. Os agentes listados abaixo são os **executores padrão** de cada task — mas a sequência, as regras e as dependências vêm das definições de tasks em `.aios-core/development/tasks/`.
|
|
6
|
-
|
|
7
|
-
Uma task validada é lei: deve ser executada conforme configurada, com todas as suas dependências respeitadas, independente de quem a executa (agent, worker, clone ou humano).
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## 4 Primary Workflows
|
|
12
|
-
|
|
13
|
-
### 1. Story Development Cycle (SDC) — PRIMARY
|
|
14
|
-
|
|
15
|
-
**Full 4-phase workflow for all development work.**
|
|
16
|
-
|
|
17
|
-
#### Phase 1: Create (@sm)
|
|
18
|
-
- **Task:** `create-next-story.md`
|
|
19
|
-
- **Inputs:** PRD sharded, epic context
|
|
20
|
-
- **Output:** `{epicNum}.{storyNum}.story.md`
|
|
21
|
-
- **Status:** Draft
|
|
22
|
-
|
|
23
|
-
#### Phase 2: Validate (@po)
|
|
24
|
-
- **Task:** `validate-next-story.md`
|
|
25
|
-
- **10-point checklist** (see `story-lifecycle.md`)
|
|
26
|
-
- **Decision:** GO (>=7) or NO-GO (required fixes listed)
|
|
27
|
-
|
|
28
|
-
#### Phase 3: Implement (@dev)
|
|
29
|
-
- **Task:** `dev-develop-story.md`
|
|
30
|
-
- **Modes:** Interactive / YOLO / Pre-Flight
|
|
31
|
-
- **CodeRabbit:** Self-healing max 2 iterations
|
|
32
|
-
- **Status:** Ready → InProgress
|
|
33
|
-
|
|
34
|
-
#### Phase 4: QA Gate (@qa)
|
|
35
|
-
- **Task:** `qa-gate.md`
|
|
36
|
-
- **7 quality checks** (see `story-lifecycle.md`)
|
|
37
|
-
- **Decision:** PASS / CONCERNS / FAIL / WAIVED
|
|
38
|
-
- **Status:** InProgress → InReview → Done
|
|
39
|
-
|
|
40
|
-
---
|
|
41
|
-
|
|
42
|
-
### 2. QA Loop — ITERATIVE REVIEW
|
|
43
|
-
|
|
44
|
-
**Automated review-fix cycle after initial QA gate.**
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
@qa review → verdict → @dev fixes → re-review (max 5)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
**Commands:**
|
|
51
|
-
- `*qa-loop {storyId}` — Start loop
|
|
52
|
-
- `*qa-loop-review` — Resume from review
|
|
53
|
-
- `*qa-loop-fix` — Resume from fix
|
|
54
|
-
- `*stop-qa-loop` — Pause, save state
|
|
55
|
-
- `*resume-qa-loop` — Resume from state
|
|
56
|
-
- `*escalate-qa-loop` — Force escalation
|
|
57
|
-
|
|
58
|
-
**Config:**
|
|
59
|
-
- Max iterations: 5 (`autoClaude.qaLoop.maxIterations`)
|
|
60
|
-
- Status file: `qa/loop-status.json`
|
|
61
|
-
|
|
62
|
-
**Verdicts:**
|
|
63
|
-
- APPROVE → Complete, mark Done
|
|
64
|
-
- REJECT → @dev fixes, re-review
|
|
65
|
-
- BLOCKED → Escalate immediately
|
|
66
|
-
|
|
67
|
-
**Escalation triggers:**
|
|
68
|
-
- `max_iterations_reached`
|
|
69
|
-
- `verdict_blocked`
|
|
70
|
-
- `fix_failure`
|
|
71
|
-
- `manual_escalate`
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
### 3. Spec Pipeline — PRE-IMPLEMENTATION
|
|
76
|
-
|
|
77
|
-
**Transform informal requirements into executable spec.**
|
|
78
|
-
|
|
79
|
-
| Phase | Agent | Output | Skip If |
|
|
80
|
-
|-------|-------|--------|---------|
|
|
81
|
-
| 1. Gather | @pm | `requirements.json` | Never |
|
|
82
|
-
| 2. Assess | @architect | `complexity.json` | source=simple |
|
|
83
|
-
| 3. Research | @analyst | `research.json` | SIMPLE class |
|
|
84
|
-
| 4. Write Spec | @pm | `spec.md` | Never |
|
|
85
|
-
| 5. Critique | @qa | `critique.json` | Never |
|
|
86
|
-
| 6. Plan | @architect | `implementation.yaml` | If APPROVED |
|
|
87
|
-
|
|
88
|
-
**Complexity Classes:**
|
|
89
|
-
|
|
90
|
-
| Score | Class | Phases |
|
|
91
|
-
|-------|-------|--------|
|
|
92
|
-
| <= 8 | SIMPLE | gather → spec → critique (3) |
|
|
93
|
-
| 9-15 | STANDARD | All 6 phases |
|
|
94
|
-
| >= 16 | COMPLEX | 6 phases + revision cycle |
|
|
95
|
-
|
|
96
|
-
**5 Complexity Dimensions (scored 1-5):**
|
|
97
|
-
- **Scope:** Files affected
|
|
98
|
-
- **Integration:** External APIs
|
|
99
|
-
- **Infrastructure:** Changes needed
|
|
100
|
-
- **Knowledge:** Team familiarity
|
|
101
|
-
- **Risk:** Criticality level
|
|
102
|
-
|
|
103
|
-
**Critique Verdicts:**
|
|
104
|
-
|
|
105
|
-
| Verdict | Average Score | Next Step |
|
|
106
|
-
|---------|--------------|-----------|
|
|
107
|
-
| APPROVED | >= 4.0 | Plan (Phase 6) |
|
|
108
|
-
| NEEDS_REVISION | 3.0-3.9 | Revise (Phase 5b) |
|
|
109
|
-
| BLOCKED | < 3.0 | Escalate to @architect |
|
|
110
|
-
|
|
111
|
-
**Constitutional Gate (Article IV — No Invention):**
|
|
112
|
-
Every statement in spec.md MUST trace to FR-*, NFR-*, CON-*, or research finding. NO invented features.
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
### 4. Brownfield Discovery — LEGACY ASSESSMENT
|
|
117
|
-
|
|
118
|
-
**10-phase technical debt assessment for existing codebases.**
|
|
119
|
-
|
|
120
|
-
**Data Collection (Phases 1-3):**
|
|
121
|
-
- Phase 1: @architect → `system-architecture.md`
|
|
122
|
-
- Phase 2: @data-engineer → `SCHEMA.md` + `DB-AUDIT.md` (if DB exists)
|
|
123
|
-
- Phase 3: @ux-design-expert → `frontend-spec.md`
|
|
124
|
-
|
|
125
|
-
**Draft & Validation (Phases 4-7):**
|
|
126
|
-
- Phase 4: @architect → `technical-debt-DRAFT.md`
|
|
127
|
-
- Phase 5: @data-engineer → `db-specialist-review.md`
|
|
128
|
-
- Phase 6: @ux-design-expert → `ux-specialist-review.md`
|
|
129
|
-
- Phase 7: @qa → `qa-review.md` (QA Gate: APPROVED | NEEDS WORK)
|
|
130
|
-
|
|
131
|
-
**Finalization (Phases 8-10):**
|
|
132
|
-
- Phase 8: @architect → `technical-debt-assessment.md` (final)
|
|
133
|
-
- Phase 9: @analyst → `TECHNICAL-DEBT-REPORT.md` (executive)
|
|
134
|
-
- Phase 10: @pm → Epic + stories ready for development
|
|
135
|
-
|
|
136
|
-
**QA Gate (Phase 7):**
|
|
137
|
-
- **APPROVED:** All debits validated, no critical gaps, dependencies mapped
|
|
138
|
-
- **NEEDS WORK:** Gaps not addressed, return to Phase 4
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
## Workflow Selection Guide
|
|
143
|
-
|
|
144
|
-
| Situation | Workflow |
|
|
145
|
-
|-----------|---------|
|
|
146
|
-
| New story from epic | Story Development Cycle |
|
|
147
|
-
| QA found issues, need iteration | QA Loop |
|
|
148
|
-
| Complex feature needs spec | Spec Pipeline → then SDC |
|
|
149
|
-
| Joining existing project | Brownfield Discovery |
|
|
150
|
-
| Simple bug fix | SDC only (YOLO mode) |
|
package/pro/README.md
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# AIOS Pro
|
|
2
|
-
|
|
3
|
-
Premium features for [Synkra AIOS](https://github.com/SynkraAI/aios-core).
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
AIOS Pro extends the open-source AIOS framework with premium capabilities:
|
|
8
|
-
|
|
9
|
-
- **Premium Squads** - Pre-built squads for SaaS, e-commerce, and fintech
|
|
10
|
-
- **Persistent Memory** - Cross-session context and memory analytics
|
|
11
|
-
- **Usage Metrics** - Dashboards, team analytics, and cost tracking
|
|
12
|
-
- **Enterprise Integrations** - ClickUp, Google Drive, GitLab, Jira, Azure DevOps
|
|
13
|
-
|
|
14
|
-
## Installation
|
|
15
|
-
|
|
16
|
-
AIOS Pro requires an active license and is distributed via npm.
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# Install
|
|
20
|
-
npm install @aios-fullstack/pro
|
|
21
|
-
|
|
22
|
-
# Activate license
|
|
23
|
-
aios pro activate --key PRO-XXXX-XXXX-XXXX-XXXX
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Usage with aios-core
|
|
27
|
-
|
|
28
|
-
AIOS Pro is designed to work as a git submodule of `aios-core`:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
# Clone aios-core with pro submodule
|
|
32
|
-
git clone --recurse-submodules https://github.com/SynkraAI/aios-core.git
|
|
33
|
-
|
|
34
|
-
# Or add to existing clone
|
|
35
|
-
cd aios-core
|
|
36
|
-
git submodule update --init pro
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Activate License
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
aios pro activate --key PRO-XXXX-XXXX-XXXX-XXXX
|
|
43
|
-
aios pro status
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Structure
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
aios-pro/
|
|
50
|
-
├── squads/ # Premium squad definitions
|
|
51
|
-
├── memory/ # Persistent memory modules
|
|
52
|
-
├── metrics/ # Usage dashboards and analytics
|
|
53
|
-
├── integrations/ # Enterprise integration adapters
|
|
54
|
-
├── license/ # License infrastructure
|
|
55
|
-
└── pro-config.yaml # Pro extension configuration
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Requirements
|
|
59
|
-
|
|
60
|
-
- Node.js >= 18
|
|
61
|
-
- aios-core >= 3.12.0
|
|
62
|
-
- Active AIOS Pro license
|
|
63
|
-
|
|
64
|
-
## License
|
|
65
|
-
|
|
66
|
-
Proprietary - Copyright (c) 2026 SynkraAI. All rights reserved.
|