fix: feat(96a): architect-bot user + directory + run script scaffold (#99) #107
No reviewers
Labels
No labels
action
backlog
blocked
in-progress
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: johba/disinto#107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-99"
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?
Fixes #99
Changes
AI Review
Summary
Scaffold PR adds the architect agent directory, run script, stub formula, and CI wiring. The structure correctly mirrors existing agents and the intentional stub is well-documented. Two bugs need fixing before merge.
Issues
bug
lib/env.sh:101:FORGE_BOT_USERNAMEShardcoded default does not includearchitect-bot. The.env.examplewas updated correctly but the fallback default inenv.shwas not. Any deployment withoutFORGE_BOT_USERNAMESexplicitly set will silently miss architect-bot in the bot filter, which can cause the agent to respond to its own comments (loop risk).Fix: change the default on line 101 to include
architect-bot:bug
.woodpecker/detect-duplicates.py:183-187: TheEXCLUDED_FILESset incollect_findings()uses a relative path string ("architect/architect-run.sh"), but when called with an absolutebaseline_dir(line 272),root.rglob()produces absolute paths that never match. The exclusion is silently ineffective for baseline comparisons.main()is fine because it passes"."and gets relative paths. The latent bug will manifest on any future PR that modifiesarchitect-run.sh(baseline will contain it, exclusion won't fire).Fix: exclude by path suffix or convert to relative before comparing, e.g.
any(str(p).endswith(excl) for excl in EXCLUDED_FILES), or relativize withp.relative_to(root).Non-issues
FORGE_ARCHITECT_TOKENaddition inlib/env.shand.env.exampleis consistent and correct.agent-smoke.sh(syntax check + function-resolution check) is complete.#747on the token override matches the per-agent token issue referenced inlib/env.sh.Verdict
REQUEST_CHANGES — FORGE_BOT_USERNAMES default in lib/env.sh missing architect-bot; detect-duplicates.py exclusion silently broken for baseline comparisons
Reviewed at
6184003| AGENTS.mdAI Review: REQUEST_CHANGES — FORGE_BOT_USERNAMES default in lib/env.sh missing architect-bot; detect-duplicates.py exclusion silently broken for baseline comparisons
AI Re-review (round 2)
Previous Findings
FORGE_BOT_USERNAMES default missing architect-bot () → FIXED: default now includes
architect-botin the hardcoded fallback list.detect-duplicates.py exclusion broken for absolute paths () → FIXED: switched from exact string match to
str(p).endswith(suffix)suffix matching in bothcollect_findings()andmain(), which works correctly for both absolute and relative paths.New Issues
None.
Verdict
APPROVE — Both previous findings fixed: FORGE_BOT_USERNAMES default updated, duplicate exclusion switched to suffix matching
Reviewed at
cbb9907| Previous:6184003| AGENTS.mdAI Re-review (round 2): APPROVE — Both previous findings fixed: FORGE_BOT_USERNAMES default updated, duplicate exclusion switched to suffix matching