tally-sdk 0.1.0 → 0.2.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.
Files changed (45) hide show
  1. package/dist/src/hook.d.ts +6 -0
  2. package/dist/src/hook.d.ts.map +1 -0
  3. package/dist/src/hook.js +37 -0
  4. package/dist/src/hook.js.map +1 -0
  5. package/dist/src/index.d.ts +6 -0
  6. package/dist/src/index.d.ts.map +1 -0
  7. package/dist/src/index.js +22 -0
  8. package/dist/src/index.js.map +1 -0
  9. package/dist/src/middleware/core.d.ts +15 -0
  10. package/dist/src/middleware/core.d.ts.map +1 -0
  11. package/dist/src/middleware/core.js +20 -0
  12. package/dist/src/middleware/core.js.map +1 -0
  13. package/dist/src/middleware/express.d.ts +4 -0
  14. package/dist/src/middleware/express.d.ts.map +1 -0
  15. package/dist/src/middleware/express.js +26 -0
  16. package/dist/src/middleware/express.js.map +1 -0
  17. package/dist/src/store.d.ts +14 -0
  18. package/dist/src/store.d.ts.map +1 -0
  19. package/dist/src/store.js +84 -0
  20. package/dist/src/store.js.map +1 -0
  21. package/dist/src/types.d.ts +36 -0
  22. package/dist/src/types.d.ts.map +1 -0
  23. package/dist/src/types.js +2 -0
  24. package/dist/src/types.js.map +1 -0
  25. package/package.json +11 -5
  26. package/src/index.ts +2 -0
  27. package/src/middleware/core.ts +38 -0
  28. package/src/middleware/express.ts +32 -0
  29. package/.opencode/commands/opsx-apply.md +0 -152
  30. package/.opencode/commands/opsx-archive.md +0 -157
  31. package/.opencode/commands/opsx-explore.md +0 -169
  32. package/.opencode/commands/opsx-propose.md +0 -104
  33. package/.opencode/commands/opsx-sync.md +0 -140
  34. package/.opencode/skills/openspec-apply-change/SKILL.md +0 -159
  35. package/.opencode/skills/openspec-archive-change/SKILL.md +0 -117
  36. package/.opencode/skills/openspec-explore/SKILL.md +0 -287
  37. package/.opencode/skills/openspec-propose/SKILL.md +0 -111
  38. package/.opencode/skills/openspec-sync-specs/SKILL.md +0 -147
  39. package/docs/design-hook-store.md +0 -122
  40. package/docs/plan-hook-store.md +0 -752
  41. package/test/hook.test.ts +0 -87
  42. package/test/index.test.ts +0 -36
  43. package/test/integration.test.ts +0 -44
  44. package/test/store.test.ts +0 -88
  45. package/test/types.test.ts +0 -30
@@ -1,157 +0,0 @@
1
- ---
2
- description: Archive a completed change in the experimental workflow
3
- ---
4
-
5
- Archive a completed change in the experimental workflow.
6
-
7
- **Input**: Optionally specify a change name after `/opsx-archive` (e.g., `/opsx-archive add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
8
-
9
- **Steps**
10
-
11
- 1. **If no change name provided, prompt for selection**
12
-
13
- Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
14
-
15
- Show only active changes (not already archived).
16
- Include the schema used for each change if available.
17
-
18
- **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
19
-
20
- 2. **Check artifact completion status**
21
-
22
- Run `openspec status --change "<name>" --json` to check artifact completion.
23
-
24
- Parse the JSON to understand:
25
- - `schemaName`: The workflow being used
26
- - `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context
27
- - `artifacts`: List of artifacts with their status (`done` or other)
28
-
29
- If status reports `actionContext.mode: "workspace-planning"`, explain that workspace archive is not supported in this slice and STOP. Do not move workspace changes into repo-local archives or edit linked repos.
30
-
31
- **If any artifacts are not `done`:**
32
- - Display warning listing incomplete artifacts
33
- - Prompt user for confirmation to continue
34
- - Proceed if user confirms
35
-
36
- 3. **Check task completion status**
37
-
38
- Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
39
-
40
- Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
41
-
42
- **If incomplete tasks found:**
43
- - Display warning showing count of incomplete tasks
44
- - Prompt user for confirmation to continue
45
- - Proceed if user confirms
46
-
47
- **If no tasks file exists:** Proceed without task-related warning.
48
-
49
- 4. **Assess delta spec sync state**
50
-
51
- Use `artifactPaths.specs.existingOutputPaths` from status JSON to check for delta specs. If none exist, proceed without sync prompt.
52
-
53
- **If delta specs exist:**
54
- - Compare each delta spec with its corresponding main spec at `openspec/specs/<capability>/spec.md`
55
- - Determine what changes would be applied (adds, modifications, removals, renames)
56
- - Show a combined summary before prompting
57
-
58
- **Prompt options:**
59
- - If changes needed: "Sync now (recommended)", "Archive without syncing"
60
- - If already synced: "Archive now", "Sync anyway", "Cancel"
61
-
62
- If user chooses sync, use Task tool (subagent_type: "general-purpose", prompt: "Use Skill tool to invoke openspec-sync-specs for change '<name>'. Delta spec analysis: <include the analyzed delta spec summary>"). Proceed to archive regardless of choice.
63
-
64
- 5. **Perform the archive**
65
-
66
- Create an `archive` directory under `planningHome.changesDir` if it doesn't exist:
67
- ```bash
68
- mkdir -p "<planningHome.changesDir>/archive"
69
- ```
70
-
71
- Generate target name using current date: `YYYY-MM-DD-<change-name>`
72
-
73
- **Check if target already exists:**
74
- - If yes: Fail with error, suggest renaming existing archive or using different date
75
- - If no: Move `changeRoot` to the archive directory
76
-
77
- ```bash
78
- mv "<changeRoot>" "<planningHome.changesDir>/archive/YYYY-MM-DD-<name>"
79
- ```
80
-
81
- 6. **Display summary**
82
-
83
- Show archive completion summary including:
84
- - Change name
85
- - Schema that was used
86
- - Archive location
87
- - Spec sync status (synced / sync skipped / no delta specs)
88
- - Note about any warnings (incomplete artifacts/tasks)
89
-
90
- **Output On Success**
91
-
92
- ```
93
- ## Archive Complete
94
-
95
- **Change:** <change-name>
96
- **Schema:** <schema-name>
97
- **Archived to:** the archive path derived from `planningHome.changesDir`/YYYY-MM-DD-<name>/
98
- **Specs:** ✓ Synced to main specs
99
-
100
- All artifacts complete. All tasks complete.
101
- ```
102
-
103
- **Output On Success (No Delta Specs)**
104
-
105
- ```
106
- ## Archive Complete
107
-
108
- **Change:** <change-name>
109
- **Schema:** <schema-name>
110
- **Archived to:** the archive path derived from `planningHome.changesDir`/YYYY-MM-DD-<name>/
111
- **Specs:** No delta specs
112
-
113
- All artifacts complete. All tasks complete.
114
- ```
115
-
116
- **Output On Success With Warnings**
117
-
118
- ```
119
- ## Archive Complete (with warnings)
120
-
121
- **Change:** <change-name>
122
- **Schema:** <schema-name>
123
- **Archived to:** the archive path derived from `planningHome.changesDir`/YYYY-MM-DD-<name>/
124
- **Specs:** Sync skipped (user chose to skip)
125
-
126
- **Warnings:**
127
- - Archived with 2 incomplete artifacts
128
- - Archived with 3 incomplete tasks
129
- - Delta spec sync was skipped (user chose to skip)
130
-
131
- Review the archive if this was not intentional.
132
- ```
133
-
134
- **Output On Error (Archive Exists)**
135
-
136
- ```
137
- ## Archive Failed
138
-
139
- **Change:** <change-name>
140
- **Target:** the archive path derived from `planningHome.changesDir`/YYYY-MM-DD-<name>/
141
-
142
- Target archive directory already exists.
143
-
144
- **Options:**
145
- 1. Rename the existing archive
146
- 2. Delete the existing archive if it's a duplicate
147
- 3. Wait until a different date to archive
148
- ```
149
-
150
- **Guardrails**
151
- - Always prompt for change selection if not provided
152
- - Use artifact graph (openspec status --json) for completion checking
153
- - Don't block archive on warnings - just inform and confirm
154
- - Preserve .openspec.yaml when moving to archive (it moves with the directory)
155
- - Show clear summary of what happened
156
- - If sync is requested, use the Skill tool to invoke `openspec-sync-specs` (agent-driven)
157
- - If delta specs exist, always run the sync assessment and show the combined summary before prompting
@@ -1,169 +0,0 @@
1
- ---
2
- description: Enter explore mode - think through ideas, investigate problems, clarify requirements
3
- ---
4
-
5
- Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
6
-
7
- **IMPORTANT: Explore mode is for thinking, not implementing.** You may read files, search code, and investigate the codebase, but you must NEVER write code or implement features. If the user asks you to implement something, remind them to exit explore mode first and create a change proposal. You MAY create OpenSpec artifacts (proposals, designs, specs) if the user asks—that's capturing thinking, not implementing.
8
-
9
- **This is a stance, not a workflow.** There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
10
-
11
- **Input**: The argument after `/opsx-explore` is whatever the user wants to think about. Could be:
12
- - A vague idea: "real-time collaboration"
13
- - A specific problem: "the auth system is getting unwieldy"
14
- - A change name: "add-dark-mode" (to explore in context of that change)
15
- - A comparison: "postgres vs sqlite for this"
16
- - Nothing (just enter explore mode)
17
-
18
- ---
19
-
20
- ## The Stance
21
-
22
- - **Curious, not prescriptive** - Ask questions that emerge naturally, don't follow a script
23
- - **Open threads, not interrogations** - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
24
- - **Visual** - Use ASCII diagrams liberally when they'd help clarify thinking
25
- - **Adaptive** - Follow interesting threads, pivot when new information emerges
26
- - **Patient** - Don't rush to conclusions, let the shape of the problem emerge
27
- - **Grounded** - Explore the actual codebase when relevant, don't just theorize
28
-
29
- ---
30
-
31
- ## What You Might Do
32
-
33
- Depending on what the user brings, you might:
34
-
35
- **Explore the problem space**
36
- - Ask clarifying questions that emerge from what they said
37
- - Challenge assumptions
38
- - Reframe the problem
39
- - Find analogies
40
-
41
- **Investigate the codebase**
42
- - Map existing architecture relevant to the discussion
43
- - Find integration points
44
- - Identify patterns already in use
45
- - Surface hidden complexity
46
-
47
- **Compare options**
48
- - Brainstorm multiple approaches
49
- - Build comparison tables
50
- - Sketch tradeoffs
51
- - Recommend a path (if asked)
52
-
53
- **Visualize**
54
- ```
55
- ┌─────────────────────────────────────────┐
56
- │ Use ASCII diagrams liberally │
57
- ├─────────────────────────────────────────┤
58
- │ │
59
- │ ┌────────┐ ┌────────┐ │
60
- │ │ State │────────▶│ State │ │
61
- │ │ A │ │ B │ │
62
- │ └────────┘ └────────┘ │
63
- │ │
64
- │ System diagrams, state machines, │
65
- │ data flows, architecture sketches, │
66
- │ dependency graphs, comparison tables │
67
- │ │
68
- └─────────────────────────────────────────┘
69
- ```
70
-
71
- **Surface risks and unknowns**
72
- - Identify what could go wrong
73
- - Find gaps in understanding
74
- - Suggest spikes or investigations
75
-
76
- ---
77
-
78
- ## OpenSpec Awareness
79
-
80
- You have full context of the OpenSpec system. Use it naturally, don't force it.
81
-
82
- ### Check for context
83
-
84
- At the start, quickly check what exists:
85
- ```bash
86
- openspec list --json
87
- ```
88
-
89
- This tells you:
90
- - If there are active changes
91
- - Their names, schemas, and status
92
- - What the user might be working on
93
-
94
- If the user mentioned a specific change name, read its artifacts for context.
95
-
96
- ### When no change exists
97
-
98
- Think freely. When insights crystallize, you might offer:
99
-
100
- - "This feels solid enough to start a change. Want me to create a proposal?"
101
- - Or keep exploring - no pressure to formalize
102
-
103
- ### When a change exists
104
-
105
- If the user mentions a change or you detect one is relevant:
106
-
107
- 1. **Resolve and read existing artifacts for context**
108
- - Run `openspec status --change "<name>" --json`.
109
- - Use `changeRoot`, `artifactPaths`, and `actionContext` from the status JSON.
110
- - Read existing files from `artifactPaths.<artifact>.existingOutputPaths`.
111
-
112
- 2. **Reference them naturally in conversation**
113
- - "Your design mentions using Redis, but we just realized SQLite fits better..."
114
- - "The proposal scopes this to premium users, but we're now thinking everyone..."
115
-
116
- 3. **Offer to capture when decisions are made**
117
-
118
- | Insight Type | Where to Capture |
119
- |----------------------------|--------------------------------|
120
- | New requirement discovered | `specs/<capability>/spec.md` |
121
- | Requirement changed | `specs/<capability>/spec.md` |
122
- | Design decision made | `design.md` |
123
- | Scope changed | `proposal.md` |
124
- | New work identified | `tasks.md` |
125
- | Assumption invalidated | Relevant artifact |
126
-
127
- Example offers:
128
- - "That's a design decision. Capture it in design.md?"
129
- - "This is a new requirement. Add it to specs?"
130
- - "This changes scope. Update the proposal?"
131
-
132
- 4. **The user decides** - Offer and move on. Don't pressure. Don't auto-capture.
133
-
134
- ---
135
-
136
- ## What You Don't Have To Do
137
-
138
- - Follow a script
139
- - Ask the same questions every time
140
- - Produce a specific artifact
141
- - Reach a conclusion
142
- - Stay on topic if a tangent is valuable
143
- - Be brief (this is thinking time)
144
-
145
- ---
146
-
147
- ## Ending Discovery
148
-
149
- There's no required ending. Discovery might:
150
-
151
- - **Flow into a proposal**: "Ready to start? I can create a change proposal."
152
- - **Result in artifact updates**: "Updated design.md with these decisions"
153
- - **Just provide clarity**: User has what they need, moves on
154
- - **Continue later**: "We can pick this up anytime"
155
-
156
- When things crystallize, you might offer a summary - but it's optional. Sometimes the thinking IS the value.
157
-
158
- ---
159
-
160
- ## Guardrails
161
-
162
- - **Don't implement** - Never write code or implement features. Creating OpenSpec artifacts is fine, writing application code is not.
163
- - **Don't fake understanding** - If something is unclear, dig deeper
164
- - **Don't rush** - Discovery is thinking time, not task time
165
- - **Don't force structure** - Let patterns emerge naturally
166
- - **Don't auto-capture** - Offer to save insights, don't just do it
167
- - **Do visualize** - A good diagram is worth many paragraphs
168
- - **Do explore the codebase** - Ground discussions in reality
169
- - **Do question assumptions** - Including the user's and your own
@@ -1,104 +0,0 @@
1
- ---
2
- description: Propose a new change - create it and generate all artifacts in one step
3
- ---
4
-
5
- Propose a new change - create the change and generate all artifacts in one step.
6
-
7
- I'll create a change with artifacts:
8
- - proposal.md (what & why)
9
- - design.md (how)
10
- - tasks.md (implementation steps)
11
-
12
- When ready to implement, run /opsx-apply
13
-
14
- ---
15
-
16
- **Input**: The argument after `/opsx-propose` is the change name (kebab-case), OR a description of what the user wants to build.
17
-
18
- **Steps**
19
-
20
- 1. **If no input provided, ask what they want to build**
21
-
22
- Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
23
- > "What change do you want to work on? Describe what you want to build or fix."
24
-
25
- From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
26
-
27
- **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
28
-
29
- 2. **Create the change directory**
30
- ```bash
31
- openspec new change "<name>"
32
- ```
33
- This creates a scaffolded change in the planning home resolved by the CLI with `.openspec.yaml`.
34
-
35
- 3. **Get the artifact build order**
36
- ```bash
37
- openspec status --change "<name>" --json
38
- ```
39
- Parse the JSON to get:
40
- - `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
41
- - `artifacts`: list of all artifacts with their status and dependencies
42
- - `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context. Use these instead of assuming repo-local paths.
43
-
44
- 4. **Create artifacts in sequence until apply-ready**
45
-
46
- Use the **TodoWrite tool** to track progress through the artifacts.
47
-
48
- Loop through artifacts in dependency order (artifacts with no pending dependencies first):
49
-
50
- a. **For each artifact that is `ready` (dependencies satisfied)**:
51
- - Get instructions:
52
- ```bash
53
- openspec instructions <artifact-id> --change "<name>" --json
54
- ```
55
- - The instructions JSON includes:
56
- - `context`: Project background (constraints for you - do NOT include in output)
57
- - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
58
- - `template`: The structure to use for your output file
59
- - `instruction`: Schema-specific guidance for this artifact type
60
- - `resolvedOutputPath`: Resolved path or pattern to write the artifact
61
- - `dependencies`: Completed artifacts to read for context
62
- - Read any completed dependency files for context
63
- - Create the artifact file using `template` as the structure and write it to `resolvedOutputPath`
64
- - Apply `context` and `rules` as constraints - but do NOT copy them into the file
65
- - Show brief progress: "Created <artifact-id>"
66
-
67
- b. **Continue until all `applyRequires` artifacts are complete**
68
- - After creating each artifact, re-run `openspec status --change "<name>" --json`
69
- - Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
70
- - Stop when all `applyRequires` artifacts are done
71
-
72
- c. **If an artifact requires user input** (unclear context):
73
- - Use **AskUserQuestion tool** to clarify
74
- - Then continue with creation
75
-
76
- 5. **Show final status**
77
- ```bash
78
- openspec status --change "<name>"
79
- ```
80
-
81
- **Output**
82
-
83
- After completing all artifacts, summarize:
84
- - Change name and location
85
- - List of artifacts created with brief descriptions
86
- - What's ready: "All artifacts created! Ready for implementation."
87
- - Prompt: "Run `/opsx-apply` to start implementing."
88
-
89
- **Artifact Creation Guidelines**
90
-
91
- - Follow the `instruction` field from `openspec instructions` for each artifact type
92
- - The schema defines what each artifact should contain - follow it
93
- - Read dependency artifacts for context before creating new ones
94
- - Use `template` as the structure for your output file - fill in its sections
95
- - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
96
- - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
97
- - These guide what you write, but should never appear in the output
98
-
99
- **Guardrails**
100
- - Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
101
- - Always read dependency artifacts before creating a new one
102
- - If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
103
- - If a change with that name already exists, ask if user wants to continue it or create a new one
104
- - Verify each artifact file exists after writing before proceeding to next
@@ -1,140 +0,0 @@
1
- ---
2
- description: Sync delta specs from a change to main specs
3
- ---
4
-
5
- Sync delta specs from a change to main specs.
6
-
7
- This is an **agent-driven** operation - you will read delta specs and directly edit main specs to apply the changes. This allows intelligent merging (e.g., adding a scenario without copying the entire requirement).
8
-
9
- **Input**: Optionally specify a change name after `/opsx-sync` (e.g., `/opsx-sync add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
10
-
11
- **Steps**
12
-
13
- 1. **If no change name provided, prompt for selection**
14
-
15
- Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
16
-
17
- Show changes that have delta specs (under `specs/` directory).
18
-
19
- **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
20
-
21
- 2. **Resolve change context**
22
-
23
- Run:
24
- ```bash
25
- openspec status --change "<name>" --json
26
- ```
27
-
28
- If status reports `actionContext.mode: "workspace-planning"`, explain that workspace spec sync is not supported in this slice and STOP. Do not fall back to repo-local paths or edit linked repos.
29
-
30
- 3. **Find delta specs**
31
-
32
- Use `artifactPaths.specs.existingOutputPaths` from the status JSON as the list of delta spec files.
33
-
34
- Each delta spec file contains sections like:
35
- - `## ADDED Requirements` - New requirements to add
36
- - `## MODIFIED Requirements` - Changes to existing requirements
37
- - `## REMOVED Requirements` - Requirements to remove
38
- - `## RENAMED Requirements` - Requirements to rename (FROM:/TO: format)
39
-
40
- If no delta specs found, inform user and stop.
41
-
42
- 4. **For each delta spec, apply changes to main specs**
43
-
44
- For each repo-local capability delta spec path returned by the CLI:
45
-
46
- a. **Read the delta spec** to understand the intended changes
47
-
48
- b. **Read the main spec** at `openspec/specs/<capability>/spec.md` (may not exist yet)
49
-
50
- c. **Apply changes intelligently**:
51
-
52
- **ADDED Requirements:**
53
- - If requirement doesn't exist in main spec → add it
54
- - If requirement already exists → update it to match (treat as implicit MODIFIED)
55
-
56
- **MODIFIED Requirements:**
57
- - Find the requirement in main spec
58
- - Apply the changes - this can be:
59
- - Adding new scenarios (don't need to copy existing ones)
60
- - Modifying existing scenarios
61
- - Changing the requirement description
62
- - Preserve scenarios/content not mentioned in the delta
63
-
64
- **REMOVED Requirements:**
65
- - Remove the entire requirement block from main spec
66
-
67
- **RENAMED Requirements:**
68
- - Find the FROM requirement, rename to TO
69
-
70
- d. **Create new main spec** if capability doesn't exist yet:
71
- - Create `openspec/specs/<capability>/spec.md`
72
- - Add Purpose section (can be brief, mark as TBD)
73
- - Add Requirements section with the ADDED requirements
74
-
75
- 5. **Show summary**
76
-
77
- After applying all changes, summarize:
78
- - Which capabilities were updated
79
- - What changes were made (requirements added/modified/removed/renamed)
80
-
81
- **Delta Spec Format Reference**
82
-
83
- ```markdown
84
- ## ADDED Requirements
85
-
86
- ### Requirement: New Feature
87
- The system SHALL do something new.
88
-
89
- #### Scenario: Basic case
90
- - **WHEN** user does X
91
- - **THEN** system does Y
92
-
93
- ## MODIFIED Requirements
94
-
95
- ### Requirement: Existing Feature
96
- #### Scenario: New scenario to add
97
- - **WHEN** user does A
98
- - **THEN** system does B
99
-
100
- ## REMOVED Requirements
101
-
102
- ### Requirement: Deprecated Feature
103
-
104
- ## RENAMED Requirements
105
-
106
- - FROM: `### Requirement: Old Name`
107
- - TO: `### Requirement: New Name`
108
- ```
109
-
110
- **Key Principle: Intelligent Merging**
111
-
112
- Unlike programmatic merging, you can apply **partial updates**:
113
- - To add a scenario, just include that scenario under MODIFIED - don't copy existing scenarios
114
- - The delta represents *intent*, not a wholesale replacement
115
- - Use your judgment to merge changes sensibly
116
-
117
- **Output On Success**
118
-
119
- ```
120
- ## Specs Synced: <change-name>
121
-
122
- Updated main specs:
123
-
124
- **<capability-1>**:
125
- - Added requirement: "New Feature"
126
- - Modified requirement: "Existing Feature" (added 1 scenario)
127
-
128
- **<capability-2>**:
129
- - Created new spec file
130
- - Added requirement: "Another Feature"
131
-
132
- Main specs are now updated. The change remains active - archive when implementation is complete.
133
- ```
134
-
135
- **Guardrails**
136
- - Read both delta and main specs before making changes
137
- - Preserve existing content not mentioned in delta
138
- - If something is unclear, ask for clarification
139
- - Show what you're changing as you go
140
- - The operation should be idempotent - running twice should give same result