cfsa-antigravity 2.4.0 → 2.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfsa-antigravity",
3
- "version": "2.4.0",
3
+ "version": "2.5.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,6 +1,6 @@
1
1
  # Kit Sync State
2
2
 
3
3
  upstream: https://github.com/RepairYourTech/cfsa-antigravity
4
- last_synced_commit: d5fb37b9e886719e436a6ca52bb9c94ab839acb6
5
- last_synced_at: 2026-03-16T23:22:30Z
6
- kit_version: 2.4.0
4
+ last_synced_commit: dcc4be60e1815572706beb831a87daed6d7b0f14
5
+ last_synced_at: 2026-03-17T00:12:26Z
6
+ kit_version: 2.5.0
@@ -53,6 +53,8 @@ Document the agreed approach:
53
53
  4. **Spec layers** — IA → BE → FE pipeline
54
54
  5. **Quality gates** — What must pass before merge
55
55
 
56
+ Write the completed `## Development Methodology` section to `docs/plans/architecture-draft.md` immediately after user confirmation.
57
+
56
58
  ## 9. Phasing strategy
57
59
 
58
60
  Load the CI/CD skill(s) from the cross-cutting section per the skill loading protocol.
@@ -77,6 +79,8 @@ Each phase should have a rough timeline estimate and must pass the full validati
77
79
 
78
80
  Refine based on discussion before proceeding.
79
81
 
82
+ Write the completed `## Phasing Strategy` section to `docs/plans/architecture-draft.md` immediately after user confirmation.
83
+
80
84
  ## 9.5. Lock project directory structure
81
85
 
82
86
  Based on the locked tech stack, generate a canonical directory tree.
@@ -76,6 +76,8 @@ Refine based on discussion before proceeding.
76
76
 
77
77
  If the security model confirmed a specific security framework or compliance approach (e.g., crypto patterns, custom HSM approach), read `.agent/workflows/bootstrap-agents.md` and invoke `/bootstrap-agents SECURITY=[confirmed value]` to provision additional skills. Note: surface-triggered security skills (`owasp-web-security`, `csp-cors-headers`, `input-sanitization`, `api-security-checklist`, `dependency-auditing`, `desktop-security-sandboxing`) are provisioned automatically by bootstrap when surfaces are confirmed in `/create-prd-stack` — no manual fire needed for those.
78
78
 
79
+ Write the completed `## Security Model` section to `docs/plans/architecture-draft.md` immediately after user confirmation. Do not wait for later steps.
80
+
79
81
  ## 6.5. Attack Surface Review
80
82
 
81
83
  Read .agent/skills/security-scanning-security-hardening/SKILL.md and follow its Attack Surface Review Protocol for each surface confirmed in /create-prd-stack. Apply Universal checks to all projects, then surface-specific checks conditionally.
@@ -84,6 +86,8 @@ Read .agent/skills/security-scanning-security-hardening/SKILL.md and follow its
84
86
  - "Are there any attack vectors I've missed for your specific domain?"
85
87
  - "Do the OWASP mechanisms look correct, or are any of them actually handled differently?"
86
88
 
89
+ Write the completed `## Security — Attack Surface` section to `docs/plans/architecture-draft.md` immediately after user confirmation.
90
+
87
91
  ## 7. Integration points
88
92
 
89
93
  For each external service:
@@ -93,6 +97,8 @@ For each external service:
93
97
  3. **Fallback strategy** — Graceful degradation plan
94
98
  4. **Cost model** — Pricing tier, expected usage
95
99
 
100
+ Write the completed `## Integration Points` section to `docs/plans/architecture-draft.md` immediately after user confirmation.
101
+
96
102
  ## 7.5. Observability Architecture
97
103
 
98
104
  Read .agent/skills/logging-best-practices/SKILL.md and follow its Observability Architecture Interview — all 5 decisions (logging, tracing, alerting, dashboards, retention) must be confirmed. Fire bootstrap per the skill's instructions for each confirmed tool.
@@ -101,7 +107,7 @@ Read .agent/skills/logging-best-practices/SKILL.md and follow its Observability
101
107
  - "Are these logging levels and PII exclusions correct for your compliance requirements?"
102
108
  - "Are the alerting thresholds appropriate for your expected traffic?"
103
109
 
104
- After the security model (Step 6) is completed and confirmed, write the `## Security Model` section to `docs/plans/architecture-draft.md`. After the attack surface review (Step 6.5) is completed and confirmed, write the `## Security — Attack Surface` section to `docs/plans/architecture-draft.md`. After the integration points (Step 7) are completed and confirmed, write the `## Integration Points` section to `docs/plans/architecture-draft.md`. After the observability architecture (Step 7.5) is completed and confirmed, write the `## Observability Architecture` section to `docs/plans/architecture-draft.md`. Do not wait until the end — write each section as it is completed.
110
+ Write the completed `## Observability Architecture` section to `docs/plans/architecture-draft.md` immediately after user confirmation.
105
111
 
106
112
  ### Propose next step
107
113
 
@@ -82,6 +82,9 @@ Read `.agent/skills/brainstorming/SKILL.md` and use it to explore any remaining
82
82
 
83
83
  > **Authoring pattern for Steps 2–7**: After designing each section, (1) present it to the user with the targeted review questions listed below, (2) refine based on their feedback, (3) write the completed section to `docs/plans/ia/[shard-name].md` immediately — do not batch writes until Step 8.
84
84
 
85
+ > [!IMPORTANT]
86
+ > **Write-as-you-go is mandatory.** Each section (Steps 2–7) must be written to `docs/plans/ia/[shard-name].md` immediately after user confirmation. If the conversation truncates, all confirmed sections must survive on disk. Never hold confirmed content in-memory waiting for a later write step.
87
+
85
88
  ## 2. Map all interactions
86
89
 
87
90
  For each feature in the shard, document:
@@ -92,6 +95,8 @@ For each feature in the shard, document:
92
95
 
93
96
  **Review questions**: "Does this capture all the ways a user touches this domain?" / "Are there admin/system-initiated actions I'm missing?" / "What happens in each failure case?"
94
97
 
98
+ Write the completed `## Interactions` section to `docs/plans/ia/[shard-name].md` immediately after user confirmation.
99
+
95
100
  ## 3. Define contracts
96
101
 
97
102
  Read `.agent/skills/prd-templates/references/skill-loading-protocol.md` and load the API Design skill(s) from the cross-cutting section.
@@ -104,6 +109,8 @@ For each interaction, define the contract shape:
104
109
 
105
110
  **Review questions**: "Are there fields I'm missing from these requests/responses?" / "Are these error codes specific enough?"
106
111
 
112
+ Write the completed `## Contracts` section to `docs/plans/ia/[shard-name].md` immediately after user confirmation.
113
+
107
114
  ## 4. Design data models
108
115
 
109
116
  Read `.agent/skills/prd-templates/references/skill-loading-protocol.md` and load the Databases skill(s) for this shard's surface. Also load:
@@ -115,6 +122,8 @@ Define for each entity: tables/collections, fields, types, relationships, indexe
115
122
 
116
123
  **Review questions**: "Does this schema capture everything this domain needs to store?" / "Are the relationships and cardinalities correct?" / "Are there derived/computed fields I should account for?"
117
124
 
125
+ Write the completed `## Data Models` section to `docs/plans/ia/[shard-name].md` immediately after user confirmation.
126
+
118
127
  > **Decision recording**: For non-trivial data model decisions (schema approach, denormalization trade-offs, index strategy), read `.agent/skills/session-continuity/protocols/06-decision-analysis.md` and follow the **Decision Effect Analysis Protocol**.
119
128
 
120
129
  ## 5. Design access control
@@ -129,6 +138,8 @@ Read .agent/skills/security-scanning-security-hardening/SKILL.md and apply its a
129
138
 
130
139
  **Review questions**: "Can you think of a scenario where a user should be blocked that this matrix allows?" / "Can you think of a scenario where a user should be allowed that this matrix blocks?"
131
140
 
141
+ Write the completed `## Access Control` section to `docs/plans/ia/[shard-name].md` immediately after user confirmation.
142
+
132
143
  > **Decision recording**: For access control architecture decisions (role hierarchy, ownership model, escalation paths), read `.agent/skills/session-continuity/protocols/06-decision-analysis.md` and follow the **Decision Effect Analysis Protocol**. Record to `memory/decisions.md`.
133
144
 
134
145
  ## 5.5. Accessibility specifications
@@ -139,12 +150,16 @@ Read `.agent/skills/accessibility/references/ia-spec-checklist.md` and follow it
139
150
 
140
151
  **If surfaces are `api`, `cli`, or `extension` only:** Write `"Not applicable — no visual surfaces"` in the `## Accessibility` section.
141
152
 
153
+ Write the completed `## Accessibility` section to `docs/plans/ia/[shard-name].md` immediately after user confirmation.
154
+
142
155
  ## 6. Design event schemas (if applicable)
143
156
 
144
157
  - Event name, payload shape, emitter, consumers
145
158
  - Async vs sync processing
146
159
  - Retry semantics
147
160
 
161
+ Write the completed `## Event Schemas` section to `docs/plans/ia/[shard-name].md` immediately after user confirmation (if applicable).
162
+
148
163
  ## 7. Document edge cases
149
164
 
150
165
  Read .agent/skills/resolve-ambiguity/SKILL.md and follow its methodology.
@@ -154,6 +154,7 @@ Rules in `.agent/rules/` are **always active** — they apply to every task, eve
154
154
  3. **Contract-first** — `{{CONTRACT_LIBRARY}}` schema → failing test → implementation (never reverse)
155
155
  4. **TDD: failing test before code** — Red → Green → Refactor, every slice, every surface
156
156
  5. **Security-first** — PII never leaks, inputs validated, secrets server-side only
157
+ 6. **Write decisions to disk immediately** — Every confirmed decision is written to its output file the moment the user confirms it. Never batch decisions in-memory across a long conversation. If the conversation truncates, all confirmed work must survive on disk.
157
158
 
158
159
  ### Decision Tree
159
160
 
@@ -155,6 +155,7 @@ Rules in `.agent/rules/` are **always active** — they apply to every task, eve
155
155
  3. **Contract-first** — `{{CONTRACT_LIBRARY}}` schema → failing test → implementation (never reverse)
156
156
  4. **TDD: failing test before code** — Red → Green → Refactor, every slice, every surface
157
157
  5. **Security-first** — PII never leaks, inputs validated, secrets server-side only
158
+ 6. **Write decisions to disk immediately** — Every confirmed decision is written to its output file the moment the user confirms it. Never batch decisions in-memory across a long conversation. If the conversation truncates, all confirmed work must survive on disk.
158
159
 
159
160
  ### Decision Tree
160
161