cfsa-antigravity 2.13.2 → 2.13.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfsa-antigravity",
3
- "version": "2.13.2",
3
+ "version": "2.13.3",
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,6 +1,6 @@
1
1
  # Kit Sync State
2
2
 
3
3
  upstream: https://github.com/RepairYourTech/cfsa-antigravity
4
- last_synced_commit: fa800ad9e35107aef8c6da0d2cc9161b379c71b2
5
- last_synced_at: 2026-03-20T01:43:15Z
6
- kit_version: 2.13.2
4
+ last_synced_commit: 474ea4346ac09791e0f6bc7a5ed771de79ee93f2
5
+ last_synced_at: 2026-03-20T14:04:21Z
6
+ kit_version: 2.13.3
@@ -19,9 +19,13 @@ Write all cross-layer findings to a `## Cross-Layer Consistency` section in the
19
19
 
20
20
  ## Document-to-Layer Mapping
21
21
 
22
+ > **MANDATORY**: EVERY file matching these patterns MUST be individually audited through the full 3a→3b→3c cycle. Do NOT skip documents because rubric dimensions can be "mapped" to synthesized files. Do NOT read only "key documents" or "representative samples." The audit scope is EVERY file listed — no exceptions, no optimizations, no shortcuts.
23
+
24
+ Use filesystem tools (`find_by_name`, `list_dir`) to discover ALL matching files. Write every discovered path to `audit-scope.md`.
25
+
22
26
  | Layer | Documents to load |
23
27
  |-------|-------------------|
24
- | Ideation | `docs/plans/ideation/ideation-index.md` + `ideation-cx.md` + all `*-index.md`, `*-cx.md`, and feature `.md` files recursively under `domains/` (and `surfaces/` for multi-product projects) |
28
+ | Ideation | Use filesystem tools to recursively list ALL `.md` files under `docs/plans/ideation/`. Include every `*-index.md`, `*-cx.md`, feature `.md`, and `meta/*.md` file. For multi-surface projects, scan `surfaces/` subdirectories too. Every file found is audited — no selection, no sampling. |
25
29
  | Architecture | `docs/plans/*-architecture-design.md`, `docs/plans/ENGINEERING-STANDARDS.md` |
26
30
  | IA | `docs/plans/ia/index.md` + each shard listed + `docs/plans/ia/deep-dives/*.md` (list directory; include all files present) |
27
31
  | BE | `docs/plans/be/index.md` + each spec listed |
@@ -40,20 +40,24 @@ Read `docs/audits/audit-scope.md` and look for a `## Gaps Fixed` section.
40
40
 
41
41
  ---
42
42
 
43
+ ## 2.5. Coverage Counter
44
+
45
+ Read `docs/audits/audit-scope.md`. Extract the `## Document Count` value and the full list from `## Documents to Audit`. State: **"This audit covers N documents. Every document will be processed through 3a→3b→3c. Documents processed: 0/N."**
46
+
47
+ ---
48
+
43
49
  ## 3a. Implementer Simulation
44
50
 
45
51
  Read .agent/skills/verification-before-completion/SKILL.md and follow its methodology.
46
52
 
47
- **CRITICAL ANTI-HALLUCINATION RULE**: You MUST NOT read all documents at once. You must process one document at a time through 3a 3b 3c before moving to the next document. Failure to follow this one-by-one sequence guarantees hallucinated citations and audit failure.
48
-
49
- *This is the most important step. It forces the agent to encounter the spec the way an implementer would, not the way a reviewer would.*
53
+ **CRITICAL**: You MUST NOT read all documents at once. Process one document at a time through 3a→3b→3c. Do NOT skip documents because they seem redundant, because rubric dimensions "map" to other files, or because you can "derive" their content from synthesized documents. EVERY document in the scope list gets the full 3a→3b→3c treatment. After each document, state: **"Documents processed: X/N."**
50
54
 
51
55
  For each document:
52
56
 
53
- 1. **Read** — Use a file reading tool to read the entire document end-to-end. Do not score yet.
54
- 2. **Stub** — Attempt to write a stub implementation of each feature/endpoint/component using only what's in the spec — no external context or prior project knowledge.
55
- 3. **Enumerate gaps** — List every decision you had to make that isn't explicitly specified: enum values, defaults, timeouts, error messages, retry counts, field types, HTTP status codes, validation rules, rate limit numbers, role permission lists, etc.
56
- 4. **Write unconditionally** — Write each such decision immediately to `docs/audits/[layer]-ambiguity-report.md` as a punch list item with severity ❌.
57
+ 1. **Read** — Read the entire document end-to-end. Do not score yet.
58
+ 2. **Stub** — Write a stub implementation using only what's in the spec.
59
+ 3. **Enumerate gaps** — List every unspecified decision: enum values, defaults, timeouts, error messages, retry counts, field types, HTTP status codes, validation rules, rate limit numbers, role permission lists, etc.
60
+ 4. **Write unconditionally** — Write each gap immediately to `docs/audits/[layer]-ambiguity-report.md` as a punch list item with severity ❌.
57
61
 
58
62
  These gaps are **unconditional** — the rubric in 3b cannot override them.
59
63
 
@@ -83,6 +87,14 @@ After scoring all dimensions for a document:
83
87
 
84
88
  ---
85
89
 
90
+ ## 3d. Coverage Completeness Gate
91
+
92
+ > **BLOCKING GATE — do not proceed until this passes.**
93
+
94
+ Compare documents processed (from 3a counter) against documents listed in `audit-scope.md`. If `processed < listed`, list the skipped documents and STOP. Do NOT proceed to Step 3.5 or Step 4 with incomplete coverage.
95
+
96
+ ---
97
+
86
98
  ## 3.5. Cross-Layer Consistency Check
87
99
 
88
100
  This step runs after all per-document scoring is complete, whenever the audit scope includes BE, FE, or `all`.
@@ -31,13 +31,27 @@ Ask the user:
31
31
  - `fe` — Audit FE specs only
32
32
  - `all` — Full cascade (Vision → Architecture → IA → BE → FE)
33
33
 
34
- ## 2. Load source documents
34
+ ## 2. Enumerate source documents
35
35
 
36
- Read `.agent/skills/pipeline-rubrics/references/scoring.md` for the document-to-layer mapping table. Load all documents for each layer being audited.
36
+ Read `.agent/skills/pipeline-rubrics/references/scoring.md` for the document-to-layer mapping table.
37
37
 
38
- ## 2.5. Persist audit scope
38
+ **MANDATORY filesystem discovery**: Use file system tools (`find_by_name`, `list_dir`) to recursively discover ALL files matching the layer's patterns from `scoring.md`. Do NOT build the document list from memory or from reading an index file — the filesystem is the source of truth.
39
39
 
40
- Write `docs/audits/audit-scope.md` with the determined scope and document list:
40
+ ## 2a. Document Enumeration Gate
41
+
42
+ > **BLOCKING GATE — do not proceed until this passes.**
43
+
44
+ 1. Count the total documents discovered by filesystem tools.
45
+ 2. State: **"Enumerated N documents for [layer] audit."**
46
+ 3. **Minimum counts** — if below these thresholds, re-scan:
47
+ - Ideation: count ALL `.md` files recursively under `docs/plans/ideation/` (expect 20+ for any real project)
48
+ - Architecture: ≥2 (`architecture-design.md` + `ENGINEERING-STANDARDS.md`)
49
+ - IA/BE/FE: ≥2 (index + at least one shard/spec)
50
+ 4. If re-scan still yields fewer than threshold, state why and proceed with the actual count.
51
+
52
+ ## 2b. Persist audit scope
53
+
54
+ Write `docs/audits/audit-scope.md` with the determined scope and the **complete** document list from Step 2a:
41
55
 
42
56
  ```markdown
43
57
  # Audit Scope
@@ -48,7 +62,10 @@ Write `docs/audits/audit-scope.md` with the determined scope and document list:
48
62
  [list of selected layers]
49
63
 
50
64
  ## Documents to Audit
51
- [for each layer, list the exact file paths that will be audited]
65
+ [for each layer, list EVERY file path discovered in Step 2a — no omissions]
66
+
67
+ ## Document Count
68
+ [layer]: [N] documents
52
69
 
53
70
  ## Rubric Files
54
71
  [for each layer being audited, list the exact path of the rubric file]
@@ -62,7 +79,7 @@ Write `docs/audits/audit-scope.md` with the determined scope and document list:
62
79
  in-progress
63
80
  ```
64
81
 
65
- (Only include the rubric file entries for the layers actually being audited — not all five every time. This mirrors the conditional behaviour already applied to `## Documents to Audit`.)
82
+ (Only include the rubric file entries for the layers actually being audited.)
66
83
 
67
84
  This file is read by `/audit-ambiguity-execute` as its prerequisite.
68
85