fix: architect-run.sh missing .profile integration — no lessons, no journal #222
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#222
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
All formula agents (gardener, supervisor, planner, predictor) integrate with the .profile system for cross-session learning. The architect does not — it was likely written before the .profile system was added or missed during rollout.
The architect currently:
load_formulainstead ofload_formula_or_profile(line 57)formula_prepare_profile_context(no lessons injected)profile_write_journal(no session reflection recorded)AGENT_IDENTITYfromFORGE_ARCHITECT_TOKENReference pattern
All other formula agents follow the same three-step pattern. Use gardener/gardener-run.sh as reference:
Resolve identity (line 67-72):
if [ -z "${AGENT_IDENTITY:-}" ] && [ -n "${FORGE_GARDENER_TOKEN:-}" ]; then
AGENT_IDENTITY=$(curl -sf -H "Authorization: token ${FORGE_GARDENER_TOKEN}" "${FORGE_URL}/api/v1/user" | jq -r '.login')
fi
Load formula with profile fallback (line 74):
load_formula_or_profile "gardener" "$FACTORY_ROOT/formulas/run-gardener.toml"
Prepare profile context (line 78):
formula_prepare_profile_context
Write journal post-session (line 347):
profile_write_journal "gardener-run" "Gardener run $(date -u +%Y-%m-%d)" "complete" ""
Important: avoid code duplication
Do NOT copy-paste the gardener's profile blocks. The functions
load_formula_or_profile,formula_prepare_profile_context, andprofile_write_journalare already in lib/formula-session.sh and lib/profile.sh. The architect just needs to call them with the right arguments ("architect" role, FORGE_ARCHITECT_TOKEN, "architect-run" journal prefix).Affected files
Acceptance criteria
Dependencies
Depends on #214 (hire-an-agent must be able to create architect-bot/.profile repo)