pumuki 6.3.172 → 6.3.173

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 (120) hide show
  1. package/AGENTS.md +1 -16
  2. package/CHANGELOG.md +0 -101
  3. package/README.md +10 -14
  4. package/VERSION +1 -1
  5. package/core/facts/detectors/text/android.test.ts +0 -2827
  6. package/core/facts/detectors/text/android.ts +182 -5121
  7. package/core/facts/detectors/text/ios.test.ts +12 -290
  8. package/core/facts/detectors/text/ios.ts +28 -301
  9. package/core/facts/detectors/typescript/index.test.ts +139 -3733
  10. package/core/facts/detectors/typescript/index.ts +264 -4959
  11. package/core/facts/extractHeuristicFacts.ts +11 -328
  12. package/core/gate/evaluateRules.test.ts +0 -7
  13. package/core/gate/evaluateRules.ts +2 -1
  14. package/core/rules/presets/heuristics/android.test.ts +1 -399
  15. package/core/rules/presets/heuristics/android.ts +1 -1481
  16. package/core/rules/presets/heuristics/ios.test.ts +1 -11
  17. package/core/rules/presets/heuristics/ios.ts +0 -36
  18. package/core/rules/presets/heuristics/typescript.test.ts +2 -158
  19. package/core/rules/presets/heuristics/typescript.ts +0 -508
  20. package/core/rules/presets/iosEnterpriseRuleSet.test.ts +0 -5
  21. package/core/rules/presets/iosEnterpriseRuleSet.ts +5 -5
  22. package/docs/README.md +3 -3
  23. package/docs/operations/RELEASE_NOTES.md +1 -94
  24. package/docs/operations/framework-menu-consumer-walkthrough.md +15 -18
  25. package/docs/product/API_REFERENCE.md +1 -1
  26. package/docs/product/CONFIGURATION.md +0 -7
  27. package/docs/product/USAGE.md +1 -1
  28. package/docs/validation/README.md +1 -3
  29. package/docs/validation/ios-avdlee-parity-matrix.md +1 -1
  30. package/integrations/config/skillsCompilerTemplates.test.ts +0 -145
  31. package/integrations/config/skillsCompilerTemplates.ts +2 -1013
  32. package/integrations/config/skillsDetectorRegistry.ts +8 -523
  33. package/integrations/config/skillsMarkdownRules.ts +8 -1088
  34. package/integrations/config/skillsRuleSet.ts +3 -44
  35. package/integrations/evidence/buildEvidence.ts +5 -34
  36. package/integrations/evidence/platformSummary.test.ts +9 -73
  37. package/integrations/evidence/platformSummary.ts +7 -165
  38. package/integrations/evidence/repoState.ts +0 -3
  39. package/integrations/evidence/rulesCoverage.ts +0 -83
  40. package/integrations/evidence/schema.ts +0 -29
  41. package/integrations/evidence/writeEvidence.test.ts +0 -4
  42. package/integrations/evidence/writeEvidence.ts +2 -41
  43. package/integrations/gate/evaluateAiGate.ts +8 -312
  44. package/integrations/gate/remediationCatalog.ts +2 -20
  45. package/integrations/gate/stagePolicies.ts +18 -24
  46. package/integrations/git/astIntelligenceDualValidation.ts +2 -2
  47. package/integrations/git/gitAtomicity.ts +39 -284
  48. package/integrations/git/resolveGitRefs.ts +6 -35
  49. package/integrations/git/runPlatformGate.ts +143 -512
  50. package/integrations/git/runPlatformGateOutput.ts +8 -13
  51. package/integrations/git/stageRunners.ts +41 -26
  52. package/integrations/lifecycle/adapter.ts +0 -24
  53. package/integrations/lifecycle/audit.ts +16 -14
  54. package/integrations/lifecycle/cli.ts +20 -37
  55. package/integrations/lifecycle/cliSdd.ts +3 -4
  56. package/integrations/lifecycle/doctor.ts +1 -1
  57. package/integrations/lifecycle/packageInfo.ts +1 -118
  58. package/integrations/lifecycle/policyReconcile.ts +4 -27
  59. package/integrations/lifecycle/preWriteAutomation.ts +5 -5
  60. package/integrations/lifecycle/state.ts +1 -8
  61. package/integrations/lifecycle/watch.ts +8 -28
  62. package/integrations/mcp/aiGateCheck.ts +10 -194
  63. package/integrations/mcp/autoExecuteAiStart.ts +4 -7
  64. package/integrations/mcp/enterpriseServer.ts +3 -19
  65. package/integrations/mcp/preFlightCheck.ts +10 -89
  66. package/integrations/policy/gitAtomicityEnforcement.ts +2 -2
  67. package/integrations/policy/heuristicsEnforcement.ts +2 -2
  68. package/integrations/policy/policyProfiles.ts +18 -24
  69. package/integrations/policy/preWriteEnforcement.ts +1 -1
  70. package/integrations/policy/sddCompletenessEnforcement.ts +2 -2
  71. package/integrations/policy/skillsEnforcement.ts +47 -1
  72. package/integrations/policy/tddBddEnforcement.ts +2 -2
  73. package/integrations/sdd/evidenceScaffold.ts +8 -124
  74. package/integrations/tdd/contract.ts +0 -1
  75. package/integrations/tdd/enforcement.ts +0 -103
  76. package/integrations/tdd/types.ts +0 -6
  77. package/package.json +1 -1
  78. package/scripts/check-tracking-single-active.sh +1 -1
  79. package/scripts/framework-menu-advanced-view-lib.ts +0 -49
  80. package/scripts/framework-menu-consumer-actions-lib.ts +32 -32
  81. package/scripts/framework-menu-consumer-preflight-render.ts +0 -10
  82. package/scripts/framework-menu-consumer-preflight-run.ts +5 -31
  83. package/scripts/framework-menu-consumer-preflight-types.ts +0 -12
  84. package/scripts/framework-menu-consumer-runtime-actions.ts +5 -11
  85. package/scripts/framework-menu-consumer-runtime-audit.ts +28 -0
  86. package/scripts/framework-menu-consumer-runtime-evidence-classic.ts +42 -118
  87. package/scripts/framework-menu-consumer-runtime-lib.ts +0 -38
  88. package/scripts/framework-menu-consumer-runtime-menu.ts +15 -55
  89. package/scripts/framework-menu-consumer-runtime-types.ts +0 -4
  90. package/scripts/framework-menu-evidence-summary-read.ts +1 -17
  91. package/scripts/framework-menu-evidence-summary-types.ts +0 -3
  92. package/scripts/framework-menu-layout-data.ts +23 -3
  93. package/scripts/framework-menu-system-notifications-cause.ts +1 -24
  94. package/scripts/framework-menu-system-notifications-env.ts +0 -8
  95. package/scripts/framework-menu-system-notifications-gate.ts +2 -9
  96. package/scripts/framework-menu-system-notifications-macos-applescript-dialog.ts +1 -1
  97. package/scripts/framework-menu-system-notifications-macos-dialog-payload.ts +2 -14
  98. package/scripts/framework-menu-system-notifications-macos-swift-source.ts +1 -1
  99. package/scripts/framework-menu-system-notifications-payloads-blocked.ts +4 -128
  100. package/scripts/framework-menu-system-notifications-payloads.ts +1 -8
  101. package/scripts/framework-menu-system-notifications-remediation.ts +1 -15
  102. package/scripts/framework-menu-system-notifications-text.ts +1 -7
  103. package/scripts/framework-menu.ts +2 -37
  104. package/scripts/package-install-smoke-consumer-git-repo-lib.ts +1 -10
  105. package/scripts/package-install-smoke-consumer-npm-lib.ts +9 -46
  106. package/skills.lock.json +1244 -807
  107. package/integrations/evidence/trackingContract.ts +0 -17
  108. package/integrations/gate/blockingCause.ts +0 -40
  109. package/integrations/gate/governanceActionCatalog.ts +0 -296
  110. package/integrations/gate/runPlatformGateConfig.ts +0 -55
  111. package/integrations/gate/runPlatformGateDefaults.ts +0 -19
  112. package/integrations/lifecycle/bootstrapManifest.ts +0 -248
  113. package/integrations/lifecycle/cliGovernanceConsole.ts +0 -69
  114. package/integrations/lifecycle/governanceNextAction.ts +0 -181
  115. package/integrations/lifecycle/governanceObservationSnapshot.ts +0 -376
  116. package/integrations/lifecycle/trackingState.ts +0 -403
  117. package/integrations/mcp/alignedPlatformGate.ts +0 -248
  118. package/integrations/mcp/readMcpPrePushStdin.ts +0 -7
  119. package/scripts/build-ruralgo-s1-evidence-pack.ts +0 -85
  120. package/scripts/ruralgo-s1-evidence-pack-lib.ts +0 -200
package/AGENTS.md CHANGED
@@ -18,8 +18,6 @@
18
18
  - REQUIRED SKILL: ios-enterprise-rules
19
19
  - REQUIRED SKILL: swift-concurrency
20
20
  - REQUIRED SKILL: swiftui-expert-skill
21
- - REQUIRED SKILL: swift-testing-expert
22
- - REQUIRED SKILL: core-data-expert
23
21
  - REQUIRED SKILL: android-enterprise-rules
24
22
  - REQUIRED SKILL: backend-enterprise-rules
25
23
  - REQUIRED SKILL: frontend-enterprise-rules
@@ -64,12 +62,10 @@ Antes de realizar cualquier accion:
64
62
  - Si hay conflicto entre skill vendorizada y skill local, aplicar la regla mas estricta.
65
63
  - Documentar en trazabilidad que version se aplico (vendorizada/local) y por que.
66
64
  - Reglas hard por ambito:
67
- - Cambios iOS/Swift/SwiftUI/Swift Testing/Core Data: aplicar SIEMPRE y en conjunto:
65
+ - Cambios iOS/Swift/SwiftUI: aplicar SIEMPRE y en conjunto:
68
66
  - `ios-enterprise-rules`
69
67
  - `swift-concurrency`
70
68
  - `swiftui-expert-skill`
71
- - `swift-testing-expert`
72
- - `core-data-expert`
73
69
  - Cambios Frontend web (React/Next/TypeScript/CSS/UI web): aplicar SIEMPRE:
74
70
  - `frontend-enterprise-rules`
75
71
  - Cambios Backend (NestJS/TypeScript/API/datos/backend services): aplicar SIEMPRE:
@@ -129,8 +125,6 @@ Antes de realizar cualquier accion:
129
125
  - BDD/TDD requerido por la skill correspondiente.
130
126
  - Concurrencia y aislamiento segun `swift-concurrency` cuando haya codigo Swift.
131
127
  - Estado/arquitectura/UI segun `swiftui-expert-skill` e `ios-enterprise-rules` cuando aplique iOS/SwiftUI.
132
- - Tests Swift segun `swift-testing-expert` cuando haya tests iOS/Swift o migracion XCTest/Swift Testing.
133
- - Persistencia/Core Data segun `core-data-expert` cuando haya modelos, contexts, DAOs, boundaries o concurrencia Core Data.
134
128
  - Reglas frontend segun `frontend-enterprise-rules` cuando aplique web.
135
129
  - Reglas backend segun `backend-enterprise-rules` cuando aplique backend.
136
130
  - Reglas Android segun `android-enterprise-rules` cuando aplique Android.
@@ -281,15 +275,6 @@ Al finalizar cualquier tarea, siempre reportar:
281
275
  - `swiftui-expert-skill`
282
276
  - Local: `/Users/juancarlosmerlosalbarracin/.agents/skills/swiftui-expert-skill/SKILL.md`
283
277
  - Vendorizado: `docs/codex-skills/swiftui-expert-skill.md`
284
- - `swift-testing-expert`
285
- - Local: `/Users/juancarlosmerlosalbarracin/.agents/skills/swift-testing-expert/SKILL.md`
286
- - Vendorizado: `docs/codex-skills/swift-testing-expert.md`
287
- - `core-data-expert`
288
- - Local: `/Users/juancarlosmerlosalbarracin/.agents/skills/core-data-expert/SKILL.md`
289
- - Vendorizado: `docs/codex-skills/core-data-expert.md`
290
- - `enterprise-operating-system`
291
- - Local: `/Users/juancarlosmerlosalbarracin/.agents/skills/enterprise-operating-system/SKILL.md`
292
- - Vendorizado: `vendor/skills/enterprise-operating-system/SKILL.md`
293
278
 
294
279
  - Comando de sincronizacion: `./scripts/sync-codex-skills.sh`
295
280
  <!-- END CODEX SKILLS -->
package/CHANGELOG.md CHANGED
@@ -6,107 +6,6 @@ This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [6.3.143] - 2026-05-05
10
-
11
- ### Fixed
12
-
13
- - **PUMUKI-INC-060 baseline TDD/BDD fresco:** los cambios in-scope bloquean si la evidencia de baseline TDD/BDD está caducada, obligando a reejecutar los tests baseline del componente antes de editar código relacionado.
14
- - **Ventana configurable de evidencia:** `PUMUKI_TDD_BDD_EVIDENCE_MAX_AGE_SECONDS` permite ajustar la frescura máxima; por defecto son 900 segundos y los valores inválidos mantienen el modo estricto.
15
-
16
- ## [6.3.142] - 2026-05-05
17
-
18
- ### Fixed
19
-
20
- - **PUMUKI-INC-059 iOS SOLID en PRE_WRITE:** la skill iOS `Verificar que NO viole SOLID (SRP, OCP, LSP, ISP, DIP)` se normaliza al id canónico `skills.ios.no-solid-violations` y al alias real del lock legacy, activa los nodos AST OCP/SRP/DIP/ISP/LSP y bloquea desde `PRE_WRITE` sin depender de `PUMUKI_ENABLE_AST_HEURISTICS`.
21
- - **Skills hard-blocking multi-stage:** `no-solid-violations` se promueve a bloqueo desde `PRE_WRITE`, `PRE_COMMIT`, `PRE_PUSH` y `CI`, evitando que una violación iOS OCP/SRP llegue a disco o al commit.
22
-
23
- ## [6.3.141] - 2026-05-05
24
-
25
- ### Fixed
26
-
27
- - **PRE_PUSH en ramas actualizadas desde base:** el guard de atomicidad ignora commits heredados de `main`/`develop` y commits merge al validar trazabilidad y límites por commit, evitando bloqueos falsos en rollouts que solo resolvieron conflictos con la rama base.
28
-
29
- ## [6.3.140] - 2026-05-05
30
-
31
- ### Fixed
32
-
33
- - **PRE_PUSH atomicity por commit:** el guard de atomicidad evalúa cada commit del rango de push de forma independiente, evitando que una rama formada por commits atómicos quede bloqueada por el diff agregado.
34
- - **Falsos positivos de metadata:** `hardcoded-values` y `magic-numbers` dejan de bloquear literales internos de policy/evidence/analytics y constantes estándar, manteniendo la detección real de configuración hardcoded.
35
-
36
- ## [6.3.139] - 2026-05-05
37
-
38
- ### Fixed
39
-
40
- - **PUMUKI-INC-060 baseline test gate:** la evidencia TDD/BDD exige ahora un baseline test `passed` por slice antes del evento `red`; si falta o falla, el gate bloquea con `TDD_BASELINE_TEST_REQUIRED` o `TDD_BASELINE_TEST_MUST_PASS`.
41
- - **Alineación all-severities en evidencia:** los tests de evidencia quedan sincronizados con el contrato publicado de bloqueo por cualquier severidad (`BLOCK` / `BLOCKED`), incluyendo findings `WARN`.
42
-
43
- ## [6.3.138] - 2026-05-05
44
-
45
- ### Fixed
46
-
47
- - **Doc-only evidence hygiene:** en commits documentales, `.ai_evidence.json` trackeado queda restaurado a `HEAD` y no deja modificaciones de hook que hagan fallar integraciones `pre-commit` con `files were modified by this hook`.
48
-
49
- ## [6.3.137] - 2026-05-05
50
-
51
- ### Fixed
52
-
53
- - **PUMUKI-INC-061 evidence/atomicity:** el guard de atomicidad ignora `.ai_evidence.json` / `.AI_EVIDENCE.json` gestionados por Pumuki al contar ficheros y scopes staged, evitando que un auto-restage de evidencia bloquee repins atómicos de consumers.
54
-
55
- ## [6.3.136] - 2026-05-05
56
-
57
- ### Fixed
58
-
59
- - **PUMUKI-INC-059 all-severities blocking:** `PRE_WRITE`, `PRE_COMMIT`, `PRE_PUSH` y `CI` bloquean cualquier finding de reglas/skills AST Intelligence, incluyendo `WARN/MEDIUM` e `INFO/LOW`.
60
- - **Políticas no relajables:** `skills.policy`, perfiles hard-mode y `PRE_WRITE=advisory` ya no pueden rebajar el threshold efectivo por debajo de `INFO`.
61
- - **Replay RuralGo:** validado con binario local contra RuralGo: PRE_WRITE `115/115` findings bloqueantes y PRE_COMMIT `118/118` findings bloqueantes.
62
-
63
- ## [6.3.135] - 2026-05-03
64
-
65
- ### Fixed
66
-
67
- - **Bootstrap de pre-push por delta real:** cuando una rama no tiene upstream, el bootstrap de `PRE_PUSH` elige la base con menor delta real entre `main` y `develop`, evitando falsos positivos de atomicidad en branches nacidas de `main`.
68
- - **Repin desbloqueable:** esta versión corrige el bloqueo que impedía publicar el repin de `Flux_training` aunque el diff efectivo del cambio fuese mínimo.
69
-
70
- ## [6.3.134] - 2026-05-03
71
-
72
- ### Fixed
73
-
74
- - **Policy hash drift accionable:** `governanceObservationSnapshot`, `governanceNextAction` y el catálogo de remediación ya convierten la divergencia entre stages en una acción estricta y aplicable.
75
- - **Release publicada y lista para repin:** esta versión ya está en npm y queda lista para repinear consumers activos como RuralGo con el fix real distribuido.
76
-
77
- ## [6.3.133] - 2026-05-03
78
-
79
- ### Fixed
80
-
81
- - **Skills enforcement endurecido a bloqueo duro:** `PRE_WRITE`, `PRE_COMMIT` y `PRE_PUSH` ya no admiten bypass advisory para violaciones de skills.
82
- - **Contrato de gate alineado de punta a punta:** `skillsEnforcement`, `evaluateAiGate`, `runPlatformGate` y el flujo CLI bloquean de forma consistente cuando falta cobertura, bundles o contrato de skills.
83
- - **Release listo para repin:** esta versión está preparada para publicarse y repinear consumers como RuralGo sin cerrar más gaps funcionales para este fix.
84
-
85
- ## [6.3.132] - 2026-05-03
86
-
87
- ### Fixed
88
-
89
- - **Reglas declarativas sin detector no bloquean el gate:** `unsupported_detector_rule_ids` se conserva en evidencia, pero deja de convertirse en `SKILLS_DETECTOR_MAPPING_INCOMPLETE_HIGH` cuando no hay reglas AUTO ejecutables sin detector.
90
- - **Bloqueo solo para AUTO real:** el guard de cobertura de skills ahora bloquea exclusivamente `unsupported_auto_rule_ids`, evitando que doctrina declarativa de skills vuelva a parar consumers con `coverage_ratio=1`.
91
- - **Regresión focalizada:** `runPlatformGate` cubre el caso en modo strict para asegurar que declarativas sin detector quedan como evidencia no bloqueante.
92
-
93
- ## [6.3.130] - 2026-05-03
94
-
95
- ### Fixed
96
-
97
- - **Menú legacy restaurado para consumers:** la shell principal vuelve al contrato plano de 9 opciones y conserva los flujos avanzados fuera del menú por defecto.
98
- - **Cobertura por plataforma desde skills reales:** el full audit usa `skills.lock.json` y bindings de detectores para mostrar `rules evaluated=x/y` en iOS, Android, Backend y Frontend.
99
- - **Other deja de ser opaco:** la salida clásica explica que `Other` agrupa reglas transversales de governance, evidence, BDD y tipos compartidos.
100
- - **Contrato AvdLee visible:** `swift-testing-expert` y `core-data-expert` quedan declaradas como skills requeridas cuando entran en el lock AST.
101
-
102
- ## [6.3.129] - 2026-04-29
103
-
104
- ### Fixed
105
-
106
- - **Nueva slice Android de singletons cerrada:** `skills.android.no-singleton-usar-inyeccio-n-de-dependencias-hilt-dagger` pasa a detector AST real y deja de depender de normalización genérica.
107
- - **Exclusión correcta de módulos DI:** `@Module`, `@InstallIn` y `@EntryPoint` ya no disparan el detector de singleton cuando el `object` es un módulo de inyección legítimo.
108
- - **Cobertura de regresión y lock recompilado:** la suite Android dirigida vuelve a verde y `skills.lock.json` se regenera con el binding canónico de la nueva skill.
109
-
110
9
  ## [6.3.127] - 2026-04-28
111
10
 
112
11
  ### Fixed
package/README.md CHANGED
@@ -289,29 +289,25 @@ Use these docs instead of treating `README.md` as the full command manual:
289
289
 
290
290
  ## Menu Walkthrough and Screenshots
291
291
 
292
- ### Capture 1 — Consumer Menu (archived v2)
292
+ ### Capture 1 — Consumer Menu (v2)
293
293
 
294
- ![Consumer Menu archived v2](assets/readme/menu-option1/01-menu-consumer-v2.png)
294
+ ![Consumer Menu v2](assets/readme/menu-option1/01-menu-consumer-v2.png)
295
295
 
296
- Canonical consumer legacy reference:
296
+ ### Capture 2 — Option 1 Pre-flight (BLOCK context)
297
297
 
298
- - Git tag `v0-legacy-last`, `scripts/hooks-system/infrastructure/shell/orchestrators/audit-orchestrator.sh`
298
+ ![Option 1 Pre-flight Block](assets/readme/menu-option1/02-option1-preflight-block.png)
299
299
 
300
- ### Capture 2Archived v2 Full-Audit Pre-flight (BLOCK context)
300
+ ### Capture 3Option 1 Final Summary (BLOCK)
301
301
 
302
- ![Archived v2 Full-Audit Pre-flight Block](assets/readme/menu-option1/02-option1-preflight-block.png)
302
+ ![Option 1 Final Summary Block](assets/readme/menu-option1/03-option1-final-summary-block.png)
303
303
 
304
- ### Capture 3Archived v2 Full-Audit Final Summary (BLOCK)
304
+ ### Capture 4Option 1 Pre-flight (PASS scenario)
305
305
 
306
- ![Archived v2 Full-Audit Final Summary Block](assets/readme/menu-option1/03-option1-final-summary-block.png)
306
+ ![Option 1 Pre-flight Pass Scenario](assets/readme/menu-option1/04-option1-preflight-pass.png)
307
307
 
308
- ### Capture 4Archived v2 Full-Audit Pre-flight (PASS scenario)
308
+ ### Capture 5Option 1 Final Summary (PASS)
309
309
 
310
- ![Archived v2 Full-Audit Pre-flight Pass Scenario](assets/readme/menu-option1/04-option1-preflight-pass.png)
311
-
312
- ### Capture 5 — Archived v2 Full-Audit Final Summary (PASS)
313
-
314
- ![Archived v2 Full-Audit Final Summary Pass](assets/readme/menu-option1/05-option1-final-summary-pass.png)
310
+ ![Option 1 Final Summary Pass](assets/readme/menu-option1/05-option1-final-summary-pass.png)
315
311
 
316
312
  ### Capture 6 — Menu Status After PASS Run
317
313
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- v6.3.172
1
+ v6.3.173