its-magic 0.1.3-0 → 0.1.3-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 (61) hide show
  1. package/installer.ps1 +8 -0
  2. package/installer.py +8 -0
  3. package/installer.sh +1 -0
  4. package/package.json +1 -1
  5. package/scripts/check_intake_template_parity.py +62 -0
  6. package/template/.cursor/agents/curator.mdc +1 -0
  7. package/template/.cursor/agents/po.mdc +1 -0
  8. package/template/.cursor/agents/release.mdc +1 -0
  9. package/template/.cursor/commands/auto.md +90 -0
  10. package/template/.cursor/commands/execute.md +26 -0
  11. package/template/.cursor/commands/refresh-context.md +32 -0
  12. package/template/.cursor/commands/sovereign-critic.md +104 -0
  13. package/template/.cursor/model-catalog.local.example.cursor-only.json +9 -0
  14. package/template/.cursor/model-catalog.local.example.json +9 -0
  15. package/template/.cursor/model-catalog.local.example.level-1-easy.json +9 -0
  16. package/template/.cursor/model-catalog.local.example.level-2-complex.json +9 -0
  17. package/template/.cursor/model-catalog.local.example.level-3-mega.json +9 -0
  18. package/template/.cursor/model-catalog.local.example.level-4-super.json +9 -0
  19. package/template/.cursor/model-catalog.local.example.role-based-balanced.json +18 -0
  20. package/template/.cursor/model-catalog.local.example.role-based-highend.json +18 -0
  21. package/template/.cursor/rules/sovereign-role-manifest.mdc.example +27 -0
  22. package/template/.cursor/scratchpad.local.example.md +55 -0
  23. package/template/.cursor/scratchpad.md +203 -0
  24. package/template/.cursor/sovereign-role-manifest.yaml.example +53 -0
  25. package/template/decisions/DEC-0104.md +279 -0
  26. package/template/decisions/DEC-0105.md +231 -0
  27. package/template/decisions/DEC-0107.md +246 -0
  28. package/template/docs/engineering/architecture.md +78 -0
  29. package/template/docs/engineering/auto-orchestration-reference.md +7 -0
  30. package/template/docs/engineering/context/installer-owned-paths.manifest +8 -0
  31. package/template/docs/engineering/reason_codes.md +411 -0
  32. package/template/docs/engineering/runbook.md +1119 -0
  33. package/template/docs/engineering/sovereign-memory/.gitkeep +0 -0
  34. package/template/docs/engineering/sovereign-memory/retrospectives/.gitkeep +0 -0
  35. package/template/handoffs/sovereign_decisions/.gitkeep +0 -0
  36. package/template/handoffs/sovereign_deferrals/.gitkeep +0 -0
  37. package/template/handoffs/sovereign_role_reviews.jsonl +0 -0
  38. package/template/scripts/__pycache__/decision_ledger_lib.cpython-312.pyc +0 -0
  39. package/template/scripts/check_intake_template_parity.py +181 -0
  40. package/template/scripts/decision_ledger_lib.py +732 -0
  41. package/template/scripts/ledger_validate.py +153 -0
  42. package/template/scripts/model_tier_lib.py +680 -0
  43. package/template/scripts/model_tier_validate.py +368 -0
  44. package/template/scripts/parallel_dev_arbiter.py +923 -0
  45. package/template/scripts/release_trigger_adapters.py +843 -0
  46. package/template/scripts/self_healing_deploy_lib.py +463 -0
  47. package/template/scripts/self_healing_deploy_validate.py +78 -0
  48. package/template/scripts/sovereign_convergence_lib.py +994 -0
  49. package/template/scripts/sovereign_convergence_validate.py +206 -0
  50. package/template/scripts/sovereign_critic_lib.py +629 -0
  51. package/template/scripts/sovereign_critic_validate.py +131 -0
  52. package/template/scripts/sovereign_loop_lib.py +828 -0
  53. package/template/scripts/sovereign_loop_validate.py +122 -0
  54. package/template/scripts/sovereign_memory_lib.py +869 -0
  55. package/template/scripts/sovereign_memory_validate.py +153 -0
  56. package/template/scripts/sovereign_role_manifest_lib.py +547 -0
  57. package/template/scripts/sovereign_role_manifest_validate.py +105 -0
  58. package/template/tests/us0108_contract_test.py +207 -0
  59. package/template/tests/us0109_contract_test.py +209 -0
  60. package/template/tests/us0109_us0110_compose_test.py +34 -0
  61. package/template/tests/us0111_contract_test.py +345 -0
File without changes
File without changes
File without changes
@@ -13,6 +13,9 @@ Scoped modes (DEC-0073 §10 / US-0090):
13
13
  --scope=us-0096 DEC-0082 delivery modes surfaces (US-0096).
14
14
  --scope=project-readme DEC-0083 project README bootstrap surfaces (US-0097).
15
15
  --scope=dev-environment DEC-0084 dev auto-launch profile surfaces (US-0098).
16
+ --scope=sovereign-parallel-dev DEC-0108 parallel instance arbitrage surfaces (US-0108).
17
+ --scope=sovereign-self-healing-deploy DEC-0109 self-healing deploy loop surfaces (US-0109).
18
+ --scope=release-trigger-adapter DEC-0111 release trigger adapter surfaces (US-0111).
16
19
  --scope=all union of all tables.
17
20
  """
18
21
 
@@ -228,6 +231,64 @@ RELEASE_CHANGELOG_PAIRS: tuple[tuple[str, str], ...] = (
228
231
  ),
229
232
  )
230
233
 
234
+ MODEL_TIER_PAIRS: tuple[tuple[str, str], ...] = (
235
+ (
236
+ "scripts/model_tier_lib.py",
237
+ "template/scripts/model_tier_lib.py",
238
+ ),
239
+ (
240
+ "scripts/model_tier_validate.py",
241
+ "template/scripts/model_tier_validate.py",
242
+ ),
243
+ (
244
+ "docs/engineering/runbook.md",
245
+ "template/docs/engineering/runbook.md",
246
+ ),
247
+ (
248
+ ".cursor/scratchpad.md",
249
+ "template/.cursor/scratchpad.md",
250
+ ),
251
+ (
252
+ ".cursor/scratchpad.local.example.md",
253
+ "template/.cursor/scratchpad.local.example.md",
254
+ ),
255
+ (
256
+ "scripts/check_intake_template_parity.py",
257
+ "template/scripts/check_intake_template_parity.py",
258
+ ),
259
+ )
260
+
261
+ MODEL_TIER_OVERRIDES_PAIRS: tuple[tuple[str, str], ...] = (
262
+ (
263
+ ".cursor/scratchpad.md",
264
+ "template/.cursor/scratchpad.md",
265
+ ),
266
+ (
267
+ ".cursor/scratchpad.local.example.md",
268
+ "template/.cursor/scratchpad.local.example.md",
269
+ ),
270
+ (
271
+ ".cursor/model-catalog.local.example.role-based-balanced.json",
272
+ "template/.cursor/model-catalog.local.example.role-based-balanced.json",
273
+ ),
274
+ (
275
+ ".cursor/model-catalog.local.example.role-based-highend.json",
276
+ "template/.cursor/model-catalog.local.example.role-based-highend.json",
277
+ ),
278
+ (
279
+ "scripts/model_tier_lib.py",
280
+ "template/scripts/model_tier_lib.py",
281
+ ),
282
+ (
283
+ "scripts/model_tier_validate.py",
284
+ "template/scripts/model_tier_validate.py",
285
+ ),
286
+ (
287
+ "docs/engineering/runbook.md",
288
+ "template/docs/engineering/runbook.md",
289
+ ),
290
+ )
291
+
231
292
  DOWNSTREAM_CI_GUARD_PAIRS: tuple[tuple[str, str], ...] = (
232
293
  (
233
294
  "scripts/check_downstream_ci_guard.py",
@@ -239,6 +300,115 @@ DOWNSTREAM_CI_GUARD_PAIRS: tuple[tuple[str, str], ...] = (
239
300
  ),
240
301
  )
241
302
 
303
+ SOVEREIGN_ROLE_MANIFEST_PAIRS: tuple[tuple[str, str], ...] = (
304
+ (
305
+ ".cursor/sovereign-role-manifest.yaml",
306
+ "template/.cursor/sovereign-role-manifest.yaml.example",
307
+ ),
308
+ (
309
+ ".cursor/scratchpad.md",
310
+ "template/.cursor/scratchpad.md",
311
+ ),
312
+ (
313
+ "scripts/sovereign_role_manifest_validate.py",
314
+ "template/scripts/sovereign_role_manifest_validate.py",
315
+ ),
316
+ (
317
+ "scripts/sovereign_role_manifest_lib.py",
318
+ "template/scripts/sovereign_role_manifest_lib.py",
319
+ ),
320
+ (
321
+ "docs/engineering/runbook.md",
322
+ "template/docs/engineering/runbook.md",
323
+ ),
324
+ (
325
+ "docs/engineering/reason_codes.md",
326
+ "template/docs/engineering/reason_codes.md",
327
+ ),
328
+ (
329
+ "handoffs/sovereign_role_reviews.jsonl",
330
+ "template/handoffs/sovereign_role_reviews.jsonl",
331
+ ),
332
+ )
333
+
334
+ SOVEREIGN_PARALLEL_DEV_PAIRS: tuple[tuple[str, str], ...] = (
335
+ (
336
+ ".cursor/scratchpad.md",
337
+ "template/.cursor/scratchpad.md",
338
+ ),
339
+ (
340
+ "scripts/parallel_dev_arbiter.py",
341
+ "template/scripts/parallel_dev_arbiter.py",
342
+ ),
343
+ (
344
+ "tests/us0108_contract_test.py",
345
+ "template/tests/us0108_contract_test.py",
346
+ ),
347
+ (
348
+ "docs/engineering/runbook.md",
349
+ "template/docs/engineering/runbook.md",
350
+ ),
351
+ (
352
+ "docs/engineering/reason_codes.md",
353
+ "template/docs/engineering/reason_codes.md",
354
+ ),
355
+ (
356
+ "scripts/check_intake_template_parity.py",
357
+ "template/scripts/check_intake_template_parity.py",
358
+ ),
359
+ )
360
+
361
+ SOVEREIGN_SELF_HEALING_DEPLOY_PAIRS: tuple[tuple[str, str], ...] = (
362
+ (
363
+ ".cursor/scratchpad.md",
364
+ "template/.cursor/scratchpad.md",
365
+ ),
366
+ (
367
+ "scripts/self_healing_deploy_lib.py",
368
+ "template/scripts/self_healing_deploy_lib.py",
369
+ ),
370
+ (
371
+ "scripts/self_healing_deploy_validate.py",
372
+ "template/scripts/self_healing_deploy_validate.py",
373
+ ),
374
+ (
375
+ "tests/us0109_contract_test.py",
376
+ "template/tests/us0109_contract_test.py",
377
+ ),
378
+ (
379
+ "docs/engineering/runbook.md",
380
+ "template/docs/engineering/runbook.md",
381
+ ),
382
+ (
383
+ "docs/engineering/reason_codes.md",
384
+ "template/docs/engineering/reason_codes.md",
385
+ ),
386
+ )
387
+
388
+ # US-0111 release trigger adapter parity pairs
389
+ RELEASE_TRIGGER_ADAPTER_PAIRS: tuple[tuple[str, str], ...] = (
390
+ (
391
+ "scripts/release_trigger_adapters.py",
392
+ "template/scripts/release_trigger_adapters.py",
393
+ ),
394
+ (
395
+ "tests/us0111_contract_test.py",
396
+ "template/tests/us0111_contract_test.py",
397
+ ),
398
+ (
399
+ "docs/engineering/runbook.md",
400
+ "template/docs/engineering/runbook.md",
401
+ ),
402
+ (
403
+ "docs/engineering/reason_codes.md",
404
+ "template/docs/engineering/reason_codes.md",
405
+ ),
406
+ (
407
+ "scripts/check_intake_template_parity.py",
408
+ "template/scripts/check_intake_template_parity.py",
409
+ ),
410
+ )
411
+
242
412
  SCOPES: dict[str, tuple[tuple[str, str], ...]] = {
243
413
  "intake": INTAKE_TEMPLATE_PAIRS,
244
414
  "caveman-compress": CAVEMAN_COMPRESS_PAIRS,
@@ -252,6 +422,12 @@ SCOPES: dict[str, tuple[tuple[str, str], ...]] = {
252
422
  "project-readme": PROJECT_README_PAIRS,
253
423
  "dev-environment": DEV_ENVIRONMENT_PAIRS,
254
424
  "release-changelog": RELEASE_CHANGELOG_PAIRS,
425
+ "model-tier": MODEL_TIER_PAIRS,
426
+ "model-tier-overrides": MODEL_TIER_OVERRIDES_PAIRS,
427
+ "sovereign-role-manifest": SOVEREIGN_ROLE_MANIFEST_PAIRS,
428
+ "sovereign-parallel-dev": SOVEREIGN_PARALLEL_DEV_PAIRS,
429
+ "sovereign-self-healing-deploy": SOVEREIGN_SELF_HEALING_DEPLOY_PAIRS,
430
+ "release-trigger-adapter": RELEASE_TRIGGER_ADAPTER_PAIRS,
255
431
  "all": (
256
432
  INTAKE_TEMPLATE_PAIRS
257
433
  + CAVEMAN_COMPRESS_PAIRS
@@ -265,6 +441,11 @@ SCOPES: dict[str, tuple[tuple[str, str], ...]] = {
265
441
  + PROJECT_README_PAIRS
266
442
  + DEV_ENVIRONMENT_PAIRS
267
443
  + RELEASE_CHANGELOG_PAIRS
444
+ + MODEL_TIER_PAIRS
445
+ + MODEL_TIER_OVERRIDES_PAIRS
446
+ + SOVEREIGN_ROLE_MANIFEST_PAIRS
447
+ + SOVEREIGN_SELF_HEALING_DEPLOY_PAIRS
448
+ + RELEASE_TRIGGER_ADAPTER_PAIRS
268
449
  ),
269
450
  }
270
451