gaia-framework 1.1.22 → 1.4.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/README.md CHANGED
@@ -316,6 +316,17 @@ Fast-track workflows for small changes that skip the full lifecycle ceremony.
316
316
 
317
317
  ### Testing Workflows
318
318
 
319
+ Testing workflows are **integrated into the main lifecycle** — they are not optional standalone tools. Key integration points:
320
+
321
+ | Lifecycle Point | Required Testing Workflow | Gate Type |
322
+ |---|---|---|
323
+ | After `/gaia-create-arch` | `/gaia-test-design` | HALT at `/gaia-create-epics` |
324
+ | After `/gaia-test-design` | `/gaia-test-framework` (optional) | Prompted if no framework detected |
325
+ | Before `/gaia-dev-story` (high-risk) | `/gaia-atdd` | HALT (conditional on risk_level) |
326
+ | Before `/gaia-readiness-check` | `/gaia-trace` + `/gaia-ci-setup` | HALT |
327
+ | During `/gaia-brownfield` | `/gaia-nfr` + `/gaia-perf-testing` | REQUIRED steps |
328
+ | Before `/gaia-deploy-checklist` | traceability + CI + readiness PASS | HALT |
329
+
319
330
  | Command | Workflow | Agent | Output |
320
331
  |---------|----------|-------|--------|
321
332
  | `/gaia-test-design` | Test Design | Sable | `docs/test-artifacts/` |
@@ -366,15 +377,16 @@ The brownfield onboarding workflow (`/gaia-brownfield`) is a comprehensive 9-ste
366
377
  | 3. UX Design Assessment | `{has_frontend}` | UI patterns, Mermaid navigation sitemap, accessibility assessment, UX gaps |
367
378
  | 4. Event & Messaging Catalog | `{has_events}` | Producer/consumer tables, delivery guarantees, Mermaid event flow diagrams |
368
379
 
369
- **Steps 5–9** always run:
380
+ **Steps 5–10** always run:
370
381
 
371
382
  | Step | Output |
372
383
  |------|--------|
373
384
  | 5. Dependency Map | External services, infrastructure, library deps with CVE risk, Mermaid dependency graph |
374
- | 6. NFR Assessment & Baselines | Code quality, security posture, performance, test coverage — all measured, not guessed |
375
- | 7. Create PRD for Gaps | Gap-focused PRD with NFR baselines from step 6, references all upstream artifacts |
376
- | 8. Map Architecture with Diagrams | C4 Mermaid diagrams (Level 1 + 2), 3–5 sequence diagrams, as-is/target delta |
377
- | 9. Epics/Stories & Onboard Developer | Gap stories + developer knowledge base index linking all artifacts |
385
+ | 6. NFR Assessment & Baselines | Code quality, security posture, performance, test coverage — output to `test-artifacts/nfr-assessment.md` (canonical) |
386
+ | 7. Performance Test Plan | Performance budgets, load test scenarios, Core Web Vitals targets output to `test-artifacts/` (**REQUIRED**) |
387
+ | 8. Create PRD for Gaps | Gap-focused PRD with NFR baselines from step 6, references all upstream artifacts |
388
+ | 9. Map Architecture with Diagrams | C4 Mermaid diagrams (Level 1 + 2), 3–5 sequence diagrams, as-is/target delta |
389
+ | 10. Epics/Stories & Onboard Developer | Gap stories + developer knowledge base index linking all artifacts |
378
390
 
379
391
  **Design rules:**
380
392
  - All diagrams use **Mermaid syntax** — no ASCII art
@@ -382,20 +394,21 @@ The brownfield onboarding workflow (`/gaia-brownfield`) is a comprehensive 9-ste
382
394
  - Flow diagrams limited to **3–5 key flows** per document
383
395
  - NFR baselines are **measured from the codebase**, not estimated
384
396
 
385
- **Output artifacts** (up to 10, depending on detected capabilities):
386
-
387
- | Artifact | Always | Conditional |
388
- |----------|--------|-------------|
389
- | `project-documentation.md` | Yes | — |
390
- | `api-documentation.md` | — | `{has_apis}` |
391
- | `ux-design.md` | — | `{has_frontend}` |
392
- | `event-catalog.md` | — | `{has_events}` |
393
- | `dependency-map.md` | Yes | — |
394
- | `nfr-assessment.md` | Yes | — |
395
- | `prd.md` | Yes | — |
396
- | `architecture.md` | Yes | — |
397
- | `epics-and-stories.md` | Yes | — |
398
- | `brownfield-onboarding.md` | Yes | — |
397
+ **Output artifacts** (up to 11, depending on detected capabilities):
398
+
399
+ | Artifact | Location | Always | Conditional |
400
+ |----------|----------|--------|-------------|
401
+ | `project-documentation.md` | `planning-artifacts/` | Yes | — |
402
+ | `api-documentation.md` | `planning-artifacts/` | — | `{has_apis}` |
403
+ | `ux-design.md` | `planning-artifacts/` | — | `{has_frontend}` |
404
+ | `event-catalog.md` | `planning-artifacts/` | — | `{has_events}` |
405
+ | `dependency-map.md` | `planning-artifacts/` | Yes | — |
406
+ | `nfr-assessment.md` | `test-artifacts/` | Yes | — |
407
+ | `performance-test-plan-{date}.md` | `test-artifacts/` | Yes | — |
408
+ | `prd.md` | `planning-artifacts/` | Yes | — |
409
+ | `architecture.md` | `planning-artifacts/` | Yes | — |
410
+ | `epics-and-stories.md` | `planning-artifacts/` | Yes | — |
411
+ | `brownfield-onboarding.md` | `planning-artifacts/` | Yes | — |
399
412
 
400
413
  ---
401
414
 
@@ -415,6 +428,36 @@ Standalone tasks that can be run anytime without a full workflow. These are sing
415
428
  | `/gaia-review-a11y` | Accessibility Review | WCAG 2.1 compliance review |
416
429
  | `/gaia-review-perf` | Performance Review | Code-level performance review |
417
430
 
431
+ ### Adversarial Review (`/gaia-adversarial`)
432
+
433
+ The adversarial review is a cynical, critical examination designed to find flaws, gaps, and weaknesses in any document or design. It deliberately assumes nothing works as claimed and attacks from **10 different perspectives**:
434
+
435
+ | Perspective | What it challenges |
436
+ |---|---|
437
+ | **Feasibility** | Can this actually be built as described? |
438
+ | **Completeness** | What's missing that should be there? |
439
+ | **Contradictions** | Do any sections contradict each other? |
440
+ | **Assumptions** | What unstated assumptions could be wrong? |
441
+ | **Scale** | Will this work at 10x/100x expected load? |
442
+ | **Failure modes** | What happens when things go wrong? |
443
+ | **Dependencies** | What external factors could break this? |
444
+ | **Security** | What attack surfaces are exposed? |
445
+ | **User impact** | Where will users get confused or frustrated? |
446
+ | **Business risk** | What could make this commercially unviable? |
447
+
448
+ **Output:** A ranked findings report with severity (critical/high/medium/low), confidence (certain/likely/possible), a threat summary of the top 3 issues, and an overall risk assessment. The review only identifies problems — it does not suggest fixes.
449
+
450
+ **When to use it:** The adversarial review is integrated as an optional prompt at 4 key lifecycle points:
451
+
452
+ | Trigger Point | When Prompted | Recommended For |
453
+ |---|---|---|
454
+ | After `/gaia-create-prd` | End of PRD creation (step 11) | Complex or high-stakes products |
455
+ | After `/gaia-create-arch` | End of architecture design (step 9) | Distributed systems, high-scale projects |
456
+ | After `/gaia-create-epics` | End of epic/story creation (step 8) | Before sprint planning |
457
+ | After `/gaia-readiness-check` | End of readiness check (step 9) | Strongly recommended — last chance before build |
458
+
459
+ At each point you can accept or skip. It can also be run independently anytime with `/gaia-adversarial` on any artifact.
460
+
418
461
  ### Editorial & Documentation
419
462
 
420
463
  | Command | Task | Description |
@@ -559,7 +602,7 @@ The single source of truth for project settings at `_gaia/_config/global.yaml`:
559
602
 
560
603
  ```yaml
561
604
  framework_name: "GAIA"
562
- framework_version: "1.1.22"
605
+ framework_version: "1.4.0"
563
606
 
564
607
  user_name: "your-name"
565
608
  project_name: "your-project"
@@ -596,35 +639,77 @@ Pre-built team compositions for different project types:
596
639
 
597
640
  ---
598
641
 
599
- ## Typical Workflow
642
+ ## Typical Workflows
600
643
 
601
- A full product lifecycle from idea to deployment:
644
+ ### Greenfield New project from idea to deployment
602
645
 
603
646
  ```
647
+ # Phase 1: Analysis
604
648
  /gaia-brainstorm → brainstorm the idea
605
649
  /gaia-product-brief → create a product brief
606
650
  /gaia-market-research → validate market fit
607
- /gaia-create-prd → write the PRD
651
+
652
+ # Phase 2: Planning
653
+ /gaia-create-prd → write the PRD (optional: adversarial review)
608
654
  /gaia-create-ux → design the UX
609
- /gaia-create-arch → design the architecture
610
- /gaia-create-epics → break into epics and stories
611
- /gaia-readiness-check verify everything is ready
612
- /gaia-sprint-plan → plan the first sprint
655
+
656
+ # Phase 3: Solutioning
657
+ /gaia-create-arch design the architecture (optional: adversarial review)
658
+ /gaia-test-designcreate test plan (optional: scaffold test framework)
659
+ /gaia-create-epics → break into epics and stories (optional: adversarial review)
660
+ /gaia-trace → generate traceability matrix
661
+ /gaia-ci-setup → scaffold CI pipeline
662
+ /gaia-readiness-check → verify everything is ready (optional: adversarial review)
663
+
664
+ # Phase 4: Implementation (repeat per sprint)
665
+ /gaia-sprint-plan → plan the sprint
613
666
  /gaia-create-story → create detailed stories
614
667
  /gaia-validate-story → validate story completeness
615
668
  /gaia-fix-story → fix issues from validation
669
+ /gaia-atdd → write acceptance tests (REQUIRED for high-risk stories)
616
670
  /gaia-dev-story → implement stories
617
671
  /gaia-code-review → review the code
618
672
  /gaia-qa-tests → generate tests
619
673
  /gaia-security-review → security audit
620
674
  /gaia-triage-findings → triage dev findings into backlog
675
+ /gaia-retro → sprint retrospective
676
+
677
+ # Phase 5: Deployment
621
678
  /gaia-release-plan → plan the release
679
+ /gaia-deploy-checklist → pre-deploy verification (enforced gates)
680
+ /gaia-post-deploy → post-deploy health check
681
+ ```
682
+
683
+ ### Brownfield — Onboard an existing project
684
+
685
+ ```
686
+ # Onboarding (scans codebase, generates knowledge base)
687
+ /gaia-brownfield → deep project discovery (10 steps)
688
+ 1. Scan codebase → project-documentation.md
689
+ 2. API documentation (if APIs detected)
690
+ 3. UX assessment (if frontend detected)
691
+ 4. Event catalog (if messaging detected)
692
+ 5. Dependency map
693
+ 6. NFR assessment & baselines
694
+ 7. Performance test plan
695
+ 8. Gap-focused PRD (gaps only, not existing features)
696
+ 9. Architecture with as-is/target diagrams
697
+ 10. Epics/stories for gaps + developer knowledge base
698
+
699
+ # Readiness & Implementation (same as greenfield from here)
700
+ /gaia-trace → generate traceability matrix
701
+ /gaia-ci-setup → scaffold CI pipeline
702
+ /gaia-readiness-check → verify everything is ready (optional: adversarial review)
703
+ /gaia-sprint-plan → plan the first sprint
704
+ /gaia-dev-story → implement gap stories
705
+ /gaia-code-review → review the code
706
+ /gaia-qa-tests → generate tests
707
+ /gaia-security-review → security audit
622
708
  /gaia-deploy-checklist → pre-deploy verification
623
709
  /gaia-post-deploy → post-deploy health check
624
- /gaia-retro → sprint retrospective
625
710
  ```
626
711
 
627
- For small changes, skip the ceremony:
712
+ ### Quick Flow — Small changes, minimal ceremony
628
713
 
629
714
  ```
630
715
  /gaia-quick-spec → rapid tech spec
package/gaia-install.sh CHANGED
@@ -6,7 +6,7 @@ set -euo pipefail
6
6
  # Installs, updates, validates, and reports on GAIA installations.
7
7
  # ─────────────────────────────────────────────────────────────────────────────
8
8
 
9
- readonly VERSION="1.1.22"
9
+ readonly VERSION="1.4.0"
10
10
  readonly GITHUB_REPO="https://github.com/J-louage/Gaia-framework.git"
11
11
  readonly MANIFEST_REL="_gaia/_config/manifest.yaml"
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaia-framework",
3
- "version": "1.1.22",
3
+ "version": "1.4.0",
4
4
  "description": "GAIA — Generative Agile Intelligence Architecture installer",
5
5
  "bin": {
6
6
  "gaia-framework": "./bin/gaia-framework.js"