Skip to content

Commit 38d713d

Browse files
authored
Merge pull request #287 from Fr-e-d/contrib/sync-1777596583
sync: update 2 file(s) in core/
2 parents 8ba8fa0 + 8a0dff3 commit 38d713d

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

.gaai/core/scripts/daemon-dispatch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ ${qa_snippet}"
932932
[[ "$auto_merge_applied" == "true" ]] && pr_status_val="merged" || pr_status_val="pending_review"
933933
"$SCHEDULER" --set-field "$story_id" pr_status "$pr_status_val" "$BACKLOG_FILE" 2>/dev/null || true
934934

935-
# ── DEC-27 gate: advance phase_status qa_passed → done (AC4) ─────────────
935+
# ── Audit gate: advance phase_status qa_passed → done ────────────────────
936936
if ! "$SCHEDULER" --set-phase-status "$story_id" done "$BACKLOG_FILE" 2>/dev/null; then
937937
echo "[ERROR] ${story_id} handle_commit_phase: --set-phase-status done failed [class=SCHEDULER_FAILURE]"
938938
_emit_commit_routing_record "$story_id" "$trace_id" "error" "SCHEDULER_FAILURE" "0" "$pr_url" "$auto_merge_applied"
@@ -947,7 +947,7 @@ ${qa_snippet}"
947947
fi
948948
duration_ms=$(( t_end_ms - t_start_ms ))
949949

950-
# ── Emit success routing record (AC4 — DEC-65 audit) ─────────────────────
950+
# ── Emit success routing record ────────────────────────────────────────────
951951
_emit_commit_routing_record "$story_id" "$trace_id" "daemon-bash" "null" "$duration_ms" "$pr_url" "$auto_merge_applied"
952952

953953
ts=$(date '+%H:%M:%S')

.gaai/core/scripts/tests/daemon-state-machine.test.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ IMPL_STORY_EOF
198198
done
199199
unset _impl_id _wt
200200

201-
# git init E134S01-workspace so handle_commit_phase can run in T7c
202-
_e134_wt="$DISPATCH_FIXTURE_DIR/E134S01-workspace"
203-
git -C "$_e134_wt" init -q
204-
git -C "$_e134_wt" config user.email "test@example.com"
205-
git -C "$_e134_wt" config user.name "Test"
206-
git -C "$_e134_wt" commit --allow-empty -m "init" --quiet
207-
git -C "$_e134_wt" checkout -B "story/E134S01" -q
208-
unset _e134_wt
201+
# git init dispatch-worktree so handle_commit_phase can run in T7c
202+
_dispatch_wt="$DISPATCH_FIXTURE_DIR/E134S01-workspace"
203+
git -C "$_dispatch_wt" init -q
204+
git -C "$_dispatch_wt" config user.email "test@example.com"
205+
git -C "$_dispatch_wt" config user.name "Test"
206+
git -C "$_dispatch_wt" commit --allow-empty -m "init" --quiet
207+
git -C "$_dispatch_wt" checkout -B "story/dispatch-test" -q
208+
unset _dispatch_wt
209209

210210
# ── node shim: redirects nested-claude-spawn.js to impl-spawn-stub.mjs ──────
211211
# This exercises the real runImpl() routing via _setSpawnFn (AC6.a requirement).
@@ -1187,7 +1187,7 @@ unset QA_OLD_PATH QA_FIXTURE_DIR QA_SHIM_DIR PROJECT_DIR_QA_ORIG
11871187
rm -rf "/tmp/gaai-qa-phase-tests-$$"
11881188

11891189
# ── T30-T44: handle_commit_phase tests ────────────────────────
1190-
# Tests for the real commit phase implementation (E134S06):
1190+
# Tests for the real commit phase implementation:
11911191
# git commit, push, gh pr create, auto-merge policy, routing record.
11921192

11931193
COMMIT_FIXTURE_DIR="/tmp/gaai-commit-phase-tests-$$"
@@ -1412,7 +1412,7 @@ else
14121412
fi
14131413

14141414
# ── T32: gh pr create called with --base staging ──────────────
1415-
echo "T32: gh pr create — called with --base staging (DEC-23)"
1415+
echo "T32: gh pr create — called with --base staging"
14161416
if grep -q '\-\-base' "$COMMIT_CALL_LOG" 2>/dev/null && grep -q 'staging' "$COMMIT_CALL_LOG" 2>/dev/null; then
14171417
pass "T32: gh pr create was called with --base staging"
14181418
else

0 commit comments

Comments
 (0)