amsd-pipeline-shared 0.5.21 → 0.5.23

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.
@@ -236,3 +236,11 @@ ff9ea38d594f181363c40295ea42012a prompts/templates/writer-plan-section.json
236
236
  4120de0abec9f84c3b0fa98cd2584233 scripts/lib/worktree-rungs.sh
237
237
  515f80e7a9228cdfbc39e71c06066d95 scripts/lib/story-attempt.sh
238
238
  6a31e809386b4114794bb773c850b46b scripts/lib/producers/fix-plan.js
239
+ b3e93b2042f50c5b69133108c8de9711 scripts/lib/prompt-library.js
240
+ a7d52fab41432240f1e2dbffd6710ea5 scripts/lib/project-prompt-builder.js
241
+ dea5be1123db8ab5b054fef8cc1388fe scripts/mint-agents-step.js
242
+ eb4979b0f88ed8449b2e4702d0dff7a5 scripts/lib/prompt-variant.sh
243
+ d4992178558476af4c4c228e6aa63b2d scripts/lib/mint-and-spec.sh
244
+ fac1b26443bb52ba45ba072f4d654920 scripts/lib/story-guards.sh
245
+ ada237373615a26d924226184ed7614b scripts/lib/prd-change-review.sh
246
+ c2dfd2381db0242fdbc487a948fd7feb scripts/lib/agent-si.js
@@ -153,6 +153,7 @@ scripts/lib/agent-contract.js
153
153
  scripts/lib/agent-ladder.sh
154
154
  scripts/lib/agent-messages.js
155
155
  scripts/lib/agent-si.js
156
+ scripts/lib/agent-si.js
156
157
  scripts/lib/checkpoints.sh
157
158
  scripts/lib/codeline-lanes.sh
158
159
  scripts/lib/codeline-packages.js
@@ -212,6 +213,7 @@ scripts/lib/kb-store.js
212
213
  scripts/lib/kb-synthesizer.js
213
214
  scripts/lib/langfuse-emit.js
214
215
  scripts/lib/llm-settings-resolve.js
216
+ scripts/lib/mint-and-spec.sh
215
217
  scripts/lib/model-ladder.sh
216
218
  scripts/lib/model-ladders.sh
217
219
  scripts/lib/orchestration-resume.sh
@@ -221,10 +223,14 @@ scripts/lib/pipeline-tools.js
221
223
  scripts/lib/plan-hash.js
222
224
  scripts/lib/plan-of-record.sh
223
225
  scripts/lib/plan-scope.js
226
+ scripts/lib/prd-change-review.sh
224
227
  scripts/lib/preflight.sh
225
228
  scripts/lib/prelaunch.js
226
229
  scripts/lib/producers/fix-plan.js
230
+ scripts/lib/project-prompt-builder.js
227
231
  scripts/lib/project-prompt-contract.js
232
+ scripts/lib/prompt-library.js
233
+ scripts/lib/prompt-variant.sh
228
234
  scripts/lib/qa-gate-evidence.sh
229
235
  scripts/lib/relative-paths.js
230
236
  scripts/lib/release-lines.sh
@@ -240,12 +246,14 @@ scripts/lib/self-heal.js
240
246
  scripts/lib/stage-coverage-gate.sh
241
247
  scripts/lib/story-acs-block.sh
242
248
  scripts/lib/story-attempt.sh
249
+ scripts/lib/story-guards.sh
243
250
  scripts/lib/story-outputs.sh
244
251
  scripts/lib/story-retry-state.sh
245
252
  scripts/lib/tool-timeouts.js
246
253
  scripts/lib/transcript-tool-calls.js
247
254
  scripts/lib/worktree-rungs.sh
248
255
  scripts/llm-handler.sh
256
+ scripts/mint-agents-step.js
249
257
  scripts/preflight-check.sh
250
258
  scripts/preflight-prd-integrity.sh
251
259
  scripts/preflight-static.sh
@@ -1203,6 +1203,10 @@ _run_codeline_loop() {
1203
1203
  # THE DECLARATION IS THE CODELINE'S RESULT (lib/handlers/record-declared-pass.js).
1204
1204
  "$NODE_BIN" "$SCRIPT_DIR/lib/handlers/record-declared-pass.js" "$_prd_path" "$_cl" || true
1205
1205
  # ITS OTHER RELEASE LINES STILL SHIP (lib/release-lines.sh): passed is the operator's word for the codeline's own line.
1206
+ if ! lane_codeline_set_restore "$_cl_prd"; then
1207
+ error "[orch] Codeline '${_cl}': its own recorded agents and prompts are not there — its release lines do not run on another codeline's set"
1208
+ _overall=1; continue
1209
+ fi
1206
1210
  _run_release_lines "$_cl" "$_cl_prd" "$_wt" "${LOG_DIR:-/tmp}/lanes/${_cl}" "$_log_file" "$_phase_filter" "$0" "$_prd_path" || _overall=1
1207
1211
  continue
1208
1212
  fi
@@ -1215,6 +1219,12 @@ _run_codeline_loop() {
1215
1219
  warning "[orch] Set EPAM_PARALLEL_CODELINES=0 if these lanes integrate with each other."
1216
1220
  fi
1217
1221
 
1222
+ # LANES THAT RUN TOGETHER SHARE ONE ACTIVE SET (operator, 2026-10-22: "prompts/profiles BY codeline"): they start only when
1223
+ # their codelines' recorded sets are the same (lib/prompt-variant.sh parallel_lanes_codeline_set_restore); otherwise none starts.
1224
+ if [ "${#_p_cls[@]}" -gt 0 ] && ! parallel_lanes_codeline_set_restore "${_p_prds[@]}"; then
1225
+ error "[orch] Parallel lanes not started: each lane must work from its own codeline's set — EPAM_PARALLEL_CODELINES=0 runs them one at a time"
1226
+ _overall=1; _p_cls=()
1227
+ fi
1218
1228
  log "[orch] Launching ${#_p_cls[@]} codeline(s) in PARALLEL..."
1219
1229
  _lane_idx=0
1220
1230
  while [ "$_lane_idx" -lt "${#_p_cls[@]}" ]; do
@@ -1476,12 +1486,22 @@ _run_codeline_loop() {
1476
1486
  # THE DECLARATION IS THE CODELINE'S RESULT (lib/handlers/record-declared-pass.js).
1477
1487
  "$NODE_BIN" "$SCRIPT_DIR/lib/handlers/record-declared-pass.js" "$_prd_path" "$_cl" || true
1478
1488
  # ITS OTHER RELEASE LINES STILL SHIP (lib/release-lines.sh): passed is the operator's word for the codeline's own line.
1489
+ if ! lane_codeline_set_restore "$_cl_prd"; then
1490
+ error "[orch] Codeline '${_cl}': its own recorded agents and prompts are not there — its release lines do not run on another codeline's set"
1491
+ _overall=1; continue
1492
+ fi
1479
1493
  _run_release_lines "$_cl" "$_cl_prd" "$_wt" "${LOG_DIR:-/tmp}/lanes/${_cl}" "$_log_file" "$_phase_filter" "$0" "$_prd_path" || _overall=1
1480
1494
  continue
1481
1495
  fi
1482
1496
 
1483
1497
  _rebuild_cross
1484
1498
  log "[orch] Codeline '${_cl}' — ${_n_stories} stories → ${_wt}"
1499
+ # THE LANE WORKS FROM ITS OWN CODELINE'S SET (operator, 2026-10-22: "prompts/profiles BY codeline"): restored before any of its
1500
+ # agents run (lib/prompt-variant.sh lane_codeline_set_restore); a codeline with no recorded set does not run on another's.
1501
+ if ! lane_codeline_set_restore "$_cl_prd"; then
1502
+ error "[orch] Codeline '${_cl}': its own recorded agents and prompts are not there — the lane does not run on another codeline's set"
1503
+ _overall=1; continue
1504
+ fi
1485
1505
 
1486
1506
  # A SEQUENTIAL LANE GETS ITS OWN LOG_DIR TOO. The parallel loop scoped it (2026-07-29: state
1487
1507
  # files read back across lanes); this loop did not, so every lane shared phase-baseline-sha.txt