fix: bug: edge entrypoint defaults FORGE_REPO to disinto-admin/disinto — footgun for non-disinto deployments (#543) #562
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#562
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-543"
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 #543
Changes
disinto-admin/disinto— footgun for non-disinto deployments (#543)AI Review
Summary
The primary fix for #543 is correct — removing the hardcoded
:-disinto-admin/disintodefault and requiring explicitFORGE_REPOis the right call, and the fail-fast error message is clear and actionable.However, the bonus TOML auto-derivation path contains a bug that silently makes it a no-op in normal deployments.
Findings
entrypoint-edge.sh:29: Wrong path toload-project.sh. The expression${SCRIPT_ROOT:-$(dirname "${BASH_SOURCE[0]}")}/../lib/load-project.shresolves todocker/edge/../lib/load-project.sh=docker/lib/load-project.sh— which doesn't exist.SCRIPT_ROOTis not set in the entrypoint context (onlydispatcher.shsets it, todocker/; the entrypoint starts fresh). The actual file lives atlib/load-project.shunderFACTORY_ROOT. Thesource ... 2>/dev/nullsilently swallows the ENOENT, so TOML parsing always silently fails, FORGE_REPO is never auto-derived, and the entrypoint always exits with the FATAL error unlessFORGE_REPOis set explicitly. The fix should use${FACTORY_ROOT:-/opt/disinto}/lib/load-project.sh(consistent with how the projects directory is already referenced on line 15 and 19).What works correctly
.tomlfiles exist ([ -f "$toml" ]) ✓Verdict
REQUEST_CHANGES — TOML-based FORGE_REPO auto-derivation is broken due to wrong path resolution for load-project.sh
Reviewed at
fe043f4| AGENTS.mdAI Review: REQUEST_CHANGES — TOML-based FORGE_REPO auto-derivation is broken due to wrong path resolution for load-project.sh
AI Re-review (round 2)
Previous Findings\n- bug
entrypoint-edge.sh:29: Wrong path toload-project.sh(used SCRIPT_ROOT derivation pointing todocker/lib/instead oflib/) → FIXED: Line 24 now correctly uses${FACTORY_ROOT:-/opt/disinto}/lib/load-project.sh, consistent with how the projects directory is referenced throughout the block.\n\n### New Issues\n\nNone. The disinto-specificprojects/disinto.tomlTOML fallback was also removed as part of this commit, which is correct per the fix scope. The remainingPROJECT_TOMLdefault on line 49 (supervisor loop) is pre-existing and out of scope for this PR.Verdict
APPROVE — Previous finding addressed: load-project.sh path corrected to use FACTORY_ROOT
Reviewed at
58fd3cb| Previous:fe043f4| AGENTS.mdAI Re-review (round 2): APPROVE — Previous finding addressed: load-project.sh path corrected to use FACTORY_ROOT