Skip to content

Commit 601bee5

Browse files
authored
feat(ai): wire agent preflight discovery (#13847) (#13872)
1 parent 3f2e155 commit 601bee5

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.agents/skills/pull-request/references/pull-request-workflow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ The act of opening a PR is an irreversible state transition in the Agent OS. Bef
1414

1515
*If and only if* you pass this reflection phase, proceed to the Git execution sequence.
1616

17+
Before the first commit or PR-body attempt on an agent-authored PR, run
18+
`npm run agent-preflight -- [files...]`; when a local PR body draft exists,
19+
include `-- --pr-body <draft-body.md>` so local source and PR-body gate failures
20+
surface before CI.
21+
1722
### 1.1 The Substrate-Mutation Pre-Flight Gate
1823

1924
If your PR touches memory substrate per `/turn-memory-pre-flight` (`AGENTS.md`,

buildScripts/util/agent-preflight.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ const
99
__filename = fileURLToPath(import.meta.url),
1010
__dirname = path.dirname(__filename);
1111

12+
// Source-to-mirror: keep these PR-body anchors in sync with
13+
// `.github/workflows/agent-pr-body-lint.yml`. Do not reintroduce a shared
14+
// `prReviewAnchors.mjs`; sync-by-convention is deliberate.
1215
export const VISIBLE_PR_BODY_ANCHORS = [
1316
'Evidence:',
1417
'## Test Evidence',

0 commit comments

Comments
 (0)