fix: fix: architect-run.sh missing .profile integration — no lessons, no journal (#222)
This commit is contained in:
parent
f425bfa72e
commit
38050bc2c3
1 changed files with 15 additions and 1 deletions
|
|
@ -53,10 +53,19 @@ check_memory 2000
|
||||||
|
|
||||||
log "--- Architect run start ---"
|
log "--- Architect run start ---"
|
||||||
|
|
||||||
|
# ── Resolve agent identity for .profile repo ────────────────────────────
|
||||||
|
if [ -z "${AGENT_IDENTITY:-}" ] && [ -n "${FORGE_ARCHITECT_TOKEN:-}" ]; then
|
||||||
|
AGENT_IDENTITY=$(curl -sf -H "Authorization: token ${FORGE_ARCHITECT_TOKEN}" \
|
||||||
|
"${FORGE_URL:-http://localhost:3000}/api/v1/user" 2>/dev/null | jq -r '.login // empty' 2>/dev/null || true)
|
||||||
|
fi
|
||||||
|
|
||||||
# ── Load formula + context ───────────────────────────────────────────────
|
# ── Load formula + context ───────────────────────────────────────────────
|
||||||
load_formula "$FACTORY_ROOT/formulas/run-architect.toml"
|
load_formula_or_profile "architect" "$FACTORY_ROOT/formulas/run-architect.toml" || exit 1
|
||||||
build_context_block VISION.md AGENTS.md ops:prerequisites.md
|
build_context_block VISION.md AGENTS.md ops:prerequisites.md
|
||||||
|
|
||||||
|
# ── Prepare .profile context (lessons injection) ─────────────────────────
|
||||||
|
formula_prepare_profile_context
|
||||||
|
|
||||||
# ── Build structural analysis graph ──────────────────────────────────────
|
# ── Build structural analysis graph ──────────────────────────────────────
|
||||||
build_graph_section
|
build_graph_section
|
||||||
|
|
||||||
|
|
@ -84,6 +93,7 @@ and file sub-issues after design forks are resolved.
|
||||||
${CONTEXT_BLOCK}
|
${CONTEXT_BLOCK}
|
||||||
${GRAPH_SECTION}
|
${GRAPH_SECTION}
|
||||||
${SCRATCH_CONTEXT}
|
${SCRATCH_CONTEXT}
|
||||||
|
$(formula_lessons_block)
|
||||||
## Formula
|
## Formula
|
||||||
${FORMULA_CONTENT}
|
${FORMULA_CONTENT}
|
||||||
|
|
||||||
|
|
@ -104,4 +114,8 @@ agent_run --worktree "$WORKTREE" "$PROMPT"
|
||||||
log "agent_run complete"
|
log "agent_run complete"
|
||||||
|
|
||||||
rm -f "$SCRATCH_FILE"
|
rm -f "$SCRATCH_FILE"
|
||||||
|
|
||||||
|
# Write journal entry post-session
|
||||||
|
profile_write_journal "architect-run" "Architect run $(date -u +%Y-%m-%d)" "complete" "" || true
|
||||||
|
|
||||||
log "--- Architect run done ---"
|
log "--- Architect run done ---"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue