feat(workflow): wire pr-review into archie's own PRs before opening
StagePRReviewAndOpenPR runs the pr-review pipeline's decision phases (1-8) against the task's own uncommitted change, using a new localPRSource that reads Diff/Snapshot straight from Trees instead of fetching an external PR -- there is no PR number yet to fetch one by, which is why this trigger needed its own PRSource rather than the forge-backed one afbk.7 already built for external PRs. An unchallenged blocking finding parks the task with the findings instead of opening a PR; a pipeline stage failure parks it the same way any stage failure does. Once the PR opens, advisory findings post against it -- best-effort, matching the deleted StagePostReviewComments' convention: a posting failure is logged, not reverted into the outcome the PR's existence already earned. Implement() now uses this in place of the plain StageOpenPR. Bootstrap and TDD are untouched -- the PRD names "the implement workflow" specifically; extending to the others is a separate call. Resolves this bead's first blocker (confirmed via read: CompilePinnedWorkflow returns the same workflow.Workflow type and runs through the same workflow.Run either compilation path, so a stage setting Outcome ends the run identically regardless -- stagePROutput's posting logic had to move inside StageOpenPR's own Run body, not follow it as a separate Stage, which OpenPR's own doc comment already anticipated). Still open on this bead: watched-repositories and operator triggers, both blocked on the credential path for PRSource's real forge-backed implementation reaching the sandboxed archie-agent process -- see the bead comment for the concrete design (egress credential-capability grant, narrow forge diff/archive HTTP methods) not yet built.
This commit is contained in:
1 parent
7299b923f6
commit
10bbbf5c4e
6 files changed
+365
-18
No files matched your search
@@ -70,7 +70,7 @@ const (
|
||||
|
||||
// diffRuleDetailBytes bounds how much of a park Detail the rendered findings
|
||||
// occupy, matching the store's own park-reason cap headroom (see
|
||||
// reviewDetailBytes in review.go).
|
||||
// parkDetailBytes in prreview_own_pr.go).
|
||||
const diffRuleDetailBytes = 4000
|
||||
|
||||
// DiffRule is one declarative rule applied to the added lines of the committed
|
||||
|
||||
Reference in new issue
Block a user