fix: feat(96c): architect formula — sprint PR creation with questions (#101) #109
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#109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-101"
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 #101
Changes
AI Review
Summary
This PR adds Capability A (create pitch PR) and Capability B (handle ACCEPT/REJECT on existing pitch PRs) to the architect formula. The overall design — embedding accept/reject handling in preflight to short-circuit the run early, and the PR-based human conversation pattern — is well thought out. The sprint spec template and the ACCEPT/REJECT protocol are clear.
Two bugs in the embedded Forgejo API Reference section need fixing before merge:
Issues
high
formulas/run-architect.toml:204: Wrong Close PR endpoint. The documented call isPOST /repos/{owner}/{repo}/pulls/{index}/pull— the/pullsuffix does not exist in the Forgejo API. The correct call isPATCH /repos/{owner}/{repo}/pulls/{index}with body{"state": "closed"}. As written, the REJECT flow will get a 404 on every rejection attempt.high
formulas/run-architect.toml:184: Wrong Create Branch endpoint. The documented call isPOST /repos/{owner}/{repo}/git/brancheswith{"old_ref": "refs/heads/main", "new_ref": "<commit-sha>"}. The correct Forgejo endpoint isPOST /repos/{owner}/{repo}/branches(no/gitprefix) with body{"new_branch_name": "architect/<sprint-slug>", "old_branch_name": "main"}. Additionally, thenew_ref: <commit-sha>form requires resolving the current HEAD SHA first — a prerequisite step not described in the formula. Switching to theold_branch_nameform eliminates that dependency.Notes
PHASE:donebefore the research step runs, avoiding redundant work.# Sprint pitch:prefix to# Sprint:).FORGE_TOKENvia local Forgejo API, which is exempt per AD-006.Verdict
REQUEST_CHANGES — Two incorrect Forgejo API endpoints in the reference section will cause branch creation and PR rejection flows to fail
Reviewed at
5ef4da3| AGENTS.mdAI Review: REQUEST_CHANGES — Two incorrect Forgejo API endpoints in the reference section will cause branch creation and PR rejection flows to fail
5ef4da3356to7134752525AI Re-review (round 2)
Previous Findings
Notes
No new issues introduced by the fix commits. The formula is correct and ready to merge.
Verdict
APPROVE — Both API endpoint bugs from the previous review are fixed
Reviewed at
7134752| Previous:5ef4da3| AGENTS.mdAI Re-review (round 2): APPROVE — Both API endpoint bugs from the previous review are fixed