cfsa-antigravity 2.3.0 → 2.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
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Constraint-First Specification Architecture — production-grade from line one
4
4
 
5
- A pipeline that turns a raw idea into exhaustively specified, test-driven, production-quality code through progressive gates. Stack-agnostic. Agent-agnostic. Cross-platform. Every line of code is production-grade from the moment it's written.
5
+ A pipeline that turns a raw idea into exhaustively specified, test-driven, production-quality code through progressive gates. Stack-agnostic. Built for Antigravity on Linux/WSL. Every line of code is production-grade from the moment it's written.
6
6
 
7
7
  ## Quick Install
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfsa-antigravity",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "CFSA Pipeline — Constraint-First Specification Architecture for AI agents. Production-grade from line one.",
5
5
  "scripts": {
6
6
  "changeset": "changeset",
@@ -1,15 +1,6 @@
1
- <!-- This file is created and updated automatically by /sync-kit.
2
- Commit it to your project repo — it records which kit version
3
- the project is on and serves as the baseline for the next sync. -->
4
-
5
- > [!NOTE]
6
- > **`FIRST_SYNC_PENDING` values are placeholders.** They are populated automatically
7
- > when you run `/sync-kit` for the first time. Do not manually edit them — let the
8
- > sync command fill them in.
9
-
10
1
  # Kit Sync State
11
2
 
12
3
  upstream: https://github.com/RepairYourTech/cfsa-antigravity
13
- last_synced_commit: FIRST_SYNC_PENDING
14
- last_synced_at: FIRST_SYNC_PENDING
15
- kit_version: main
4
+ last_synced_commit: d5fb37b9e886719e436a6ca52bb9c94ab839acb6
5
+ last_synced_at: 2026-03-16T23:22:30Z
6
+ kit_version: 2.4.0
@@ -18,37 +18,37 @@ Pull improvements from the upstream [cfsa-antigravity](https://github.com/Repair
18
18
 
19
19
  Read `.agent/kit-sync.md` in the project root.
20
20
 
21
- - **File exists** → extract `last_synced_commit` and `upstream` values. Use **incremental mode** (Step 1a).
22
- - **File missing** → this is a **first sync**. Use **full diff mode** (Step 1b). The tracking file will be created in Step 9.
21
+ - **File exists** → extract `last_synced_commit`, `upstream`, and `kit_version` values. Proceed to Step 1.
22
+ - **File missing** → **HARD STOP**: "No sync tracking file found. This file is auto-generated during kit installation. To fix: run `npx cfsa-antigravity init --force` to reinstall the kit with sync tracking, or manually create `.agent/kit-sync.md` with the upstream URL and the commit hash of your last known kit version."
23
23
 
24
24
  ---
25
25
 
26
- ## 1. Identify what changed
26
+ ## 1. Fetch upstream and identify changes
27
27
 
28
28
  // turbo
29
29
 
30
- ### 1a. Incremental sync (commit-scoped)
30
+ ### 1a. Clone or fetch the upstream repo
31
31
 
32
- Run `git log <last_synced_commit>..HEAD --name-only` on the upstream to get only the changed files. Work only with those files in Steps 2–7.
32
+ To compare against the upstream, you MUST fetch the actual upstream repository. Use one of these approaches:
33
33
 
34
- If the command returns no files: report "No changes since last sync (commit `<hash>`)" and skip to Step 8.5.
34
+ 1. **Preferred shallow clone to /tmp** (fastest):
35
+ ```bash
36
+ git clone --depth=50 <upstream_url> /tmp/cfsa-upstream
37
+ cd /tmp/cfsa-upstream
38
+ ```
39
+ 2. **Alternative — GitHub MCP**: Use `list_commits` and `get_file_contents` from the `github-mcp-server` to compare files.
35
40
 
36
- ### 1b. First sync (full comparison)
41
+ ### 1b. Diff from last synced commit
37
42
 
38
- Compare the **entire upstream repo** against the project. Scan at minimum:
43
+ Using the cloned repo (or GitHub API), get the list of changed files since the last sync:
39
44
 
40
- | Upstream Path | What to Compare |
41
- |--------------|-----------------|
42
- | Root files | `AGENTS.md`, `GEMINI.md` |
43
- | `.agent/instructions/` | All 5 markdown files |
44
- | `.agent/rules/` | All 9 markdown files |
45
- | `.agent/workflows/` | All workflow files |
46
- | `.agent/skills/` | All skill directories (SKILL.md + sub-files) |
47
- | `.agent/skill-library/` | MANIFEST.md, README.md, subdirectories |
48
- | `.agent/progress/` | Directory structure |
49
- | `docs/` | README.md, kit-architecture.md, audits/, plans/ scaffolding (including `ideation/` folder structure) |
45
+ ```bash
46
+ git log <last_synced_commit>..HEAD --name-only --pretty=format:""
47
+ ```
48
+
49
+ If the command returns no files (or the API shows no commits after `last_synced_commit`): report "No changes since last sync (commit `<hash>`, version `<kit_version>`)" and skip to Step 8.5.
50
50
 
51
- Compare using SHA hashes or byte-level diff. Classify each file per Step 2.
51
+ Work only with the changed files in Steps 2–7.
52
52
 
53
53
  ---
54
54
 
@@ -228,15 +228,15 @@ Scan these files for any literal `{{` characters:
228
228
 
229
229
  ## 9. Update sync state
230
230
 
231
- Write or update `.agent/kit-sync.md`:
231
+ Read the upstream's `package.json` to get the current kit version. Write or update `.agent/kit-sync.md`:
232
232
 
233
233
  ```markdown
234
234
  # Kit Sync State
235
235
 
236
236
  upstream: https://github.com/RepairYourTech/cfsa-antigravity
237
- last_synced_commit: <current HEAD commit hash>
237
+ last_synced_commit: <current upstream HEAD commit hash>
238
238
  last_synced_at: <ISO 8601 timestamp>
239
- kit_version: main
239
+ kit_version: <version from upstream package.json, e.g. 2.3.1>
240
240
  ```
241
241
 
242
242
  This file is committed to the project repo — it records which kit version the project is on and serves as the baseline for the next sync.
@@ -122,18 +122,24 @@ Read `.agent/skills/session-continuity/protocols/ambiguity-gates.md` and run the
122
122
 
123
123
  ## 14. Request review and propose next steps
124
124
 
125
+ > [!CAUTION]
126
+ > **FORBIDDEN next steps from this workflow**: You may ONLY propose `/write-architecture-spec` (next shard) or `/write-be-spec` as the next step. Proposing `/plan-phase`, `/implement-slice`, or any workflow that comes after BE/FE specs is **strictly forbidden** from this point in the pipeline. The IA layer feeds into the BE and FE spec layers — those layers MUST be completed before planning or implementation can begin, regardless of project type (web app, CLI tool, bash script, API-only, etc.). Every project has backend contracts and interface specifications, even if the "frontend" is a terminal or a CLI `--help` output.
127
+
125
128
  You may only notify the user of completion if you have completed the Cross-Reference check, the Dependency Graph validation, and the Ambiguity gate.
126
129
 
127
130
  Use `notify_user` to present the completed IA shard for review. Your message MUST include:
128
131
  1. **The shard created** (link to the file)
129
132
  2. **Cross-reference verification** (confirmation that links are bidirectional)
130
133
  3. **Ambiguity Gate confirmation** (confirmation that no implementer would need to guess)
131
- 4. **The Pipeline State** (propose the next task from the options below)
134
+ 4. **The Pipeline State** (propose the next task from the **ONLY** permitted options below)
132
135
 
133
136
  Do NOT proceed to the next step until the user sends a message explicitly approving this output. Proposing next steps is not the same as receiving approval. Wait for explicit approval before continuing.
134
137
 
135
138
  Read `.agent/progress/spec-pipeline.md` to determine the pipeline state, then propose the appropriate next step:
136
139
 
137
140
  - **More skeleton shards remain** → "Next: Run `/write-architecture-spec` for shard [next-shard-number]"
138
- - **All IA shards complete** → "All IA shards complete and /audit-ambiguity ia has already run (mandatory Step 13 above). If it scored 0%, proceed to /write-be-spec. If it found gaps, resolve them and re-run /audit-ambiguity ia as a fresh invocation before proceeding."
141
+ - **All IA shards complete** → "All IA shards complete and /audit-ambiguity ia has already run (mandatory Step 13 above). If it scored 0%, proceed to `/write-be-spec`. If it found gaps, resolve them and re-run /audit-ambiguity ia as a fresh invocation before proceeding."
139
142
  - **Self-audit found unresolvable issues** → Present the issues for discussion before proposing next step
143
+
144
+ > [!IMPORTANT]
145
+ > **No other next steps are valid.** If you believe this project does not need BE or FE specs, you are wrong. Every project type maps to the pipeline's spec layers — CLI tools have command contracts (BE) and terminal output specs (FE), bash scripts have function contracts (BE) and usage/help specs (FE), API-only services have endpoint contracts (BE) and client SDK/docs specs (FE). The pipeline does not skip layers.
@@ -61,3 +61,10 @@ Read .agent/skills/code-review-pro/SKILL.md and apply its adversarial review dis
61
61
  - [ ] Access control covers all roles and all interaction types
62
62
  - [ ] Edge cases cover concurrent access, deletion cascades, and state conflicts
63
63
  - [ ] Cross-shard dependencies are bidirectional
64
+
65
+ ---
66
+
67
+ ## Post-Completion: Mandatory Next Step
68
+
69
+ > [!CAUTION]
70
+ > After completing all IA shards, the **only** valid next step is `/write-be-spec`. Do NOT propose `/plan-phase` or `/implement-slice` — those require completed BE and FE specs. This applies to ALL project types: web apps, CLI tools, bash scripts, APIs, desktop apps. No project skips the BE/FE spec layers.
@@ -90,10 +90,20 @@ If this BE spec introduces a technology not already in the project's tech stack:
90
90
 
91
91
  ## 14. Request review and propose next steps
92
92
 
93
+ > [!CAUTION]
94
+ > **FORBIDDEN next steps from this workflow**: You may ONLY propose `/write-be-spec` (next shard) or `/write-fe-spec` as the next step. Proposing `/plan-phase` or `/implement-slice` from this workflow is **strictly forbidden** — those require completed FE specs. This applies to ALL project types including CLI tools, bash scripts, and API-only services.
95
+
93
96
  Read .agent/skills/verification-before-completion/SKILL.md and follow its methodology.
94
97
 
95
98
  Use `notify_user` presenting:
96
99
  1. **Spec created** (link)
97
100
  2. **Cross-reference verification**
98
101
  3. **Ambiguity Gate confirmation**
99
- 4. **Pipeline State** — read `.agent/progress/spec-pipeline.md` and propose next step
102
+ 4. **Pipeline State** — read `.agent/progress/spec-pipeline.md` and propose the next step from the **ONLY** permitted options below:
103
+
104
+ - **More BE specs remain** → "Next: Run `/write-be-spec` for shard [next-shard-number]"
105
+ - **All BE specs complete** → "All BE specs complete and `/audit-ambiguity be` has already run (mandatory Step 12 above). If it scored 0%, proceed to `/write-fe-spec`. If it found gaps, resolve them and re-run `/audit-ambiguity be` before proceeding."
106
+ - **Self-audit found unresolvable issues** → Present the issues for discussion before proposing next step
107
+
108
+ > [!IMPORTANT]
109
+ > **No other next steps are valid.** `/plan-phase` requires both BE AND FE specs to be complete. After all BE specs pass audit, the mandatory next workflow is `/write-fe-spec`.
@@ -83,7 +83,14 @@ Use `notify_user` presenting:
83
83
  1. **Spec created** (link)
84
84
  2. **Cross-reference verification**
85
85
  3. **Ambiguity Gate confirmation**
86
- 4. **Pipeline State** — read `.agent/progress/spec-pipeline.md` and propose next step
86
+ 4. **Pipeline State** — read `.agent/progress/spec-pipeline.md` and propose the next step from the **ONLY** permitted options below:
87
+
88
+ - **More FE specs remain** → "Next: Run `/write-fe-spec` for shard [next-shard-number]"
89
+ - **All FE specs complete** → "All FE specs complete and `/audit-ambiguity fe` has already run (mandatory Step 11 above). If it scored 0% and the Navigation Completeness Check passes (Step 14 below), proceed to `/plan-phase`. If gaps remain, resolve them first."
90
+ - **Self-audit found unresolvable issues** → Present the issues for discussion before proposing next step
91
+
92
+ > [!IMPORTANT]
93
+ > `/plan-phase` is valid ONLY from this workflow, and ONLY when all FE specs show ✅, `/audit-ambiguity fe` scores 0%, and the Navigation Completeness Check (Step 14) passes.
87
94
 
88
95
  ## 14. Navigation Completeness Check
89
96