Repository navigation
fix(#1308): transparent delivery baseline context, issue target.ref, team nomination delivery, preflight guards, and progress wording - #1310
Conversation
…e target.ref, team nomination delivery, preflight guards, and progress wording
…-ref-and-head-drift
|
Fixed the CI failure in Verification (
|
Independent review: approved and enqueuedReviewed head: Verified independently:
Required checks on the reviewed head are green: No blocking issues found. Enqueued with Non-blocking notes (no change required for this PR):
|
检视结论:无 must-fix 问题(审查版本
|
Fixes #1308
Summary
Addresses all five delivery-baseline, team-nomination, preflight, and issue-progress transparency gaps described in #1308:
End-to-end delivery context & QA handoff transparency (
src/tasks/delivery-context.ts,src/tasks/request.ts,src/roles/team.ts,src/tasks/children.ts,src/tasks/acceptance.ts)delivery_context(target,base_branch,base_sha,pr_base_semantics,goal,intended_delivery,writes) across Task Manager, Dev, and Observer (reviewer/test) prompts.deliveryandchanged_files_countonlatest_dev_resultanddelegate_roleresults,target/base_branch/delivery/pr_urlonread_child_tasks, andcandidate_changeson Observer prompts.delivery_handoffsection in QA acceptance input outsideboundedCandidateso delivery intent, target/base branch, baseline/candidate HEAD SHAs, changed file summary, and child PR references are never truncated by large diffs.Effective
target: { type: "issue", number, ref? }(src/tasks/request.ts,src/dispatch/store.ts,src/dispatch/manager.ts,src/tasks/management.ts,src/agent/failures.ts,src/agent/failure-actions.ts,docs/prompts/manager-dispatch.md)target.reffor issue tasks: an existing openbot_prstill takes precedence; a remote branch setsbaseBranchandtargetSha(and fails explicitly withtarget_branch_not_foundinstead of silently falling back tomain); bare commit SHAs / tags are allowed only for read-only tasks and rejected withtarget_ref_not_branchwhenpull_requestwrite is held..agents/skills/,AGENTS.md, andCLAUDE.mdstrictly pinned to the trustedpolicyBase || defaultBranchcheckout.refin issue dispatch deduplication keys (issue:<n>@<ref>) and documentstarget.refincreate_taskschemas and Manager dispatch prompt.Team nomination
deliverysemantics & child-nomination guardrails (src/roles/catalog.ts,src/roles/nomination.ts,src/roles/team.ts)delivery?: "pull_request" | "review" | "report"tonominationSchema(generic tasks only, bounded byeffectiveWrites).open_pull_request/post_review/submit_report) rather than hardcodingsubmit_report.reviewable_pull_requestreject nominating a child withoutpr_urlwhendeliveryis omitted; nominating a child withpr_urldefaults parent delivery toreportwithchild_pull_requestspreserved and no duplicate PR.QA preflight test-path exclusion & workspace HEAD drift guardrail (
runner/workspace.mjs,src/agent/workspace.ts,src/agent/engine.ts,src/tasks/request.ts,src/tasks/acceptance.ts,src/tasks/delivery-context.ts)isTestFixturePathand relaxes onlyprivateKeyBlockmatching for test fixture paths (tests?/__tests__/specs?at any depth,.test./.spec./test_*/*_test.*) while keepingredactor.containsanddirtyPathPatternstrict on all paths.workspace_finalizereturns actualhead_sha; control plane tracksworkspace_base_head_sha(including snapshot checkouts and workspace advances) and rejects drifted workspace HEAD (workspace_head_drifted) in bothopen_pull_requestand QA deterministic preflight unless an authorized conflict resolution or integration took place.Issue progress comment wording & non-default base branch (
src/review/progress.ts,src/tasks/request.ts)completed/succeededtasks without a PR as已结束(未开出 PR)/Ended (no pull request)(prioritizingstopped.reason, then redacted/truncatedresult.summary) instead of misleadingly showing开发失败(completed)or an unclickable retry hint.基线分支/Base branchin the progress comment start section when developing against a non-default base branch.Documentation
docs/features/github-automation.mdanddocs/design/dispatch-and-tasks.mdin sync with the behavioral and architectural changes.Verification
Verified on head
f80853a0c97f0487ce8da5fbefce4654e28ab9c3(rebased ontoorigin/mainb7c90cbf):npm ci && npm ci --prefix runner --omit=dev --ignore-scripts— exit 0npm run check— exit 0 (tsc -p tsconfig.json --noEmit+ 784 runtime JS files)BOT_TEST_JOBS=8 npm test— 2669/2669 passed across 232 test sets (including new unit suitetest/ut/src/tasks/delivery-baseline-transparency.test.mjs, new integration suitetest/st/src/tasks/issue-ref-and-head-drift.test.mjs, and updatedtest/st/src/review/issue-progress.test.mjs);test/st/src/harness/codex-harness.test.mjsexperienced parallel CPU-contention grace-window flake under 8-way load and passed standalone:node test/framework/test-sets.mjs test/st/src/harness/codex-harness.test.mjs— 67/67 passeddocker compose -f docker/compose.yaml config --quiet && docker compose -f docker/compose.yaml -f docker/compose.build.yaml config --quiet— exit 0