@windyroad/architect 0.23.4 → 0.23.5
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.
|
@@ -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')
|
|
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
|
|