its-magic 0.1.2-55 → 0.1.2

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 (37) hide show
  1. package/package.json +1 -1
  2. package/scripts/check_intake_template_parity.py +96 -0
  3. package/template/.cursor/commands/architecture.md +4 -0
  4. package/template/.cursor/commands/auto.md +110 -15
  5. package/template/.cursor/commands/discovery.md +4 -0
  6. package/template/.cursor/commands/execute.md +343 -291
  7. package/template/.cursor/commands/intake.md +4 -0
  8. package/template/.cursor/commands/map-codebase.md +4 -0
  9. package/template/.cursor/commands/memory-audit.md +4 -0
  10. package/template/.cursor/commands/milestone-complete.md +4 -0
  11. package/template/.cursor/commands/milestone-start.md +4 -0
  12. package/template/.cursor/commands/pause.md +4 -0
  13. package/template/.cursor/commands/phase-context.md +4 -0
  14. package/template/.cursor/commands/plan-verify.md +4 -0
  15. package/template/.cursor/commands/qa.md +226 -222
  16. package/template/.cursor/commands/quick.md +13 -0
  17. package/template/.cursor/commands/refresh-context.md +4 -0
  18. package/template/.cursor/commands/release.md +505 -487
  19. package/template/.cursor/commands/research.md +4 -0
  20. package/template/.cursor/commands/resume.md +4 -0
  21. package/template/.cursor/commands/security-review.md +4 -0
  22. package/template/.cursor/commands/sprint-plan.md +4 -0
  23. package/template/.cursor/commands/status-reconcile.md +4 -0
  24. package/template/.cursor/commands/verify-work.md +4 -0
  25. package/template/.cursor/dev-environment.json.example +22 -0
  26. package/template/.cursor/scratchpad.local.example.md +40 -3
  27. package/template/.cursor/scratchpad.md +324 -262
  28. package/template/.cursorignore +1 -0
  29. package/template/docs/engineering/auto-orchestration-reference.md +121 -14
  30. package/template/docs/engineering/context/installer-owned-paths.manifest +4 -1
  31. package/template/docs/engineering/runbook.md +207 -4
  32. package/template/scripts/check_intake_template_parity.py +96 -0
  33. package/template/scripts/dev_environment_lib.py +463 -0
  34. package/template/scripts/pack_json_validate.py +130 -0
  35. package/template/scripts/project_readme_coverage_lib.py +417 -0
  36. package/template/scripts/readme_feature_coverage_lib.py +2 -2
  37. package/template/scripts/validate_project_readme_coverage.py +151 -0
@@ -15,6 +15,10 @@ description: "its-magic research: gather references and risks before architectur
15
15
  subagent/chat.
16
16
 
17
17
  ## Inputs
18
+
19
+ - **Narrow-read (US-0053 / US-0096 Tranche A)**: Start at docs/engineering/phase-context.md
20
+ and the story section anchor in vision/architecture/decisions when a heading exists; forbid
21
+ full-file reads when a section heading exists.
18
22
  - `docs/product/vision.md`
19
23
  - `docs/product/backlog.md`
20
24
  - `docs/product/acceptance.md`
@@ -23,6 +23,10 @@ At the end of `/resume`, append an isolation evidence entry to
23
23
  - `evidence_ref=docs/engineering/state.md` (resume resolution summary and next-phase recommendation)
24
24
 
25
25
  ## Inputs
26
+
27
+ - **Narrow-read (US-0053 / US-0096 Tranche A)**: Start at docs/engineering/phase-context.md
28
+ and the story section anchor in vision/architecture/decisions when a heading exists; forbid
29
+ full-file reads when a section heading exists.
26
30
  - `docs/engineering/state.md`
27
31
  - `docs/engineering/decisions.md`
28
32
  - `sprints/S0001/summary.md`
@@ -14,6 +14,10 @@ description: "its-magic security-review: optional security and compliance review
14
14
  subagent/chat.
15
15
 
16
16
  ## Inputs
17
+
18
+ - **Narrow-read (US-0053 / US-0096 Tranche A)**: Start at docs/engineering/phase-context.md
19
+ and the story section anchor in vision/architecture/decisions when a heading exists; forbid
20
+ full-file reads when a section heading exists.
17
21
  - `SECURITY_REVIEW` and `COMPLIANCE_PROFILES` from `.cursor/scratchpad.md`
18
22
  - `docs/engineering/architecture.md`
19
23
  - `docs/engineering/decisions.md`
@@ -13,6 +13,10 @@ description: "its-magic sprint plan: create sprint and atomic tasks."
13
13
  subagent/chat.
14
14
 
15
15
  ## Inputs
16
+
17
+ - **Narrow-read (US-0053 / US-0096 Tranche A)**: Start at docs/engineering/phase-context.md
18
+ and the story section anchor in vision/architecture/decisions when a heading exists; forbid
19
+ full-file reads when a section heading exists.
16
20
  - Architecture and decisions
17
21
  - Current backlog priorities
18
22
  - `.cursor/scratchpad.md` — read SPRINT_MAX_TASKS and SPRINT_AUTO_SPLIT
@@ -15,6 +15,10 @@ description: "its-magic status-reconcile: deterministic status normalization and
15
15
  - After writing outputs, stop and recommend next phase.
16
16
 
17
17
  ## Inputs
18
+
19
+ - **Narrow-read (US-0053 / US-0096 Tranche A)**: Start at docs/engineering/phase-context.md
20
+ and the story section anchor in vision/architecture/decisions when a heading exists; forbid
21
+ full-file reads when a section heading exists.
18
22
  - `docs/product/backlog.md` (canonical status source)
19
23
  - `docs/product/acceptance.md` (derived checklist surface)
20
24
  - `docs/engineering/state.md` (traceability + checkpoints)
@@ -24,6 +24,10 @@ At the end of `/verify-work`, append an isolation evidence entry to
24
24
  - `evidence_ref=<primary output ref>` (recommended: `sprints/Sxxxx/uat.json` and `sprints/Sxxxx/uat.md`)
25
25
 
26
26
  ## Inputs
27
+
28
+ - **Narrow-read (US-0053 / US-0096 Tranche A)**: Start at docs/engineering/phase-context.md
29
+ and the story section anchor in vision/architecture/decisions when a heading exists; forbid
30
+ full-file reads when a section heading exists.
27
31
  - `docs/product/acceptance.md`
28
32
  - `sprints/S0001/summary.md`
29
33
 
@@ -0,0 +1,22 @@
1
+ {
2
+ "schema_version": 1,
3
+ "detected_mode": "docker-host-local",
4
+ "operator_seeded": true,
5
+ "last_updated": "2026-06-14T00:00:00Z",
6
+ "compose_file": "docker-compose.yml",
7
+ "service": "app",
8
+ "target_id": "",
9
+ "connect": {
10
+ "endpoint": "http://localhost:3000",
11
+ "health_path": "/health",
12
+ "hostEnv": "DEV_HOST",
13
+ "portEnv": "DEV_PORT",
14
+ "protocolEnv": "DEV_PROTOCOL"
15
+ },
16
+ "rebuild_recipe": {
17
+ "default_tier": "B",
18
+ "restart_on_source_change": false
19
+ },
20
+ "env_refs": ["DEV_HOST", "DEV_PORT", "DEV_PROTOCOL"],
21
+ "evidence_refs": ["sprints/S0088/summary.md"]
22
+ }
@@ -169,17 +169,32 @@ AUTO_PUSH_BRANCH_ALLOWLIST=
169
169
  # - ARCH_HOT_MAX_STORY_SECTIONS: integer >= 20 (max # US-xxxx story sections retained)
170
170
  # - Manual-override precedence: explicit flag values in this file remain authoritative
171
171
  # for that flag and override profile defaults.
172
+ #
173
+ # Delivery mode (US-0096 / DEC-0082)
174
+ # - DELIVERY_MODE: standard|ultra_lean|mega_quick (default standard; unset = standard)
175
+ # - LEAN_MEMORY_READ: 0|1 (default 1 when pack/active-context paths exist)
176
+ # - LEAN_MEMORY_WRITE: 0|1 (default 1 when pack/active-context paths exist)
177
+ # - LEAN_COLD_READ_MAX_SECTIONS: int >= 1 (default 4)
178
+ # - LEAN_STATE_INDEX_ROWS: int >= 30 (default 80)
179
+ # - AUTO_DELIVERY_ROUTING: scratchpad_only|backlog_then_scratchpad (default scratchpad_only)
180
+ # Tranche A default hot caps (US-0096): 1000/650/3000 — explicit values override.
181
+ DELIVERY_MODE=standard
182
+ LEAN_MEMORY_READ=1
183
+ LEAN_MEMORY_WRITE=1
184
+ LEAN_COLD_READ_MAX_SECTIONS=4
185
+ LEAN_STATE_INDEX_ROWS=80
186
+ AUTO_DELIVERY_ROUTING=scratchpad_only
172
187
  EARLY_RESEARCH=1
173
188
  INTAKE_GUIDED_MODE=1
174
189
  INTAKE_SUBAGENT_FALLBACK=deny
175
190
  INTAKE_WORK_ITEM_KIND=story
176
191
  ID_NAMESPACE_BOOTSTRAP=0
177
192
  TOKEN_PROFILE=balanced
178
- STATE_HOT_MAX_LINES=1200
193
+ STATE_HOT_MAX_LINES=1000
179
194
  STATE_HOT_MAX_CHECKPOINTS=80
180
- PO_TO_TL_HOT_MAX_LINES=800
195
+ PO_TO_TL_HOT_MAX_LINES=650
181
196
  PO_TO_TL_HOT_MAX_SECTIONS=60
182
- ARCH_HOT_MAX_LINES=3500
197
+ ARCH_HOT_MAX_LINES=3000
183
198
  ARCH_HOT_MAX_STORY_SECTIONS=120
184
199
 
185
200
  # Publish targets (US-0054)
@@ -238,6 +253,18 @@ DOC_DETAIL_LEVEL=balanced
238
253
  # - README_FEATURE_COVERAGE_ENFORCE: 0|1 (default 0 until backfill + --report green)
239
254
  README_FEATURE_COVERAGE_ENFORCE=1
240
255
 
256
+ #
257
+ # ## Project README coverage (US-0097 / DEC-0083)
258
+ # Project-owned root README bootstrap + per-story catalog growth.
259
+ # - PROJECT_README_ENFORCE: 0|1 (default 1 post-bootstrap)
260
+ # When 0, /release step 3g skips (migration/grandfathering only). When 1, blocking.
261
+ # Flip 0→1 only after validate_project_readme_coverage.py --report shows coverage_missing: [].
262
+ # - FRAMEWORK_KIT_REPO: 0|1 (default 0)
263
+ # When 1 (its-magic dev kit repo only), skip execute 23a/23b and project validator root check.
264
+ # Consumer repos never set FRAMEWORK_KIT_REPO=1.
265
+ PROJECT_README_ENFORCE=1
266
+ FRAMEWORK_KIT_REPO=0
267
+
241
268
  #
242
269
  # ## Browser UAT self-test (US-0093 / DEC-0079)
243
270
  # Two-tier browser probe: stdlib lib classifies + agent owns Cursor browser MCP (BUG-0006).
@@ -259,6 +286,16 @@ UAT_PROCESS_HEALTH_POLL_INTERVAL_SECONDS=2
259
286
  DEV_SERVER_PORT=
260
287
  DEV_SERVER_COMMAND=
261
288
 
289
+ #
290
+ # ## Dev environment auto-launch (US-0098 / DEC-0084)
291
+ # Execute-phase bounded rebuild/relaunch + Connect surfacing — distinct from US-0065 phase QA,
292
+ # US-0086 test routing, and US-0067 release hints. Orthogonal to AUTO_REMOTE_AUTOMATION_PROFILE.
293
+ # When off, execute step 24 skipped with zero overhead.
294
+ # - DEV_AUTO_LAUNCH_PROFILE: off|deterministic_v1 (default off)
295
+ # - DEV_ENVIRONMENT_CONFIG: repo-relative path (default .cursor/dev-environment.json)
296
+ DEV_AUTO_LAUNCH_PROFILE=off
297
+ DEV_ENVIRONMENT_CONFIG=.cursor/dev-environment.json
298
+
262
299
  #
263
300
  # ## Caveman mode (US-0089)
264
301
  # Response-side voice toggle. Default off. Composition is orthogonal to