magic-spec 1.5.71 → 1.5.159
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/CHANGELOG.md +183 -144
- package/LICENSE +201 -21
- package/README.md +326 -323
- package/installers/config.json +19 -2
- package/installers/node/index.js +72 -16
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,259 +5,298 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [1.5.
|
|
9
|
-
|
|
10
|
-
### Changed
|
|
11
|
-
|
|
12
|
-
- **Documentation**: Updated `README.md` and `docs/README.md` to include a mandatory recommendation to run `/magic.analyze` after updating the Magic Spec engine. This ensures that specifications and engine metadata remain synchronized after a core logic update.
|
|
8
|
+
## [1.5.159] - 2026-04-10
|
|
13
9
|
|
|
14
10
|
### Meta
|
|
15
11
|
|
|
16
|
-
- **
|
|
12
|
+
- **Engine Sync**: Performed project hygiene sync, updated documentation, and validated engine metadata (C14 parity).
|
|
13
|
+
|
|
14
|
+
## [1.5.159] - 2026-04-09
|
|
17
15
|
|
|
18
|
-
## [1.5.71] - 2026-03-26
|
|
19
16
|
|
|
20
17
|
### Added
|
|
21
18
|
|
|
22
|
-
- **
|
|
19
|
+
- **Agent Memory (STATE.md)**: New live memory system — a ≤100-line project state digest read first in every workflow session. Tracks current position, recent decisions, blockers, and blocking constraints. Template: `.magic/templates/state.md`. Utility: `.magic/scripts/update-state.js`.
|
|
20
|
+
- **Session Continuity (HANDOFF.json)**: Structured cross-session handoff mechanism. Template: `.magic/templates/handoff.json`. Enables zero-prompt resume from exact position with required reading lists and constraint acknowledgment.
|
|
21
|
+
- **Pause Workflow (`pause.md`)**: New `/magic.pause` workflow that snapshots session state into `HANDOFF.json` and sets `STATE.md` status to `Paused`. Supports automatic trigger at POOR context tier.
|
|
22
|
+
- **Phase Frontmatter**: YAML dependency metadata block in `phase.md` template (`requires`, `provides`, `key_files`, `patterns_established`, `subsystem`, `duration_minutes`). Enables machine-readable inter-phase dependency tracking.
|
|
23
|
+
- **Canonical References**: New mandatory `## Canonical References` section in `spec.md` template. Forces downstream agents to bind to specific stable file paths instead of relying on memory. Audit checks added to `analyze.md` and `spec.md` checklists.
|
|
24
|
+
- **Context Quality Tiers**: Adaptive agent behaviour guidance (PEAK/GOOD/DEGRADING/POOR) based on context window utilization. Added to `task.md` workflow header.
|
|
25
|
+
- **Resume Detection**: Integrated into `context-resolution.md` Post-Resolution chain (Priority 3-4). Automatically detects paused sessions and resumes from recorded position.
|
|
26
|
+
- **Pause Propagation**: `run.md` Logic Guard that auto-saves state when all phase tasks are blocked.
|
|
23
27
|
|
|
24
28
|
### Changed
|
|
25
29
|
|
|
26
|
-
-
|
|
30
|
+
- **`context-resolution.md`**: Extended Post-Resolution chain with STATE.md loading (Priority 3) and Resume Detection (Priority 4).
|
|
31
|
+
- **`init.md`**: STATE.md creation added to init steps, structure map, and completion checklist.
|
|
32
|
+
- **`run.md`**: Added Live Memory invariant (2.5), STATE Sync in Update step, Frontmatter Update in Phase Completion, and Pause Propagation guard.
|
|
33
|
+
- **`task.md`**: Added Context Quality Guidance, Phase Frontmatter generation instructions, State Init/Update step, and Dependency Read from frontmatter.
|
|
34
|
+
- **`analyze.md`**: Added `CANONICAL_MISSING` audit check for Stable specs without Canonical References section.
|
|
35
|
+
- **`spec.md`**: Added Canonical References validation to Task Completion Checklist — blocks Stable promotion if section is empty.
|
|
27
36
|
|
|
28
|
-
|
|
37
|
+
## [1.5.142] - 2026-04-09
|
|
29
38
|
|
|
30
|
-
|
|
39
|
+
### Changed
|
|
31
40
|
|
|
32
|
-
|
|
41
|
+
- **License**: Changed project license from MIT to Apache License 2.0.
|
|
33
42
|
|
|
34
|
-
|
|
43
|
+
## [1.5.141] - 2026-04-08
|
|
35
44
|
|
|
36
|
-
|
|
37
|
-
- **Mode Transition Protocol**: Defined explicit triggers to exit `Explore Mode` and enter `Dispatch Mode` automatically (3+ topics, confirmation words, or 2nd idea exchange in Trust Mode).
|
|
38
|
-
- **Non-Blocking Dispatch Notice**: Reframed "Notice of Intent" as a statement of action rather than a question to prevent infinite loops.
|
|
45
|
+
### Removed
|
|
39
46
|
|
|
40
|
-
|
|
47
|
+
- **CODEX.toml**: Completely removed `CODEX.toml` from the engine initialization scripts and placeholders as it is not required by any supported agent.
|
|
41
48
|
|
|
42
|
-
|
|
43
|
-
- **Workflow Wrapper**: Updated `.agents/workflows/magic.spec.md` to align with the new non-blocking exploration logic.
|
|
49
|
+
## [1.5.140] - 2026-04-08
|
|
44
50
|
|
|
45
|
-
###
|
|
51
|
+
### Fixed
|
|
46
52
|
|
|
47
|
-
- **
|
|
53
|
+
- **Engine Init Portability**: Refactored `setup_unix.sh` to use relative symlinks and removed `realpath -m` dependency, improving compatibility with macOS and older Linux/Unix systems.
|
|
54
|
+
- **Git Index Integrity**: Fixed a bug in `magic.dev:init` where development workflows (`magic.dev.*`) were incorrectly removed from the git index during setup.
|
|
48
55
|
|
|
49
|
-
## [1.5.
|
|
56
|
+
## [1.5.139] - 2026-04-07
|
|
50
57
|
|
|
51
58
|
### Added
|
|
52
59
|
|
|
53
|
-
- **
|
|
54
|
-
- **
|
|
55
|
-
- **
|
|
56
|
-
- **Engine Spec**: New `config-drift-guard.md` specification (Stable, L1) in engine workspace.
|
|
60
|
+
- **Universal Skill Wrappers**: Implemented `sync-skills.js` to automatically project workflows into universal agent skills (`SKILL.md`).
|
|
61
|
+
- **Engine Integration**: Integrated skill synchronization into `init.js` and `update-engine-meta.js` (C14). All workflow changes now automatically update the agent's tool surface.
|
|
62
|
+
- **Regression Testing**: Added `T190 — Skill Projection Parity` to the test suite.
|
|
57
63
|
|
|
58
|
-
## [1.5.
|
|
64
|
+
## [1.5.136] - 2026-04-07
|
|
59
65
|
|
|
60
66
|
### Added
|
|
61
67
|
|
|
62
|
-
- **
|
|
63
|
-
- **
|
|
68
|
+
- **Documentation Hygiene Pass**: Added a project-wide hygiene pass to `update-project-meta.js` that automatically fixes MD012 (multiple consecutive blank lines) in all core documentation files.
|
|
69
|
+
- **Robust Registry Logic**: Fixed a bug in `sync-docs.js` where the workspace registry extraction would grab trailing content (Document History) if the `## Meta` section was missing.
|
|
64
70
|
|
|
65
|
-
|
|
71
|
+
## [1.5.135] - 2026-04-07
|
|
66
72
|
|
|
67
|
-
|
|
68
|
-
- **Instruction Density**: Refined `.magic/simulate.md` (Context Bleed Warning) to remove vague qualifiers ("high-confidence" -> "strictly unbiased"), reaching a density score of 10/10.
|
|
69
|
-
- **Engine Integrity**: Optimized `generate-checksums.js` to exclude the `.checksums` file from its own mapping, preventing confusion and unstable hash values.
|
|
73
|
+
### Meta
|
|
70
74
|
|
|
71
|
-
|
|
75
|
+
- **Engine Sync**: Performed project hygiene sync, updated documentation, and validated hardlink integrity (C14).
|
|
72
76
|
|
|
73
|
-
|
|
74
|
-
- **Sandbox Cleanup**: Removed dev-only `simulate.md` from installer test sandbox.
|
|
75
|
-
- **RULES Template**: Added missing conventions C18-C23 to `init.js` RULES.md generator.
|
|
76
|
-
- **Python Installer**: Fixed `_resolve_package_version()` to read actual package version.
|
|
77
|
-
- **Engine Scripts**: Deduplicated `workspace.json` reads in `executor.js`.
|
|
78
|
-
- **History Cleanup**: Removed legacy `audit.md` and `docs.md` files from `.magic/history/`.
|
|
77
|
+
## [1.5.134] - 2026-04-07
|
|
79
78
|
|
|
80
|
-
|
|
79
|
+
### Added
|
|
81
80
|
|
|
82
|
-
|
|
81
|
+
- **Skill Projection Automation**: Integrated `sync-skills.js` directly into `update-engine-meta.js`. Engine core changes now automatically regenerate Skill wrappers for Claude and Gemini (C14).
|
|
82
|
+
- **Distribution Guide**: Created `docs/distribution.md` documenting the separation between User Bundle, Dev Instruments, and Internal Engine files.
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
- **CONTEXT.md**: Regenerated stale context file (was 9 days old).
|
|
84
|
+
### Changed
|
|
86
85
|
|
|
87
|
-
|
|
86
|
+
- **History Reorganization**: Cleaned up and organized the `history/` directory. History files now follow a standardized naming convention and are updated with a smart condensing logic for version ranges.
|
|
87
|
+
- **Agent Rules (AGENTS.md)**: Updated Project Anatomy to include the `skills/` compatibility layer and corrected the hardlink integrity check (now 5 files).
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
## [1.5.132] - 2026-04-04
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
- **
|
|
91
|
+
### Changed
|
|
92
|
+
|
|
93
|
+
- **Internationalization (En-En)**: Translated remaining Russian instructions in `docs/checksums.md` to English.
|
|
94
|
+
- **Engine Versioning**: Synchronized all manifest files with the base version `1.5.132` (C14).
|
|
95
|
+
|
|
96
|
+
## [1.5.131] - 2026-04-04
|
|
94
97
|
|
|
95
98
|
### Changed
|
|
96
99
|
|
|
97
|
-
- **
|
|
98
|
-
-
|
|
100
|
+
- **Internationalization (En-En)**: Fixed remaining Russian examples in `.magic/analyze.md` that were missed in the previous version sync.
|
|
101
|
+
- **Engine Versioning**: Synchronized all manifest files with the base version `1.5.131` (C14).
|
|
99
102
|
|
|
100
|
-
## [1.
|
|
103
|
+
## [1.5.130] - 2026-04-04
|
|
101
104
|
|
|
102
|
-
###
|
|
105
|
+
### Changed
|
|
106
|
+
|
|
107
|
+
- **Internationalization (En-En)**: Translated all remaining Russian examples and rule titles to English across the engine core (`.magic/`) to ensure a consistent, professional English-only codebase (Rule 3.1).
|
|
108
|
+
- Translated constitutional rule titles in `RULES.md` (e.g., `C12 — Quarantine Cascade`).
|
|
109
|
+
- Updated simulation test suite (`suite.md`) to reflect translated inputs and expected output strings.
|
|
110
|
+
|
|
111
|
+
### Meta
|
|
112
|
+
|
|
113
|
+
- **Automated Update**: Engine version bumped to `1.5.130`, history updated, and checksums regenerated (C14).
|
|
103
114
|
|
|
104
|
-
|
|
105
|
-
- **Multi-Workspace Support (C22)**: Enhanced `check-prerequisites.js` and `init.js` to support nested workspaces with inherited root rules.
|
|
106
|
-
- **Model-Aware History**: Updated engine history schema to include AI Model information, improving auditability of generated code.
|
|
115
|
+
## [1.5.129] - 2026-04-03
|
|
107
116
|
|
|
108
117
|
### Changed
|
|
109
118
|
|
|
110
|
-
- **
|
|
111
|
-
- **
|
|
112
|
-
|
|
119
|
+
- **Structural Harmonization**: Refactored `retrospective.md` to use header-based logic. This resolves `MD029` (ordered list prefix) and `MD007` (list indentation) warnings caused by complex content and personification blocks (C24) breaking list continuity. Fixed sequential numbering (1, 2, 3, 4, 5, 2 -> 1, 2, 3, 4, 5, 6, 7).
|
|
120
|
+
- **C24 Independent Analyst**: Upgraded the persona block in `retrospective.md` to a dedicated sub-heading for better visibility and structural compliance.
|
|
121
|
+
|
|
122
|
+
### Meta
|
|
123
|
+
|
|
124
|
+
- **Automated Update**: Engine version bumped to `1.5.129`, history updated, and checksums regenerated (C14).
|
|
125
|
+
|
|
126
|
+
## [1.5.128] - 2026-04-03
|
|
113
127
|
|
|
114
128
|
### Fixed
|
|
115
129
|
|
|
116
|
-
- **
|
|
117
|
-
- **
|
|
130
|
+
- **Markdown Lint (MD012)**: Fixed a recurring issue where `CONTRIBUTING.md` would be regenerated with multiple consecutive blank lines. Added `.trim()` to `{{workflows_table}}` placeholder in `sync-docs.js` to ensure proper spacing between the table and the following section.
|
|
131
|
+
- **Engine Versioning**: Synchronized engine version across all manifests and documentation (C14).
|
|
118
132
|
|
|
119
|
-
## [1.
|
|
133
|
+
## [1.5.126] - 2026-04-03
|
|
120
134
|
|
|
121
135
|
### Added
|
|
122
136
|
|
|
123
|
-
- **
|
|
137
|
+
- **C24 — Unified Role-Switching Gate**: Expanded the mandatory internal review system into a unified constitutional rule across all key SDD workflows (Spec, Task, Run, Retro, Analyze, Rule, Simulate).
|
|
138
|
+
- **Workflow Personas**: Integrated 7 specialized personas (Critic, Skeptic, QA, Analyst, Auditor, Reviewer) to eliminate cognitive bias and ensure rigorous evidence-based verification before any artifact is finalized.
|
|
139
|
+
- **Structural Harmonization**: Refactored workflow steps in `analyze.md`, `rule.md`, and `simulate.md` to use header-based logic, resolving deep-seated markdown lint errors caused by intervening non-list elements.
|
|
124
140
|
|
|
125
|
-
|
|
141
|
+
## [1.5.120] - 2026-04-03
|
|
126
142
|
|
|
127
|
-
|
|
128
|
-
- **History Auto-Heal**: Enhanced `executor.js` to automatically recreate the `.magic/history/` directory and missing history files if deleted.
|
|
143
|
+
### Added
|
|
129
144
|
|
|
130
|
-
|
|
145
|
+
- **C24 — Unified Role-Switching Gate**: Expanded the mandatory internal review system into a unified constitutional rule across all key SDD workflows. This forces the agent to adopt specialized personas to eliminate cognitive bias before artifacts are finalized:
|
|
146
|
+
- **Spec Workflow**: Persona **Project Critic** (L1 tech-neutrality, invariant completeness).
|
|
147
|
+
- **Task Workflow**: Persona **Planning Skeptic** (Optimism bias detection, dependency risk analysis).
|
|
148
|
+
- **Run Workflow**: Persona **QA Tester** (Invariant verification, boundary condition audit).
|
|
149
|
+
- **Workflow Integration**: Hardened `.magic/spec.md`, `.magic/task.md`, and `.magic/run.md` with explicit role-based checkpoints and updated completion checklists.
|
|
150
|
+
- **Rules Versioning**: Updated `RULES.md` to version 1.5.126 with the expanded C24 definition.
|
|
151
|
+
|
|
152
|
+
## [1.5.115] - 2026-04-02
|
|
153
|
+
|
|
154
|
+
### Added
|
|
131
155
|
|
|
132
|
-
- **
|
|
156
|
+
- **Installer `--dev` Flag**: Implemented a comprehensive development mode across Node.js and Python installers.
|
|
157
|
+
- Enabled installation/synchronization of development-specific instruments (simulation workflows, testing suites, engine scripts).
|
|
158
|
+
- Added `devSkills` registry to `installers/config.json` for canonical tracking of dev agent skills.
|
|
159
|
+
- Hardened update logic to ensure dev instruments are correctly synchronized when `--dev` is provided during an update.
|
|
133
160
|
|
|
134
|
-
## [1.
|
|
161
|
+
## [1.5.114] - 2026-04-02
|
|
135
162
|
|
|
136
163
|
### Changed
|
|
137
164
|
|
|
138
|
-
- **
|
|
139
|
-
- **
|
|
165
|
+
- **Core Invariant #2 (Prohibitions)** in `spec.md`: Refined the "No code in specs" rule to explicitly permit **Technical Contracts** (interfaces, types, API schemas) and **Reference Snippets** (marked as `[REFERENCE]`). This ensures architectural precision while maintaining the prohibition on functional implementation code before the `run` phase.
|
|
166
|
+
- **Task Completion Checklist**: Updated to reflect the permission of contracts and references in specifications.
|
|
140
167
|
|
|
141
168
|
### Meta
|
|
142
169
|
|
|
143
|
-
- **Automated Update**:
|
|
170
|
+
- **Automated Update**: Engine version bumped to `1.5.114`, history updated, and checksums regenerated (C14).
|
|
144
171
|
|
|
145
|
-
## [1.
|
|
172
|
+
## [1.5.112] - 2026-04-02
|
|
146
173
|
|
|
147
174
|
### Added
|
|
148
175
|
|
|
149
|
-
- **
|
|
150
|
-
- **
|
|
151
|
-
- **
|
|
152
|
-
|
|
153
|
-
### Changed
|
|
154
|
-
|
|
155
|
-
- **Installer Configuration**: Optimized `installers/config.json` to exclude history files from distribution and prioritize Node.js scripts.
|
|
156
|
-
- **Engine Security**: `generate-checksums.js` and `executor.js` now explicitly skip history files to prevent non-functional changes from triggering integrity warnings.
|
|
157
|
-
- **Template System**: `init.js` now automatically injects the new C14 protocol into target project constitution files (`RULES.md`).
|
|
176
|
+
- **Anti-Fabrication Rule (Invariant 6)** in `simulate.md`: New Core Invariant that legitimizes `0 rough edges` as a valid outcome and mandates evidence-linked claims (file, line, verbatim quote, verification command) for every finding. Findings without evidence are automatically INVALID.
|
|
177
|
+
- **Pre-flight Hard Gate** in `simulate.md`: Upgraded Pre-flight from "recommended" to a non-negotiable blocking HALT. Simulations without recorded `check-prerequisites` output are INVALID.
|
|
178
|
+
- **Read-Before-Claim Gate** in `simulate.md`: New mandatory Grounding Phase requiring all target workflow files to be read (with line counts recorded) before any analysis begins. Claims about unread files are automatically INVALID.
|
|
179
|
+
- **Regression Tests (T185–T189)**: 5 new scenarios covering Explore Mode write isolation (T185), Pre-flight Hard Gate enforcement (T186), Evidence-Linked Claims validation (T187), Null-Result Acceptance (T188), and Read-Before-Claim Gate (T189).
|
|
158
180
|
|
|
159
181
|
### Fixed
|
|
160
182
|
|
|
161
|
-
- **
|
|
162
|
-
- **
|
|
183
|
+
- **Zero-Prompt Parity**: Aligned `init.md` and `analyze.md` Core Invariant #1 with the canonical cascade formula used by all other workflow files, eliminating sync risk from divergent wording.
|
|
184
|
+
- **Script History Leak**: Fixed `executor.js` Auto-Detect creating spurious history files for scripts in `scripts/` directory (e.g., `sync-skills.md`). Scripts are now tracked via checksums but inherit the `--workflow` flag instead of getting standalone history entries.
|
|
185
|
+
- **Orphan Cleanup**: Removed `history/sync-skills.md` — a phantom artifact created by the above bug.
|
|
163
186
|
|
|
164
|
-
|
|
187
|
+
### Meta
|
|
165
188
|
|
|
166
|
-
|
|
189
|
+
- **Automated Update**: Engine version bumped to `1.5.112`, history updated, and checksums regenerated (C14).
|
|
167
190
|
|
|
168
|
-
|
|
169
|
-
- **Smart Update Conflict Resolution**: When users manually modify `.cursor/rules/*` wrapper files in their project, the `--update` command now detects the modifications. Users can intelligently choose to skip updates for specific conflicting adapter files, preserving their changes while updating the core `.magic` engine logic.
|
|
191
|
+
## [1.5.105] - 2026-03-31
|
|
170
192
|
|
|
171
193
|
### Fixed
|
|
172
194
|
|
|
173
|
-
- **
|
|
174
|
-
- **
|
|
195
|
+
- **Engine History**: Resolved a ReferenceError in `executor.js` where `automatedMsg` was used before being defined.
|
|
196
|
+
- **Collapsing Logic**: Improved the history collapsing mechanism to correctly merge both automated and custom messages into compact version ranges.
|
|
197
|
+
|
|
198
|
+
### Meta
|
|
199
|
+
|
|
200
|
+
- **Automated Update**: Engine version bumped to `1.5.104`, history entries consolidated, and checksums regenerated.
|
|
175
201
|
|
|
176
|
-
## [1.
|
|
202
|
+
## [1.5.72] - 2026-03-30
|
|
177
203
|
|
|
178
204
|
### Fixed
|
|
179
205
|
|
|
180
|
-
- **
|
|
206
|
+
- **AI Hallucinations**: Rephrased the directive `auto-run .magic/init.md` to `silently execute .magic/init.md (do not prompt user)` across all engine workflows. This prevents intelligent agents from incorrectly proposing the internal `.magic/init.md` script as a user-facing `/magic.init` slash command.
|
|
181
207
|
|
|
182
|
-
|
|
208
|
+
### Meta
|
|
183
209
|
|
|
184
|
-
|
|
210
|
+
- **Automated Update**: Engine version bumped to `1.5.72`, history updated, and checksums regenerated (C14).
|
|
185
211
|
|
|
186
|
-
|
|
187
|
-
- **Manual Rename Rescue** in `spec.md`: Protocol to globally update references (INDEX, PLAN, TASKS) when a specification file is moved/renamed, preserving task progress.
|
|
188
|
-
- **Regression Tests (T48–T51)**: Added coverage for Engine Integrity guards, Analysis Depth Control, and Smart Sync mechanisms.
|
|
212
|
+
## [1.5.70] - 2026-03-30
|
|
189
213
|
|
|
190
214
|
### Changed
|
|
191
215
|
|
|
192
|
-
- **
|
|
216
|
+
- **Documentation**: Updated `README.md` and `docs/README.md` to include a mandatory recommendation to run `/magic.analyze` after updating the Magic Spec engine. This ensures that specifications and engine metadata remain synchronized after a core logic update.
|
|
193
217
|
|
|
194
|
-
|
|
218
|
+
### Meta
|
|
219
|
+
|
|
220
|
+
- **Automated Update**: Engine version bumped to `1.5.70`, history updated, and checksums regenerated (C14).
|
|
221
|
+
|
|
222
|
+
## [1.5.132] - 2026-03-26
|
|
195
223
|
|
|
196
224
|
### Added
|
|
197
225
|
|
|
198
|
-
- **
|
|
199
|
-
- **Bootstrapping Exemption**: Special rules added to bypass standard Draft/RFC phases and create "Stable" specs directly when adopting existing working code into the SDD system.
|
|
200
|
-
- **Improv Mode (Live Simulation)** in `simulate.md`: Added ability for the simulation workflow to synthesize "crisis scenarios" (e.g., INDEX.md desync) and perform full SDK lifecycle stress tests end-to-end on its own, functioning as a fallback if the static test suite is missing.
|
|
226
|
+
- **Gitignore Safety (Invariant 8)** in `analyze.md`: The agent now MUST scan and apply `.gitignore` patterns before any project scan or architecture inference. This prevents `node_modules`, `dist`, `.venv`, and other build artifacts from leaking into the analysis reports or coverage checks.
|
|
201
227
|
|
|
202
228
|
### Changed
|
|
203
229
|
|
|
204
|
-
-
|
|
230
|
+
- **Stack & Structure**: Refined the initial scan step to build the high-level project map only *after* applying gitignore filters.
|
|
231
|
+
|
|
232
|
+
### Meta
|
|
205
233
|
|
|
206
|
-
|
|
234
|
+
- **Automated Update**: Engine version bumped to `1.5.132`, history updated, and checksums regenerated (C14).
|
|
235
|
+
|
|
236
|
+
## [1.5.50] - 2026-03-26
|
|
207
237
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
- **
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
- `tasks.md` — TASKS.md + phase-{n}.md Templates (from `task.md`)
|
|
214
|
-
- `retrospective.md` — RETROSPECTIVE.md Template (from `retrospective.md`)
|
|
238
|
+
### Added
|
|
239
|
+
|
|
240
|
+
- **Anti-Stall Mechanism (Invariant 12)**: Solved the "AI holds specs in mind" issue (reported by user). The agent is now forced to write a `Draft` spec if it asks more than one clarifying question without file creation. Added `<!-- TBD -->` inline markers for ambiguous sections.
|
|
241
|
+
- **Mode Transition Protocol**: Defined explicit triggers to exit `Explore Mode` and enter `Dispatch Mode` automatically (3+ topics, confirmation words, or 2nd idea exchange in Trust Mode).
|
|
242
|
+
- **Non-Blocking Dispatch Notice**: Reframed "Notice of Intent" as a statement of action rather than a question to prevent infinite loops.
|
|
215
243
|
|
|
216
244
|
### Changed
|
|
217
245
|
|
|
218
|
-
- **
|
|
219
|
-
- **
|
|
220
|
-
- `spec.md`: Intra-input self-contradiction guard, Deprecation Cascade (scan Related Specs for stale refs)
|
|
221
|
-
- `task.md`: Circular Dependency Guard, Phantom Done-task preservation (Archive not Cancel), Deprecated Done-task preservation, Convention Sync wording fix
|
|
222
|
-
- `run.md`: Mode Guard — HALT if execution mode not in RULES.md §7
|
|
223
|
-
- `rule.md`: Duplication Guard, convention-not-found handler, Workflow Dependency Check in Remove Impact Analysis
|
|
224
|
-
- `simulate.md`: Checksums mismatch upgraded to HALT, Checksum Rule (generate after approval only)
|
|
225
|
-
- `onboard.md`: Production collision HALT with backup/cancel, re-entry checks production PLAN.md
|
|
226
|
-
- `init.md`: Expanded post-init verification to all 5 artifacts, Maintainer Note for hardcoded RULES.md sync
|
|
246
|
+
- **Analysis Mode Scope**: Strictly limited the "do not modify specs/registry" prohibition to `Project Analysis Delegation` mode, allowing normal `Dispatch` to proceed without friction.
|
|
247
|
+
- **Workflow Wrapper**: Updated `.agents/workflows/magic.spec.md` to align with the new non-blocking exploration logic.
|
|
227
248
|
|
|
228
|
-
###
|
|
249
|
+
### Meta
|
|
250
|
+
|
|
251
|
+
- **Automated Update**: Engine version bumped to `1.5.50`, history updated, and checksums regenerated (C14).
|
|
252
|
+
|
|
253
|
+
## [1.5.49] - 2026-03-25
|
|
229
254
|
|
|
230
|
-
|
|
255
|
+
### Added
|
|
231
256
|
|
|
232
|
-
|
|
257
|
+
- **Config Drift Guard**: `check-prerequisites` now detects uncommitted manual changes to `RULES.md` via `git diff` and emits a non-blocking `CONFIG_DRIFT` advisory warning. Supports workspace-specific `RULES.md` per C22. Gracefully skips when git is unavailable.
|
|
258
|
+
- **Init Workflow**: Added Config Drift Advisory sub-step to pre-flight check (show diff / proceed / restore options).
|
|
259
|
+
- **Test Suite**: Added cognitive tests T168-T170 for config drift detection (drift present, no git, workspace C22). Suite version bumped to 1.9.51.
|
|
260
|
+
- **Engine Spec**: New `config-drift-guard.md` specification (Stable, L1) in engine workspace.
|
|
261
|
+
|
|
262
|
+
## [1.5.48] - 2026-03-24
|
|
233
263
|
|
|
234
264
|
### Added
|
|
235
265
|
|
|
236
|
-
- **
|
|
237
|
-
- **
|
|
238
|
-
- **Two-level automatic Changelog generation** (by accumulating `Changes` blocks within tasks).
|
|
239
|
-
- **Added new CLI commands:** `info`, `--check`, `--list-envs`, and `--eject`.
|
|
240
|
-
- **Introduced core version tracking** within the project via the `.magic/.version` file.
|
|
266
|
+
- **Publish Workflow**: Restored `.agents/workflows/publish.md` for engine maintenance and registry publishing.
|
|
267
|
+
- **History Tracking**: Initialized history for `magic.analyze` and `magic.dev.simulate` wrappers to ensure full auditability.
|
|
241
268
|
|
|
242
269
|
### Changed
|
|
243
270
|
|
|
244
|
-
- **
|
|
245
|
-
- **
|
|
246
|
-
- **
|
|
247
|
-
|
|
248
|
-
|
|
271
|
+
- **Version Synchronization**: Unified project version to `1.5.132` across all manifests (`package.json`, `pyproject.toml`, and installer init files) and the `.magic/.version` engine core.
|
|
272
|
+
- **Instruction Density**: Refined `.magic/simulate.md` (Context Bleed Warning) to remove vague qualifiers ("high-confidence" -> "strictly unbiased"), reaching a density score of 10/10.
|
|
273
|
+
- **Engine Integrity**: Optimized `generate-checksums.js` to exclude the `.checksums` file from its own mapping, preventing confusion and unstable hash values.
|
|
274
|
+
|
|
275
|
+
### Fixed
|
|
276
|
+
|
|
277
|
+
- **Testing Logic**: Corrected `run_tests.py` to properly set `PYTHONPATH` for Python installer subprocesses and fixed an `os.environ` access bug.
|
|
278
|
+
- **Sandbox Cleanup**: Removed dev-only `simulate.md` from installer test sandbox.
|
|
279
|
+
- **RULES Template**: Added missing conventions C18-C23 to `init.js` RULES.md generator.
|
|
280
|
+
- **Python Installer**: Fixed `_resolve_package_version()` to read actual package version.
|
|
281
|
+
- **Engine Scripts**: Deduplicated `workspace.json` reads in `executor.js`.
|
|
282
|
+
- **History Cleanup**: Removed legacy `audit.md` and `docs.md` files from `.magic/history/`.
|
|
283
|
+
|
|
284
|
+
## [1.5.30] - 2026-03-24
|
|
285
|
+
|
|
286
|
+
### Fixed
|
|
287
|
+
|
|
288
|
+
- **Version Synchronization**: Unified project version across `package.json` (was 1.5.0), `pyproject.toml` (was 1.4.162), and `__init__.py` (was 1.4.162) to a single `1.5.30`. Previously 5 different versions existed across 5 sources.
|
|
289
|
+
- **CONTEXT.md**: Regenerated stale context file (was 9 days old).
|
|
249
290
|
|
|
250
|
-
## [1.
|
|
291
|
+
## [1.5.29] - 2026-03-16
|
|
251
292
|
|
|
252
293
|
### Added
|
|
253
294
|
|
|
254
|
-
- **
|
|
255
|
-
- **
|
|
256
|
-
- **
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
- **
|
|
261
|
-
-
|
|
262
|
-
- **Onboarding Wrapper:** Added `.agents/workflows/magic.onboard.md` to trigger the interactive onboarding tutorial seamlessly.
|
|
263
|
-
- **Prerequisite Validation:** Created `check-prerequisites.sh` and `check-prerequisites.ps1` parsing `INDEX.md` and returning valid JSON results.
|
|
295
|
+
- **Argument Routing (A–D)** for `task.md` and `run.md`: Both workflows now accept optional arguments — workspace name, directive text, or both. Consistent with `analyze.md` pattern. Includes Workspace Fallback, Disambiguation, and Handoff Propagation rules.
|
|
296
|
+
- **T4 Inline Guards** in `spec.md`: When spec workflow captures a standing rule via T4 trigger ("remember that..."), it now applies Tier Routing (global vs workspace RULES.md), Duplication Check (across both tiers), and Constitutional Guard (§1–6 protection) — matching `rule.md` safety guarantees without breaking T4's "Apply Immediately" semantics.
|
|
297
|
+
- **Regression Tests (T153–T161)**: 9 new scenarios covering argument routing (scoped planning, workspace fallback, disambiguation, targeted task/phase execution, cross-workflow handoff propagation) and T4 inline guards (tier routing, duplication detection, constitutional block).
|
|
298
|
+
|
|
299
|
+
### Changed
|
|
300
|
+
|
|
301
|
+
- **AGENTS.md**: Clarified C14 Enforcement scope — explicitly covers all `.magic/` content (workflows, scripts, templates, tests, config), not just workflow files. Added description of what `update-engine-meta` does (bumps `.version`, regenerates `.checksums`).
|
|
302
|
+
- **`run.md` Argument Routing**: Detection column harmonized with `analyze.md` — accepts both quoted text and non-workspace tokens (e.g., unquoted `T-1A01` or `phase-2`).
|