gemstack-ai 1.0.1 → 1.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 (58) hide show
  1. package/.agents/rules/01-gemstack-core.md +15 -0
  2. package/.agents/rules/02-gemstack-constitution.md +12 -1
  3. package/.agents/skills/gemstack-handoff/SKILL.md +2 -1
  4. package/.agents/skills/gemstack-plan/SKILL.md +3 -1
  5. package/.agents/skills/gemstack-qa/SKILL.md +3 -0
  6. package/.agents/skills/gemstack-review/SKILL.md +7 -5
  7. package/.agents/skills/gemstack-ship/SKILL.md +10 -1
  8. package/.agents/skills/gemstack-spec/SKILL.md +4 -2
  9. package/.agents/skills/gemstack-tasks/SKILL.md +5 -3
  10. package/.gemstack/state.json +18 -2
  11. package/CHANGELOG.md +84 -0
  12. package/MANUAL.md +4 -4
  13. package/README.md +49 -8
  14. package/RELEASE_NOTES.md +129 -0
  15. package/assets/logo.jpg +0 -0
  16. package/docs/architecture-consistency.md +156 -0
  17. package/docs/spec-driven-development.md +26 -0
  18. package/gemstack-ai-1.2.0.tgz +0 -0
  19. package/handoff.md +40 -40
  20. package/package.json +3 -2
  21. package/scripts/ci/smoke-cli.js +1 -0
  22. package/specs/006-architecture-consistency-engine/.gemstack.json +9 -0
  23. package/specs/006-architecture-consistency-engine/plan.md +319 -0
  24. package/specs/006-architecture-consistency-engine/spec.md +179 -0
  25. package/specs/006-architecture-consistency-engine/tasks.md +532 -0
  26. package/specs/007-mechanical-test-matrix-closure-evidence/.gemstack.json +5 -0
  27. package/specs/007-mechanical-test-matrix-closure-evidence/closure.json +59 -0
  28. package/specs/007-mechanical-test-matrix-closure-evidence/plan.md +484 -0
  29. package/specs/007-mechanical-test-matrix-closure-evidence/spec.md +597 -0
  30. package/specs/007-mechanical-test-matrix-closure-evidence/tasks.md +536 -0
  31. package/specs/templates/plan.md +41 -0
  32. package/specs/templates/spec.md +35 -0
  33. package/specs/templates/tasks.md +10 -0
  34. package/src/cli.js +15 -4
  35. package/src/commands/collect.js +340 -0
  36. package/src/commands/ship.js +79 -0
  37. package/src/commands/verify.js +433 -0
  38. package/src/lib/closure-context.js +444 -0
  39. package/src/lib/contracts.js +388 -0
  40. package/src/lib/findings.js +227 -0
  41. package/src/lib/hasher.js +103 -0
  42. package/src/lib/runner-adapters.js +347 -0
  43. package/src/lib/state.js +143 -0
  44. package/src/lib/test-matrix.js +187 -0
  45. package/src/mcp-server.js +1 -1
  46. package/template/.agents/rules/01-gemstack-core.md +15 -0
  47. package/template/.agents/rules/02-gemstack-constitution.md +12 -1
  48. package/template/.agents/skills/gemstack-handoff/SKILL.md +2 -1
  49. package/template/.agents/skills/gemstack-plan/SKILL.md +2 -1
  50. package/template/.agents/skills/gemstack-review/SKILL.md +7 -5
  51. package/template/.agents/skills/gemstack-ship/SKILL.md +5 -0
  52. package/template/.agents/skills/gemstack-spec/SKILL.md +3 -2
  53. package/template/.agents/skills/gemstack-tasks/SKILL.md +4 -3
  54. package/template/docs/architecture-consistency.md +144 -0
  55. package/template/specs/templates/plan.md +11 -0
  56. package/template/specs/templates/spec.md +17 -0
  57. package/template/specs/templates/tasks.md +1 -0
  58. package/gemstack-ai-1.0.1.tgz +0 -0
@@ -13,6 +13,7 @@ Eres Antigravity operando bajo el framework **Gemstack**, una metodología local
13
13
  2. **Aprobación para Deploy/Push:** Nunca hagas `git push`, merge o deploy sin aprobación explícita.
14
14
  3. **Handoff Inmutable:** NUNCA borres la sección "Intentos fallidos" de `handoff.md`. Si crece demasiado, mueve de forma segura el contenido antiguo a `handoff_archive.md`.
15
15
  4. **Dependencias y Auth:** Cambios a la arquitectura de autenticación, migraciones de base de datos o instalación de dependencias globales requieren generación de plan técnico y aprobación humana.
16
+ 5. **Consistencia de Arquitectura y Congelamiento de Fases (Upgrade A):** Las decisiones arquitectónicas congeladas en `gemstack-contracts` no pueden ser contradichas silenciosamente por fases posteriores. Toda enmienda requiere aprobación humana explícita.
16
17
 
17
18
  ## Pseudo-Comandos (Ruteo Obligatorio)
18
19
  Si el usuario empieza su mensaje con uno de estos comandos, **NO improvises. DEBES cargar o seguir el skill correspondiente**:
@@ -49,3 +50,17 @@ Si el usuario empieza su mensaje con uno de estos comandos, **NO improvises. DEB
49
50
  - `/guard` -> Invoca `gemstack-guard`
50
51
  - `/unfreeze` -> Invoca `gemstack-guard`
51
52
 
53
+ ## Ruteo Semántico por Intención (Intent-Based Routing)
54
+ Si el usuario interactúa en lenguaje natural sin usar un `/comando` explícito, DEBES detectar la intención subyacente y activar el protocolo correspondiente:
55
+ 1. **Nueva funcionalidad o módulo mayor sin spec activa:**
56
+ - Si pide crear o agregar una feature sustancial (ej. "pon una parte para editar paquetes", "vamos a agregar cobro bimoneda"), **NO saltes directo al código**. Activa `gemstack-spec` para definir requisitos y criterios de éxito antes de implementar.
57
+ 2. **Solicitud de pruebas o validación:**
58
+ - Si el usuario dice "haz pruebas", "valida lo hecho", "comprueba que funcione" o "verifica los cambios", activa `gemstack-qa`.
59
+ 3. **Reporte de error o bug:**
60
+ - Si el usuario reporta que algo falló o no funciona como se esperaba, activa `gemstack-investigate` (principio: *No fixes before investigation*).
61
+ 4. **Cierre o pausa de sesión:**
62
+ - Si el usuario indica "terminamos por hoy", "voy a pausar", "dejo esto listo" o "prepara el resumen", activa `gemstack-handoff`.
63
+ 5. **Auditoría de seguridad:**
64
+ - Si pide revisar seguridad, permisos, tokens o vulnerabilidades, activa `gemstack-cso`.
65
+ 6. **Entrega o preparación de release:**
66
+ - Si pide preparar el merge, PR o entrega formal de la feature terminada, activa `gemstack-ship`.
@@ -14,11 +14,16 @@ Toda nueva funcionalidad DEBE nacer y estar estructurada preferentemente como un
14
14
  ## Article II: CLI / Interface Mandate
15
15
  Cada módulo o librería clave debe tener una forma de probarse e interactuar textualmente (CLI, scripts independientes, peticiones directas de texto o JSON). Evita componentes opacos que solo puedan probarse levantando interfaces gráficas complejas.
16
16
 
17
- ## Article III: Test-First Imperative (NON-NEGOTIABLE)
17
+ ## Article III: Test-First Imperative & Zero Silent Failures (NON-NEGOTIABLE)
18
18
  NUNCA escribas el código de implementación antes que los tests (TDD).
19
19
  1. Escribe los tests (unitarios, de integración o contratos) basándote en la especificación.
20
20
  2. Si es posible, demuestra que fallan.
21
21
  3. Solo entonces, escribe la implementación real.
22
+ 4. **Zero Silent Failures (Multiplataforma Windows / Linux / macOS):**
23
+ - PROHIBIDO el uso de operadores de supresión de shell que enmascaren fallos en scripts de `test` de `package.json` (ej. `2>nul`, `2>/dev/null || true`).
24
+ - El script de test DEBE terminar con exit code distinto de cero si ocurre cualquier falla.
25
+ - En monorepos TypeScript, usa runners multiplataforma estandarizados (ej. `tsx --test src/**/*.test.ts tests/**/*.test.ts`, `node --test`, `vitest` o `jest`).
26
+ - El test runner debe validar que la suite ejecutó efectivamente pruebas (`tests > 0`). Un reporte de 0 tests ejecutados finalizando con exit code 0 es considerado un falso positivo inaceptable.
22
27
 
23
28
  ## Article IV: Zero Assumptions (No Hallucinations)
24
29
  Si un requerimiento del humano es vago, la IA NO debe adivinar.
@@ -42,3 +47,9 @@ Usa las funciones del framework y librerías estándar nativamente en lugar de c
42
47
 
43
48
  ## Article IX: Integration-First Testing
44
49
  Prioriza el testing realista. Si puedes probar el contrato real o la base de datos local real (con un entorno temporal) por encima de mocks complejos, hazlo. El código generado debe funcionar en la práctica.
50
+
51
+ ## Article X: Architecture Consistency & Immutability Gate (Upgrade A)
52
+ Las decisiones arquitectónicas congeladas no pueden ser contradichas silenciosamente por fases posteriores.
53
+ - Antes de avanzar de fase, el hash del artefacto aguas arriba debe ser válido, los contratos compatibles y la cantidad de bloqueadores deterministas abiertos debe ser exactamente 0.
54
+ - Los artefactos de fases aprobadas quedan sellados criptográficamente (SHA-256) y no pueden mutar sin enmienda explícita aprobada por humanos.
55
+ - Proyectos preexistentes sin bloques de contratos operan en modo LEGACY transparente sin fallas.
@@ -17,5 +17,6 @@ Esta habilidad se ejecuta cuando el usuario pide terminar la sesión, invoca `/h
17
17
  5. **ARCHIVADO SEGURO:** Si "Intentos fallidos" en `handoff.md` tiene demasiados puntos (más de 10-15), CORTA los elementos más antiguos y pégalos en `handoff_archive.md` bajo su lista, conservando solo los 3-5 intentos recientes en `handoff.md`.
18
18
  6. Define los "5. Próximos pasos" exactos para la próxima sesión.
19
19
  7. Guarda los cambios en `handoff.md` (y `handoff_archive.md` si fue necesario).
20
- 8. Despídete del usuario indicando que el handoff está listo.
20
+ 8. **Sincronización de Estado:** Verifica `.gemstack/state.json` asegurando que `current_phase` refleje con precisión si hay una spec activa o en espera, y actualiza `last_update` con la marca temporal actual.
21
+ 9. Despídete del usuario indicando que el handoff está listo.
21
22
 
@@ -16,5 +16,7 @@ Invocado mediante `/plan`.
16
16
  4. Genera `specs/[nombre-feature]/plan.md` usando `specs/templates/plan.md`.
17
17
  5. Detalla el stack y llena la tabla "Complexity Tracking" SÓLO si rompiste alguna regla de la constitución y necesitas justificarlo.
18
18
  6. Opcionalmente, genera los entregables satélites: `data-model.md`, `contracts/` (para APIs/Interfaces), y `quickstart.md`.
19
- 7. Pide aprobación al usuario antes de permitir la ejecución de `/tasks`.
19
+ 7. **Herencia y Contratos Aditivos (Upgrade A)**: PLAN hereda automáticamente los contratos declarados en `spec.md`. No contradigas ni alteres los contratos congelados heredados; si requieres contratos técnicos adicionales, decláralos de forma compatible y aditiva en el bloque ````gemstack-contracts ```` de `plan.md`.
20
+ 8. **Vinculación Física de Pruebas y Gates (Upgrade B)**: Define en `plan.md` los bloques canónicos ````gemstack-test-bindings ```` (asociando cada ID de prueba a un archivo físico y runner) y ````gemstack-closure-gates ```` (especificando scripts de package.json obligatorios).
21
+ 9. Pide aprobación al usuario antes de permitir la ejecución de `/tasks`.
20
22
 
@@ -15,3 +15,6 @@ Invocado mediante `/qa` o `/qa-only`.
15
15
  3. Si la aplicación es visual, recomienda `/browser` o correr tests de Playwright para verificar manualmente la UI.
16
16
  4. Genera un breve reporte indicando si cada Criterio pasó o falló.
17
17
 
18
+
19
+ 5. **Recolección Mecánica de Evidencias (Upgrade B)**: Ejecuta `node src/cli.js collect` para ejecutar los runners de pruebas, gates y reconciliar la matriz mecánica generando `specs/[nombre-feature]/closure.json`.
20
+ 6. Valida que la evidencia esté fresca y en modo lectura con `node src/cli.js verify`.
@@ -11,8 +11,10 @@ Invocado mediante `/review`.
11
11
 
12
12
  ## Proceso:
13
13
  1. Analiza el código modificado (git diff, o archivos editados).
14
- 2. Verifica que las convenciones arquitectónicas del proyecto se respeten.
15
- 3. VERIFICACIÓN DE SEGURIDAD: Revisa obligatoriamente `.agents/rules/03-gemstack-security.md` para garantizar que el código propuesto no introduzca brechas de seguridad (IDOR, XSS, tokens expuestos).
16
- 4. Verifica que los tests cubran adecuadamente los cambios.
17
- 5. Emite sugerencias o aplica correcciones automáticas si son triviales.
18
- 6. Si el código está listo, sugiere `/qa` o `/ship`.
14
+ 2. **Validación Determinista Primero (Upgrade A)**: Ejecuta `node src/cli.js verify` o comprueba contratos congelados, hashes de fase y bloqueadores antes de proceder a la revisión semántica.
15
+ 3. Proporciona al revisor la lista de contratos efectivos, hashes de fase y hallazgos deterministas para no forzarlo a redescubrir desviaciones mecánicas.
16
+ 4. Verifica que las convenciones arquitectónicas del proyecto se respeten.
17
+ 5. VERIFICACIÓN DE SEGURIDAD: Revisa obligatoriamente `.agents/rules/03-gemstack-security.md` para garantizar que el código propuesto no introduzca brechas de seguridad (IDOR, XSS, tokens expuestos).
18
+ 6. Verifica que los tests cubran adecuadamente los cambios.
19
+ 7. Emite sugerencias o aplica correcciones automáticas si son triviales.
20
+ 8. Si el código está listo, sugiere `/qa` o `/ship`.
@@ -12,8 +12,17 @@ Invocado mediante `/ship`.
12
12
  ## Proceso:
13
13
  1. Verifica revisión (`/review`) y validación (`/qa`).
14
14
  2. Confirma validación de seguridad (`/cso`).
15
- 3. Comprueba si los specs se cumplieron.
15
+ 3. **Validación de Evidencia Mecánica de Cierre (Upgrade B)**:
16
+ - Comprueba que exista `specs/[nombre-feature]/closure.json`.
17
+ - Confirma que el estado sea `VERIFIED` o `VERIFIED_WITH_EXCEPTIONS`.
18
+ - Bloquea el ship si el estado es `STALE`, `BLOCKED`, o si falta el archivo (a menos que la feature opere en modo LEGACY).
19
+ - Ejecuta `node src/cli.js ship` para validar compuertas y transicionar el ciclo de vida.
16
20
  4. Genera un PR summary si se pide.
17
21
  5. NO hagas push, merge o deploy sin aprobación explícita.
18
22
  6. Sugiere ejecutar `/handoff` para documentar la entrega en la memoria del proyecto.
23
+ 7. **Sincronización de Estado:** Actualiza `.gemstack/state.json`:
24
+ - Establece `"active_spec": null`
25
+ - Registra `"last_completed_feature": "specs/[nombre-feature]/"`
26
+ - Establece `"current_phase": "shipped"`
27
+ - Actualiza `"last_update"` con el timestamp ISO actual.
19
28
 
@@ -19,6 +19,8 @@ Eres un Product Manager técnico. Tu objetivo es convertir ideas vagas en requis
19
19
  4. El documento DEBE incluir: Historias de usuario priorizadas (P1, P2) que sean independientemente testeables, Criterios de Éxito medibles, y Casos Extremos.
20
20
  5. **CERO SUPOSICIONES**: Si el usuario omitió detalles, NO adivines. Usa el marcador `[NEEDS CLARIFICATION: tu duda]` en el documento.
21
21
  6. No describas implementación técnica (nada de stacks, bases de datos o APIs). Concéntrate estrictamente en el "Qué" y "Por qué".
22
- 7. Actualiza el archivo `.gemstack/state.json` para reflejar la rama activa: `{"active_spec": "specs/[nombre-feature]/"}` y el timestamp.
23
- 8. Una vez finalizado, indica al usuario que puede revisar la especificación y, tras resolver las dudas, ejecutar `/plan`.
22
+ 7. **Contratos Arquitectónicos Congelados (Upgrade A)**: Si la funcionalidad implica decisiones estructurales críticas (estados enum, tuplas de identidad, reglas de procedencia, invariantes booleanas, límites de roadmap o límites boundary), decláralos explícitamente en el bloque canónico ````gemstack-contracts ````. Congela solo decisiones materiales, no texto arbitrario.
23
+ 8. **Matriz Mecánica de Pruebas (Upgrade B)**: Declara la matriz canónica en el bloque ````gemstack-test-matrix ```` de `spec.md`, asignando IDs canónicos estables `TEST-[FEATURE]-[CAT][NUM]`, capas y compuertas (REQUIRED | SUPPLEMENTAL).
24
+ 9. Actualiza el archivo `.gemstack/state.json` para reflejar la rama activa y fase: `{"active_spec": "specs/[nombre-feature]/", "current_phase": "spec", "last_update": "<timestamp>"}`.
25
+ 10. Una vez finalizado, indica al usuario que puede revisar la especificación y, tras resolver las dudas, ejecutar `/plan`.
24
26
 
@@ -12,7 +12,9 @@ Invocado mediante `/tasks`.
12
12
  ## Proceso:
13
13
  1. Lee `specs/[nombre-feature]/plan.md` y, si existen, `data-model.md` y la carpeta `contracts/`.
14
14
  2. Convierte los contratos, entidades y el plan en una lista estricta de ejecución en `specs/[nombre-feature]/tasks.md` usando la plantilla `specs/templates/tasks.md`.
15
- 3. Aplica Test-First: Las tareas de escribir pruebas (y validarlas) deben ir ANTES que la implementación de código.
16
- 4. Usa el marcador `[P]` para tareas independientes que se puedan paralelizar.
17
- 5. Ofrece al usuario comenzar automáticamente con la primera tarea o delegar a subagentes paralelos si hay múltiples `[P]`.
15
+ 3. **Herencia de Contratos (Upgrade A)**: TASKS hereda automáticamente los contratos consolidados de SPEC y PLAN. No se requiere declarar un bloque de contratos propio salvo que se agreguen contratos operacionales específicos de tareas.
16
+ 4. **Trazabilidad TASK -> TEST (Upgrade B)**: Para cada tarea, incluye comentarios de metadatos `<!-- gemstack:validation_required=true|false -->`, `<!-- gemstack:tests=... -->`, y `<!-- gemstack:files=... -->`, asegurando que todas las pruebas canónicas requeridas estén mapeadas a al menos una tarea de implementación.
17
+ 5. Aplica Test-First: Las tareas de escribir pruebas (y validarlas) deben ir ANTES que la implementación de código.
18
+ 6. Usa el marcador `[P]` para tareas independientes que se puedan paralelizar.
19
+ 7. Ofrece al usuario comenzar automáticamente con la primera tarea o delegar a subagentes paralelos si hay múltiples `[P]`.
18
20
 
@@ -1,11 +1,27 @@
1
1
  {
2
2
  "version": "0.1",
3
- "current_phase": "idle",
3
+ "current_phase": "shipped",
4
+ "status": "SHIPPED",
5
+ "stop_reason": "UPGRADE_B_SHIPPED_DONE",
4
6
  "active_spec": null,
7
+ "completed_phases": [
8
+ "spec",
9
+ "plan"
10
+ ],
11
+ "phase_hashes": {
12
+ "spec": "75f7b5aee9a7d45836128f619ba67d0870c9be3a2634d9152b01c6501faa513d",
13
+ "plan": "c77a3b1410d3b3028b72d66db524c6a23b0998dce12dddaee2507b4e446aec3b",
14
+ "tasks": "69ea9ae8557a41f98102c7b91905f74b3645ea59cbe301a54425216d5789b1d8"
15
+ },
16
+ "consistency": {
17
+ "status": "PASS",
18
+ "open_blockers": 0
19
+ },
5
20
  "guard_mode": {
6
21
  "careful": false,
7
22
  "freeze": false,
8
23
  "allowed_paths": []
9
24
  },
10
- "last_update": "2026-08-30T11:10:00Z"
25
+ "last_update": "2026-09-11T16:49:53.470Z",
26
+ "last_completed_feature": "specs/007-mechanical-test-matrix-closure-evidence/"
11
27
  }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,90 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [v1.2.0] - 2026-09-11
6
+ ### Added
7
+ - **Mechanical Test Matrix & Closure Evidence (Upgrade B)**: Full mechanical closure verification framework eliminating false closure and test discovery hallucinations.
8
+ - Canonical fenced `gemstack-test-matrix` blocks in `spec.md` with 20 canonical acceptance test criteria (`TEST-CLOSURE-A01` through `H01`).
9
+ - Deterministic Acceptance Signature (`acceptanceSignature`): SHA-256 digest calculated across all canonical test definitions ensuring immutable acceptance criteria.
10
+ - Bidirectional Task <-> Test Traceability: strict mapping between `tasks.md` validation blocks and canonical acceptance tests.
11
+ - Zero-Shell Test Runner Adapters: safe, cross-platform `node:test` TAP runner adapter with suite container detection (`kind: 'SUITE'` vs `kind: 'TEST'`).
12
+ - Exact Canonical Reconciliation Arithmetic: verifies `canonical_required = canonical_passed + missing`, `physical_executed = canonical_executed + supporting_executed`, and prevents phantoms and orphans.
13
+ - Mutating Evidence Collector (`gemstack collect`): executes bound test files and required `PACKAGE_SCRIPT` gates to produce `specs/<feature>/closure.json`.
14
+ - Dynamic Closure Context Freshness (`closureContextHash`): binds closure evidence to the repository state (clean/dirty git or non-git), phase hashes, test files, and bounded implementation code.
15
+ - Read-Only Closure Gate in `gemstack verify`: stage 5/6 verifies `closure.json` freshness and acceptance criteria without writing or mutating any files on disk.
16
+ - Lifecycle Ship Enforcement (`gemstack ship`): requires status `VERIFIED` in `closure.json` before transitioning feature lifecycle to `SHIPPED`.
17
+ - Progressive `LEGACY` mode support: features lacking test matrix blocks continue without friction or errors.
18
+
19
+ ### Changed
20
+ - `gemstack verify` upgraded to a 6-stage deterministic verification pipeline with zero-mutation read-only verification.
21
+ - `package.json` test script explicitly enumerates all 11 physical test suites for portable cross-platform execution.
22
+ - Agent skills (`gemstack-spec`, `gemstack-plan`, `gemstack-tasks`, `gemstack-qa`, `gemstack-ship`) and templates updated with Upgrade B canonical workflows.
23
+
24
+ ### Compatibility
25
+ - 100% backward compatible with existing Gemstack repositories and Upgrade A contract blocks.
26
+ - Zero external runtime or development npm dependencies added (`package.json` dependencies remain `{}`).
27
+
28
+ ### Validation
29
+ - 22/22 Upgrade B implementation tasks complete (T001–T022).
30
+ - 20/20 canonical P1 acceptance tests passing.
31
+ - 45/45 combined canonical acceptance tests passing (25 Upgrade A + 20 Upgrade B).
32
+ - 53/53 physical tests passing with 0 regressions.
33
+ - `npm test` exit code 0.
34
+ - `gemstack verify` exit code 0 with 0 open blockers.
35
+ - Self-dogfooded on `specs/007-mechanical-test-matrix-closure-evidence/` with closure status `VERIFIED`.
36
+
37
+ ## [v1.1.2] - 2026-09-11
38
+ ### Fixed
39
+ - Fixed host-dependent normalization of simulated Windows paths in the Architecture Consistency Engine.
40
+ - Canonical repository-relative locations now use explicit win32/posix path semantics based on input path flavor.
41
+ - Restored TEST-CONSISTENCY-G01 on Linux CI without changing Upgrade A architecture or acceptance semantics.
42
+
43
+ ## [v1.1.1] - 2026-09-11
44
+ ### Fixed
45
+ - Fixed cross-platform CI test discovery for Node's built-in test runner.
46
+ - Replaced shell-dependent recursive glob invocation with deterministic explicit test-file execution (`node --test tests/contracts.test.js tests/hasher.test.js tests/findings.test.js tests/init.test.js tests/verify.test.js`).
47
+ - No Upgrade A architecture or acceptance semantics changed.
48
+
49
+ ## [v1.1.0] - 2026-09-11
50
+ ### Added
51
+ - `FrozenContractRegistry`: deterministic architectural contract engine supporting 6 canonical types (`ENUM_SET`, `IDENTITY_TUPLE`, `PROVENANCE_RULE`, `BOOLEAN_INVARIANT`, `BOUNDARY`, `ROADMAP_LIMIT`).
52
+ - Canonical fenced `gemstack-contracts` blocks in phase artifacts (`spec.md`, `plan.md`, `tasks.md`).
53
+ - Cross-phase contract inheritance (`SPEC` -> `PLAN` -> `TASKS`) and deterministic contradiction detection (`FROZEN_CONTRACT_VIOLATION`).
54
+ - Phase artifact SHA-256 freezing and mutation detection (`FROZEN_ARTIFACT_CHANGED`).
55
+ - Canonical 64-character lowercase SHA-256 finding fingerprints with 12-character cosmetic display tokens.
56
+ - Anti-loop finding lifecycle reconciliation (`OPEN`, `RESOLVED`, `ACCEPTED_EXCEPTION`, `SUPERSEDED`).
57
+ - Formal accepted exception suppression bound to deterministic 3-tuple `contextHash`.
58
+ - Per-feature `.gemstack.json` historical metadata sidecar preserving phase hash and finding audit trails.
59
+ - Atomic state and sidecar persistence with temporary file write and atomic rename with bounded retry for cross-platform file locking.
60
+ - Progressive `LEGACY` mode ensuring features without contract blocks continue without friction or errors.
61
+ - Integrated Stage 4/5 Architectural Consistency verification into `gemstack verify` (alias `audit`).
62
+
63
+ ### Changed
64
+ - `gemstack verify` upgraded from 4-stage to 5-stage deterministic verification pipeline.
65
+ - Agent skills (`gemstack-spec`, `gemstack-plan`, `gemstack-tasks`, `gemstack-review`) and phase templates updated to generate and validate frozen architectural contracts.
66
+ - Gemstack Constitution strengthened to forbid silent downstream contradictions of frozen contracts.
67
+
68
+ ### Compatibility
69
+ - Existing projects without `gemstack-contracts` blocks remain 100% supported through progressive LEGACY mode.
70
+ - No mandatory migration is required.
71
+ - Zero external runtime or development npm dependencies added (`package.json` dependencies remain `{}`).
72
+
73
+ ### Validation
74
+ - 17 / 17 Upgrade A implementation tasks complete.
75
+ - 25 / 25 canonical P1 acceptance tests passing (Categories A–H).
76
+ - 33 / 33 physical test cases passing across 5 test suites.
77
+ - `npm test` exit code 0.
78
+ - `gemstack verify` exit code 0 with 0 open blockers.
79
+ - Self-dogfooded on `specs/006-architecture-consistency-engine/` with 5 base contracts passing and 0 contradictions.
80
+
81
+ ## [v1.0.2] - 2026-09-03
82
+ ### Added
83
+ - Intent-Based Routing in `01-gemstack-core.md`: semantic intent detection for natural language interactions without mandatory slash prefixes.
84
+ - Zero Silent Failures clause in Article III of `02-gemstack-constitution.md`: bans `2>nul` and error-suppressing shell operators in test runners.
85
+ - `gemstack verify` (alias `audit`): full-stack CLI auditor validating structure, memory integrity, state consistency, and security flags.
86
+ - Auto State Sync across `gemstack-spec`, `gemstack-ship`, and `gemstack-handoff` keeping `.gemstack/state.json` synchronized with the active feature lifecycle.
87
+ - Unit tests for verify command in `tests/verify.test.js`.
88
+
5
89
  ## [v0.3.0] - 2026-08-19
6
90
  ### Added
7
91
  - GitHub Actions CI/CD workflows (`pr-ci.yml`, `main-ci.yml`, `release-readiness.yml`).
package/MANUAL.md CHANGED
@@ -20,7 +20,7 @@ Es una herramienta de cero dependencias (funciona en cualquier lenguaje y comput
20
20
  No necesitas instalar librerías pesadas. En cualquier proyecto (sea nuevo o uno que ya lleve meses de desarrollo), abre tu terminal y ejecuta:
21
21
 
22
22
  ```bash
23
- npx gemstack init
23
+ npx gemstack-ai init
24
24
  ```
25
25
 
26
26
  **¿Qué hace esto?**
@@ -60,7 +60,7 @@ Gemstack viene con funcionalidades avanzadas (Skills) que puedes invocar como co
60
60
  Dile a la IA: *"Ejecuta `/cso`"*. El Chief Security Officer auditará tu código. Gemstack tiene leyes estrictas implantadas en su núcleo (AppSec Nivel 2 y DevOps). Si tienes una contraseña expuesta, o tu base de datos es vulnerable a un ataque de fuerza bruta, el agente detendrá todo y te obligará a parcharlo.
61
61
 
62
62
  ### 🪝 Prevención Activa (Git Hooks)
63
- Gemstack se asegura de que tú, como humano, tampoco cometas errores. Al hacer `npx gemstack init`, se instala un guardián invisible. Si intentas hacer un `git commit` y por error incluiste una llave de Amazon Web Services (AWS) o un archivo `.env`, Gemstack bloqueará el commit en tu terminal y te regañará.
63
+ Gemstack se asegura de que tú, como humano, tampoco cometas errores. Al hacer `npx gemstack-ai init`, se instala un guardián invisible. Si intentas hacer un `git commit` y por error incluiste una llave de Amazon Web Services (AWS) o un archivo `.env`, Gemstack bloqueará el commit en tu terminal y te regañará.
64
64
 
65
65
  ### 📊 Dashboard Interactivo (`/dashboard`)
66
66
  ¿Perdido en el código? Dile a tu chat de IA (si usas Antigravity):
@@ -71,11 +71,11 @@ La IA leerá tu lista de tareas y generará una interfaz gráfica incrustada en
71
71
  ### 🔌 Instalación de Skills Externos
72
72
  Gemstack es extensible. Si alguien en internet creó un súper agente especialista en Python, puedes descargarlo a tu proyecto directamente desde la terminal:
73
73
  ```bash
74
- npx gemstack install https://raw.githubusercontent.com/usuario/repo/main/SKILL.md
74
+ npx gemstack-ai install https://raw.githubusercontent.com/usuario/repo/main/SKILL.md
75
75
  ```
76
76
 
77
77
  ### 🤖 Servidor MCP (Para IAs Externas)
78
- Si usas Claude Desktop u otro cliente que soporte **Model Context Protocol (MCP)**, puedes configurar Gemstack como una de sus herramientas nativas. Simplemente configura el servidor ejecutando en tu cliente: `npx gemstack mcp`. La IA podrá "llamar" a Gemstack directamente por debajo de la mesa para preguntarle cuáles son tus tareas actuales y reglas de seguridad sin que tengas que decirle nada.
78
+ Si usas Claude Desktop u otro cliente que soporte **Model Context Protocol (MCP)**, puedes configurar Gemstack como una de sus herramientas nativas. Simplemente configura el servidor ejecutando en tu cliente: `npx gemstack-ai mcp`. La IA podrá "llamar" a Gemstack directamente por debajo de la mesa para preguntarle cuáles son tus tareas actuales y reglas de seguridad sin que tengas que decirle nada.
79
79
 
80
80
  ---
81
81
 
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  <div align="center">
2
- <img src="https://via.placeholder.com/150x150/1a1a2e/ffffff?text=GS" alt="Gemstack Logo" width="120" height="120" />
2
+ <img src="assets/logo.jpg" alt="Gemstack Logo" width="200" style="border-radius: 20px" />
3
3
  <h1>Gemstack</h1>
4
4
  <p><b>The Local-First Agentic Framework for Spec-Driven Development</b></p>
5
5
 
6
- [![npm version](https://img.shields.io/npm/v/gemstack.svg?style=flat-square)](https://www.npmjs.com/package/gemstack)
6
+ [![npm version](https://img.shields.io/npm/v/gemstack-ai.svg?style=flat-square)](https://www.npmjs.com/package/gemstack-ai)
7
7
  [![CI Build](https://img.shields.io/github/actions/workflow/status/rtorrescodes/Gemstack/main-ci.yml?style=flat-square&branch=main)](https://github.com/rtorrescodes/Gemstack/actions)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](https://opensource.org/licenses/MIT)
9
9
  [![Security Shield](https://img.shields.io/badge/Security-Military--Grade-red.svg?style=flat-square)](#military-grade-security-shield)
@@ -33,19 +33,19 @@ Start a new project or upgrade an existing one in seconds:
33
33
 
34
34
  ```bash
35
35
  # Initialize Gemstack in your current repository
36
- npx gemstack init
36
+ npx gemstack-ai init
37
37
  ```
38
38
 
39
39
  This will generate the `.agents/`, `.gemstack/`, and `specs/` directories.
40
40
 
41
41
  To ensure your framework is healthy or to check for manual tampering:
42
42
  ```bash
43
- npx gemstack doctor
43
+ npx gemstack-ai doctor
44
44
  ```
45
45
 
46
46
  To update your project when Gemstack releases new Agent Skills:
47
47
  ```bash
48
- npx gemstack update
48
+ npx gemstack-ai update
49
49
  ```
50
50
 
51
51
  ## 🧠 How it Works
@@ -68,6 +68,46 @@ Gemstack ships with `03-gemstack-security.md` and `04-gemstack-infrastructure.md
68
68
  - **DevSecOps & Infra**: Enforces Immutable Infrastructure (Docker/Terraform), Private Subnets (VPC), IAM Least Privilege, and Cloud Secret Managers.
69
69
  - **Server-Side Validation**: Complete distrust of frontend state.
70
70
 
71
+ ## 🔒 Architecture Consistency & Phase Freezing
72
+
73
+ Gemstack mechanically prevents AI agents from silently violating or hallucinating deviations from approved architecture. Critical decisions declared in `spec.md` are frozen using canonical cryptographic contracts and checked deterministically through `plan.md`, `tasks.md`, and implementation:
74
+
75
+ ```gemstack-contracts
76
+ [
77
+ {
78
+ "id": "zero-dependency-core",
79
+ "type": "BOOLEAN_INVARIANT",
80
+ "value": true
81
+ },
82
+ {
83
+ "id": "external-sync",
84
+ "type": "BOUNDARY",
85
+ "value": "FORBIDDEN"
86
+ }
87
+ ]
88
+ ```
89
+
90
+ - **SPEC** owns base architectural contracts.
91
+ - **PLAN** inherits them and may add compatible technical contracts.
92
+ - **TASKS** inherits the consolidated registry.
93
+ - Contradictions become deterministic blockers (`FROZEN_CONTRACT_VIOLATION`).
94
+ - Phase artifacts are frozen via canonical SHA-256 digests; tampering is caught immediately (`FROZEN_ARTIFACT_CHANGED`).
95
+ - `gemstack verify` performs strictly read-only verification without mutating or overwriting accepted phase hashes (`VERIFY != FREEZE`).
96
+ - Existing projects without structured contracts automatically run in **LEGACY** mode without breaking.
97
+
98
+
99
+ ## 🧪 Mechanical Test Matrix & Closure Evidence
100
+
101
+ Gemstack Upgrade B guarantees that what was planned is what was physically tested:
102
+ - **Canonical Test Matrix**: `spec.md` declares canonical acceptance tests and cryptographic `acceptanceSignature`.
103
+ - **Physical Test Bindings**: `plan.md` maps canonical IDs 1:1 to physical runner test files.
104
+ - **Task Traceability**: `tasks.md` validates that all required canonical tests have implementation tasks.
105
+ - **Safe Runner Adapters**: Direct zero-shell execution of test suites and package script gates.
106
+ - **`gemstack collect`**: Mutating runner that executes tests and atomically writes `specs/<feature>/closure.json`.
107
+ - **`gemstack verify`**: Strictly read-only 6-stage validator verifying evidence freshness against `closureContextHash`.
108
+ - **`gemstack ship`**: Gatekeeper requiring verified evidence before allowing transition to `SHIPPED`.
109
+ - **Git Optionality & Legacy Support**: Works identically on clean Git, dirty Git, and non-Git projects, with graceful legacy fallback.
110
+
71
111
  ## 🐝 Advanced Autonomy (The WOW Update)
72
112
 
73
113
  Gemstack isn't just passive documents; it actively orchestrates agentic capabilities:
@@ -82,7 +122,7 @@ Gemstack isn't just passive documents; it actively orchestrates agentic capabili
82
122
 
83
123
  ## 🪝 Active Security (Git Hooks)
84
124
 
85
- Gemstack ships with native, zero-dependency Git hooks. Run `npx gemstack hooks` (or just `npx gemstack init`) to install a local `pre-commit` hook that automatically blocks commits containing:
125
+ Gemstack ships with native, zero-dependency Git hooks. Run `npx gemstack-ai hooks` (or just `npx gemstack-ai init`) to install a local `pre-commit` hook that automatically blocks commits containing:
86
126
  - Exposed `.env` files.
87
127
  - Hardcoded secrets (Stripe, AWS, JWT keys).
88
128
  - Unresolved merge conflict markers (`<<<<<<< HEAD`).
@@ -91,7 +131,7 @@ Gemstack ships with native, zero-dependency Git hooks. Run `npx gemstack hooks`
91
131
 
92
132
  You can install agent skills created by the community directly into your project using the `install` command. Gemstack will fetch the `SKILL.md`, parse its metadata, and integrate it into your AI's brain automatically:
93
133
  ```bash
94
- npx gemstack install https://raw.githubusercontent.com/community/gemstack-skills/main/django-expert/SKILL.md
134
+ npx gemstack-ai install https://raw.githubusercontent.com/community/gemstack-skills/main/django-expert/SKILL.md
95
135
  ```
96
136
 
97
137
  ## 🤖 MCP Server (Model Context Protocol)
@@ -104,7 +144,7 @@ Add the following to your MCP client configuration:
104
144
  "mcpServers": {
105
145
  "gemstack": {
106
146
  "command": "npx",
107
- "args": ["gemstack", "mcp"]
147
+ "args": ["gemstack-ai", "mcp"]
108
148
  }
109
149
  }
110
150
  }
@@ -115,6 +155,7 @@ Add the following to your MCP client configuration:
115
155
  Dive deeper into the Gemstack architecture:
116
156
  - [📖 **Manual de Usuario**](MANUAL.md) - The Definitive Guide for beginners.
117
157
  - [🧠 Spec-Driven Development](docs/spec-driven-development.md) - How the SDD loop works.
158
+ - [🔒 Architecture Consistency](docs/architecture-consistency.md) - Deterministic contracts & phase freezing.
118
159
  - [Available Skills](docs/skills.md)
119
160
  - [Security Model](docs/security.md)
120
161
  - [Handoff Protocol](docs/handoff.md)
package/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,134 @@
1
1
  # Gemstack Release Notes
2
2
 
3
+ # Gemstack v1.2.0 — Mechanical Test Matrix & Closure Evidence
4
+
5
+ ## Highlights
6
+ - **Mechanical Test Matrix & Closure Verification (Upgrade B)**: Eliminates false closure and test discovery hallucinations by introducing a deterministic verification pipeline from specification to shipment.
7
+ - **Canonical Test Matrix (`gemstack-test-matrix`)**: Explicit acceptance criteria defined in `spec.md` with deterministic `acceptanceSignature` (SHA-256) ensuring acceptance rules are immutable once approved.
8
+ - **Task ↔ Test Traceability**: Explicit bidirectional binding between implementation tasks in `tasks.md` and canonical acceptance tests.
9
+ - **Safe Zero-Shell Runners**: Pure Node.js `node:test` TAP runner adapter with suite container exclusion (`kind: 'SUITE'` vs `kind: 'TEST'`), ensuring TAP headers/containers are never counted as physical tests.
10
+ - **Exact Canonical Reconciliation Arithmetic**: Mechanical validation proving `canonical_required = canonical_passed + missing` and `physical_executed = canonical_executed + supporting_executed` with zero tolerance for phantoms or orphans.
11
+ - **Mutating Collector (`gemstack collect`)**: Executes bound test suites and required `PACKAGE_SCRIPT` gates to produce `specs/<feature>/closure.json`.
12
+ - **Dynamic Closure Context Freshness (`closureContextHash`)**: Cryptographically binds closure evidence to repository state (clean git, dirty git, or non-git), phase hashes, bound test files, and bounded implementation source files.
13
+ - **Read-Only Verification Pipeline (`gemstack verify`)**: Stage 5/6 inspects closure freshness and gate outcomes in memory with 0 disk mutations.
14
+ - **Ship Gatekeeper (`gemstack ship`)**: Strict gate requiring `status: "VERIFIED"` in `closure.json` before transitioning feature lifecycle to `SHIPPED`.
15
+ - **Progressive LEGACY Mode**: Full backward compatibility for features without test matrices or contract blocks.
16
+ - **Zero-Dependency Architecture**: 100% native Node.js standard library implementation with zero third-party production dependencies.
17
+
18
+ ## Acceptance & Regression Baseline
19
+ - 25 Upgrade A canonical acceptance tests passing (`TEST-CONSISTENCY-A01` through `H02`).
20
+ - 20 Upgrade B canonical acceptance tests passing (`TEST-CLOSURE-A01` through `H01`).
21
+ - 45 total canonical acceptance tests passing.
22
+ - 53 total physical tests passing with 0 regressions.
23
+ - 11 physical test suites explicitly enumerated for cross-platform reliability.
24
+
25
+ ---
26
+
27
+ # Gemstack v1.1.2 — Architecture Consistency & Phase Freezing
28
+
29
+ ## Recovery Release Note
30
+ v1.1.2 is the release-recovery patch for Upgrade A. v1.1.1 resolved cross-platform test discovery, exposing a host-dependent path canonicalization defect in `TEST-CONSISTENCY-G01` when simulating Windows paths on Linux runners. v1.1.2 fixes that canonicalization using explicit path-flavor-aware Node.js path semantics (`path.win32` vs `path.posix`). No product architecture, contract semantics, or canonical P1 criteria were altered.
31
+
32
+ ## Highlights
33
+ - **Architecture Consistency Engine**: Mechanically prevents AI models from hallucinating or introducing silent architectural contradictions downstream through 6 canonical contract types (`ENUM_SET`, `IDENTITY_TUPLE`, `PROVENANCE_RULE`, `BOOLEAN_INVARIANT`, `BOUNDARY`, `ROADMAP_LIMIT`).
34
+ - **Cryptographic Phase Freezing**: SHA-256 canonical hashing of phase artifacts (`spec.md`, `plan.md`, `tasks.md`) with automatic mutation detection (`FROZEN_ARTIFACT_CHANGED`).
35
+ - **Deterministic-First Validation**: Automated cross-phase inheritance (`SPEC` -> `PLAN` -> `TASKS`) resolving contradictions before human review.
36
+ - **Canonical Finding Fingerprints**: Full 64-character lowercase SHA-256 digests with anti-loop lifecycle management (`OPEN`, `RESOLVED`, `ACCEPTED_EXCEPTION`, `SUPERSEDED`).
37
+ - **Accepted Exceptions Bound to Context**: Exceptions require cryptographic `contextHash` binding; any change to compared artifacts or contracts invalidates suppression.
38
+ - **Progressive LEGACY Mode**: Features without contracts continue without disruption or breaking changes.
39
+ - **Zero-Dependency Core**: Pure Node.js standard library implementation (`node:crypto`, `node:fs`, `node:path`, `node:test`).
40
+
41
+ ## Compatibility
42
+ - 100% backward compatible with existing Gemstack repositories.
43
+ - Zero external runtime dependencies added.
44
+
45
+ ## Validation
46
+ - 17/17 Upgrade A implementation tasks complete.
47
+ - 25/25 canonical P1 acceptance tests passing.
48
+ - 33/33 physical test suite passing.
49
+ - `npm test` exit code 0.
50
+ - `gemstack verify` exit code 0 with 0 open blockers.
51
+ - Self-dogfooded on `specs/006-architecture-consistency-engine/`.
52
+
53
+ ## Upgrade Notes
54
+ - Run `npx gemstack-ai update` to pull the latest agent skills and templates into your existing project.
55
+
56
+ ---
57
+
58
+ # Gemstack v1.1.1 — Architecture Consistency & Phase Freezing
59
+
60
+ ## Recovery Release Note
61
+ v1.1.1 is the publishable recovery release for Upgrade A. The original v1.1.0 tag completed development and closure, but its release CI workflow stopped prior to npm publication because the test command relied on shell-dependent recursive glob resolution on Linux runners. In v1.1.1, test execution is made strictly portable across all operating systems. No product architecture or contract semantics changed.
62
+
63
+ ## Highlights
64
+ - **Architecture Consistency Engine**: Mechanically prevents AI models from hallucinating or introducing silent architectural contradictions downstream through 6 canonical contract types (`ENUM_SET`, `IDENTITY_TUPLE`, `PROVENANCE_RULE`, `BOOLEAN_INVARIANT`, `BOUNDARY`, `ROADMAP_LIMIT`).
65
+ - **Cryptographic Phase Freezing**: SHA-256 canonical hashing of phase artifacts (`spec.md`, `plan.md`, `tasks.md`) with automatic mutation detection (`FROZEN_ARTIFACT_CHANGED`).
66
+ - **Deterministic-First Validation**: Automated cross-phase inheritance (`SPEC` -> `PLAN` -> `TASKS`) resolving contradictions before human review.
67
+ - **Canonical Finding Fingerprints**: Full 64-character lowercase SHA-256 digests with anti-loop lifecycle management (`OPEN`, `RESOLVED`, `ACCEPTED_EXCEPTION`, `SUPERSEDED`).
68
+ - **Accepted Exceptions Bound to Context**: Exceptions require cryptographic `contextHash` binding; any change to compared artifacts or contracts invalidates suppression.
69
+ - **Progressive LEGACY Mode**: Features without contracts continue without disruption or breaking changes.
70
+ - **Zero-Dependency Core**: Pure Node.js standard library implementation (`node:crypto`, `node:fs`, `node:path`, `node:test`).
71
+
72
+ ## Compatibility
73
+ - 100% backward compatible with existing Gemstack repositories.
74
+ - Zero external runtime dependencies added.
75
+
76
+ ## Validation
77
+ - 17/17 Upgrade A implementation tasks complete.
78
+ - 25/25 canonical P1 acceptance tests passing.
79
+ - 33/33 physical test suite passing.
80
+ - `npm test` exit code 0.
81
+ - `gemstack verify` exit code 0 with 0 open blockers.
82
+ - Self-dogfooded on `specs/006-architecture-consistency-engine/`.
83
+
84
+ ## Upgrade Notes
85
+ - Run `npx gemstack-ai update` to pull the latest agent skills and templates into your existing project.
86
+
87
+ ---
88
+
89
+ # Gemstack v1.1.0 — Architecture Consistency & Phase Freezing
90
+
91
+ ## Highlights
92
+ - **Architecture Consistency Engine**: Mechanically prevents AI models from hallucinating or introducing silent architectural contradictions downstream through 6 canonical contract types (`ENUM_SET`, `IDENTITY_TUPLE`, `PROVENANCE_RULE`, `BOOLEAN_INVARIANT`, `BOUNDARY`, `ROADMAP_LIMIT`).
93
+ - **Cryptographic Phase Freezing**: SHA-256 canonical hashing of phase artifacts (`spec.md`, `plan.md`, `tasks.md`) with automatic mutation detection (`FROZEN_ARTIFACT_CHANGED`).
94
+ - **Deterministic-First Validation**: Automated cross-phase inheritance (`SPEC` -> `PLAN` -> `TASKS`) resolving contradictions before human review.
95
+ - **Canonical Finding Fingerprints**: Full 64-character lowercase SHA-256 digests with anti-loop lifecycle management (`OPEN`, `RESOLVED`, `ACCEPTED_EXCEPTION`, `SUPERSEDED`).
96
+ - **Accepted Exceptions Bound to Context**: Exceptions require cryptographic `contextHash` binding; any change to compared artifacts or contracts invalidates suppression.
97
+ - **Progressive LEGACY Mode**: Features without contracts continue without disruption or breaking changes.
98
+ - **Zero-Dependency Core**: Pure Node.js standard library implementation (`node:crypto`, `node:fs`, `node:path`, `node:test`).
99
+
100
+ ## Compatibility
101
+ - 100% backward compatible with existing Gemstack repositories.
102
+ - Zero external runtime dependencies added.
103
+
104
+ ## Validation
105
+ - 17/17 Upgrade A implementation tasks complete.
106
+ - 25/25 canonical P1 acceptance tests passing.
107
+ - 33/33 physical test suite passing.
108
+ - `npm test` exit code 0.
109
+ - `gemstack verify` exit code 0 with 0 open blockers.
110
+ - Self-dogfooded on `specs/006-architecture-consistency-engine/`.
111
+
112
+ ## Upgrade Notes
113
+ - Run `npx gemstack-ai update` to pull the latest agent skills and templates into your existing project.
114
+
115
+ ---
116
+
117
+ # Gemstack v1.0.2
118
+
119
+ ## Highlights
120
+ - **Zero Silent Failures**: Actualización al Article III de la Constitución prohibiendo `2>nul` y operadores de supresión de fallos en scripts de testing multiplataforma.
121
+ - **Intent-Based Routing**: Detección semántica de intenciones en lenguaje natural en `01-gemstack-core.md`, auto-activando `gemstack-spec`, `gemstack-qa`, `gemstack-investigate` y `gemstack-handoff` sin requerir estrictamente `/comando`.
122
+ - **Auto State Sync**: Sincronización automática de `.gemstack/state.json` en `gemstack-spec`, `gemstack-ship` y `gemstack-handoff` con control de ciclo de vida (`current_phase`, `active_spec`, `last_completed_feature`).
123
+ - **Unified Health & Security Auditor (`gemstack verify`)**: Nuevo comando CLI y script `pnpm/npm run gemstack:verify` para validar en un solo paso archivos base, integridad de memoria (5 secciones de `handoff.md`), estado local y seguridad de scripts.
124
+
125
+ ## Validation
126
+ - `npm test`: 8 tests unitarios pasando al 100%.
127
+ - `npm run gemstack:verify`: Éxito total.
128
+ - CI Scripts: frontmatter, template clean, mojibake, package contents y smoke CLI validados.
129
+
130
+ ---
131
+
3
132
  # Gemstack v0.3.0
4
133
 
5
134
  ## Highlights
Binary file