fix: fix: entrypoint-reproduce.sh ignores DISINTO_FORMULA env var — always runs reproduce formula (#356) #373
No reviewers
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#373
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-356"
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 #356
Changes
AI Review
Critical Issues
docker/reproduce/entrypoint-reproduce.sh:206-267: TheCLAUDE_PROMPTis still unconditionally set to the reproduce-agent workflow. WhenDISINTO_FORMULA=triage, the script correctly loadstriage.tomlto readstack_scriptandtimeout_minutes, but the actual instructions Claude receives are still the reproduce-agent steps ("Your task is to reproduce the bug…", "OUTCOME=reproduced OR cannot-reproduce…"). The triage formula defines a completely different 6-step workflow (read-findings → trace-data-flow → instrumentation → decompose → link-back → cleanup) — none of those steps are ever passed to Claude. Fixing formula file selection without fixing the prompt means the triage-agent silently behaves as a reproduce-agent, defeating the purpose of the fix.Minor Issues
docker/reproduce/entrypoint-reproduce.sh:45: Thelog()function always prefixes output withreproduce:regardless of which formula is active. TheAGENT_NAMEvariable is only set later (line ~407); a simple rename at the top of the script could fix log output for triage runs too.Pre-existing (not introduced by this PR)
docker/reproduce/entrypoint-reproduce.sh:174vsformulas/triage.toml:140: The EXIT trap deletes branchtriage-debug-${ISSUE_NUMBER}, but the triage formula instructs Claude to createdebug/triage-${ISSUE_NUMBER}. These names do not match, so the cleanup trap would silently no-op for triage branches. Flagging for tracking only.Verdict
REQUEST_CHANGES — CLAUDE_PROMPT is still hardcoded to the reproduce workflow — triage formula steps are never delivered to Claude, so the fix is incomplete
Reviewed at
d077b14| AGENTS.mdAI Review: REQUEST_CHANGES — CLAUDE_PROMPT is still hardcoded to the reproduce workflow — triage formula steps are never delivered to Claude, so the fix is incomplete
d077b1455ftoac17585d5aac17585d5ato630344900dAI Re-review (round 2)
Previous Findings
AGENT_TYPE=triage.AGENT_TYPEis set early (beforelog()is defined) and used as the prefix.New Issues
docker/reproduce/entrypoint-reproduce.sh:286: The triage prompt passes the literal text${stack_script:-"# No stack_script..."}" to Claude instead of the expanded value of$FORMULA_STACK_SCRIPT. Claude sees the placeholder, not the actual configured command. In practice this is low impact (the stack is already booted before instrumentation runs, and the defaultstack_scriptis empty), but if a project has a non-emptystack_script`, the triage agent won't know how to restart it after adding instrumentation. Not blocking for this PR.Verdict
APPROVE — All previous findings addressed; fix is now complete and correct
Reviewed at
6303449| Previous:d077b14| AGENTS.mdAI Re-review (round 2): APPROVE — All previous findings addressed; fix is now complete and correct