harnessed 3.9.21 → 3.9.22

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/dist/cli.mjs CHANGED
@@ -1231,7 +1231,7 @@ var init_auto_install = __esm({
1231
1231
 
1232
1232
  // package.json
1233
1233
  var package_default = {
1234
- version: "3.9.21"};
1234
+ version: "3.9.22"};
1235
1235
 
1236
1236
  // src/manifest/errors.ts
1237
1237
  function instancePathToKeyPath(instancePath) {
@@ -5479,7 +5479,58 @@ function registerRun(program2) {
5479
5479
  const stage = name.includes("-") ? name.split("-")[0] ?? "" : name;
5480
5480
  const gateContext = {
5481
5481
  task,
5482
- phase: { stage, is_critical_module: true },
5482
+ phase: {
5483
+ stage,
5484
+ // verify-stage gates
5485
+ is_critical_module: true,
5486
+ // verify-paranoid fires
5487
+ is_final_step: true,
5488
+ // verify-simplify fires
5489
+ is_major_release: false,
5490
+ // verify-multispec only for major
5491
+ has_auth_or_secrets: false,
5492
+ has_design_changes: false,
5493
+ has_ui_changes: false,
5494
+ requires_creative_polish: false,
5495
+ // plan-stage gates
5496
+ is_complex_architecture: true,
5497
+ // plan-architecture fires
5498
+ // discuss-stage gates
5499
+ has_cross_phase_data_flow: true,
5500
+ // discuss-phase fires
5501
+ open_decisions: 2,
5502
+ // ≥2 fires phase-gate
5503
+ scope_days: 2,
5504
+ // >1 day fires phase-gate
5505
+ scope_locked_in_history: false,
5506
+ single_task: false,
5507
+ type: "general"
5508
+ },
5509
+ subtask: {
5510
+ // subtask brainstorming gate
5511
+ approaches: 2,
5512
+ // ≥2 fires
5513
+ core_algorithm: true,
5514
+ has_api_contract: true,
5515
+ error_cost: "high",
5516
+ lines: 50,
5517
+ // ≥20 → no skip
5518
+ type: "general",
5519
+ // not crud/standard_lib_call → no skip
5520
+ // tdd gate
5521
+ is_core_business_logic: true,
5522
+ is_algorithm: true,
5523
+ is_data_processing: true,
5524
+ regression_risk: "high",
5525
+ reliability_required: true,
5526
+ // misc
5527
+ communication_needed: false,
5528
+ needs_lib_docs: false,
5529
+ needs_web_search: false,
5530
+ parallel_count: 1,
5531
+ search_type: "general",
5532
+ test_type: "general"
5533
+ },
5483
5534
  ...raw.model ? { modelOverride: raw.model } : {},
5484
5535
  ...raw.maxIterations ? { maxIterations: raw.maxIterations } : {},
5485
5536
  ...raw.staged ? { staged: true } : {},