cfsa-antigravity 2.18.4 → 2.18.5
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/package.json +1 -1
- package/template/.agent/kit-sync.md +3 -3
- package/template/.agent/skills/session-continuity/protocols/08-spec-pipeline-update.md +12 -0
- package/template/.agent/workflows/write-architecture-spec-deepen.md +1 -1
- package/template/.agent/workflows/write-architecture-spec-design.md +27 -36
- package/template/.agent/workflows/write-architecture-spec.md +10 -0
- package/template/.agent/workflows/write-be-spec-classify.md +14 -1
- package/template/.agent/workflows/write-be-spec-write.md +1 -1
- package/template/.agent/workflows/write-be-spec.md +11 -0
- package/template/.agent/workflows/write-fe-spec-classify.md +18 -5
- package/template/.agent/workflows/write-fe-spec-write.md +1 -1
- package/template/.agent/workflows/write-fe-spec.md +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Kit Sync State
|
|
2
2
|
|
|
3
3
|
upstream: https://github.com/RepairYourTech/cfsa-antigravity
|
|
4
|
-
last_synced_commit:
|
|
5
|
-
last_synced_at: 2026-03-
|
|
6
|
-
kit_version: 2.18.
|
|
4
|
+
last_synced_commit: 0f3e0c17f1071bb01866336b115aae77704796f8
|
|
5
|
+
last_synced_at: 2026-03-27T04:02:24Z
|
|
6
|
+
kit_version: 2.18.5
|
|
@@ -41,3 +41,15 @@
|
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
5. **Report status** — log what was completed and what's next.
|
|
44
|
+
|
|
45
|
+
6. **Read-back verification** — immediately after updating the tracker:
|
|
46
|
+
|
|
47
|
+
(a) Read `.agent/progress/spec-pipeline.md` back.
|
|
48
|
+
(b) Locate the row for the shard that was just updated.
|
|
49
|
+
(c) Verify the column that was just marked shows `complete` (not `not-started`, not unchanged, not any other value).
|
|
50
|
+
(d) If the cell does NOT show `complete`:
|
|
51
|
+
- Log: `"Pipeline tracker write-back failed for shard [NN] [layer] column — cell still shows [current value]"`
|
|
52
|
+
- Retry the write once.
|
|
53
|
+
- Read back and re-verify.
|
|
54
|
+
- If second attempt fails → **STOP**: `"Unable to update spec-pipeline.md for shard [NN] [layer] after 2 attempts. Do not proceed — investigate before continuing."`
|
|
55
|
+
(e) On success: log `"Pipeline tracker verified: shard [NN] [layer] = complete"`
|
|
@@ -149,7 +149,7 @@ Read `.agent/skills/session-continuity/protocols/ambiguity-gates.md` and run the
|
|
|
149
149
|
|
|
150
150
|
## 13.5. Completion Gate (MANDATORY)
|
|
151
151
|
|
|
152
|
-
1.
|
|
152
|
+
1. **Verify pipeline tracker** — Read `.agent/progress/spec-pipeline.md` and confirm the IA column for this shard shows `complete`. If it does not → **STOP**: "Pipeline tracker was not updated in Step 11. Go back and run Protocol 08 now before proceeding."
|
|
153
153
|
2. Scan this conversation for memory-capture triggers (see rule: `memory-capture`):
|
|
154
154
|
- Patterns observed → write to `memory/patterns.md`
|
|
155
155
|
- Non-trivial decisions made → write to `memory/decisions.md`
|
|
@@ -22,7 +22,19 @@ Explore requirements, map all interactions, and define contracts, data models, a
|
|
|
22
22
|
|
|
23
23
|
**Prerequisite**: Skeleton IA shard must exist in `docs/plans/ia/`. If it does not, tell the user to run `/decompose-architecture` first.
|
|
24
24
|
|
|
25
|
-
## 0.
|
|
25
|
+
## 0. Pipeline State Check
|
|
26
|
+
|
|
27
|
+
1. Read `.agent/progress/spec-pipeline.md`.
|
|
28
|
+
- If the file does not exist → **STOP**: "No pipeline tracker found. Run `/decompose-architecture` first."
|
|
29
|
+
2. Identify all shards where the IA column = `not-started`.
|
|
30
|
+
- If none → **STOP**: "All IA shards are already complete. Next step: `/write-be-spec`."
|
|
31
|
+
3. Auto-select the lowest-numbered `not-started` shard.
|
|
32
|
+
4. Present: "Pipeline tracker shows **shard [NN — name]** is the next incomplete IA shard. Proceeding with this shard. Say 'override' to pick a different one."
|
|
33
|
+
5. Use the selected shard as the target for all subsequent steps.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 0.1. Map guard
|
|
26
38
|
|
|
27
39
|
Read the surface stack map from `.agent/instructions/tech-stack.md`. Verify that the following have filled values:
|
|
28
40
|
- **Databases** column (per-surface, any row)
|
|
@@ -33,7 +45,7 @@ If any are empty → **HARD STOP**: tell the user to run `/create-prd` first.
|
|
|
33
45
|
|
|
34
46
|
---
|
|
35
47
|
|
|
36
|
-
## 0.
|
|
48
|
+
## 0.6. Re-run check
|
|
37
49
|
|
|
38
50
|
Before loading skills, check whether the shard file at `docs/plans/ia/[shard-name].md` already has content beyond skeleton placeholders (look for filled-in sections vs empty `<!-- TODO -->` markers).
|
|
39
51
|
|
|
@@ -44,35 +56,23 @@ Before loading skills, check whether the shard file at `docs/plans/ia/[shard-nam
|
|
|
44
56
|
|
|
45
57
|
## 1. Explore requirements
|
|
46
58
|
|
|
47
|
-
### 1a. Read
|
|
59
|
+
### 1a. Read authoritative sources
|
|
48
60
|
|
|
49
|
-
|
|
61
|
+
Build a **reconciliation table** comparing sources. Ideation domain feature files are **primary source of truth** — architecture design is secondary. Use `ideation-index.md` Structure Map for domain folder path.
|
|
50
62
|
|
|
51
|
-
1.
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
2. The shard's `## Features` section (from `/decompose-architecture-structure`)
|
|
57
|
-
3. `docs/plans/ideation/ideation-index.md` — Must Have features for this domain
|
|
63
|
+
1. Ideation domain folder (path from Structure Map):
|
|
64
|
+
- `*-index.md` (children table + Role Matrix), each child feature `.md`, `*-cx.md`
|
|
65
|
+
- If sub-domain folders exist, recurse and aggregate all descendant feature files
|
|
66
|
+
2. Shard's `## Features` section
|
|
67
|
+
3. `docs/plans/ideation/ideation-index.md` — Must Have features
|
|
58
68
|
|
|
59
|
-
Read `.agent/skills/spec-writing/SKILL.md` and `.agent/skills/architecture-mapping/SKILL.md`. Follow the
|
|
69
|
+
Read `.agent/skills/spec-writing/SKILL.md` and `.agent/skills/architecture-mapping/SKILL.md`. Follow the Sub-Feature Reconciliation Protocol.
|
|
60
70
|
|
|
61
71
|
### 1b. Scope confirmation
|
|
62
72
|
|
|
63
|
-
Present
|
|
73
|
+
Present reconciled features with counts of added (`[N]`) and architecture-only (`[M]`) sub-features. Ask: "Does this match your intent? Any to add, remove, or re-scope?" **Wait for confirmation.** Update shard file immediately on changes.
|
|
64
74
|
|
|
65
|
-
|
|
66
|
-
> [bullet list of all sub-features, with `[Architecture-only]` markers]
|
|
67
|
-
>
|
|
68
|
-
> **[N] sub-features added from ideation domain tree** that were missing from the shard skeleton.
|
|
69
|
-
> **[M] sub-features marked `[Architecture-only]`** — not found in ideation domain tree, added during decomposition.
|
|
70
|
-
>
|
|
71
|
-
> "Does this feature list match your intent for this domain? Any sub-features to add, remove, or re-scope?"
|
|
72
|
-
|
|
73
|
-
**Wait for explicit user confirmation before proceeding.** If the user modifies the list, update the shard's `## Features` section in `docs/plans/ia/[shard-name].md` immediately.
|
|
74
|
-
|
|
75
|
-
**Post-reconciliation calibration check**: Count confirmed sub-features. If **≥ 10**, follow the **Sub-Feature Complexity Split Protocol** in `.agent/skills/architecture-mapping/SKILL.md` — present the split proposal, wait for approval, redirect to `/decompose-architecture-validate`. Do NOT proceed to Step 2 with an oversized shard. **After any split**: run `/remediate-shard-split` — do NOT restart spec writing until zero stale parent references remain.
|
|
75
|
+
**Post-reconciliation**: If **≥ 10** sub-features → follow Sub-Feature Complexity Split Protocol (`.agent/skills/architecture-mapping/SKILL.md`), redirect to `/decompose-architecture-validate`. **After any split**: run `/remediate-shard-split` before restarting.
|
|
76
76
|
|
|
77
77
|
If the sub-feature count is **< 10**, proceed directly to Step 1c.
|
|
78
78
|
|
|
@@ -161,20 +161,11 @@ For each event's listed consumers: verify consumer shard exists in `docs/plans/i
|
|
|
161
161
|
|
|
162
162
|
## 7. Document edge cases
|
|
163
163
|
|
|
164
|
-
Read
|
|
165
|
-
|
|
166
|
-
Read .agent/skills/adversarial-review/SKILL.md and follow its structured methodology for generating attack scenarios, abuse cases, race conditions, and security edge cases against this shard's interactions. Produce spec-level gap items for any identified risks.
|
|
167
|
-
|
|
168
|
-
Read each skill listed in `{{SECURITY_SKILLS}}` (comma-separated). For each skill directory name, read `.agent/skills/[skill]/SKILL.md` before proceeding.
|
|
169
|
-
For each skill in {{SECURITY_SKILLS}}, follow its attack surface methodology for edge case identification.
|
|
164
|
+
Read and follow `.agent/skills/resolve-ambiguity/SKILL.md` and `.agent/skills/adversarial-review/SKILL.md` (attack scenarios, abuse cases, race conditions). Read each `{{SECURITY_SKILLS}}` skill and apply its attack surface methodology.
|
|
170
165
|
|
|
171
|
-
|
|
172
|
-
- Concurrent access handling
|
|
173
|
-
- Deletion cascades
|
|
174
|
-
- State transition conflicts
|
|
175
|
-
- Empty/null states
|
|
166
|
+
Cover: rate limits/abuse, concurrent access, deletion cascades, state conflicts, empty/null states.
|
|
176
167
|
|
|
177
|
-
**Review questions**: "
|
|
168
|
+
**Review questions**: "Worst thing a malicious user could try?" / "Two users do the same thing simultaneously?" / "What happens when related data is deleted?"
|
|
178
169
|
|
|
179
170
|
## 7.5. Write deep dive files (if applicable)
|
|
180
171
|
|
|
@@ -39,6 +39,16 @@ Fill in a skeleton IA shard with full interaction details, data models, access c
|
|
|
39
39
|
|
|
40
40
|
## Orchestration
|
|
41
41
|
|
|
42
|
+
### Step 0 — Pipeline State Check
|
|
43
|
+
|
|
44
|
+
1. Read `.agent/progress/spec-pipeline.md`.
|
|
45
|
+
- If the file does not exist → **STOP**: "No pipeline tracker found. Run `/decompose-architecture` first."
|
|
46
|
+
2. Identify all shards where the IA column = `not-started`.
|
|
47
|
+
- If none → **STOP**: "All IA shards are already complete. Next step: `/write-be-spec`."
|
|
48
|
+
3. Auto-select the lowest-numbered `not-started` shard.
|
|
49
|
+
4. Present: "Pipeline tracker shows **shard [NN — name]** is the next incomplete IA shard. Proceeding with this shard. Say 'override' to pick a different one."
|
|
50
|
+
5. Pass the selected shard to Step A.
|
|
51
|
+
|
|
42
52
|
### Step A — Run `.agent/workflows/write-architecture-spec-design.md`
|
|
43
53
|
|
|
44
54
|
Uses the brainstorming skill to clarify scope, then systematically designs all sections: interaction maps, contract shapes, data models, access control, event schemas, and edge cases. Each section is presented to the user for discussion and refinement.
|
|
@@ -24,13 +24,26 @@ Identify the target IA shard, classify it, load skills, and read all source mate
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
+
## 0. Pipeline State Check
|
|
28
|
+
|
|
29
|
+
1. Read `.agent/progress/spec-pipeline.md`.
|
|
30
|
+
- If the file does not exist → **STOP**: "No pipeline tracker found. Run `/decompose-architecture` first."
|
|
31
|
+
2. Identify all shards where the BE column = `not-started` AND the IA column = `complete`.
|
|
32
|
+
- If no shards have IA `complete` → **STOP**: "IA layer not complete — run `/write-architecture-spec` first."
|
|
33
|
+
- If all eligible shards already have BE `complete` → **STOP**: "All BE specs are complete. Next step: `/write-fe-spec`."
|
|
34
|
+
3. Auto-select the lowest-numbered eligible shard.
|
|
35
|
+
4. Present: "Pipeline tracker shows **shard [NN — name]** is the next shard needing a BE spec. Proceeding. Say 'override' to pick a different one."
|
|
36
|
+
5. Use the selected shard as the target for all subsequent steps.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
27
40
|
## 1. Verify IA layer is complete, then identify the target shard
|
|
28
41
|
|
|
29
42
|
1. Read `docs/plans/ia/index.md`
|
|
30
43
|
2. Check every shard's status column
|
|
31
44
|
3. If any shard is not ✅ → **STOP**: list incomplete shards and redirect to `/write-architecture-spec`
|
|
32
45
|
|
|
33
|
-
Determine which IA shard to process. Read it in full before proceeding.
|
|
46
|
+
Determine which IA shard to process (using the shard selected in Step 0). Read it in full before proceeding.
|
|
34
47
|
|
|
35
48
|
## 2. Classify the shard
|
|
36
49
|
|
|
@@ -154,7 +154,7 @@ If `docs/plans/feature-ledger.md` exists, read `.agent/skills/prd-templates/refe
|
|
|
154
154
|
|
|
155
155
|
## 13.7. Completion Gate (MANDATORY)
|
|
156
156
|
|
|
157
|
-
1.
|
|
157
|
+
1. **Verify pipeline tracker** — Read `.agent/progress/spec-pipeline.md` and confirm the BE column for this shard shows `complete`. If it does not → **STOP**: "Pipeline tracker was not updated in Step 9. Go back and run Protocol 08 now before proceeding."
|
|
158
158
|
2. Scan this conversation for memory-capture triggers (see rule: `memory-capture`):
|
|
159
159
|
- Patterns observed → write to `memory/patterns.md`
|
|
160
160
|
- Non-trivial decisions made → write to `memory/decisions.md`
|
|
@@ -50,6 +50,17 @@ If a needed skill is missing, check if a matching entry exists in `.agent/skill-
|
|
|
50
50
|
|
|
51
51
|
## Orchestration
|
|
52
52
|
|
|
53
|
+
### Step 0 — Pipeline State Check
|
|
54
|
+
|
|
55
|
+
1. Read `.agent/progress/spec-pipeline.md`.
|
|
56
|
+
- If the file does not exist → **STOP**: "No pipeline tracker found. Run `/decompose-architecture` first."
|
|
57
|
+
2. Identify all shards where the BE column = `not-started` AND the IA column = `complete`.
|
|
58
|
+
- If no shards have IA `complete` → **STOP**: "IA layer not complete — run `/write-architecture-spec` first."
|
|
59
|
+
- If all eligible shards already have BE `complete` → **STOP**: "All BE specs are complete. Next step: `/write-fe-spec`."
|
|
60
|
+
3. Auto-select the lowest-numbered eligible shard.
|
|
61
|
+
4. Present: "Pipeline tracker shows **shard [NN — name]** is the next shard needing a BE spec. Proceeding. Say 'override' to pick a different one."
|
|
62
|
+
5. Pass the selected shard to Step A.
|
|
63
|
+
|
|
53
64
|
### Step A — Run `.agent/workflows/write-be-spec-classify.md`
|
|
54
65
|
|
|
55
66
|
Identifies the target IA shard, classifies it (feature domain / multi-domain / cross-cutting / structural reference / composite), loads the skill bundle, reads all source material (primary shard, cross-shard references, deep dives, testability section), and reads cross-cutting specs.
|
|
@@ -24,17 +24,30 @@ Identify the target FE spec, classify it, load skills, and read all source mater
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
-
## 0.
|
|
27
|
+
## 0. Pipeline State Check
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
1. Read `.agent/progress/spec-pipeline.md`.
|
|
30
|
+
- If the file does not exist → **STOP**: "No pipeline tracker found. Run `/decompose-architecture` first."
|
|
31
|
+
2. Identify all shards where the FE column = `not-started` AND the BE column = `complete`.
|
|
32
|
+
- If no shards have BE `complete` → **STOP**: "BE layer not complete — run `/write-be-spec` first."
|
|
33
|
+
- If all eligible shards already have FE `complete` → **STOP**: "All FE specs are complete. Next step: `/plan-phase`."
|
|
34
|
+
3. Auto-select the lowest-numbered eligible shard.
|
|
35
|
+
4. Present: "Pipeline tracker shows **shard [NN — name]** is the next shard needing an FE spec. Proceeding. Say 'override' to pick a different one."
|
|
36
|
+
5. Use the selected shard as the target for all subsequent steps.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 0.1. Placeholder guard
|
|
41
|
+
|
|
42
|
+
Before any skill reads, verify that the five placeholder values listed in `requires_placeholders` frontmatter have been filled by `/bootstrap-agents`. For each placeholder, check whether the literal characters `{{` still appear in the value. If **any** are unfilled, emit a **HARD STOP** and do not proceed to Step 0.6.
|
|
30
43
|
|
|
31
44
|
For the hard stop message format and recovery instructions, see `.agent/skills/prd-templates/references/placeholder-guard-template.md`. For placeholder-to-recovery mappings specific to this workflow, see `.agent/skills/session-continuity/protocols/10-placeholder-verification-gate.md`.
|
|
32
45
|
|
|
33
|
-
Only proceed to Step 0.
|
|
46
|
+
Only proceed to Step 0.6 when all five placeholders report no literal `{{` characters.
|
|
34
47
|
|
|
35
48
|
---
|
|
36
49
|
|
|
37
|
-
## 0.
|
|
50
|
+
## 0.6. Brand-guidelines prerequisite check
|
|
38
51
|
|
|
39
52
|
1. Read `.agent/skills/brand-guidelines/SKILL.md`.
|
|
40
53
|
2. Scan for any `{{PLACEHOLDER}}` values that are still unfilled. If any exist → stop and tell the user: _"Design direction hasn't been confirmed yet. Run `/create-prd` first to establish the design direction before writing FE specs."_
|
|
@@ -42,7 +55,7 @@ Only proceed to Step 0.5 when all five placeholders report no literal `{{` chara
|
|
|
42
55
|
|
|
43
56
|
---
|
|
44
57
|
|
|
45
|
-
## 0.
|
|
58
|
+
## 0.8. Design system prerequisite check
|
|
46
59
|
|
|
47
60
|
Read `.agent/skills/prd-templates/references/design-system-prerequisite-check.md` and follow its procedure. Extract all seven decision areas from `docs/plans/design-system.md` and run the fail-fast validation checks. If any check fails → stop and instruct the user to run `/create-prd-design-system`.
|
|
48
61
|
|
|
@@ -148,7 +148,7 @@ If `docs/plans/feature-ledger.md` exists, read `.agent/skills/prd-templates/refe
|
|
|
148
148
|
|
|
149
149
|
## 12.7. Completion Gate (MANDATORY)
|
|
150
150
|
|
|
151
|
-
1.
|
|
151
|
+
1. **Verify pipeline tracker** — Read `.agent/progress/spec-pipeline.md` and confirm the FE column for this shard shows `complete`. If it does not → **STOP**: "Pipeline tracker was not updated in Step 8. Go back and run Protocol 08 now before proceeding."
|
|
152
152
|
2. Scan this conversation for memory-capture triggers (see rule: `memory-capture`):
|
|
153
153
|
- Patterns observed → write to `memory/patterns.md`
|
|
154
154
|
- Non-trivial decisions made → write to `memory/decisions.md`
|
|
@@ -47,6 +47,17 @@ If a needed skill is missing, check if a matching entry exists in `.agent/skill-
|
|
|
47
47
|
|
|
48
48
|
## Orchestration
|
|
49
49
|
|
|
50
|
+
### Step 0 — Pipeline State Check
|
|
51
|
+
|
|
52
|
+
1. Read `.agent/progress/spec-pipeline.md`.
|
|
53
|
+
- If the file does not exist → **STOP**: "No pipeline tracker found. Run `/decompose-architecture` first."
|
|
54
|
+
2. Identify all shards where the FE column = `not-started` AND the BE column = `complete`.
|
|
55
|
+
- If no shards have BE `complete` → **STOP**: "BE layer not complete — run `/write-be-spec` first."
|
|
56
|
+
- If all eligible shards already have FE `complete` → **STOP**: "All FE specs are complete. Next step: `/plan-phase`."
|
|
57
|
+
3. Auto-select the lowest-numbered eligible shard.
|
|
58
|
+
4. Present: "Pipeline tracker shows **shard [NN — name]** is the next shard needing an FE spec. Proceeding. Say 'override' to pick a different one."
|
|
59
|
+
5. Pass the selected shard to Step A.
|
|
60
|
+
|
|
50
61
|
### Step A — Run `.agent/workflows/write-fe-spec-classify.md`
|
|
51
62
|
|
|
52
63
|
Identifies the target FE spec, classifies it (feature spec / cross-cutting), loads the skill bundle, reads all source documents (BE spec, IA shard, cross-shard references, deep dives with FE implications), and reads cross-cutting FE specs.
|