pumuki 6.3.136 → 6.3.138
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
CHANGED
|
@@ -6,6 +6,18 @@ This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [6.3.138] - 2026-05-05
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **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`.
|
|
14
|
+
|
|
15
|
+
## [6.3.137] - 2026-05-05
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **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.
|
|
20
|
+
|
|
9
21
|
## [6.3.136] - 2026-05-05
|
|
10
22
|
|
|
11
23
|
### Fixed
|
|
@@ -4,6 +4,16 @@ This file tracks the active deterministic framework line used in this repository
|
|
|
4
4
|
Canonical release chronology lives in `CHANGELOG.md`.
|
|
5
5
|
This file keeps only the operational highlights and rollout notes that matter while running the framework.
|
|
6
6
|
|
|
7
|
+
### 2026-05-05 (v6.3.138)
|
|
8
|
+
|
|
9
|
+
- **Doc-only sin worktree sucio:** cuando el índice solo contiene `*.md` / `*.mdx`, Pumuki restaura `.ai_evidence.json` trackeado a `HEAD` tras refrescar el gate, evitando el fallo del framework `pre-commit` por “files were modified by this hook”.
|
|
10
|
+
- **RuralGo follow-up:** corrige el bloqueo observado al commitear el feedback `docs/technical/08-validation/refactor/pumuki-integration-feedback.md` después del repin.
|
|
11
|
+
|
|
12
|
+
### 2026-05-05 (v6.3.137)
|
|
13
|
+
|
|
14
|
+
- **Atomicidad compatible con evidencia gestionada:** `.ai_evidence.json` / `.AI_EVIDENCE.json` ya no cuentan como scope o fichero funcional en `git-atomicity`, de modo que un commit de repin no queda bloqueado solo porque el hook refresque evidencia trackeada.
|
|
15
|
+
- **RuralGo follow-up:** corrige el bloqueo observado al intentar commitear el repin `package.json` + `package-lock.json`, donde Pumuki auto-restageaba evidencia y elevaba el commit a 3 scopes.
|
|
16
|
+
|
|
7
17
|
### 2026-05-05 (v6.3.136)
|
|
8
18
|
|
|
9
19
|
- **All-severities blocking para consumers:** `PRE_WRITE`, `PRE_COMMIT`, `PRE_PUSH` y `CI` bloquean por cualquier violación de skills/reglas AST Intelligence, sin permitir rebajas por `skills.policy`, hard-mode `critical-high` ni `PRE_WRITE=advisory`.
|
|
@@ -31,6 +31,7 @@ type GitAtomicityConfig = {
|
|
|
31
31
|
const ATOMICITY_CONFIG_FILE = '.pumuki/git-atomicity.json';
|
|
32
32
|
const DEFAULT_COMMIT_PATTERN =
|
|
33
33
|
'^(feat|fix|chore|refactor|docs|test|perf|build|ci|revert)(\\([^)]+\\))?:\\s.+$';
|
|
34
|
+
const MANAGED_EVIDENCE_PATHS = new Set(['.ai_evidence.json', '.AI_EVIDENCE.json']);
|
|
34
35
|
|
|
35
36
|
const defaultConfig: GitAtomicityConfig = {
|
|
36
37
|
enabled: true,
|
|
@@ -139,6 +140,9 @@ const parseLines = (value: string): ReadonlyArray<string> =>
|
|
|
139
140
|
.map((line) => line.trim())
|
|
140
141
|
.filter((line) => line.length > 0);
|
|
141
142
|
|
|
143
|
+
const isManagedEvidencePath = (path: string): boolean =>
|
|
144
|
+
MANAGED_EVIDENCE_PATHS.has(path.replace(/\\/g, '/').trim());
|
|
145
|
+
|
|
142
146
|
const toErrorMessage = (error: unknown): string => {
|
|
143
147
|
if (error instanceof Error) {
|
|
144
148
|
return error.message;
|
|
@@ -288,7 +292,7 @@ export const evaluateGitAtomicity = (params: {
|
|
|
288
292
|
stage: params.stage,
|
|
289
293
|
fromRef: params.fromRef,
|
|
290
294
|
toRef: params.toRef,
|
|
291
|
-
});
|
|
295
|
+
}).filter((path) => !isManagedEvidencePath(path));
|
|
292
296
|
const atomicSlicesRemediation = buildAtomicSlicesRemediation({
|
|
293
297
|
git,
|
|
294
298
|
repoRoot,
|
|
@@ -20,9 +20,7 @@ import {
|
|
|
20
20
|
} from '../notifications/emitAuditSummaryNotification';
|
|
21
21
|
import { existsSync, readFileSync, unlinkSync, writeFileSync } from 'node:fs';
|
|
22
22
|
import { join } from 'node:path';
|
|
23
|
-
import { buildEvidenceOperationalHints } from '../evidence/operationalHints';
|
|
24
23
|
import { readEvidence, readEvidenceResult } from '../evidence/readEvidence';
|
|
25
|
-
import { writeEvidence } from '../evidence/writeEvidence';
|
|
26
24
|
import type { EvidenceReadResult } from '../evidence/readEvidence';
|
|
27
25
|
import type { SnapshotFinding } from '../evidence/schema';
|
|
28
26
|
import { ensureRuntimeArtifactsIgnored } from '../lifecycle/artifacts';
|
|
@@ -135,6 +133,7 @@ type StageRunnerDependencies = {
|
|
|
135
133
|
isPathTracked: (repoRoot: string, relativePath: string) => boolean;
|
|
136
134
|
listStagedIndexPaths: (repoRoot: string) => ReadonlyArray<string>;
|
|
137
135
|
stagePath: (repoRoot: string, relativePath: string) => void;
|
|
136
|
+
restorePathFromHead: (repoRoot: string, relativePath: string) => void;
|
|
138
137
|
resolveHeadOid: (repoRoot: string) => string | null;
|
|
139
138
|
resolveGitAtomicityEnforcement: () => GitAtomicityEnforcementResolution;
|
|
140
139
|
};
|
|
@@ -223,6 +222,9 @@ const defaultDependencies: StageRunnerDependencies = {
|
|
|
223
222
|
stagePath: (repoRoot, relativePath) => {
|
|
224
223
|
new GitService().runGit(['add', '--', relativePath], repoRoot);
|
|
225
224
|
},
|
|
225
|
+
restorePathFromHead: (repoRoot, relativePath) => {
|
|
226
|
+
new GitService().runGit(['checkout', '--', relativePath], repoRoot);
|
|
227
|
+
},
|
|
226
228
|
resolveHeadOid: (repoRoot) => {
|
|
227
229
|
try {
|
|
228
230
|
return new GitService().runGit(['rev-parse', 'HEAD'], repoRoot).trim();
|
|
@@ -507,26 +509,6 @@ const runHookGateWithPolicyRetry = async (params: {
|
|
|
507
509
|
}
|
|
508
510
|
};
|
|
509
511
|
|
|
510
|
-
const patchOperationalHintsAfterDocumentationOnlyEvidenceSync = (repoRoot: string): void => {
|
|
511
|
-
const evidenceRead = readEvidenceResult(repoRoot);
|
|
512
|
-
if (evidenceRead.kind !== 'valid') {
|
|
513
|
-
return;
|
|
514
|
-
}
|
|
515
|
-
const evidence = evidenceRead.evidence;
|
|
516
|
-
const hints = buildEvidenceOperationalHints({
|
|
517
|
-
stage: evidence.snapshot.stage,
|
|
518
|
-
outcome: evidence.snapshot.outcome,
|
|
519
|
-
findings: evidence.snapshot.findings,
|
|
520
|
-
rulesCoverage: evidence.snapshot.rules_coverage,
|
|
521
|
-
evaluationMetrics: evidence.snapshot.evaluation_metrics,
|
|
522
|
-
extra: {
|
|
523
|
-
requires_second_pass: true,
|
|
524
|
-
second_pass_reason: 'tracked_evidence_refreshed_on_disk_not_staged_documentation_only_commit',
|
|
525
|
-
},
|
|
526
|
-
});
|
|
527
|
-
writeEvidence({ ...evidence, operational_hints: hints }, { repoRoot });
|
|
528
|
-
};
|
|
529
|
-
|
|
530
512
|
const syncTrackedEvidenceAfterSuccessfulPreCommit = (params: {
|
|
531
513
|
dependencies: StageRunnerDependencies;
|
|
532
514
|
repoRoot: string;
|
|
@@ -547,12 +529,11 @@ const syncTrackedEvidenceAfterSuccessfulPreCommit = (params: {
|
|
|
547
529
|
) {
|
|
548
530
|
if (!params.dependencies.isQuietMode()) {
|
|
549
531
|
process.stderr.write(
|
|
550
|
-
`[pumuki][evidence-sync] tracked ${EVIDENCE_FILE_PATH}
|
|
551
|
-
`Include in this commit if needed: git add -- ${EVIDENCE_FILE_PATH}. ` +
|
|
532
|
+
`[pumuki][evidence-sync] tracked ${EVIDENCE_FILE_PATH} left unchanged for documentation-only staged paths (*.md / *.mdx). ` +
|
|
552
533
|
`Force previous behavior: PUMUKI_PRE_COMMIT_ALWAYS_RESTAGE_TRACKED_EVIDENCE=1\n`
|
|
553
534
|
);
|
|
554
535
|
}
|
|
555
|
-
|
|
536
|
+
params.dependencies.restorePathFromHead(params.repoRoot, EVIDENCE_FILE_PATH);
|
|
556
537
|
return false;
|
|
557
538
|
}
|
|
558
539
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.138",
|
|
4
4
|
"description": "Enterprise-grade AST Intelligence System with multi-platform support (iOS, Android, Backend, Frontend) and Feature-First + DDD + Clean Architecture enforcement. Includes dynamic violations API for intelligent querying.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|