cfsa-antigravity 2.1.0 → 2.2.1

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.
Files changed (46) hide show
  1. package/package.json +2 -2
  2. package/template/.agent/instructions/example.md +21 -0
  3. package/template/.agent/progress/.gitkeep +0 -0
  4. package/template/.agent/progress/memory/.gitkeep +0 -0
  5. package/template/.agent/progress/sessions/.gitkeep +0 -0
  6. package/template/.agent/skills/architecture-mapping/SKILL.md +8 -8
  7. package/template/.agent/skills/idea-extraction/SKILL.md +270 -279
  8. package/template/.agent/skills/pipeline-rubrics/references/ia-rubric.md +2 -2
  9. package/template/.agent/skills/pipeline-rubrics/references/scoring.md +1 -1
  10. package/template/.agent/skills/pipeline-rubrics/references/vision-rubric.md +2 -1
  11. package/template/.agent/skills/prd-templates/SKILL.md +11 -11
  12. package/template/.agent/skills/prd-templates/references/decomposition-templates.md +1 -1
  13. package/template/.agent/skills/prd-templates/references/engineering-standards-template.md +2 -0
  14. package/template/.agent/skills/prd-templates/references/fractal-cx-template.md +58 -0
  15. package/template/.agent/skills/prd-templates/references/fractal-feature-template.md +93 -0
  16. package/template/.agent/skills/prd-templates/references/fractal-node-index-template.md +55 -0
  17. package/template/.agent/skills/prd-templates/references/ideation-crosscut-template.md +26 -47
  18. package/template/.agent/skills/prd-templates/references/ideation-index-template.md +41 -49
  19. package/template/.agent/skills/prd-templates/references/slice-completion-gates.md +8 -0
  20. package/template/.agent/skills/prd-templates/references/vision-template.md +8 -8
  21. package/template/.agent/skills/resolve-ambiguity/SKILL.md +1 -1
  22. package/template/.agent/skills/spec-writing/SKILL.md +1 -1
  23. package/template/.agent/workflows/create-prd-architecture.md +7 -2
  24. package/template/.agent/workflows/create-prd-stack.md +1 -1
  25. package/template/.agent/workflows/create-prd.md +4 -3
  26. package/template/.agent/workflows/decompose-architecture-structure.md +2 -2
  27. package/template/.agent/workflows/decompose-architecture-validate.md +3 -3
  28. package/template/.agent/workflows/decompose-architecture.md +18 -3
  29. package/template/.agent/workflows/evolve-feature-classify.md +14 -6
  30. package/template/.agent/workflows/ideate-discover.md +71 -110
  31. package/template/.agent/workflows/ideate-extract.md +68 -104
  32. package/template/.agent/workflows/ideate-validate.md +24 -20
  33. package/template/.agent/workflows/ideate.md +7 -7
  34. package/template/.agent/workflows/implement-slice-tdd.md +25 -0
  35. package/template/.agent/workflows/remediate-pipeline-assess.md +2 -1
  36. package/template/.agent/workflows/resolve-ambiguity.md +2 -2
  37. package/template/.agent/workflows/validate-phase-quality.md +155 -0
  38. package/template/.agent/workflows/validate-phase-readiness.md +167 -0
  39. package/template/.agent/workflows/validate-phase.md +19 -154
  40. package/template/.agent/workflows/write-architecture-spec-design.md +8 -4
  41. package/template/AGENTS.md +5 -1
  42. package/template/GEMINI.md +2 -0
  43. package/template/docs/README.md +10 -10
  44. package/template/docs/kit-architecture.md +92 -25
  45. package/template/docs/plans/ideation/README.md +8 -3
  46. package/template/.agent/skills/prd-templates/references/ideation-domain-template.md +0 -61
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfsa-antigravity",
3
- "version": "2.1.0",
3
+ "version": "2.2.1",
4
4
  "description": "CFSA Pipeline — Constraint-First Specification Architecture for AI agents. Production-grade from line one.",
5
5
  "scripts": {
6
6
  "changeset": "changeset",
@@ -45,4 +45,4 @@
45
45
  "@commitlint/config-conventional": "^20.4.4",
46
46
  "husky": "^9.1.7"
47
47
  }
48
- }
48
+ }
@@ -0,0 +1,21 @@
1
+ ideation/
2
+ ├── surfaces/
3
+ │ ├── web/
4
+ │ │ ├── webdomain-01/ (top domain)
5
+ │ │ │ ├── 01.01-consumer-web/ (sub domain)
6
+ │ │ │ │ └── 01.01.01-consumer-web-{{feat01}}.md
7
+ │ │ │ │ └── 01.01.02-consumer-web-{{feat02}}.md
8
+ │ │ │ │ └── cunsumer-web-crosscut.md (sub domain CX)
9
+ │ │ │ │ └── consumer-web-index.md (sub domain index)
10
+ │ │ └── webdomain-02/ (top domain)
11
+ │ │ │ ├── 01.02-education-hub/ (sub domain)
12
+ │ │ │ │ └── 01.02.01-education-hub-{{feat01}}.md
13
+ │ │ │ │ └── 01.02.02-education-hub-{{feat02}}.md
14
+ │ │ │ │ └── education-hub-crosscut.md (sub domain CX)
15
+ │ │ │ │ └── education-hub-index.md (sub domain index)
16
+ │ │ ├── webdomain-cx.md (top domain cx)
17
+ │ │ ├── webdomain-index.md (top domain index)
18
+ │ ├── desktop/
19
+ │ │ ├── desktopdomain-01/ (top domain)
20
+ │ └── mobile/
21
+ │ ├── mobiledomain-01/ (top domain)
File without changes
File without changes
File without changes
@@ -102,13 +102,13 @@ Ideation sub-features:
102
102
  Split trigger: [none | review | mandatory-split]
103
103
  ```
104
104
 
105
- Read the relevant ideation domain files (use `ideation-index.md` Domain Documents table for correct paths — files may be in `domains/` or `surfaces/{name}/`) and the architecture design to build each record.
105
+ Read the relevant ideation domain folders (use `ideation-index.md` Structure Map for correct paths — folders may be under `domains/` or `surfaces/{name}/`). For each domain, read the `*-index.md` for the children table, then each child feature file for sub-feature details. Use the architecture design as secondary context to build each record.
106
106
 
107
107
  ### Split Trigger Rules
108
108
 
109
109
  Apply all three rules to every domain:
110
110
 
111
- 1. **80-line proxy** — If the ideation domain file for this domain exceeds ~80 lines of content (features, user stories, acceptance criteria combined), flag as `mandatory-split`.
111
+ 1. **Child-count proxy** — If the ideation domain folder contains ≥6 direct child feature files (or the fractal tree has depth ≥3 levels below this domain), flag as `mandatory-split`.
112
112
 
113
113
  2. **3-table rule** — If the domain's sub-features touch ≥3 independent database tables with no shared queries, flag as `mandatory-split`.
114
114
 
@@ -141,17 +141,17 @@ User must approve or reject each split before the table is locked.
141
141
 
142
142
  ### Purpose
143
143
 
144
- Run this protocol when beginning any architecture spec shard. The ideation domain files are the primary source of truth for sub-features — the architecture design is secondary context.
144
+ Run this protocol when beginning any architecture spec shard. The ideation domain's feature files (within the fractal tree) are the primary source of truth for sub-features — the architecture design is secondary context.
145
145
 
146
146
  ### Sources to Read
147
147
 
148
- 1. The relevant ideation domain file for this shard (path from `ideation-index.md` Domain Documents table)
148
+ 1. The relevant ideation domain folder for this shard (path from `ideation-index.md` Structure Map) — read the `*-index.md` then each child feature file
149
149
  2. The shard's `## Features` section
150
150
  3. `docs/plans/ideation/ideation-index.md` Must Have features for this domain
151
151
 
152
152
  ### Reconciliation Table
153
153
 
154
- | Sub-feature | Ideation domain file | Shard ## Features | Must Have? | Decision |
154
+ | Sub-feature | Ideation domain tree | Shard ## Features | Must Have? | Decision |
155
155
  |-------------|-------------|-------------------|------------|----------|
156
156
  | [name] | ✅ Listed | ✅ Listed | Yes/No | Keep |
157
157
  | [name] | ✅ Listed | ❌ Missing | Yes | **Add to shard immediately** |
@@ -160,9 +160,9 @@ Run this protocol when beginning any architecture spec shard. The ideation domai
160
160
 
161
161
  ### Mismatch Handling Rules
162
162
 
163
- 1. If a sub-feature appears in the ideation domain file but not in the shard's `## Features` → **add it to the shard's `## Features` section immediately** before proceeding. Do not wait for user confirmation to add ideation-sourced sub-features.
163
+ 1. If a sub-feature appears in the ideation domain tree but not in the shard's `## Features` → **add it to the shard's `## Features` section immediately** before proceeding. Do not wait for user confirmation to add ideation-sourced sub-features.
164
164
 
165
- 2. If a sub-feature appears in the shard's `## Features` but not in the ideation domain file → **keep it** but mark it with `[Architecture-only — not in ideation]` as an audit trail. These items need explicit user confirmation.
165
+ 2. If a sub-feature appears in the shard's `## Features` but not in the ideation domain tree → **keep it** but mark it with `[Architecture-only — not in ideation]` as an audit trail. These items need explicit user confirmation.
166
166
 
167
167
  ### Scope Confirmation Presentation Format
168
168
 
@@ -173,7 +173,7 @@ Present the reconciled scope to the user in the following format:
173
173
  > [bullet list of all sub-features, with `[Architecture-only]` markers where applicable]
174
174
  >
175
175
  > **[N] sub-features added from ideation** that were missing from the shard skeleton.
176
- > **[M] sub-features marked `[Architecture-only]`** — not found in ideation domain file, added during decomposition.
176
+ > **[M] sub-features marked `[Architecture-only]`** — not found in ideation domain tree, added during decomposition.
177
177
  >
178
178
  > "Does this feature list match your intent for this domain? Any sub-features to add, remove, or re-scope?"
179
179