@adhdev/mesh-shared 1.0.82-rc.107 → 1.0.82-rc.109

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.
@@ -166,7 +166,9 @@ export interface StagePlanDefaultsInput {
166
166
  }
167
167
  /**
168
168
  * Resolve the enqueue-time `review` option into a stage plan, or null when review is off.
169
- * `review` undefined → R5 default (applied by the MCP layer; the daemon's enqueueTask passes `defaultOn: false` so internal and legacy callers never get a pipeline they did not ask for) (medium/difficult non-readonly `code_change` → on; easy/freeform/readonly → off).
169
+ * `review` undefined → OFF (owner decision 2026-11-08: in-task review is opt-in; the default cost speed and parallelism
170
+ * without catching the live bugs). Pass `review: true` (or an options object) for a change that genuinely needs one.
171
+ * `defaultOn: true` restores the old R5 default (medium/difficult non-readonly `code_change` → on) for a caller that asks for it.
170
172
  * Throws `invalid_review_option: …` on malformed input (rejected, never coerced).
171
173
  */
172
174
  export declare function resolveStagePlan(raw: unknown, task: StagePlanDefaultsInput, opts?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/mesh-shared",
3
- "version": "1.0.82-rc.107",
3
+ "version": "1.0.82-rc.109",
4
4
  "description": "ADHDev mesh-shared — pure mesh/git status normalizers shared by daemon-core and web-core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -199,12 +199,14 @@ export interface StagePlanDefaultsInput {
199
199
 
200
200
  /**
201
201
  * Resolve the enqueue-time `review` option into a stage plan, or null when review is off.
202
- * `review` undefined → R5 default (applied by the MCP layer; the daemon's enqueueTask passes `defaultOn: false` so internal and legacy callers never get a pipeline they did not ask for) (medium/difficult non-readonly `code_change` → on; easy/freeform/readonly → off).
202
+ * `review` undefined → OFF (owner decision 2026-11-08: in-task review is opt-in; the default cost speed and parallelism
203
+ * without catching the live bugs). Pass `review: true` (or an options object) for a change that genuinely needs one.
204
+ * `defaultOn: true` restores the old R5 default (medium/difficult non-readonly `code_change` → on) for a caller that asks for it.
203
205
  * Throws `invalid_review_option: …` on malformed input (rejected, never coerced).
204
206
  */
205
207
  export function resolveStagePlan(raw: unknown, task: StagePlanDefaultsInput, opts: { defaultOn?: boolean } = {}): MeshTaskStagePlan | null {
206
208
  const eligible = isStageEligibleTask(task)
207
- if (raw === undefined || raw === null) return (opts.defaultOn ?? true) && defaultsOnFor(task) ? defaultStagePlan() : null
209
+ if (raw === undefined || raw === null) return (opts.defaultOn ?? false) && defaultsOnFor(task) ? defaultStagePlan() : null
208
210
  if (raw === false) return null
209
211
  if (raw === true) {
210
212
  if (!eligible) throw new Error(`invalid_review_option: review requires a non-readonly code_change task (got taskMode=${task.taskMode ?? 'unset'}${task.readonly ? ', readonly' : ''})`)