@windyroad/architect 0.23.4-preview.1265 → 0.23.5-preview.1270

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.
@@ -123,5 +123,5 @@
123
123
  }
124
124
  },
125
125
  "name": "wr-architect",
126
- "version": "0.23.4"
126
+ "version": "0.23.5"
127
127
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wr-architect",
3
- "version": "0.23.4",
3
+ "version": "0.23.5",
4
4
  "description": "Architecture decision enforcement for AI coding agents",
5
5
  "author": {
6
6
  "name": "Windy Road Technology",
@@ -22,6 +22,7 @@ check_architect_gate() {
22
22
  # P191 Phase 2: anchor the docs/decisions drift-hash on the project root,
23
23
  # not the hook's runtime CWD (see architect-enforce-edit.sh for rationale).
24
24
  local PROJECT_DIR="${CLAUDE_PROJECT_DIR:-$PWD}"
25
+ local COMPLETION_GUIDANCE="On Codex, wait for the reviewer to finish, then invoke interrupt_agent exactly once with that completed task's exact target before retrying. On Claude Code, dispatch the reviewer synchronously. Do not create or edit review markers manually."
25
26
 
26
27
  if [ -n "$SESSION_ID" ] && [ -f "$MARKER" ]; then
27
28
  local NOW=$(date +%s)
@@ -44,7 +45,7 @@ check_architect_gate() {
44
45
  fi
45
46
  if [ "$STORED" != "$CURRENT" ]; then
46
47
  rm -f "$MARKER" "$HASH_FILE"
47
- ARCHITECT_GATE_REASON="Decision drift detected — docs/decisions/ changed substantively since the last architect review. Re-delegate to wr-architect:agent via the Agent tool (subagent_type: 'wr-architect:agent') to refresh the marker."
48
+ ARCHITECT_GATE_REASON="Decision drift detected — docs/decisions/ changed substantively since the last architect review. Re-delegate to wr-architect:agent via the Agent tool (subagent_type: 'wr-architect:agent') to refresh the marker. ${COMPLETION_GUIDANCE}"
48
49
  return 1 # Drift detected, deny
49
50
  else
50
51
  touch "$MARKER" # Slide TTL window forward
@@ -56,15 +57,12 @@ check_architect_gate() {
56
57
  fi
57
58
  else
58
59
  rm -f "$MARKER"
59
- ARCHITECT_GATE_REASON="Architect review expired (${AGE}s old, TTL ${TTL_SECONDS}s). Re-delegate to wr-architect:agent via the Agent tool (subagent_type: 'wr-architect:agent') to refresh the marker."
60
+ ARCHITECT_GATE_REASON="Architect review expired (${AGE}s old, TTL ${TTL_SECONDS}s). Re-delegate to wr-architect:agent via the Agent tool (subagent_type: 'wr-architect:agent') to refresh the marker. ${COMPLETION_GUIDANCE}"
60
61
  return 1 # TTL expired, deny
61
62
  fi
62
63
  fi
63
64
 
64
- ARCHITECT_GATE_REASON="No architect review marker found for this session. Delegate to wr-architect:agent via the Agent tool (subagent_type: 'wr-architect:agent') so the architect can review and create the marker. After an ISSUES FOUND verdict, obtain the upgraded PASS from a fresh wr-architect:agent spawn: resuming the prior agent does not fire the completion hook and therefore cannot write the marker. If you already hold a genuine PASS, assert the marker manually: touch /tmp/architect-reviewed-\$SID && rm -f /tmp/architect-reviewed-\$SID.hash (SID = newest architect-plan-reviewed-* / architect-announced-* basename)."
65
- if [ -n "${CODEX_THREAD_ID:-}" ]; then
66
- ARCHITECT_GATE_REASON="No architect review marker found for this session. After a genuine PASS from a completed wr-architect:agent task, call interrupt_agent once with that completed task's exact target, then retry the edit. If still blocked, run a fresh review and report the gate diagnostic. Do not create or edit review markers manually."
67
- fi
65
+ ARCHITECT_GATE_REASON="No architect review marker found for this session. Delegate to wr-architect:agent via the Agent tool (subagent_type: 'wr-architect:agent'). After an ISSUES FOUND verdict, obtain the upgraded PASS from a fresh spawn because resuming the prior agent does not fire the completion hook. ${COMPLETION_GUIDANCE}"
68
66
  return 1 # No marker, deny
69
67
  }
70
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/architect",
3
- "version": "0.23.4-preview.1265",
3
+ "version": "0.23.5-preview.1270",
4
4
  "description": "Architecture decision enforcement for AI coding agents",
5
5
  "bin": {
6
6
  "windyroad-architect": "./bin/install.mjs"