aienvmp 0.1.55 → 0.1.56

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/BUGFIXES.md CHANGED
@@ -124,6 +124,12 @@ Short record of bugs, fixes, and follow-up checks.
124
124
  - Fix: `.aienvmp/summary.md` now starts with `AI readiness`, `AI signals`, and `AI next`; the dashboard audit band includes readiness signals in its hint.
125
125
  - Verification: regression tests assert the summary top block and dashboard readiness signals; Windows and macOS package smoke checks cover generated artifacts.
126
126
 
127
+ ### AI review state could sound more blocking than intended
128
+
129
+ - Issue: `aiReadiness.level: review` made risk visible, but did not explicitly tell AI agents which local actions remain safe and which environment changes need intent/review first.
130
+ - Fix: `aiReadiness` now includes `requiresHumanReview`, `safeProjectLocalActions`, and `reviewOnlyEnvironmentChanges`; `summary.md` includes the first safe-local-work hint.
131
+ - Verification: regression tests cover status, context, summary, and schema outputs; Windows smoke confirmed generated JSON and summary fields.
132
+
127
133
  ## Template
128
134
 
129
135
  ### Title
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.56
4
+
5
+ - Added `aiReadiness.requiresHumanReview` so agents can distinguish review-needed signals from hard blocking.
6
+ - Added `aiReadiness.safeProjectLocalActions` to clarify what AI agents may still do in review state.
7
+ - Added `aiReadiness.reviewOnlyEnvironmentChanges` to keep environment changes advisory, intentional, and non-disruptive.
8
+ - Added the safe-local-work hint to `.aienvmp/summary.md`.
9
+ - Documented the summary top block and `aiReadiness` consumption rule in `schema --json`.
10
+ - Added regression tests for status, context, summary, and schema outputs.
11
+
3
12
  ## 0.1.55
4
13
 
5
14
  - Moved `AI readiness`, readiness signals, and next action to the top of `.aienvmp/summary.md`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aienvmp",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "description": "AI-first environment maps and lightweight runtime SBOMs for shared development machines.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -62,6 +62,7 @@ export function renderSummary(status = {}, manifest = {}) {
62
62
  `- AI readiness: ${aiReadiness.level || "unknown"}`,
63
63
  `- AI signals: ${aiSignals.length ? aiSignals.join("; ") : "none"}`,
64
64
  `- AI next: ${aiNext}`,
65
+ `- AI safe local work: ${toList(aiReadiness.safeProjectLocalActions)[0] || "read artifacts and avoid environment changes until reviewed"}`,
65
66
  `- AI read first: ${readFirst}, then ${detail}`,
66
67
  `- mode: advisory by default; strict is opt-in with ${strict}`,
67
68
  "",
package/src/contract.js CHANGED
@@ -24,7 +24,8 @@ export function schemaContract() {
24
24
  file: ".aienvmp/summary.md",
25
25
  command: "aienvmp summary --write",
26
26
  format: "markdown",
27
- purpose: "Compact AI and CI step summary for quick review."
27
+ purpose: "Compact AI and CI step summary for quick review.",
28
+ startsWith: ["AI readiness", "AI signals", "AI next"]
28
29
  },
29
30
  context: {
30
31
  command: "aienvmp context --json",
@@ -52,7 +53,8 @@ export function schemaContract() {
52
53
  compatibility: {
53
54
  stability: "additive",
54
55
  consumerRule: "Ignore unknown fields. Do not require optional fields unless listed in requiredFields.",
55
- localBehavior: "read-only; this command does not scan, install, update, or lock anything."
56
+ localBehavior: "read-only; this command does not scan, install, update, or lock anything.",
57
+ aiReadinessRule: "When aiReadiness.level is review, project-local code work may still continue if aiReadiness.projectLocalWork is allowed; environment changes should follow intent/review guidance."
56
58
  }
57
59
  };
58
60
  }
package/src/preflight.js CHANGED
@@ -105,10 +105,21 @@ function aiReadinessSummary({ state, decision, coordination, agentActivity, agen
105
105
  const next = level === "ready"
106
106
  ? "AI agents can continue project-local work; record intent before environment changes."
107
107
  : "Review listed signals before another AI changes runtimes, dependencies, package managers, Docker, or global tools.";
108
+ const safeProjectLocalActions = [
109
+ "read status, summary, context, env map, SBOM, and timeline artifacts",
110
+ "continue code-only work that does not install, remove, upgrade, downgrade, or switch tools",
111
+ "write a plan or intent before changing runtimes, dependencies, package managers, Docker, or global tools"
112
+ ];
113
+ const reviewOnlyEnvironmentChanges = review.length
114
+ ? "Record intent and review signals before environment changes; strict failure remains opt-in."
115
+ : "Record intent before environment changes; strict failure remains opt-in.";
108
116
  return {
109
117
  level,
118
+ requiresHumanReview: review.length > 0,
110
119
  projectLocalWork: decision?.canContinueProjectLocalWork ? "allowed" : "review-first",
111
120
  environmentChanges: decision?.canChangeEnvironmentWithoutReview ? "allowed" : "intent-and-review-first",
121
+ safeProjectLocalActions,
122
+ reviewOnlyEnvironmentChanges,
112
123
  signals: review,
113
124
  blockers,
114
125
  next,